/* =========================================================
   סרגל עליון
   ========================================================= */

#topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: linear-gradient(180deg, #2a2015 0%, #1c150d 100%);
  border-bottom: 2px solid var(--color-bronze);
  box-shadow: var(--shadow-deep);
  z-index: 100;
}

.topbar-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-label {
  font-size: 0.78rem;
  color: var(--color-parchment-dim);
  letter-spacing: 0.02em;
}

.topbar-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
}

.topbar-icon {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.topbar-station,
.topbar-timer,
.topbar-stamps {
  padding: 6px 14px;
  border: 1px solid rgba(216, 164, 91, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.topbar-actions {
  gap: 10px;
}

.topbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(216, 164, 91, 0.45);
  background: radial-gradient(circle at 35% 30%, #3a2e1d, #1b140c);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.topbar-btn:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(232, 194, 122, 0.45);
  transform: translateY(-1px);
}

.topbar-btn:active {
  transform: translateY(0);
}

.emblem-icon {
  width: 24px;
  height: 24px;
}

/* ===================== כפתור-הקול (גלולה) ===================== */
/* *** עיצוב כחול-זהוב ייעודי (בהשראת תמונת-הכפתור שסופקה), שונה
   מכפתורי-האייקון העגולים האחרים בכוונה - כדי שיהיה קל להבחין
   במצבו (פעיל/מושתק) גם ממבט חטוף, לא רק מהאייקון הקטן. ***/
.topbar-sound-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(216, 164, 91, 0.45);
  background: linear-gradient(135deg, #16233f 0%, #0d1626 100%);
  color: var(--color-gold);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.2s ease;
}

.topbar-sound-btn:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(232, 194, 122, 0.45);
  transform: translateY(-1px);
}

.topbar-sound-btn:active {
  transform: translateY(0);
}

.topbar-sound-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.topbar-sound-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.topbar-sound-label {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-sound-btn.is-muted {
  background: linear-gradient(135deg, #241a12 0%, #140d08 100%);
  border-color: rgba(216, 164, 91, 0.3);
  color: var(--color-parchment-dim);
}

/* במסכים צרים משאירים רק את הסמל, כדרישה - הטקסט המלא נשאר
   זמין לקוראי-מסך דרך aria-label. */
@media (max-width: 780px) {
  .topbar-sound-label {
    display: none;
  }
  .topbar-sound-btn {
    padding: 0;
    width: 42px;
    justify-content: center;
  }
}

/* ===================== פאנל תיק מסע ===================== */

.inventory-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
}

.inventory-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(360px, 88vw);
  background: linear-gradient(160deg, #2c2416 0%, #1a140c 100%);
  border-left: 2px solid var(--color-bronze);
  box-shadow: var(--shadow-deep);
  z-index: 200;
  padding: 20px 22px;
  flex-direction: column;
  gap: 14px;
}

.inventory-panel:not([hidden]) {
  display: flex;
}

.inventory-panel[hidden],
.inventory-backdrop[hidden] {
  display: none;
}

.inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inventory-header h2 {
  color: var(--color-gold);
  font-size: 1.3rem;
}

.inventory-close {
  background: none;
  border: none;
  color: var(--color-parchment);
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px;
}

.inventory-close:hover {
  color: var(--color-gold);
}

.inventory-subtitle {
  margin: 0;
  color: var(--color-parchment-dim);
  font-size: 0.95rem;
}

.inventory-stamps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.inventory-stamp-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(216, 164, 91, 0.55);
  background: radial-gradient(circle at 35% 30%, #3a2e1d 0%, #1b140c 72%);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.65),
    inset 0 -1px 3px rgba(232, 194, 122, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inventory-stamp-slot img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.inventory-slot-number {
  position: absolute;
  top: 6%;
  left: 10%;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-parchment-dim);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  opacity: 0.85;
}

.inventory-slot-lock {
  width: 34%;
  height: 34%;
  color: rgba(216, 164, 91, 0.38);
}
