:root {
  --bg-deep: #0e1628;
  --bg-navy: #162442;
  --bg-panel: rgba(20, 32, 58, 0.86);
  --border-gold: rgba(227, 187, 102, 0.32);
  --border-gold-strong: rgba(242, 204, 118, 0.65);
  --gold: #f0c76e;
  --gold-bright: #ffe39e;
  --amber: #e69a45;
  --cream: #fbf4e4;
  --cream-muted: #cbbda2;
  --wood-dark: #2c180e;
  --wood-mid: #4e2d1a;
  --shadow-warm: rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, rgba(244, 184, 86, 0.22), transparent 52%),
    radial-gradient(circle at 12% 90%, rgba(36, 74, 140, 0.35), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(224, 145, 58, 0.14), transparent 45%),
    linear-gradient(180deg, #101a30 0%, #0b1120 100%);
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 28% at 50% 0%, rgba(255, 198, 92, 0.14), transparent 70%);
  animation: candleBreathe 4.5s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes candleBreathe {
  0% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.8; transform: scale(0.99); }
}

/* ==================== WELCOME BANNER OVERLAY ==================== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-card {
  position: relative;
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 36px 34px 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 197, 102, 0.16), transparent 60%),
    linear-gradient(180deg, #18284a 0%, #101b33 100%);
  border: 1.5px solid var(--border-gold-strong);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(240, 199, 110, 0.14),
    inset 0 1px 0 rgba(255, 236, 184, 0.25);
  animation: cardRise 0.5s cubic-bezier(0.2, 0.85, 0.3, 1);
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-stars {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  opacity: 0.9;
}

/* Mini decorative menorah in welcome card */
.mini-menorah {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 14px 10px;
  margin-bottom: 16px;
}

.mini-menorah .candle {
  position: relative;
  width: 7px;
  height: 26px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #fffdf6 0%, #c8dcf7 65%, #7ba4db 100%);
  box-shadow: 0 0 8px rgba(255, 212, 118, 0.28);
}

.mini-menorah .candle.shamash {
  height: 36px;
  background: linear-gradient(180deg, #fffaf0 0%, #f5d37d 60%, #d49d35 100%);
}

.mini-menorah .flame {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 8px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 70%, #ffffff 0%, #ffe680 42%, #ff9d2e 82%, transparent 100%);
  box-shadow: 0 0 12px 3px rgba(255, 185, 65, 0.65);
  animation: flicker 1.6s ease-in-out infinite alternate;
}

.mini-menorah .c2 .flame, .mini-menorah .c6 .flame { animation-delay: 0.25s; }
.mini-menorah .c3 .flame, .mini-menorah .c7 .flame { animation-delay: 0.55s; }
.mini-menorah .c4 .flame, .mini-menorah .c8 .flame { animation-delay: 0.85s; }

.mini-menorah .menorah-base {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #b8872c, #f5d47a, #b8872c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(0.95, 0.96) rotate(-2deg); opacity: 0.92; }
  50% { transform: translateX(-50%) scale(1.06, 1.07) rotate(2deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.98, 1.02) rotate(-1deg); opacity: 0.95; }
}

.welcome-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff5d4 0%, #f1c463 55%, #d69935 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 20px rgba(240, 199, 110, 0.25);
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.welcome-divider {
  width: 90px;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.welcome-note {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--cream-muted);
  margin-bottom: 20px;
}

.welcome-note strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.welcome-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.welcome-badges span {
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(240, 199, 110, 0.11);
  border: 1px solid rgba(240, 199, 110, 0.28);
  color: var(--gold-bright);
}

.welcome-hint {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(203, 189, 162, 0.75);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  appearance: none;
  border: 1px solid rgba(255, 232, 168, 0.65);
  border-radius: 14px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: #241504;
  background: linear-gradient(180deg, #fae098 0%, #e5b24c 60%, #cf952d 100%);
  box-shadow:
    0 6px 20px rgba(230, 154, 69, 0.34),
    inset 0 1px 0 rgba(255, 252, 235, 0.8);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230, 154, 69, 0.45), inset 0 1px 0 rgba(255, 252, 235, 0.85);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-large {
  padding: 14px 36px;
  font-size: 1.06rem;
}

.btn-secondary {
  appearance: none;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cream);
  background: rgba(255, 245, 220, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(240, 199, 110, 0.14);
  border-color: var(--border-gold-strong);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-small {
  padding: 7px 12px;
  font-size: 0.8rem;
  width: 100%;
  margin-top: 10px;
}

.icon-btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(255, 245, 220, 0.06);
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.12s ease;
}

.icon-btn:hover {
  background: rgba(240, 199, 110, 0.16);
  transform: translateY(-1px);
}

/* ==================== APP SHELL & TOP BANNER ==================== */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(26, 44, 82, 0.92), rgba(20, 34, 64, 0.88), rgba(26, 44, 82, 0.92));
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 28px var(--shadow-warm);
  flex-wrap: wrap;
}

.banner-main {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  line-height: 1.15;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.banner-sub {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--cream-muted);
  margin-top: 2px;
}

/* Interactive Header Menorah */
.header-menorah {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 44px;
  padding: 0 12px 7px;
}

.h-candle {
  position: relative;
  width: 7px;
  height: 20px;
  border: none;
  padding: 0;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #fffdf5, #9cbfe8);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.h-candle:hover {
  transform: scale(1.12);
}

.h-candle.shamash {
  height: 28px;
  background: linear-gradient(180deg, #fff8e0, #e5b24c);
}

.h-flame {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 7px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 70%, #ffffff 0%, #ffe680 42%, #ff9d2e 82%, transparent 100%);
  box-shadow: 0 0 10px 2px rgba(255, 185, 65, 0.65);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.h-candle.lit .h-flame {
  opacity: 1;
  animation: flicker 1.7s ease-in-out infinite alternate;
}

.h-candle:nth-child(2n) .h-flame { animation-delay: 0.35s; }
.h-candle:nth-child(3n) .h-flame { animation-delay: 0.7s; }

.h-menorah-bar {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #9d7122, #f2cc6e, #9d7122);
}

.banner-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: rgba(8, 13, 25, 0.65);
  border: 1px solid var(--border-gold);
}

.mode-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-btn.active {
  color: #211303;
  background: linear-gradient(180deg, #f8da8b, #dfaa43);
  box-shadow: 0 2px 8px rgba(229, 178, 76, 0.35);
}

/* ==================== MAIN 3-COLUMN LAYOUT ==================== */
.game-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: 0 10px 26px var(--shadow-warm);
  backdrop-filter: blur(8px);
}

.panel-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: var(--gold-bright);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-header h3 {
  margin-bottom: 0;
}

.round-pill, .pantry-progress {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(240, 199, 110, 0.14);
  border: 1px solid rgba(240, 199, 110, 0.32);
  color: var(--gold-bright);
}

/* Players List */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(9, 15, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.player-row.active-turn {
  border-color: var(--border-gold-strong);
  background: rgba(240, 199, 110, 0.13);
  box-shadow: 0 0 16px rgba(240, 199, 110, 0.14);
}

.player-row.eliminated {
  opacity: 0.45;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.player-avatar {
  font-size: 1.25rem;
  line-height: 1;
}

.player-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-role {
  font-size: 0.72rem;
  color: var(--cream-muted);
}

.player-gelt {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--gold-bright);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(240, 199, 110, 0.12);
}

.pot-summary {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(230, 154, 69, 0.12);
  border: 1px dashed rgba(240, 199, 110, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.pot-label {
  color: var(--cream-muted);
}

.pot-count {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-bright);
}

/* Rules Card */
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--cream-muted);
}

.rules-list strong {
  color: var(--cream);
}

.hebrew-chip {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(29, 54, 102, 0.85);
  border: 1px solid var(--border-gold);
}

/* ==================== CENTER ARENA ==================== */
.arena-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.commentary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 46, 84, 0.9), rgba(18, 30, 56, 0.92));
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 22px var(--shadow-warm);
  min-height: 60px;
}

.commentary-avatar {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.commentary-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.38;
}

.commentary-text strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.table-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 760 / 500;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-gold-strong);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.45);
  background: #2b180e;
  cursor: grab;
  touch-action: none;
}

.table-stage:active {
  cursor: grabbing;
}

#dreidel-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud-top-left, .hud-top-right {
  position: absolute;
  top: 12px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.hud-top-left { left: 12px; }
.hud-top-right { right: 12px; }

.hud-chip {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(11, 18, 34, 0.72);
  border: 1px solid rgba(240, 199, 110, 0.28);
  backdrop-filter: blur(4px);
}

.hud-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--cream-muted);
}

.hud-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.result-badge {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-radius: 16px;
  background: rgba(14, 24, 46, 0.92);
  border: 1.5px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(240, 199, 110, 0.25);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.result-badge.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(0.94);
}

.result-hebrew {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #211303;
  background: linear-gradient(180deg, #fae098, #d9a137);
}

.result-name {
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.result-action {
  font-size: 0.82rem;
  color: var(--cream);
}

.drag-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 0.76rem;
  color: rgba(251, 244, 228, 0.65);
  background: rgba(12, 18, 32, 0.55);
  padding: 4px 11px;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drag-hint.hidden {
  opacity: 0;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 26px var(--shadow-warm);
  flex-wrap: wrap;
}

.power-wrap {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.power-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
}

.power-label {
  font-weight: 700;
  color: var(--cream);
}

.power-tier {
  color: var(--gold);
  font-style: italic;
  font-size: 0.78rem;
}

.power-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(8, 13, 25, 0.75);
  border: 1px solid rgba(240, 199, 110, 0.25);
  overflow: hidden;
}

.power-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ba6e8 0%, #f0c76e 55%, #f2843a 100%);
  transition: width 0.04s linear;
}

.spin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spin-main-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 26px;
  min-width: 158px;
}

.spin-btn-title {
  font-size: 0.98rem;
  line-height: 1.15;
}

.spin-btn-sub {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.76;
}

/* ==================== RIGHT SIDEBAR ==================== */
.skin-picker {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skin-option {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 15, 29, 0.55);
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.skin-option:hover {
  border-color: var(--border-gold);
}

.skin-option.active {
  border-color: var(--border-gold-strong);
  background: rgba(240, 199, 110, 0.14);
  color: var(--gold-bright);
}

.skin-swatch {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.swatch-classic {
  background: linear-gradient(135deg, #1d4487 50%, #ecc365 50%);
}

.swatch-walnut {
  background: linear-gradient(135deg, #6d3f22 50%, #d4a359 50%);
}

.swatch-postop {
  background: linear-gradient(135deg, #64b5b0 50%, #e4f5f3 50%);
}

/* Soft-Food Pantry */
.pantry-sub {
  font-size: 0.76rem;
  color: var(--cream-muted);
  margin-bottom: 10px;
}

.pantry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pantry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: 11px;
  background: rgba(9, 15, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease;
}

.pantry-item.locked {
  opacity: 0.44;
  filter: grayscale(0.8);
}

.pantry-item.unlocked {
  border-color: rgba(240, 199, 110, 0.45);
  background: rgba(240, 199, 110, 0.11);
}

.pantry-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.pantry-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(9, 15, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--cream-muted);
  margin-top: 2px;
}

/* Hidden utility for Zen Mode */
.zen-hidden {
  display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1120px) {
  .game-layout {
    grid-template-columns: 1fr 1fr;
  }
  .arena-column {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 680px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .top-banner {
    justify-content: center;
    text-align: center;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .spin-actions {
    justify-content: stretch;
  }
  .spin-main-btn {
    flex: 1;
  }
}
