/* ============================================================
   Golden Reels — game boards, controls, themes, effects
   ============================================================ */

/* ---------------- Theme tokens ---------------- */

.game-view.theme-olympus {
  --accent: #ffd166;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(255, 209, 102, 0.4);
  --cell-bg: linear-gradient(180deg, rgba(64, 50, 128, 0.62), rgba(16, 14, 46, 0.86));
  --cell-border: rgba(255, 209, 102, 0.16);
  --board-bg: rgba(7, 6, 22, 0.72);
}

.game-view.theme-candy {
  --accent: #ff7ab8;
  --accent-2: #7c5cff;
  --accent-glow: rgba(255, 122, 184, 0.45);
  --cell-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 122, 184, 0.16));
  --cell-border: rgba(255, 255, 255, 0.22);
  --board-bg: rgba(46, 10, 44, 0.5);
}

.game-view.theme-classic {
  --accent: #f7c948;
  --accent-2: #e0384a;
  --accent-glow: rgba(247, 201, 72, 0.4);
  --cell-bg: linear-gradient(180deg, #fbf7ec, #e9dfc8);
  --cell-border: rgba(0, 0, 0, 0.12);
  --board-bg: rgba(5, 7, 11, 0.9);
}

.game-view.theme-anubis {
  --accent: #e8b64c;
  --accent-2: #7c3aed;
  --accent-glow: rgba(232, 182, 76, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(94, 66, 24, 0.72), rgba(22, 14, 34, 0.92));
  --cell-border: rgba(232, 182, 76, 0.18);
  --board-bg: rgba(13, 8, 18, 0.82);
}

.game-view.theme-catch {
  --accent: #4fd1c5;
  --accent-2: #0ea5e9;
  --accent-glow: rgba(79, 209, 197, 0.45);
  --cell-bg: linear-gradient(180deg, rgba(10, 86, 102, 0.7), rgba(4, 22, 38, 0.92));
  --cell-border: rgba(79, 209, 197, 0.2);
  --board-bg: rgba(3, 15, 24, 0.84);
}

.game-view.theme-plunder {
  --accent: #f2a65a;
  --accent-2: #2ec4b6;
  --accent-glow: rgba(242, 166, 90, 0.45);
  --cell-bg: linear-gradient(180deg, rgba(78, 50, 28, 0.72), rgba(16, 11, 9, 0.94));
  --cell-border: rgba(242, 166, 90, 0.2);
  --board-bg: rgba(9, 6, 5, 0.84);
}

.game-view.theme-olympus .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(124, 92, 255, 0.28), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(247, 201, 72, 0.12), transparent 70%),
    linear-gradient(180deg, #100b2e, #070812 62%, #05060c);
}

.game-view.theme-candy .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(255, 122, 184, 0.34), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(124, 92, 255, 0.24), transparent 70%),
    linear-gradient(180deg, #3b1038, #170b2a 62%, #09060f);
}

.game-view.theme-classic .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(247, 201, 72, 0.16), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(90, 169, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #1a1206, #0a0b0f 62%, #06070a);
}

.game-view.theme-anubis .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(232, 182, 76, 0.22), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(124, 58, 237, 0.18), transparent 70%),
    linear-gradient(180deg, #1c1206, #0d0818 62%, #05060a);
}

.game-view.theme-catch .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(79, 209, 197, 0.24), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(14, 165, 233, 0.2), transparent 70%),
    linear-gradient(180deg, #052b3a, #04121f 62%, #02070c);
}

.game-view.theme-plunder .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(46, 196, 182, 0.2), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(242, 166, 90, 0.18), transparent 70%),
    linear-gradient(180deg, #08282c, #0c1512 62%, #05080a);
}

/* atmospheric pattern behind the cabinet */
.game-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  background-image:
    var(--stage-pattern, none),
    radial-gradient(58% 38% at 50% 44%, var(--accent-glow), transparent 72%),
    radial-gradient(90% 42% at 50% 112%, rgba(0, 0, 0, 0.55), transparent 72%);
}

.game-stage > * {
  position: relative;
  z-index: 1;
}

.theme-olympus .game-stage {
  --stage-pattern: repeating-linear-gradient(
    115deg,
    transparent 0 42px,
    rgba(247, 201, 72, 0.05) 42px 44px
  );
}

.theme-candy .game-stage {
  --stage-pattern:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 184, 0.12) 0 9px, transparent 10px),
    radial-gradient(circle at 28% 76%, rgba(255, 122, 184, 0.1) 0 7px, transparent 8px),
    radial-gradient(circle at 76% 68%, rgba(255, 255, 255, 0.07) 0 4px, transparent 5px);
}

.theme-classic .game-stage {
  --stage-pattern: repeating-conic-gradient(
    from 0deg at 50% 44%,
    rgba(247, 201, 72, 0.07) 0 5deg,
    transparent 5deg 17deg
  );
}

.theme-anubis .game-stage {
  --stage-pattern:
    repeating-linear-gradient(
      0deg,
      transparent 0 44px,
      rgba(232, 182, 76, 0.045) 44px 45px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 44px,
      rgba(232, 182, 76, 0.045) 44px 45px
    );
}

.theme-catch .game-stage {
  --stage-pattern:
    radial-gradient(circle at 16% 24%, rgba(79, 209, 197, 0.1) 0 6px, transparent 7px),
    radial-gradient(circle at 83% 17%, rgba(79, 209, 197, 0.08) 0 10px, transparent 11px),
    radial-gradient(circle at 24% 78%, rgba(14, 165, 233, 0.09) 0 12px, transparent 13px),
    radial-gradient(circle at 77% 72%, rgba(79, 209, 197, 0.07) 0 7px, transparent 8px);
}

.theme-plunder .game-stage {
  --stage-pattern:
    repeating-linear-gradient(
      115deg,
      transparent 0 46px,
      rgba(242, 166, 90, 0.05) 46px 48px
    ),
    radial-gradient(circle at 78% 22%, rgba(46, 196, 182, 0.08) 0 14px, transparent 15px),
    radial-gradient(circle at 22% 70%, rgba(242, 166, 90, 0.07) 0 10px, transparent 11px);
}

/* ---------------- Game shell ---------------- */

.game-shell {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* game logo above the reels */
.game-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-top: 2px;
  text-align: center;
}

.logo-kicker {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.36em;
  color: var(--accent);
  opacity: 0.75;
}

.logo-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(23px, 7.4vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #ffffff, var(--accent) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px var(--accent-glow));
}

.logo-sub {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* free spins banner */
.fs-banner {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(8, 7, 18, 0.86);
  box-shadow: 0 0 22px var(--accent-glow);
  animation: fs-pulse 2s ease-in-out infinite;
}

.fs-kicker {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.fs-count {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  color: #fff;
}

.fs-mult {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0e00;
  font-size: 10px;
  font-weight: 900;
}

@keyframes fs-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 26px var(--accent-glow);
  }
}

/* ---------------- Board ---------------- */

.board-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

.board-frame {
  position: relative;
  width: min(100%, 58dvh);
  padding: 6px;
  border-radius: 22px;
  border: 1px solid rgba(255, 209, 102, 0.48);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(150deg, #4a3512, #1c1636 46%, #090712);
  box-shadow:
    0 26px 54px -18px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.5);
}

.theme-candy .board-frame {
  border-color: rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(150deg, #ffa8d0, #c04a8f 38%, #4a1740);
}

.theme-classic .board-frame {
  border-color: rgba(247, 201, 72, 0.42);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(150deg, #2c2418, #141824 48%, #080b10);
}

.theme-anubis .board-frame {
  border-color: rgba(232, 182, 76, 0.5);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(150deg, #5a4216, #241638 46%, #090610);
}

.theme-catch .board-frame {
  border-color: rgba(79, 209, 197, 0.52);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(150deg, #0a5a6a, #062a3c 46%, #020a12);
}

.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: 100%;
  aspect-ratio: 6 / 5;
  padding: 4px;
  border-radius: 16px;
  background: var(--board-bg);
  box-shadow: inset 0 6px 20px rgba(0, 0, 0, 0.75), inset 0 -4px 14px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 13px 16px -8px rgba(0, 0, 0, 0.9),
    inset 0 -13px 16px -8px rgba(0, 0, 0, 0.9),
    inset 10px 0 14px -12px rgba(0, 0, 0, 0.8),
    inset -10px 0 14px -12px rgba(0, 0, 0, 0.8);
}

.board.five {
  grid-template-columns: repeat(5, 1fr);
  aspect-ratio: 5 / 3;
}

.board.five .cell .glyph {
  font-size: clamp(27px, 8.8vw, 46px);
}

.line-svg {
  position: absolute;
  inset: 6px;
  z-index: 7;
  overflow: visible;
  pointer-events: none;
}

.line-svg polyline {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px currentColor);
  animation: line-fade 1.25s ease-out forwards;
}

@keyframes line-fade {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  74% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.col {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
}

.col-strip {
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform;
}

.col.spinning .col-strip {
  height: 200%;
  animation: col-spin 0.4s linear infinite;
}

.col.spinning .cell {
  filter: blur(1.3px);
  opacity: 0.94;
}

@keyframes col-spin {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.col.landed .col-strip {
  animation: col-land 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.35);
}

@keyframes col-land {
  0% {
    transform: translateY(-16px);
  }
  58% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}

.cell {
  flex: 1 1 0;
  min-height: 0;
  margin: 2px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--cell-border);
  background: var(--cell-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -6px 10px -8px rgba(0, 0, 0, 0.7);
  transition: filter 0.12s ease;
  position: relative;
}

.cell .glyph {
  font-family: var(--emoji);
  font-size: clamp(23px, 7.6vw, 40px);
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  transform: translateZ(0);
}

.cell.wild {
  border-color: rgba(232, 182, 76, 0.62);
  box-shadow:
    0 0 14px rgba(232, 182, 76, 0.35),
    inset 0 0 14px rgba(232, 182, 76, 0.16);
}

.cell.money {
  border-color: rgba(79, 209, 197, 0.6);
  box-shadow:
    0 0 14px rgba(79, 209, 197, 0.32),
    inset 0 0 12px rgba(79, 209, 197, 0.14);
}

.cell.collector {
  border-color: rgba(255, 209, 102, 0.75);
  box-shadow:
    0 0 18px rgba(255, 209, 102, 0.5),
    inset 0 0 14px rgba(255, 209, 102, 0.2);
}

.cell.special {
  animation: special-pulse 1.7s ease-in-out infinite;
}

.cell.sticky {
  border-color: rgba(247, 201, 72, 0.9);
  box-shadow:
    0 0 16px rgba(247, 201, 72, 0.6),
    inset 0 0 14px rgba(247, 201, 72, 0.22);
  animation: sticky-pulse 1.8s ease-in-out infinite;
}

.cell.sticky .glyph {
  filter: drop-shadow(0 0 6px rgba(247, 201, 72, 0.85));
}

@keyframes sticky-pulse {
  50% {
    box-shadow:
      0 0 24px rgba(247, 201, 72, 0.85),
      inset 0 0 18px rgba(247, 201, 72, 0.3);
  }
}

@keyframes special-pulse {
  50% {
    box-shadow:
      0 0 20px var(--accent-glow),
      inset 0 0 14px rgba(255, 255, 255, 0.12);
  }
}

.cell-tag {
  position: absolute;
  right: 2px;
  bottom: 1px;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.66);
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.theme-candy .cell .glyph {
  filter: drop-shadow(0 2px 3px rgba(80, 0, 50, 0.45));
}

.cell.scatter {
  border-color: rgba(255, 209, 102, 0.75);
  box-shadow:
    0 0 16px rgba(255, 209, 102, 0.45),
    inset 0 0 14px rgba(255, 209, 102, 0.22);
}

.cell.scatter::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 7px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  pointer-events: none;
}

.cell.win {
  border-color: var(--accent);
  box-shadow:
    0 0 18px var(--accent-glow),
    inset 0 0 16px rgba(255, 255, 255, 0.16);
  z-index: 2;
}

.cell.win .glyph {
  animation: glyph-win 0.6s ease;
}

@keyframes glyph-win {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 14px var(--accent));
  }
  100% {
    transform: scale(1);
  }
}

.cell.pop {
  animation: cell-pop 0.3s ease-in forwards;
}

@keyframes cell-pop {
  to {
    transform: scale(0.2);
    opacity: 0;
    filter: brightness(2);
  }
}

.cell.drop {
  animation: cell-drop 0.38s cubic-bezier(0.2, 0.8, 0.3, 1.15) both;
}

@keyframes cell-drop {
  from {
    transform: translateY(-30px) scale(0.94);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* effects layer over the board */
.board-fx {
  position: absolute;
  inset: 6px;
  z-index: 8;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
}

.win-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 7, 18, 0.92);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 18px var(--accent-glow);
  animation: win-pop 1.05s ease-out forwards;
}

@keyframes win-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.7);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1.05);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -180%) scale(0.95);
  }
}

.orb {
  position: absolute;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff2bd;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #ffd166 38%, #b8862f 75%, #5a3c08);
  color: #2a1a00;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.85);
  transform: translate(-50%, -50%);
  animation: orb-in 1.6s ease-out forwards;
}

.theme-candy .orb {
  border-color: #ffd1e8;
  background: radial-gradient(circle at 35% 30%, #ffe3f2, #ff7ab8 40%, #b53a7c 76%, #5c1038);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 122, 184, 0.9);
}

@keyframes orb-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(-20deg);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12) rotate(0deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -62%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -95%) scale(0.9);
  }
}

/* ---------------- Readout / status ---------------- */

.readout {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
  width: 100%;
}

.chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chip span {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.chip b {
  font-size: 15px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.win-chip b {
  color: var(--accent);
}

.win-chip.hit {
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--accent-glow);
}

.status {
  flex: 0 0 auto;
  min-height: 14px;
  margin: 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------------- Controls ---------------- */

.controls-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 8px;
  align-items: stretch;
}

.bet-stepper {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #171f2c, #0e141e);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.step {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.12s, transform 0.08s;
}

.step:active {
  background: rgba(255, 255, 255, 0.07);
  transform: scale(0.94);
}

.step:disabled {
  opacity: 0.32;
  cursor: default;
}

.bet-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.bet-box span {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.bet-box b {
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.spin-btn {
  position: relative;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #d99f1f);
  color: #2a1a00;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    0 6px 0 #8a5f0d,
    0 14px 24px -10px rgba(247, 201, 72, 0.6),
    inset 0 1px 0 #fff6cf;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}

.spin-btn:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 #8a5f0d,
    0 6px 14px -8px rgba(247, 201, 72, 0.55),
    inset 0 1px 0 #fff6cf;
}

.spin-btn:disabled {
  filter: saturate(0.55) brightness(0.76);
  transform: none;
  box-shadow:
    0 6px 0 #6b4a0b,
    0 10px 18px -12px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 246, 207, 0.5);
  cursor: default;
}

.spin-btn.is-free {
  background: linear-gradient(180deg, #d8c4ff, #8b5cf6 50%, #5b2fc4);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 0 #3a1a80, 0 14px 24px -10px rgba(139, 92, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.buy-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(247, 201, 72, 0.4);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(247, 201, 72, 0.2), rgba(247, 201, 72, 0.06)),
    rgba(255, 255, 255, 0.02);
  color: var(--gold-hi);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 246, 207, 0.12);
}

.buy-bonus b {
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(247, 201, 72, 0.16);
  color: var(--gold);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.buy-bonus:active {
  background: rgba(247, 201, 72, 0.18);
}

.buy-bonus:disabled {
  opacity: 0.4;
  cursor: default;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.ghost {
  padding: 8px 2px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.ghost:active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
}

.ghost.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.ghost:disabled {
  opacity: 0.32;
  cursor: default;
}

@media (max-width: 360px) {
  .ghost {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
}

/* ---------------- Overlays ---------------- */

.fx-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(72% 62% at 50% 44%, rgba(18, 13, 40, 0.94), rgba(3, 3, 9, 0.985));
  backdrop-filter: blur(6px);
  animation: overlay-in 0.25s ease-out;
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.overlay-card {
  width: min(100%, 340px);
  padding: 24px 20px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--accent);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #1c1636, #0b0818);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 40px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.overlay-kicker {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.overlay-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 24px var(--accent-glow);
}

.overlay-card h2.gold {
  background: linear-gradient(180deg, #fff8da, var(--gold) 58%, #d9a11f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.4));
}

.overlay-card p {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.overlay-card .overlay-amount {
  margin: 10px 0 2px;
  font-family: var(--display);
  font-size: clamp(30px, 10vw, 46px);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(247, 201, 72, 0.6);
}

.overlay-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #d9a11f);
  color: #241600;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 5px 0 #8a5f0d, inset 0 1px 0 #fff6cf;
}

.overlay-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #8a5f0d, inset 0 1px 0 #fff6cf;
}

.overlay-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.overlay-sub b {
  color: var(--accent);
}

.overlay-note {
  margin: 9px 0 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.04em;
  color: var(--muted-2) !important;
}

/* big win, non-blocking */
.bigwin {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(247, 201, 72, 0.16), transparent 70%);
  animation: bigwin-fade 2.4s ease-out forwards;
}

.bigwin-card {
  text-align: center;
  animation: bigwin-pop 2.4s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
}

.bigwin-kicker {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.34em;
  color: var(--gold-hi);
  text-shadow: 0 0 18px rgba(247, 201, 72, 0.9);
}

.bigwin-amount {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: clamp(42px, 14vw, 68px);
  font-weight: 900;
  line-height: 1;
  color: #fff6cf;
  text-shadow:
    0 0 30px rgba(247, 201, 72, 0.95),
    0 5px 0 rgba(120, 70, 0, 0.45);
}

@keyframes bigwin-pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  14% {
    opacity: 1;
    transform: scale(1.08);
  }
  26% {
    transform: scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes bigwin-fade {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ---------------- Paytable ---------------- */

.pays-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.035);
}

.pay-row.scatter-row {
  border-color: rgba(247, 201, 72, 0.35);
  background: rgba(247, 201, 72, 0.07);
}

.pay-symbols {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 34px;
  font-family: var(--emoji);
  font-size: 24px;
  line-height: 1;
}

.pay-symbols .seven {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 900;
  color: #d21f34;
  -webkit-text-stroke: 1px #7d0d1c;
}

.pay-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pay-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--cream);
}

.pay-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tier {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.tier b {
  margin-right: 3px;
  color: var(--accent);
}

.pays-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pays-notes li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.pays-notes li b {
  color: var(--accent);
}

.pay-combo {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 90px;
  font-family: var(--emoji);
  font-size: 21px;
}

.pay-mult {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------------- Classic 3-reel ---------------- */

.classic-shell {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 0;
}

.cabinet {
  position: relative;
  flex: 0 1 auto;
  padding: 13px 13px 9px;
  border-radius: 25px;
  border: 1px solid rgba(247, 201, 72, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 24%),
    linear-gradient(180deg, #1d2637, #121824 58%, #0c1119);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 22px 46px -16px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.marquee {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 10px;
}

.marquee i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
  box-shadow: 0 0 9px rgba(247, 201, 72, 0.9);
  animation: bulb 2.2s ease-in-out infinite;
}

.marquee i:nth-child(even) {
  animation-delay: 1.1s;
}

@keyframes bulb {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.95;
  }
}

.cabinet .readout {
  margin-top: 9px;
}

.cabinet .status {
  margin-top: 8px;
}

.reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: clamp(168px, 29vh, 224px);
  height: clamp(168px, 29dvh, 224px);
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #05070b, #0b1018);
  box-shadow:
    inset 0 6px 18px rgba(0, 0, 0, 0.95),
    inset 0 -4px 12px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.reel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbf7ec, #efe7d4 55%, #e7dcc4);
  box-shadow:
    inset 0 12px 14px -10px rgba(0, 0, 0, 0.6),
    inset 0 -12px 14px -10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.45);
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(20, 12, 0, 0.22),
    transparent 24%,
    transparent 76%,
    rgba(20, 12, 0, 0.22)
  );
}

.reel-strip {
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform;
}

.reel.spinning .reel-strip {
  height: 400%;
  animation: reel-scroll 0.45s linear infinite;
}

.reel.spinning .sym {
  filter: blur(1.4px);
  opacity: 0.92;
}

@keyframes reel-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.reel.landed .reel-strip {
  animation: reel-land 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.35);
}

@keyframes reel-land {
  0% {
    transform: translateY(-22px);
  }
  55% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

.sym {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  place-items: center;
  font-family: var(--emoji);
  font-size: clamp(30px, 10vw, 46px);
  line-height: 1;
  border-radius: 10px;
  transition: filter 0.12s ease;
}

.sym-seven .seven {
  font-family: var(--display);
  font-size: 1.16em;
  font-weight: 900;
  color: #d21f34;
  -webkit-text-stroke: 1.5px #7d0d1c;
  text-shadow: 0 2px 0 #7d0d1c, 0 0 14px rgba(226, 60, 80, 0.35);
}

.sym.win {
  background: radial-gradient(circle at 50% 50%, rgba(247, 201, 72, 0.42), transparent 68%);
  animation: sym-win 0.6s ease;
}

@keyframes sym-win {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.16);
    filter: drop-shadow(0 0 14px rgba(247, 201, 72, 0.95));
  }
  100% {
    transform: scale(1);
  }
}

.payline {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  transform: translateY(-1px);
  opacity: 0.4;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 77, 94, 0.8) 12%,
    rgba(255, 160, 170, 0.95) 50%,
    rgba(255, 77, 94, 0.8) 88%,
    transparent
  );
  box-shadow: 0 0 12px rgba(255, 77, 94, 0.55);
  transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
}

.payline::before,
.payline::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  transform: translateY(-50%);
}

.payline::before {
  left: -11px;
  border-right-color: var(--red);
}

.payline::after {
  right: -11px;
  border-left-color: var(--red);
}

.reels.win .payline {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-hi) 12%,
    #fff6cf 50%,
    var(--gold-hi) 88%,
    transparent
  );
  box-shadow: 0 0 20px rgba(247, 201, 72, 0.9);
}

.reels.win .payline::before {
  border-right-color: var(--gold);
}

.reels.win .payline::after {
  border-left-color: var(--gold);
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
}

.flash.show {
  animation: flash-pop 1.35s ease-out forwards;
}

.flash-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--gold-hi);
  text-shadow: 0 0 14px rgba(247, 201, 72, 0.9);
}

.flash-amount {
  font-family: var(--display);
  font-size: clamp(34px, 11vw, 52px);
  font-weight: 900;
  color: #fff6cf;
  text-shadow: 0 0 22px rgba(247, 201, 72, 0.95), 0 4px 0 rgba(120, 70, 0, 0.5);
}

@keyframes flash-pop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  14% {
    opacity: 1;
    transform: scale(1.08);
  }
  30% {
    transform: scale(1);
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

/* ---------------- Short screens ---------------- */

@media (max-height: 700px) {
  .game-shell,
  .classic-shell {
    gap: 6px;
  }

  .board-frame {
    width: min(100%, 55dvh);
  }

  .reels {
    height: clamp(150px, 26dvh, 196px);
    height: clamp(150px, 26dvh, 196px);
  }

  .controls-wrap {
    gap: 4px;
  }

  .spin-btn {
    min-height: 54px;
  }

  .step {
    min-height: 46px;
  }

  .readout {
    margin-top: 0;
  }
}

@media (max-height: 620px) {
  .board-frame {
    width: min(100%, 52dvh);
  }

  .ghost {
    padding: 6px 2px;
  }

  .status {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .game-shell,
  .classic-shell {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .board-area {
    flex: 1;
  }

  .board-frame {
    width: min(100%, 74dvh);
  }

  .classic-shell .cabinet {
    flex: 1;
  }

  .classic-shell .reels {
    height: 70dvh;
  }

  .game-shell .readout,
  .game-shell .status,
  .game-shell .controls-wrap,
  .classic-shell .readout,
  .classic-shell .status,
  .classic-shell .controls-wrap {
    width: min(46vw, 260px);
  }

  .game-shell {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .col.spinning .col-strip {
    animation: none;
  }

  .cell.win .glyph,
  .orb,
  .win-pop,
  .bigwin-card,
  .bigwin {
    animation: none;
  }

  .fs-banner,
  .marquee i {
    animation: none;
  }
}

/* ---------------- Mines ---------------- */

.game-view.theme-mines {
  --accent: #34d399;
  --accent-2: #f7c948;
  --accent-glow: rgba(52, 211, 153, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(10, 60, 48, 0.72), rgba(6, 20, 18, 0.92));
  --cell-border: rgba(52, 211, 153, 0.18);
  --board-bg: rgba(4, 14, 12, 0.8);
}

.game-view.theme-mines .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(52, 211, 153, 0.2), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(247, 201, 72, 0.14), transparent 70%),
    linear-gradient(180deg, #06231d, #06120f 62%, #030807);
}

.instant-shell {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 0;
}

.mines-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(52, 211, 153, 0.1), transparent 60%),
    linear-gradient(180deg, #0b1f1a, #071310 58%, #040b09);
  box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mines-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mines-stepper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mines-stepper > span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--muted);
}

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

.ms-controls b {
  min-width: 24px;
  text-align: center;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ms-controls .step {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-size: 16px;
  font-weight: 900;
}

.ms-controls .step:disabled {
  opacity: 0.35;
}

.mines-meters {
  display: flex;
  gap: 8px;
}

.mm {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 74px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.mm span {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.mm b {
  font-size: 13px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.mm:first-child b {
  color: var(--accent);
}

.mines-presets {
  display: flex;
  gap: 5px;
}

.mines-presets button {
  flex: 1;
  padding: 5px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.mines-presets button.active {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.14);
  color: var(--accent);
}

.mines-presets button:disabled {
  opacity: 0.4;
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.34);
}

.mine-tile {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(80% 70% at 50% 18%, rgba(52, 211, 153, 0.18), transparent 62%),
    linear-gradient(180deg, #123a30, #0a211b 62%, #061410);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: rgba(247, 233, 199, 0.5);
  font-size: clamp(16px, 5.4vw, 24px);
  font-weight: 900;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}

.mine-tile:not(:disabled):active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.mine-tile:disabled {
  cursor: default;
}

.mine-tile.safe {
  border-color: rgba(52, 211, 153, 0.6);
  background:
    radial-gradient(80% 70% at 50% 20%, rgba(52, 211, 153, 0.4), transparent 65%),
    linear-gradient(180deg, #155c47, #0c2f25);
  color: #b8ffe1;
  animation: mine-pop 0.25s ease-out;
}

.mine-tile.mine {
  border-color: rgba(255, 96, 96, 0.65);
  background:
    radial-gradient(80% 70% at 50% 20%, rgba(255, 96, 96, 0.4), transparent 65%),
    linear-gradient(180deg, #5c1717, #2b0b0b);
  color: #ffd0d0;
  animation: mine-pop 0.25s ease-out;
}

@keyframes mine-pop {
  from { transform: scale(0.86); }
  to { transform: scale(1); }
}

.mines-status {
  margin: 0;
  min-height: 14px;
}

.mines-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.mr span {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.mr b {
  font-size: 12px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.mr.cash b {
  color: var(--accent);
}

.spin-btn.cashout {
  background: linear-gradient(180deg, #7cf0c2, #34d399 45%, #128a63);
  color: #04231a;
  box-shadow:
    0 6px 0 #0b5c42,
    0 14px 24px -10px rgba(52, 211, 153, 0.6),
    inset 0 1px 0 #d8fff0;
}

.spin-btn.cashout:active {
  box-shadow:
    0 1px 0 #0b5c42,
    0 6px 14px -8px rgba(52, 211, 153, 0.55),
    inset 0 1px 0 #d8fff0;
}

.mines-panel .footer-row {
  grid-template-columns: repeat(4, 1fr);
}

.mines-panel .footer-row .ghost.active {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent);
}

@media (max-width: 360px) {
  .mines-panel { padding: 10px; gap: 6px; }
  .mines-grid { gap: 5px; padding: 6px; }
  .mine-tile { border-radius: 10px; }
  .mm { min-width: 64px; }
}

/* ---------------- Plinko ---------------- */

.game-view.theme-plinko {
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --accent-glow: rgba(56, 189, 248, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(12, 74, 110, 0.7), rgba(3, 20, 38, 0.92));
  --cell-border: rgba(56, 189, 248, 0.18);
  --board-bg: rgba(2, 10, 24, 0.82);
}

.game-view.theme-plinko .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(56, 189, 248, 0.22), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(167, 139, 250, 0.18), transparent 70%),
    linear-gradient(180deg, #061a30, #050d1c 62%, #03060e);
}

.instant-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
    linear-gradient(180deg, #0a1c30, #071322 58%, #040a12);
  box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.plinko-toolbar {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 8px;
}

.seg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.seg-label {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.seg-btns {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}

.seg-btns button {
  flex: 1;
  min-width: 0;
  padding: 6px 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
}

.seg-btns button.active {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 36%, transparent),
    color-mix(in srgb, var(--accent) 15%, transparent)
  );
  color: #f4f0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.seg-btns button:disabled {
  opacity: 0.45;
}

.plinko-board {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(56, 189, 248, 0.16), transparent 62%),
    linear-gradient(180deg, #04101f, #030812);
  overflow: hidden;
}

.plinko-canvas {
  display: block;
  width: 100%;
}

.plinko-win {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(3, 18, 32, 0.86);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.9);
  animation: plinko-win-in 0.24s ease-out;
}

.plinko-win.big {
  border-color: rgba(247, 201, 72, 0.7);
  color: #ffe9a8;
  box-shadow: 0 0 22px rgba(247, 201, 72, 0.4);
}

.plinko-win.zero {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--muted);
}

@keyframes plinko-win-in {
  from { opacity: 0; transform: translate(-50%, -6px) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.instant-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ir {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.ir span {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ir b {
  font-size: 12px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.ir.hot b {
  color: var(--accent);
}

.plinko-drop {
  background: linear-gradient(180deg, #8fe0ff, #38bdf8 45%, #0b7fb8);
  color: #032030;
  box-shadow:
    0 6px 0 #075a83,
    0 14px 24px -10px rgba(56, 189, 248, 0.6),
    inset 0 1px 0 #dff6ff;
}

.plinko-drop:active {
  box-shadow:
    0 1px 0 #075a83,
    0 6px 14px -8px rgba(56, 189, 248, 0.55),
    inset 0 1px 0 #dff6ff;
}

.plinko-drop.busy {
  filter: saturate(0.6) brightness(0.85);
}

.footer-row.five {
  grid-template-columns: repeat(5, 1fr);
}

.footer-row.four {
  grid-template-columns: repeat(4, 1fr);
}

.footer-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.footer-row .ghost.active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}

.plinko-panel .footer-row .ghost {
  font-size: 7.5px;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .instant-panel { padding: 10px; gap: 6px; }
  .seg-btns button { font-size: 7.5px; padding: 5px 1px; }
  .plinko-panel .footer-row .ghost { font-size: 6.8px; }
  .ir { padding: 6px 7px; }
}

/* ---------------- Dice ---------------- */

.game-view.theme-dice {
  --accent: #a78bfa;
  --accent-2: #22d3ee;
  --accent-glow: rgba(167, 139, 250, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(60, 40, 110, 0.72), rgba(14, 8, 32, 0.92));
  --cell-border: rgba(167, 139, 250, 0.18);
  --board-bg: rgba(8, 4, 22, 0.82);
}

.game-view.theme-dice .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(167, 139, 250, 0.24), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(34, 211, 238, 0.14), transparent 70%),
    linear-gradient(180deg, #150b2e, #0a0716 62%, #05040c);
}

.dice-panel {
  border-color: rgba(167, 139, 250, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(167, 139, 250, 0.1), transparent 60%),
    linear-gradient(180deg, #171029, #0d0918 58%, #06040d);
}

.dice-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.dice-mode {
  flex: 1;
}

.dice-pays {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.08);
}

.dice-pays span {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.dice-pays b {
  font-size: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.dice-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(167, 139, 250, 0.16), transparent 70%),
    rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.dice-display.win {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.25);
}

.dice-display.lose {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.16);
}

.dice-kicker {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.dice-value {
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}

.dice-display.win .dice-value {
  color: #9dffd8;
}

.dice-display.lose .dice-value {
  color: #ffb4b4;
}

.dice-chance {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.dice-bar {
  position: relative;
  height: 16px;
  margin: 2px 2px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.32), rgba(248, 113, 113, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.dice-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.55), rgba(52, 211, 153, 0.3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: left 0.16s, width 0.16s;
}

.dice-target {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: left 0.16s;
}

.dice-marker {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #f87171;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.8);
  transition: left 0.12s linear;
}

.dice-marker.win {
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.85);
}

.dice-scale {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.dice-scale i {
  font-style: normal;
  font-size: 6.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.dice-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  margin: -8px 0 0;
}

.dice-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dice-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 12px rgba(167, 139, 250, 0.5);
}

.dice-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dice-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #8b5cf6;
}

.dice-range:disabled {
  opacity: 0.5;
}

.dice-roll {
  background: linear-gradient(180deg, #d6c8ff, #a78bfa 45%, #6d43d8);
  color: #16082e;
  box-shadow:
    0 6px 0 #4a2a9e,
    0 14px 24px -10px rgba(167, 139, 250, 0.6),
    inset 0 1px 0 #efe8ff;
}

.dice-roll:active {
  box-shadow:
    0 1px 0 #4a2a9e,
    0 6px 14px -8px rgba(167, 139, 250, 0.55),
    inset 0 1px 0 #efe8ff;
}

.dice-roll.busy {
  filter: saturate(0.6) brightness(0.85);
}

.dice-panel .footer-row .ghost {
  font-size: 7.5px;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .dice-value { font-size: 34px; }
  .dice-panel .footer-row .ghost { font-size: 6.8px; }
}

/* ---------------- Crash ---------------- */

.game-view.theme-crash {
  --accent: #fb923c;
  --accent-2: #f43f5e;
  --accent-glow: rgba(251, 146, 60, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(80, 38, 12, 0.72), rgba(26, 10, 4, 0.92));
  --cell-border: rgba(251, 146, 60, 0.18);
  --board-bg: rgba(22, 8, 3, 0.84);
}

.game-view.theme-crash .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(251, 146, 60, 0.24), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(244, 63, 94, 0.14), transparent 70%),
    linear-gradient(180deg, #2a1004, #140703 62%, #070301);
}

.crash-panel {
  border-color: rgba(251, 146, 60, 0.28);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(251, 146, 60, 0.11), transparent 60%),
    linear-gradient(180deg, #25130a, #140a05 58%, #080402);
}

.crash-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.crash-history::-webkit-scrollbar {
  display: none;
}

.crash-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.crash-chip.low {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
}

.crash-chip.mid {
  color: #ffd9a8;
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.12);
}

.crash-chip.high {
  color: #9dffd8;
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(52, 211, 153, 0.12);
}

.crash-board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(90% 100% at 50% 0%, rgba(251, 146, 60, 0.14), transparent 70%),
    rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.crash-canvas {
  display: block;
  width: 100%;
}

.crash-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  pointer-events: none;
}

.crash-state {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.crash-mult {
  font-size: clamp(30px, 11vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  text-shadow: 0 0 26px rgba(251, 146, 60, 0.4), 0 2px 6px rgba(0, 0, 0, 0.7);
}

.crash-overlay.live .crash-mult {
  color: #ffd9a8;
}

.crash-overlay.cashed .crash-mult {
  color: #9dffd8;
  text-shadow: 0 0 28px rgba(52, 211, 153, 0.55), 0 2px 6px rgba(0, 0, 0, 0.7);
}

.crash-overlay.crashed .crash-mult {
  color: #ffb4b4;
  text-shadow: 0 0 28px rgba(248, 113, 113, 0.5), 0 2px 6px rgba(0, 0, 0, 0.7);
}

.crash-sub {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8);
}

.crash-action {
  background: linear-gradient(180deg, #ffd9a8, #fb923c 45%, #c2410c);
  color: #2a1103;
  box-shadow:
    0 6px 0 #8a2c06,
    0 14px 24px -10px rgba(251, 146, 60, 0.6),
    inset 0 1px 0 #fff0dc;
}

.crash-action:active {
  box-shadow:
    0 1px 0 #8a2c06,
    0 6px 14px -8px rgba(251, 146, 60, 0.55),
    inset 0 1px 0 #fff0dc;
}

.crash-action.cashout {
  background: linear-gradient(180deg, #a7f3d0, #34d399 45%, #047857);
  color: #03261b;
  box-shadow:
    0 6px 0 #04543d,
    0 14px 24px -10px rgba(52, 211, 153, 0.6),
    inset 0 1px 0 #e6fff6;
}

.crash-action.cashout:active {
  box-shadow:
    0 1px 0 #04543d,
    0 6px 14px -8px rgba(52, 211, 153, 0.55),
    inset 0 1px 0 #e6fff6;
}

.crash-action.busy {
  filter: saturate(0.6) brightness(0.85);
}

.crash-panel .footer-row .ghost {
  font-size: 7.5px;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .crash-mult { font-size: 30px; }
  .crash-panel .footer-row .ghost { font-size: 6.8px; }
}

/* ---------------- Keno ---------------- */

.game-view.theme-keno {
  --accent: #2dd4bf;
  --accent-2: #60a5fa;
  --accent-glow: rgba(45, 212, 191, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(16, 64, 60, 0.7), rgba(4, 20, 22, 0.92));
  --cell-border: rgba(45, 212, 191, 0.18);
  --board-bg: rgba(3, 18, 20, 0.82);
}

.game-view.theme-keno .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(45, 212, 191, 0.22), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(96, 165, 250, 0.14), transparent 70%),
    linear-gradient(180deg, #062a2c, #04161c 62%, #010a0c);
}

.keno-panel {
  border-color: rgba(45, 212, 191, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(45, 212, 191, 0.1), transparent 60%),
    linear-gradient(180deg, #0a2426, #051418 58%, #02090b);
}

.keno-head {
  display: flex;
  align-items: center;
  gap: 5px;
}

.keno-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.keno-meta.right {
  margin-left: auto;
  text-align: right;
}

.keno-meta span {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.keno-meta b {
  font-size: 12.5px;
  line-height: 1.15;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.keno-clear {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.keno-clear:disabled {
  opacity: 0.35;
}

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

.keno-cell {
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 62, 88, 0.5), rgba(6, 18, 30, 0.92));
  color: #d8ecff;
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s,
    box-shadow 0.15s;
}

.keno-cell:active {
  transform: scale(0.93);
}

.keno-cell.picked {
  background: linear-gradient(180deg, #5eead4, #2dd4bf 55%, #0f766e);
  border-color: rgba(45, 212, 191, 0.8);
  color: #04211d;
  box-shadow:
    0 2px 10px -2px rgba(45, 212, 191, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.keno-cell.drawn:not(.picked) {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.32), rgba(30, 64, 120, 0.5));
  border-color: rgba(96, 165, 250, 0.72);
  color: #e6f2ff;
}

.keno-cell.hit {
  background: linear-gradient(180deg, #fde68a, #fbbf24 55%, #b45309);
  border-color: #fcd34d;
  color: #2a1703;
  box-shadow:
    0 0 12px rgba(251, 191, 36, 0.6),
    inset 0 1px 0 #fff5d6;
  animation: kenoPop 0.28s ease-out;
}

@keyframes kenoPop {
  0% {
    transform: scale(0.72);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.keno-play {
  background: linear-gradient(180deg, #a7f3d0, #2dd4bf 45%, #0f766e);
  color: #032420;
  box-shadow:
    0 6px 0 #0b5b55,
    0 14px 24px -10px rgba(45, 212, 191, 0.6),
    inset 0 1px 0 #e6fff8;
}

.keno-play:active {
  box-shadow:
    0 1px 0 #0b5b55,
    0 6px 14px -8px rgba(45, 212, 191, 0.55),
    inset 0 1px 0 #e6fff8;
}

.keno-play.busy {
  filter: saturate(0.6) brightness(0.85);
}

.keno-panel .footer-row .ghost {
  font-size: 7px;
  letter-spacing: 0.02em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .keno-cell { font-size: 9px; border-radius: 6px; }
  .keno-panel .footer-row .ghost { font-size: 6.2px; }
  .keno-clear { padding: 7px 8px; font-size: 6.8px; }
}

/* ---------------- Limbo ---------------- */

.game-view.theme-limbo {
  --accent: #a3e635;
  --accent-2: #facc15;
  --accent-glow: rgba(163, 230, 53, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(46, 74, 12, 0.72), rgba(12, 22, 4, 0.92));
  --cell-border: rgba(163, 230, 53, 0.18);
  --board-bg: rgba(12, 22, 4, 0.84);
}

.game-view.theme-limbo .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(163, 230, 53, 0.22), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(250, 204, 21, 0.14), transparent 70%),
    linear-gradient(180deg, #1a2a08, #0d1704 62%, #050801);
}

.limbo-panel {
  border-color: rgba(163, 230, 53, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(163, 230, 53, 0.1), transparent 60%),
    linear-gradient(180deg, #17230a, #0d1505 58%, #050802);
}

.limbo-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.limbo-history::-webkit-scrollbar {
  display: none;
}

.limbo-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.limbo-chip.win {
  color: #d9ff9a;
  border-color: rgba(163, 230, 53, 0.42);
  background: rgba(163, 230, 53, 0.12);
}

.limbo-chip.lose {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
}

.limbo-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(163, 230, 53, 0.16), transparent 70%),
    rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.limbo-display.win {
  border-color: rgba(163, 230, 53, 0.6);
  box-shadow: 0 0 26px rgba(163, 230, 53, 0.25);
}

.limbo-display.lose {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.16);
}

.limbo-kicker {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.limbo-value {
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(163, 230, 53, 0.35);
}

.limbo-display.win .limbo-value {
  color: #d9ff9a;
}

.limbo-display.lose .limbo-value {
  color: #ffb4b4;
}

.limbo-chance {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.limbo-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  margin: -4px 0 0;
}

.limbo-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(163, 230, 53, 0.5), rgba(250, 204, 21, 0.28));
}

.limbo-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #e9ffb0, #a3e635);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 12px rgba(163, 230, 53, 0.5);
}

.limbo-range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(163, 230, 53, 0.5), rgba(250, 204, 21, 0.28));
}

.limbo-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #a3e635;
}

.limbo-range:disabled {
  opacity: 0.5;
}

.limbo-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.limbo-quick button {
  padding: 7px 0;
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 9px;
  background: rgba(163, 230, 53, 0.06);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.limbo-quick button.active {
  border-color: rgba(163, 230, 53, 0.6);
  background: rgba(163, 230, 53, 0.18);
  color: #e9ffb0;
}

.limbo-quick button:disabled {
  opacity: 0.45;
}

.limbo-roll {
  background: linear-gradient(180deg, #e9ffb0, #a3e635 45%, #4d7c0f);
  color: #16220a;
  box-shadow:
    0 6px 0 #3f6212,
    0 14px 24px -10px rgba(163, 230, 53, 0.6),
    inset 0 1px 0 #f6ffe0;
}

.limbo-roll:active {
  box-shadow:
    0 1px 0 #3f6212,
    0 6px 14px -8px rgba(163, 230, 53, 0.55),
    inset 0 1px 0 #f6ffe0;
}

.limbo-roll.busy {
  filter: saturate(0.6) brightness(0.85);
}

.limbo-panel .footer-row .ghost {
  font-size: 7.5px;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .limbo-value { font-size: 34px; }
  .limbo-panel .footer-row .ghost { font-size: 6.8px; }
}

/* ---------------- Wheel of Luck ---------------- */

.game-view.theme-wheel {
  --accent: #fb7185;
  --accent-2: #fbbf24;
  --accent-glow: rgba(251, 113, 133, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(92, 20, 40, 0.72), rgba(24, 6, 14, 0.92));
  --cell-border: rgba(251, 113, 133, 0.18);
  --board-bg: rgba(26, 6, 14, 0.84);
}

.game-view.theme-wheel .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(251, 113, 133, 0.2), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(251, 191, 36, 0.14), transparent 70%),
    linear-gradient(180deg, #2a0a17, #16050d 62%, #080204);
}

.wheel-panel {
  border-color: rgba(251, 113, 133, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(251, 113, 133, 0.1), transparent 60%),
    linear-gradient(180deg, #240d18, #14060f 58%, #070205);
}

.wheel-board {
  display: flex;
  justify-content: center;
  padding: 2px 0 0;
}

.wheel-canvas {
  display: block;
  width: 100%;
  max-width: 330px;
}

.wheel-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.wheel-history::-webkit-scrollbar {
  display: none;
}

.wheel-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wheel-chip.zero {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.14);
}

.wheel-chip.low {
  color: #ffd9a8;
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.12);
}

.wheel-chip.mid {
  color: #c9f7d8;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
}

.wheel-chip.high {
  color: #ffe9a8;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.14);
}

.wheel-spin {
  background: linear-gradient(180deg, #ffd0d8, #fb7185 45%, #be123c);
  color: #33060f;
  box-shadow:
    0 6px 0 #7f1029,
    0 14px 24px -10px rgba(251, 113, 133, 0.6),
    inset 0 1px 0 #fff0f3;
}

.wheel-spin:active {
  box-shadow:
    0 1px 0 #7f1029,
    0 6px 14px -8px rgba(251, 113, 133, 0.55),
    inset 0 1px 0 #fff0f3;
}

.wheel-spin.busy {
  filter: saturate(0.6) brightness(0.85);
}

.wheel-panel .footer-row .ghost {
  font-size: 7.5px;
  letter-spacing: 0.03em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .wheel-panel .footer-row .ghost { font-size: 6.6px; }
}

/* ---------------- Hi-Lo ---------------- */

.game-view.theme-hilo {
  --accent: #4ade80;
  --accent-2: #facc15;
  --accent-glow: rgba(74, 222, 128, 0.4);
  --cell-bg: linear-gradient(180deg, rgba(16, 68, 46, 0.72), rgba(6, 24, 16, 0.92));
  --cell-border: rgba(74, 222, 128, 0.18);
  --board-bg: rgba(6, 24, 16, 0.84);
}

.game-view.theme-hilo .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(74, 222, 128, 0.2), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(250, 204, 21, 0.12), transparent 70%),
    linear-gradient(180deg, #0a2a1c, #06180f 62%, #020805);
}

.hilo-panel {
  border-color: rgba(74, 222, 128, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(74, 222, 128, 0.1), transparent 60%),
    linear-gradient(180deg, #0c2c1e, #071a11 58%, #030a06);
}

.hilo-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.hilo-history::-webkit-scrollbar {
  display: none;
}

.hilo-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hilo-chip.win {
  color: #d9ffe7;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.14);
}

.hilo-chip.bust {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
}

.hilo-board {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.hilo-card {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: linear-gradient(160deg, #fffdf6, #f2e9d6 60%, #e3d6bd);
  color: #1a2230;
  box-shadow:
    0 12px 26px -14px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 #fff;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hilo-card.red {
  color: #c62828;
}

.hilo-card.black {
  color: #1a2230;
}

.hilo-card.back {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(250, 204, 21, 0.45);
  background:
    repeating-linear-gradient(45deg, rgba(250, 204, 21, 0.09) 0 7px, transparent 7px 14px),
    radial-gradient(90% 80% at 50% 20%, #14503a, #08281c 65%, #041209);
}

.hilo-card .hilo-rank {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hilo-card .hilo-suit {
  font-size: 34px;
  line-height: 1;
  margin-top: 2px;
}

.hilo-card.back .hilo-rank {
  font-size: 50px;
  color: rgba(250, 204, 21, 0.6);
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.35);
}

.hilo-card.back .hilo-suit {
  opacity: 0.35;
}

.hilo-card .hilo-corner {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.85;
}

.hilo-card .hilo-corner.tl {
  top: 9px;
  left: 10px;
}

.hilo-card .hilo-corner.br {
  bottom: 9px;
  right: 10px;
  transform: rotate(180deg);
}

.hilo-card.win {
  border-color: rgba(74, 222, 128, 0.85);
  box-shadow:
    0 0 0 2px rgba(74, 222, 128, 0.35),
    0 0 26px rgba(74, 222, 128, 0.4),
    0 12px 26px -14px rgba(0, 0, 0, 0.85);
}

.hilo-card.bust {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow:
    0 0 0 2px rgba(248, 113, 113, 0.3),
    0 0 26px rgba(248, 113, 113, 0.35),
    0 12px 26px -14px rgba(0, 0, 0, 0.85);
}

.hilo-card.deal {
  animation: hiloDeal 0.28s ease-out;
}

@keyframes hiloDeal {
  0% {
    transform: translateY(-8px) rotate(-4deg) scale(0.94);
    opacity: 0.25;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

.hilo-side {
  flex: 0 0 74px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hilo-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 4px;
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.hilo-stat b {
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.hilo-stat span {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}

.hilo-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.hilo-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.hilo-choice span {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hilo-choice b {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.hilo-choice.ready {
  color: var(--cream);
}

.hilo-choice.high.ready {
  border-color: rgba(74, 222, 128, 0.55);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.22), rgba(74, 222, 128, 0.07));
  box-shadow: 0 8px 18px -12px rgba(74, 222, 128, 0.7);
}

.hilo-choice.low.ready {
  border-color: rgba(251, 113, 133, 0.55);
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.22), rgba(251, 113, 133, 0.07));
  box-shadow: 0 8px 18px -12px rgba(251, 113, 133, 0.7);
}

.hilo-choice.high.ready b {
  color: #b9ffd1;
}

.hilo-choice.low.ready b {
  color: #ffc9d2;
}

.hilo-choice:active:not(:disabled) {
  transform: scale(0.97);
}

.hilo-choice:disabled {
  opacity: 0.5;
}

.hilo-deal {
  background: linear-gradient(180deg, #c6ffd9, #4ade80 45%, #15803d);
  color: #05230f;
  box-shadow:
    0 6px 0 #14532d,
    0 14px 24px -10px rgba(74, 222, 128, 0.6),
    inset 0 1px 0 #ecfff3;
}

.hilo-deal.cashout {
  background: linear-gradient(180deg, #ffe9a8, #facc15 48%, #b8890a);
  color: #2a1c00;
  box-shadow:
    0 6px 0 #8a6508,
    0 14px 24px -10px rgba(250, 204, 21, 0.65),
    inset 0 1px 0 #fff6d6;
}

.hilo-deal.cashout:active {
  box-shadow:
    0 1px 0 #8a6508,
    0 6px 14px -8px rgba(250, 204, 21, 0.6),
    inset 0 1px 0 #fff6d6;
}

.hilo-deal:disabled {
  opacity: 0.5;
  filter: saturate(0.45);
  box-shadow: none;
}

.hilo-deal:active {
  box-shadow:
    0 1px 0 #14532d,
    0 6px 14px -8px rgba(74, 222, 128, 0.55),
    inset 0 1px 0 #ecfff3;
}

.hilo-deal.busy {
  filter: saturate(0.6) brightness(0.85);
}

.hilo-panel .footer-row .ghost {
  font-size: 7.5px;
  letter-spacing: 0.05em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .hilo-card { min-height: 132px; }
  .hilo-card .hilo-rank { font-size: 48px; }
  .hilo-card .hilo-suit { font-size: 28px; }
  .hilo-side { flex-basis: 66px; }
  .hilo-stat b { font-size: 17px; }
  .hilo-choice b { font-size: 14px; }
  .hilo-panel .footer-row .ghost { font-size: 6.4px; }
}

/* ---------------- Dragon Tower ---------------- */

.game-view.theme-tower {
  --accent: #f59e0b;
  --accent-2: #ef4444;
  --accent-glow: rgba(245, 158, 11, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(80, 44, 8, 0.72), rgba(24, 12, 3, 0.92));
  --cell-border: rgba(245, 158, 11, 0.18);
  --board-bg: rgba(24, 12, 3, 0.84);
}

.game-view.theme-tower .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(245, 158, 11, 0.2), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(239, 68, 68, 0.14), transparent 70%),
    linear-gradient(180deg, #2b1704, #180c02 62%, #070301);
}

.tower-panel {
  border-color: rgba(245, 158, 11, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(245, 158, 11, 0.1), transparent 60%),
    linear-gradient(180deg, #26150a, #150a04 58%, #060301);
}

.tower-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.tower-history::-webkit-scrollbar {
  display: none;
}

.tower-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tower-chip.win {
  color: #ffe9b8;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.14);
}

.tower-chip.bust {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
}

.tower-diff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.tower-diff button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 2px 5px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tower-diff button span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tower-diff button b {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.tower-diff button.active {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.06));
  color: #ffe9b8;
}

.tower-diff button:disabled {
  opacity: 0.5;
}

.tower {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tower-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.tower-mult {
  flex: 0 0 44px;
  text-align: right;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.tower-tiles {
  flex: 1;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.tower-tile {
  flex: 1;
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.32));
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.tower-row.locked {
  opacity: 0.4;
}

.tower-row.locked .tower-mult {
  opacity: 0.75;
}

.tower-row.next-up {
  opacity: 0.72;
}

.tower-row.active {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 18px -10px rgba(245, 158, 11, 0.8);
}

.tower-row.active .tower-mult {
  color: #ffd166;
}

.tower-row.active .tower-tile {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.24), rgba(120, 53, 15, 0.34));
  color: #ffe9b8;
  box-shadow: 0 4px 12px -8px rgba(245, 158, 11, 0.9);
}

.tower-row.active .tower-tile:active {
  transform: scale(0.94);
}

.tower-row.cleared .tower-tile.safe {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.13);
}

.tower-row.cleared .tower-mult {
  color: #b9ffd1;
}

.tower-row.lost {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
}

.tower-row.lost .tower-tile.dragon {
  border-color: rgba(248, 113, 113, 0.7);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.28), rgba(90, 12, 12, 0.4));
  animation: towerBust 0.35s ease-out;
}

.tower-row.top .tower-mult {
  color: #ffd166;
}

.tower-row.cleared .tower-tile.dim,
.tower-row.lost .tower-tile.dim {
  opacity: 0.35;
}

.tower.busted {
  animation: towerShake 0.3s ease-in-out;
}

@keyframes towerBust {
  0% {
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes towerShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.tower-action {
  background: linear-gradient(180deg, #ffe0a3, #f59e0b 45%, #b45309);
  color: #2b1602;
  box-shadow:
    0 6px 0 #7c3d05,
    0 14px 24px -10px rgba(245, 158, 11, 0.6),
    inset 0 1px 0 #fff3d6;
}

.tower-action:active {
  box-shadow:
    0 1px 0 #7c3d05,
    0 6px 14px -8px rgba(245, 158, 11, 0.55),
    inset 0 1px 0 #fff3d6;
}

.tower-action.cashout {
  background: linear-gradient(180deg, #c6ffd9, #4ade80 45%, #15803d);
  color: #05230f;
  box-shadow:
    0 6px 0 #14532d,
    0 14px 24px -10px rgba(74, 222, 128, 0.6),
    inset 0 1px 0 #ecfff3;
}

.tower-action.cashout:active {
  box-shadow:
    0 1px 0 #14532d,
    0 6px 14px -8px rgba(74, 222, 128, 0.55),
    inset 0 1px 0 #ecfff3;
}

.tower-action:disabled {
  opacity: 0.5;
  filter: saturate(0.45);
  box-shadow: none;
}

.tower-panel .footer-row .ghost {
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .tower-mult { flex-basis: 38px; font-size: 7.2px; }
  .tower-tile { height: 26px; border-radius: 7px; font-size: 12px; }
  .tower-row { gap: 5px; }
  .tower-diff button b { font-size: 9.5px; }
  .tower-panel .footer-row .ghost { font-size: 7px; }
}

/* ---------------- Blackjack ---------------- */

.game-view.theme-blackjack {
  --accent: #f43f5e;
  --accent-2: #f59e0b;
  --accent-glow: rgba(244, 63, 94, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(76, 12, 22, 0.7), rgba(20, 4, 7, 0.92));
  --cell-border: rgba(244, 63, 94, 0.18);
  --board-bg: rgba(18, 4, 7, 0.86);
}

.game-view.theme-blackjack .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(244, 63, 94, 0.18), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(245, 158, 11, 0.14), transparent 70%),
    linear-gradient(180deg, #2a0a10, #170509 62%, #070102);
}

.bj-panel {
  border-color: rgba(244, 63, 94, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(244, 63, 94, 0.09), transparent 60%),
    linear-gradient(180deg, #241016, #14070b 58%, #060103);
}

.bj-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.bj-history::-webkit-scrollbar {
  display: none;
}

.bj-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bj-chip.win {
  color: #d9ffe5;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.13);
}

.bj-chip.lose {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
}

.bj-chip.push {
  color: #ffe9b8;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.bj-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 9px 8px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(244, 63, 94, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(38, 12, 18, 0.95), rgba(12, 3, 6, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bj-hand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bj-hand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.bj-hand-head span {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.bj-hand-head b {
  min-width: 34px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bj-cards {
  display: flex;
  gap: 5px;
  min-height: 76px;
  align-items: center;
  flex-wrap: wrap;
}

.bj-card {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 9px;
  background: linear-gradient(160deg, #fffdf6, #f2e9d6 60%, #e3d6bd);
  color: #1a2230;
  box-shadow:
    0 8px 16px -10px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 #fff;
  animation: bjDeal 0.28s ease-out;
}

.bj-card.red {
  color: #c62828;
}

.bj-card .bj-rank {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 0.95;
  font-weight: 800;
}

.bj-card .bj-suit {
  font-size: 16px;
  line-height: 1;
  margin-top: 1px;
}

.bj-card .bj-corner {
  position: absolute;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.8;
}

.bj-card .bj-corner.tl {
  top: 4px;
  left: 5px;
}

.bj-card .bj-corner.br {
  bottom: 4px;
  right: 5px;
  transform: rotate(180deg);
}

.bj-card.back {
  border-color: rgba(250, 204, 21, 0.45);
  background:
    repeating-linear-gradient(45deg, rgba(250, 204, 21, 0.09) 0 6px, transparent 6px 12px),
    radial-gradient(90% 80% at 50% 20%, #4c0c16, #26060c 65%, #120306);
  color: rgba(250, 204, 21, 0.6);
  box-shadow:
    0 8px 16px -10px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bj-card .bj-back-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

.bj-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 158, 11, 0.6);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.bj-rule::before,
.bj-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.32), transparent);
}

.bj-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bj-actions[hidden],
.bj-panel .controls[hidden] {
  display: none;
}

.bj-btn {
  padding: 13px 0;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: transform 0.1s, box-shadow 0.12s, opacity 0.15s;
}

.bj-btn:active {
  transform: translateY(1px);
}

.bj-btn:disabled {
  opacity: 0.42;
  filter: saturate(0.4);
}

.bj-btn.hit {
  color: #05230f;
  border-color: #15803d;
  background: linear-gradient(180deg, #c6ffd9, #4ade80 48%, #15803d);
  box-shadow: 0 4px 0 #14532d, inset 0 1px 0 #ecfff3;
}

.bj-btn.double {
  color: #2b1602;
  border-color: #b45309;
  background: linear-gradient(180deg, #ffe0a3, #f59e0b 48%, #b45309);
  box-shadow: 0 4px 0 #7c3d05, inset 0 1px 0 #fff3d6;
}

.bj-btn.stand {
  color: #fff1f2;
  border-color: #9f1239;
  background: linear-gradient(180deg, #fda4af, #f43f5e 48%, #9f1239);
  box-shadow: 0 4px 0 #6b0a22, inset 0 1px 0 #ffe4e8;
}

.bj-deal {
  background: linear-gradient(180deg, #fecdd3, #f43f5e 45%, #9f1239);
  color: #2b0208;
  box-shadow:
    0 6px 0 #6b0a22,
    0 14px 24px -10px rgba(244, 63, 94, 0.6),
    inset 0 1px 0 #ffe4e8;
}

.bj-deal:active {
  box-shadow:
    0 1px 0 #6b0a22,
    0 6px 14px -8px rgba(244, 63, 94, 0.55),
    inset 0 1px 0 #ffe4e8;
}

.bj-panel .footer-row .ghost {
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 8px 0;
}

@keyframes bjDeal {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 360px) {
  .bj-card { width: 46px; height: 66px; border-radius: 8px; }
  .bj-card .bj-rank { font-size: 23px; }
  .bj-card .bj-suit { font-size: 14px; }
  .bj-card .bj-corner { font-size: 7px; }
  .bj-cards { min-height: 68px; gap: 4px; }
  .bj-btn { font-size: 9px; padding: 12px 0; }
  .bj-panel .footer-row .ghost { font-size: 7px; }
}

/* ---------------- Roulette ---------------- */

.game-view.theme-roulette {
  --accent: #34d399;
  --accent-2: #f5c451;
  --accent-glow: rgba(52, 211, 153, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(9, 72, 48, 0.7), rgba(3, 22, 15, 0.92));
  --cell-border: rgba(52, 211, 153, 0.18);
  --board-bg: rgba(3, 20, 13, 0.86);
}

.game-view.theme-roulette .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(52, 211, 153, 0.18), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(245, 196, 81, 0.12), transparent 70%),
    linear-gradient(180deg, #062a1c, #041610 62%, #010805);
}

.roul-panel {
  gap: 7px;
  border-color: rgba(52, 211, 153, 0.24);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(52, 211, 153, 0.09), transparent 60%),
    linear-gradient(180deg, #0a2c20, #051710 58%, #010805);
}

.roul-history {
  display: flex;
  gap: 4px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.roul-history::-webkit-scrollbar {
  display: none;
}

.roul-hist {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.roul-hist.red {
  background: linear-gradient(180deg, #c0262d, #7f1016);
}

.roul-hist.black {
  background: linear-gradient(180deg, #252c39, #0b0f16);
}

.roul-hist.green {
  background: linear-gradient(180deg, #149a50, #075a2c);
}

.roul-wheel-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  flex: 0 0 auto;
}

.roul-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.95),
    0 0 0 4px rgba(245, 196, 81, 0.13),
    inset 0 0 18px rgba(0, 0, 0, 0.6);
}

.roul-ball-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.roul-ball {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e5e7eb 55%, #9ca3af);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.75),
    0 0 6px rgba(255, 255, 255, 0.65);
}

.roul-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(245, 196, 81, 0.55);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(circle at 50% 50%, #0c2b20, #04110b 75%);
  box-shadow:
    0 8px 18px -8px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.roul-hub span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 0 12px rgba(245, 196, 81, 0.35);
}

.roul-hub.landed.red {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 0 20px -6px rgba(248, 113, 113, 0.65);
}

.roul-hub.landed.black {
  border-color: rgba(255, 255, 255, 0.4);
}

.roul-hub.landed.green {
  border-color: rgba(52, 211, 153, 0.85);
  box-shadow: 0 0 20px -6px rgba(52, 211, 153, 0.65);
}

.roul-hub.landed span {
  animation: roulLand 0.34s ease-out;
}

@keyframes roulLand {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.roul-pointer {
  position: absolute;
  left: 50%;
  top: -3px;
  z-index: 3;
  width: 0;
  height: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 9px solid #f5c451;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

.roul-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.roul-meta .ir {
  padding: 5px 9px;
}

.roul-meta .ir b {
  font-size: 13px;
}

.roul-chips {
  display: flex;
  gap: 5px;
}

.roul-chip-btn {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.34));
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.roul-chip-btn i {
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.roul-chip-btn.active {
  border-color: #f5c451;
  background: linear-gradient(180deg, #ffe7a8, #f5c451 55%, #c9962a);
  color: #231400;
  box-shadow:
    0 0 0 2px rgba(245, 196, 81, 0.16),
    0 5px 12px -7px rgba(245, 196, 81, 0.8);
}

.roul-chip-btn:disabled {
  opacity: 0.5;
}

.roul-board {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.roul-zero {
  position: relative;
  height: 24px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #128a46, #075a2c);
  color: #eafff2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.roul-zero .roul-num {
  font-size: 10px;
  font-weight: 900;
}

.roul-numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.roul-num-btn {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #fff;
  transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s;
}

.roul-num-btn.red {
  background: linear-gradient(180deg, #c0262d, #7f1016);
}

.roul-num-btn.black {
  background: linear-gradient(180deg, #252c39, #0b0f16);
}

.roul-num-btn:active,
.roul-zero:active,
.roul-out:active {
  transform: scale(0.95);
}

.roul-num {
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.roul-outside {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
}

.roul-out {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3));
  color: var(--cream);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.roul-out.red {
  border-color: rgba(248, 113, 113, 0.42);
  background: linear-gradient(180deg, #a51e26, #6d0e14);
}

.roul-out.black {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #1f2632, #0a0e15);
}

.roul-stake {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 2;
  min-width: 15px;
  padding: 0 2px;
  border-radius: 999px;
  background: #f5c451;
  color: #231400;
  font-size: 6px;
  font-weight: 900;
  line-height: 11px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  font-variant-numeric: tabular-nums;
}

.roul-num-btn.has-bet,
.roul-zero.has-bet,
.roul-out.has-bet {
  border-color: #f5c451;
  box-shadow:
    0 0 0 1px rgba(245, 196, 81, 0.5),
    0 0 12px -4px rgba(245, 196, 81, 0.75);
}

.roul-num-btn.hit,
.roul-zero.hit,
.roul-out.hit {
  animation: roulHit 0.5s ease-out 2;
}

@keyframes roulHit {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(245, 196, 81, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px #f5c451,
      0 0 18px -2px rgba(245, 196, 81, 0.9);
  }
}

.roul-controls {
  display: grid;
  grid-template-columns: 0.72fr 0.72fr 1.56fr;
  gap: 6px;
}

.roul-tool {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: linear-gradient(180deg, #16241e, #0a130f);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition: color 0.15s, border-color 0.15s, opacity 0.15s;
}

.roul-tool:active {
  color: var(--cream);
  border-color: rgba(52, 211, 153, 0.4);
}

.roul-tool:disabled {
  opacity: 0.38;
}

.roul-spin {
  background: linear-gradient(180deg, #ffe0a3, #f5c451 45%, #b47f0b);
  color: #2b1602;
  box-shadow:
    0 6px 0 #7c5305,
    0 14px 24px -10px rgba(245, 196, 81, 0.6),
    inset 0 1px 0 #fff3d6;
}

.roul-spin:active {
  box-shadow:
    0 1px 0 #7c5305,
    0 6px 14px -8px rgba(245, 196, 81, 0.55),
    inset 0 1px 0 #fff3d6;
}

.roul-spin:disabled {
  opacity: 0.5;
  filter: saturate(0.45);
  box-shadow: none;
}

.roul-panel .footer-row .ghost {
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 8px 0;
}

@media (max-width: 360px) {
  .roul-panel { gap: 5px; padding: 10px; }
  .roul-wheel-wrap { width: 128px; height: 128px; }
  .roul-hub { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .roul-hub span { font-size: 17px; }
  .roul-num-btn { height: 23px; border-radius: 6px; }
  .roul-num { font-size: 9px; }
  .roul-zero { height: 21px; }
  .roul-out { height: 23px; font-size: 6.4px; }
  .roul-chip-btn { height: 25px; }
  .roul-chip-btn i { font-size: 7.4px; }
  .roul-stake { font-size: 5.6px; line-height: 10px; }
  .roul-panel .footer-row .ghost { font-size: 7px; }
}

/* ---------------- Video Poker ---------------- */

.game-view.theme-videopoker {
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --accent-glow: rgba(56, 189, 248, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(8, 47, 73, 0.7), rgba(4, 16, 31, 0.92));
  --cell-border: rgba(56, 189, 248, 0.2);
  --board-bg: rgba(4, 16, 31, 0.86);
}

.game-view.theme-videopoker .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(56, 189, 248, 0.18), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(167, 139, 250, 0.16), transparent 70%),
    linear-gradient(180deg, #081a2e, #050f20 62%, #02050c);
}

.vp-panel {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
    linear-gradient(180deg, #0b1b31, #060f1e 58%, #02050c);
}

.vp-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.vp-history::-webkit-scrollbar {
  display: none;
}

.vp-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.vp-chip.win {
  color: #d9ffe5;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.13);
}

.vp-chip.lose {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
}

.vp-chip.push {
  color: #ffe9b8;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.vp-paytable {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 30, 52, 0.92), rgba(3, 10, 21, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vp-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.vp-pay span {
  overflow: hidden;
  font-size: 6.2px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-pay b {
  flex: 0 0 auto;
  color: var(--cream);
  font-size: 8px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.vp-pay.hit {
  color: #ecfeff;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.16);
  box-shadow: 0 0 14px -4px rgba(56, 189, 248, 0.5);
}

.vp-pay.hit b {
  color: #7dd3fc;
}

.vp-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
  min-height: 104px;
  padding-top: 6px;
}

.vp-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.vp-hold {
  display: block;
  padding: 2px 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 239, 227, 0.42);
  font-size: 5.4px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.vp-slot.held .vp-hold {
  color: #2b1602;
  border-color: rgba(247, 201, 72, 0.8);
  background: linear-gradient(180deg, #ffe9a8, #f7c948);
}

.vp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 82px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: linear-gradient(160deg, #fffdf6, #f2e9d6 60%, #e3d6bd);
  color: #1a2230;
  box-shadow:
    0 8px 16px -10px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 #fff;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.vp-card.red {
  color: #c62828;
}

.vp-slot.held .vp-card {
  transform: translateY(-5px);
  border-color: #f7c948;
  box-shadow:
    0 0 0 1px rgba(247, 201, 72, 0.5),
    0 12px 22px -10px rgba(247, 201, 72, 0.55),
    inset 0 1px 0 #fff;
}

.vp-slot.won .vp-card {
  border-color: #7dd3fc;
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.45),
    0 0 18px -2px rgba(56, 189, 248, 0.45),
    inset 0 1px 0 #fff;
}

.vp-card .vp-rank {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 0.95;
  font-weight: 800;
}

.vp-card .vp-suit {
  margin-top: 1px;
  font-size: 15px;
  line-height: 1;
}

.vp-card .vp-corner {
  position: absolute;
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.8;
}

.vp-card .vp-corner.tl {
  top: 4px;
  left: 4px;
}

.vp-card .vp-corner.br {
  right: 4px;
  bottom: 4px;
  transform: rotate(180deg);
}

.vp-card.empty {
  border-color: rgba(56, 189, 248, 0.3);
  background:
    repeating-linear-gradient(45deg, rgba(56, 189, 248, 0.08) 0 6px, transparent 6px 12px),
    radial-gradient(90% 80% at 50% 20%, #0c2f4d, #061a2f 65%, #030b16);
  color: rgba(125, 211, 252, 0.55);
  box-shadow:
    0 8px 16px -10px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.vp-card .vp-back-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.vp-status {
  min-height: 26px;
}

.vp-deal {
  background: linear-gradient(180deg, #bae6fd, #38bdf8 45%, #0369a1);
  color: #04121f;
  box-shadow:
    0 6px 0 #075985,
    0 14px 24px -10px rgba(56, 189, 248, 0.6),
    inset 0 1px 0 #e0f2fe;
}

.vp-deal:active {
  box-shadow:
    0 1px 0 #075985,
    0 6px 14px -8px rgba(56, 189, 248, 0.55),
    inset 0 1px 0 #e0f2fe;
}

.vp-panel .footer-row .ghost {
  padding: 8px 0;
  font-size: 8px;
  letter-spacing: 0.08em;
}

@media (max-width: 360px) {
  .vp-card { height: 72px; border-radius: 7px; }
  .vp-card .vp-rank { font-size: 21px; }
  .vp-card .vp-suit { font-size: 13px; }
  .vp-card .vp-corner { font-size: 6.6px; }
  .vp-cards { min-height: 92px; gap: 3px; }
  .vp-pay span { font-size: 5.8px; }
  .vp-pay b { font-size: 7.4px; }
  .vp-hold { font-size: 5px; letter-spacing: 0.08em; }
  .vp-panel .footer-row .ghost { font-size: 7px; }
}

/* ---------------- Baccarat ---------------- */

.game-view.theme-baccarat {
  --accent: #4ade80;
  --accent-2: #f5c451;
  --accent-glow: rgba(74, 222, 128, 0.4);
  --cell-bg: linear-gradient(180deg, rgba(10, 58, 38, 0.7), rgba(3, 18, 12, 0.94));
  --cell-border: rgba(74, 222, 128, 0.18);
  --board-bg: rgba(3, 20, 13, 0.88);
}

.game-view.theme-baccarat .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(74, 222, 128, 0.18), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(245, 196, 81, 0.12), transparent 70%),
    linear-gradient(180deg, #06271a, #04150e 62%, #020806);
}

.bac-panel {
  border-color: rgba(74, 222, 128, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(74, 222, 128, 0.09), transparent 60%),
    linear-gradient(180deg, #0d2c1f, #071a12 58%, #020806);
}

.bac-bets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bac-bet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  color: var(--cream);
  transition: transform 0.1s, border-color 0.12s, background 0.12s;
}

.bac-bet span {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.bac-bet b {
  font-size: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bac-bet.active {
  border-color: rgba(74, 222, 128, 0.7);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.28), rgba(6, 40, 24, 0.8));
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.bac-bet:disabled {
  opacity: 0.55;
}

.bac-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 9px 8px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(74, 222, 128, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(12, 42, 28, 0.95), rgba(3, 12, 8, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bac-hand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bac-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 196, 81, 0.55);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.bac-rule::before,
.bac-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 81, 0.3), transparent);
}

.bac-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.bac-history::-webkit-scrollbar {
  display: none;
}

.bac-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bac-chip.player {
  color: #cfe8ff;
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.12);
}

.bac-chip.banker {
  color: #ffd9d9;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
}

.bac-chip.tie {
  color: #fff0c2;
  border-color: rgba(245, 196, 81, 0.5);
  background: rgba(245, 196, 81, 0.13);
}

.bac-deal {
  background: linear-gradient(180deg, #bbf7d0, #22c55e 45%, #15803d);
  color: #04220f;
  box-shadow:
    0 6px 0 #14532d,
    0 14px 24px -10px rgba(34, 197, 94, 0.6),
    inset 0 1px 0 #ecfff3;
}

.bac-panel .footer-row .ghost {
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 8px 0;
}

/* ---------------- Craps ---------------- */

.game-view.theme-craps {
  --accent: #f87171;
  --accent-2: #f5c451;
  --accent-glow: rgba(248, 113, 113, 0.4);
  --cell-bg: linear-gradient(180deg, rgba(76, 18, 24, 0.7), rgba(22, 5, 8, 0.94));
  --cell-border: rgba(248, 113, 113, 0.18);
  --board-bg: rgba(22, 5, 8, 0.88);
}

.game-view.theme-craps .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(248, 113, 113, 0.18), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(245, 196, 81, 0.12), transparent 70%),
    linear-gradient(180deg, #2c0a10, #18060a 62%, #070203);
}

.craps-panel {
  border-color: rgba(248, 113, 113, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(248, 113, 113, 0.09), transparent 60%),
    linear-gradient(180deg, #2a0d14, #17070b 58%, #070203);
}

.craps-bets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.craps-bet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  color: var(--cream);
}

.craps-bet span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.craps-bet b {
  font-size: 8px;
  color: var(--muted);
}

.craps-bet.active {
  border-color: rgba(248, 113, 113, 0.7);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.26), rgba(50, 8, 14, 0.8));
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.craps-bet:disabled {
  opacity: 0.55;
}

.craps-table {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(248, 113, 113, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(44, 10, 16, 0.95), rgba(10, 2, 4, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.craps-puck {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.craps-puck.on {
  color: #04220f;
  border-color: #22c55e;
  background: linear-gradient(180deg, #bbf7d0, #22c55e);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}

.craps-dice {
  display: flex;
  gap: 14px;
  padding: 6px 0 2px;
}

.die {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 62px;
  height: 62px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  background: linear-gradient(160deg, #fffdf6, #f2e9d6 60%, #e0d2b8);
  box-shadow:
    0 10px 20px -10px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 #fff;
  animation: crapsTumble 0.16s ease-in-out;
}

.die .pip {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
}

.die .pip.on {
  background: radial-gradient(circle at 35% 30%, #4a2320, #1a0d0b 70%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.craps-point {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.craps-point b {
  min-width: 30px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(245, 196, 81, 0.35);
  background: rgba(0, 0, 0, 0.4);
  color: #ffe9b8;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.craps-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.craps-history::-webkit-scrollbar {
  display: none;
}

.craps-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 7.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.craps-chip.win {
  color: #d9ffe5;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.13);
}

.craps-chip.lose {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
}

.craps-chip.push {
  color: #ffe9b8;
  border-color: rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.12);
}

.craps-roll {
  background: linear-gradient(180deg, #fecaca, #ef4444 45%, #991b1b);
  color: #2b0404;
  box-shadow:
    0 6px 0 #7f1d1d,
    0 14px 24px -10px rgba(239, 68, 68, 0.6),
    inset 0 1px 0 #ffe4e4;
}

.craps-panel .footer-row .ghost {
  font-size: 8px;
  letter-spacing: 0.08em;
  padding: 8px 0;
}

@keyframes crapsTumble {
  0% { transform: rotate(-7deg) scale(0.97); }
  100% { transform: rotate(0) scale(1); }
}

/* ---------------- Coin Flip ---------------- */

.game-view.theme-coinflip {
  --accent: #f5c451;
  --accent-2: #fbbf24;
  --accent-glow: rgba(245, 196, 81, 0.42);
  --cell-bg: linear-gradient(180deg, rgba(76, 54, 12, 0.7), rgba(24, 16, 4, 0.94));
  --cell-border: rgba(245, 196, 81, 0.2);
  --board-bg: rgba(24, 16, 4, 0.88);
}

.game-view.theme-coinflip .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(245, 196, 81, 0.2), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(251, 191, 36, 0.12), transparent 70%),
    linear-gradient(180deg, #2b1e05, #171004 62%, #070401);
}

.coin-panel {
  border-color: rgba(245, 196, 81, 0.28);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(245, 196, 81, 0.1), transparent 60%),
    linear-gradient(180deg, #2a1d08, #170f04 58%, #070401);
}

.coin-stage {
  display: grid;
  place-items: center;
  height: 152px;
  perspective: 900px;
}

.coin {
  position: relative;
  width: 124px;
  height: 124px;
  transform-style: preserve-3d;
}

.coin-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  border: 4px solid #b45309;
  background:
    radial-gradient(circle at 35% 28%, #fff3c4, #f5c451 42%, #d97706 78%, #92400e);
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.5),
    inset 0 -4px 10px rgba(120, 53, 15, 0.55);
  backface-visibility: hidden;
  color: #3b1d02;
}

.coin-face.tails {
  transform: rotateY(180deg);
}

.coin-face span {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.coin-face i {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-style: normal;
}

.coin-pick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.coin-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  color: var(--cream);
}

.coin-side span {
  font-size: 18px;
  line-height: 1;
}

.coin-side b {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.coin-side i {
  font-size: 7.5px;
  font-style: normal;
  color: var(--muted);
}

.coin-side.active {
  border-color: rgba(245, 196, 81, 0.7);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.26), rgba(50, 32, 4, 0.8));
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.coin-side:disabled {
  opacity: 0.55;
}

.coin-history {
  display: flex;
  gap: 5px;
  min-height: 19px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.coin-history::-webkit-scrollbar {
  display: none;
}

.coin-chip {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 8px;
  font-weight: 800;
}

.coin-chip.win {
  color: #d9ffe5;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.13);
}

.coin-chip.lose {
  color: #ffb4b4;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
}

.coin-flip {
  background: linear-gradient(180deg, #fde68a, #f59e0b 45%, #b45309);
  color: #2b1602;
  box-shadow:
    0 6px 0 #7c3d05,
    0 14px 24px -10px rgba(245, 158, 11, 0.6),
    inset 0 1px 0 #fff3d6;
}

.coin-panel .footer-row .ghost {
  font-size: 7.6px;
  letter-spacing: 0.06em;
  padding: 8px 0;
}

/* ---------------- Scratch Cards ---------------- */

.game-view.theme-scratch {
  --accent: #e879f9;
  --accent-2: #f5c451;
  --accent-glow: rgba(232, 121, 249, 0.4);
  --cell-bg: linear-gradient(180deg, rgba(62, 18, 76, 0.7), rgba(20, 6, 26, 0.94));
  --cell-border: rgba(232, 121, 249, 0.18);
  --board-bg: rgba(20, 6, 26, 0.88);
}

.game-view.theme-scratch .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(232, 121, 249, 0.18), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(245, 196, 81, 0.1), transparent 70%),
    linear-gradient(180deg, #25082e, #15051a 62%, #060208);
}

.scratch-panel {
  border-color: rgba(232, 121, 249, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(232, 121, 249, 0.09), transparent 60%),
    linear-gradient(180deg, #230b2c, #140619 58%, #060208);
}

.scratch-card {
  padding: 10px;
  border: 1px solid rgba(232, 121, 249, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(232, 121, 249, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(40, 12, 50, 0.96), rgba(12, 3, 16, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.scratch-card.win {
  border-color: rgba(245, 196, 81, 0.6);
  box-shadow:
    0 0 22px rgba(245, 196, 81, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scratch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 1px 2px 8px;
}

.scratch-banner span {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.scratch-banner b {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #ffe9b8;
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.scratch-cell {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
  overflow: hidden;
}

.scratch-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.scratch-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
  color: rgba(60, 24, 72, 0.75);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #e9e4f2, #c9c0d8 55%, #a99fbd);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(60, 30, 80, 0.25);
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.scratch-cell.revealed .scratch-cover {
  opacity: 0;
  transform: scale(1.35) rotate(4deg);
  pointer-events: none;
}

.scratch-cell.match {
  border-color: rgba(245, 196, 81, 0.75);
  box-shadow: 0 0 16px rgba(245, 196, 81, 0.35), inset 0 0 12px rgba(245, 196, 81, 0.14);
}

.scratch-buy {
  background: linear-gradient(180deg, #f5d0fe, #d946ef 45%, #86198f);
  color: #2b0430;
  box-shadow:
    0 6px 0 #701a75,
    0 14px 24px -10px rgba(217, 70, 239, 0.6),
    inset 0 1px 0 #fdf4ff;
}

.scratch-panel .footer-row .ghost {
  font-size: 7.4px;
  letter-spacing: 0.05em;
  padding: 8px 0;
}

/* ---------------- Bingo ---------------- */

.game-view.theme-bingo {
  --accent: #38bdf8;
  --accent-2: #a3e635;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --cell-bg: linear-gradient(180deg, rgba(10, 52, 76, 0.7), rgba(3, 16, 24, 0.94));
  --cell-border: rgba(56, 189, 248, 0.18);
  --board-bg: rgba(3, 16, 24, 0.88);
}

.game-view.theme-bingo .game-stage {
  background:
    radial-gradient(75% 48% at 50% 0%, rgba(56, 189, 248, 0.18), transparent 68%),
    radial-gradient(85% 55% at 50% 105%, rgba(163, 230, 53, 0.12), transparent 70%),
    linear-gradient(180deg, #06212e, #04141c 62%, #010609);
}

.bingo-panel {
  border-color: rgba(56, 189, 248, 0.26);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(56, 189, 248, 0.09), transparent 60%),
    linear-gradient(180deg, #0a2634, #06151d 58%, #010609);
}

.bingo-card {
  padding: 8px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(8, 36, 50, 0.96), rgba(2, 10, 14, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bingo-card.win {
  border-color: rgba(163, 230, 53, 0.6);
  box-shadow:
    0 0 22px rgba(163, 230, 53, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bingo-head {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 1px 0 5px;
}

.bingo-head span {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.bingo-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.36));
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bingo-cell.free {
  font-size: 6.5px;
  letter-spacing: 0.06em;
  color: #04121a;
  background: linear-gradient(180deg, #bae6fd, #38bdf8);
  border-color: rgba(56, 189, 248, 0.7);
}

.bingo-cell.marked {
  color: #04121a;
  border-color: rgba(163, 230, 53, 0.7);
  background: linear-gradient(180deg, #e4f9b8, #a3e635);
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.32);
}

.bingo-balls {
  display: flex;
  gap: 5px;
  min-height: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bingo-balls::-webkit-scrollbar {
  display: none;
}

.bingo-ball {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(180deg, #0ea5e9, #075985);
  color: #eaf8ff;
  font-size: 9px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  animation: bingoPop 0.2s ease-out;
}

.bingo-buy {
  background: linear-gradient(180deg, #bae6fd, #38bdf8 45%, #0369a1);
  color: #03131c;
  box-shadow:
    0 6px 0 #075985,
    0 14px 24px -10px rgba(56, 189, 248, 0.6),
    inset 0 1px 0 #e0f2fe;
}

.bingo-panel .footer-row .ghost {
  font-size: 7.4px;
  letter-spacing: 0.05em;
  padding: 8px 0;
}

@keyframes bingoPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 360px) {
  .bac-bet span { font-size: 7.6px; }
  .bac-bet b { font-size: 7px; }
  .bac-panel .footer-row .ghost { font-size: 7px; }
  .craps-bet span { font-size: 8px; }
  .craps-panel .footer-row .ghost { font-size: 7px; }
  .die { width: 54px; height: 54px; padding: 7px; gap: 3px; }
  .craps-dice { gap: 10px; }
  .coin { width: 108px; height: 108px; }
  .coin-face span { font-size: 36px; }
  .coin-panel .footer-row .ghost { font-size: 6.8px; }
  .scratch-cell .scratch-symbol { font-size: 25px; }
  .scratch-panel .footer-row .ghost { font-size: 6.6px; }
  .bingo-cell { font-size: 10px; }
  .bingo-head span { font-size: 9px; }
  .bingo-panel .footer-row .ghost { font-size: 6.6px; }
}
