:root {
  color-scheme: dark;
  --bg-top: #150d26;
  --bg-bottom: #0a0f1e;
  --panel: rgba(16, 18, 31, 0.82);
  --panel-strong: rgba(10, 13, 25, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f4ff;
  --muted: #b2b8d1;
  --gold: #ffd36e;
  --cyan: #79ebff;
  --rose: #ff8bbf;
  --emerald: #75f2bd;
  --violet: #a78bfa;
  --danger: #ff6d92;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(121, 235, 255, 0.18), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(255, 139, 191, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
}

body {
  min-height: 100vh;
  overscroll-behavior-y: contain;
}

.app-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 8px 0 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

h2 {
  font-size: clamp(1.25rem, 1.5vw, 1.7rem);
}

.disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 16px rgba(117, 242, 189, 0.65);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  align-items: start;
}

.side-panel,
.board-section {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.side-panel {
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.board-section {
  border-radius: 24px;
  padding: 18px;
}

.stat-block,
.jackpot-block,
.status-board,
.info-strip,
.paytable {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
}

.stat-block strong,
.jackpot-block strong {
  display: block;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.jackpot-block p,
.info-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.control-group {
  display: grid;
  gap: 10px;
}

.control-group label {
  font-size: 0.94rem;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.range-meta,
.status-row,
.headline-bar,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.chaos-pips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.chaos-pips span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
}

.chaos-pips span.active {
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(121, 235, 255, 0.12);
  border: 1px solid rgba(121, 235, 255, 0.25);
  color: var(--cyan);
  font-weight: 800;
}

.board-wrap {
  position: relative;
  margin-top: 16px;
  padding: 18px 18px 18px;
  min-height: 620px;
  border-radius: 22px;
  overflow: hidden;
  background:
    url("./assets/temple-sky.svg") center top / cover no-repeat,
    radial-gradient(circle at top, rgba(255, 211, 110, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(24, 32, 58, 0.92), rgba(7, 9, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.board-wrap.is-summoning .reel-grid {
  animation: grid-jolt 520ms cubic-bezier(0.2, 0.9, 0.22, 1);
}

.board-wrap.is-bonus .reel-grid {
  animation: bonus-grid-pulse 960ms ease;
}

.board-wrap.is-spinning .reel-grid {
  animation: spin-grid-roll 420ms linear infinite;
}

.board-wrap.is-spinning .symbol {
  filter: saturate(1.15) brightness(1.05);
}

.sky-glow {
  position: absolute;
  inset: -20% 0 auto;
  height: 220px;
  background:
    radial-gradient(circle, rgba(121, 235, 255, 0.2), transparent 60%),
    radial-gradient(circle at 70% 10%, rgba(255, 211, 110, 0.18), transparent 52%);
  filter: blur(10px);
}

.reel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 160px;
}

.deity-stage {
  position: absolute;
  inset: 10px 18px auto;
  height: 180px;
  z-index: 2;
  pointer-events: none;
}

.deity-figure {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 180px;
  height: 170px;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
}

.deity-figure.summoning {
  transform: translateX(-50%) translateY(-6px) scale(1.03);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 24px rgba(121, 235, 255, 0.26));
}

.deity-figure.summoning .deity-arm-right {
  transform: rotate(-62deg) translateY(-18px);
}

.deity-figure.summoning .deity-hand {
  box-shadow: 0 0 22px rgba(121, 235, 255, 0.92);
}

.deity-figure.summoning .deity-aura {
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}

.deity-aura {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 160px;
  height: 112px;
  transform: translateX(-50%) scale(0.92);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(121, 235, 255, 0.3), transparent 58%),
    radial-gradient(circle at 50% 30%, rgba(255, 211, 110, 0.24), transparent 42%);
  opacity: 0.62;
  transition: transform 260ms ease, opacity 260ms ease;
}

.deity-crown {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 58px;
  height: 28px;
  transform: translateX(-50%);
  clip-path: polygon(0 100%, 14% 36%, 28% 78%, 50% 0, 72% 78%, 86% 36%, 100% 100%);
  background: linear-gradient(180deg, #ffe18a, #d9991f);
  box-shadow: 0 6px 16px rgba(255, 211, 110, 0.34);
}

.deity-head {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 74px;
  height: 82px;
  transform: translateX(-50%);
  border-radius: 38px 38px 34px 34px;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.3), transparent 18%),
    linear-gradient(180deg, #f6cc9d, #d7986d);
  box-shadow: inset 0 -10px 16px rgba(145, 86, 41, 0.18);
}

.deity-beard {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 88px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 40px 40px 34px 34px;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(180deg, #ffffff, #dde8f8 55%, #bad6ef);
  clip-path: polygon(8% 0, 92% 0, 100% 24%, 86% 100%, 50% 82%, 14% 100%, 0 24%);
}

.deity-torso {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 124px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 34px 34px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 239, 200, 0.95), rgba(188, 207, 228, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.deity-sash {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 132px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: linear-gradient(90deg, #7cefc7, #79ebff, #ffd36e);
  opacity: 0.86;
}

.deity-arm {
  position: absolute;
  width: 24px;
  height: 84px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4c48f, #d28d60);
  transform-origin: bottom center;
}

.deity-arm-left {
  left: 34px;
  top: 86px;
  transform: rotate(34deg);
}

.deity-arm-right {
  right: 34px;
  top: 76px;
  transform: rotate(34deg);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.deity-forearm {
  position: absolute;
  left: 2px;
  top: -42px;
  width: 20px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8d4a6, #dd9a70);
  transform: rotate(-18deg);
  transform-origin: bottom center;
}

.deity-hand {
  position: absolute;
  left: 1px;
  top: -54px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff6d7, #ffd36e 60%, #f0a72b);
  box-shadow: 0 0 16px rgba(255, 211, 110, 0.58);
  transition: box-shadow 260ms ease;
}

.deity-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.deity-beam,
.impact-burst,
.board-flash {
  position: absolute;
  pointer-events: none;
}

.deity-beam {
  left: 50%;
  top: 64px;
  width: 14px;
  height: 0;
  z-index: 2;
  opacity: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(142, 237, 255, 0.88) 35%, rgba(79, 176, 255, 0.55) 75%, rgba(79, 176, 255, 0));
  box-shadow:
    0 0 18px rgba(121, 235, 255, 0.62),
    0 0 34px rgba(121, 235, 255, 0.34);
  filter: blur(0.2px);
}

.board-wrap.is-summoning .deity-beam {
  animation: deity-beam-strike 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.impact-burst {
  left: 50%;
  top: 214px;
  width: 130px;
  height: 130px;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(255, 245, 181, 0.72) 30%, rgba(121, 235, 255, 0.32) 55%, rgba(121, 235, 255, 0) 72%);
}

.board-wrap.is-summoning .impact-burst {
  animation: impact-burst-pop 620ms ease-out;
}

.board-flash {
  inset: 0;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 245, 190, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(121, 235, 255, 0.12), rgba(255, 211, 110, 0.1), rgba(255, 255, 255, 0));
}

.board-wrap.is-bonus .board-flash,
.board-wrap.is-summoning .board-flash {
  animation: board-flash-pulse 720ms ease-out;
}

.deity-multiplier {
  position: absolute;
  top: 18px;
  min-width: 58px;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  color: #062230;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.56), transparent 28%),
    linear-gradient(180deg, #9af2ff, #56c6ff);
  box-shadow:
    0 10px 22px rgba(39, 181, 255, 0.26),
    0 0 18px rgba(121, 235, 255, 0.34);
  opacity: 0;
  animation: multiplier-fall 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes multiplier-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -14px, 0) scale(0.7) rotate(-8deg);
  }
  18% {
    opacity: 1;
  }
  78% {
    opacity: 1;
    transform: translate3d(var(--drift-x, 0px), 118px, 0) scale(1) rotate(4deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--drift-x, 0px) * 1.2), 156px, 0) scale(1.06) rotate(8deg);
  }
}

.symbol {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.symbol-empty {
  opacity: 0;
  pointer-events: none;
}

.board-wrap.is-spinning .symbol-inner {
  animation: symbol-spin-flicker 180ms linear infinite;
}

.symbol.type-bonus .symbol-glyph,
.symbol.type-wild .symbol-glyph {
  animation-duration: 920ms;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.symbol.type-bonus .symbol-glyph {
  animation-name: scatter-pulse;
}

.symbol.type-wild .symbol-glyph {
  animation-name: wild-zap;
}

.symbol::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 50%);
}

.symbol-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 8px;
}

.symbol-glyph {
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  line-height: 1;
}

.symbol-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.symbol-value {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
}

.type-amethyst {
  background:
    linear-gradient(180deg, rgba(158, 110, 255, 0.26), rgba(65, 32, 118, 0.15)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.type-goblet {
  background:
    linear-gradient(180deg, rgba(255, 203, 86, 0.24), rgba(118, 71, 17, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.type-crown {
  background:
    linear-gradient(180deg, rgba(255, 149, 99, 0.25), rgba(111, 54, 13, 0.15)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.type-ring {
  background:
    linear-gradient(180deg, rgba(102, 243, 210, 0.25), rgba(16, 108, 94, 0.15)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.type-bonus {
  background:
    linear-gradient(180deg, rgba(255, 114, 160, 0.36), rgba(129, 16, 64, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 26px rgba(255, 109, 146, 0.18);
}

.type-wild {
  background:
    linear-gradient(180deg, rgba(121, 235, 255, 0.34), rgba(20, 92, 123, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 28px rgba(121, 235, 255, 0.18);
}

.symbol.highlight {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 12px 32px rgba(255, 211, 110, 0.22),
    0 0 18px rgba(255, 245, 190, 0.18);
}

.symbol.fading {
  opacity: 0;
  transform: translateY(18px) scale(0.92);
}

.symbol.dropping {
  animation: symbol-drop 420ms cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: var(--drop-delay, 0ms);
}

@keyframes symbol-drop {
  0% {
    opacity: 0;
    transform: translateY(calc(var(--drop-distance, 2) * -30px)) scale(0.9);
  }
  55% {
    opacity: 1;
    transform: translateY(6px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes grid-jolt {
  0%,
  100% {
    transform: translateY(0);
  }
  18% {
    transform: translateY(-4px);
  }
  34% {
    transform: translateY(2px);
  }
  48% {
    transform: translateY(-2px);
  }
  62% {
    transform: translateY(1px);
  }
}

@keyframes spin-grid-roll {
  0% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(10px);
  }
}

@keyframes symbol-spin-flicker {
  0% {
    transform: translateY(-8px) scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: translateY(8px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(-8px) scale(0.98);
    opacity: 0.7;
  }
}

@keyframes bonus-grid-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  22% {
    filter: brightness(1.12);
  }
  48% {
    filter: brightness(0.98);
  }
  72% {
    filter: brightness(1.08);
  }
}

@keyframes deity-beam-strike {
  0% {
    opacity: 0;
    height: 0;
    transform: translateX(-50%) scaleY(0.2);
  }
  22% {
    opacity: 1;
    height: 210px;
    transform: translateX(-50%) scaleY(1);
  }
  64% {
    opacity: 1;
    height: 250px;
  }
  100% {
    opacity: 0;
    height: 280px;
  }
}

@keyframes impact-burst-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  60% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@keyframes board-flash-pulse {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

@keyframes scatter-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 109, 146, 0));
  }
  45% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 109, 146, 0.65));
  }
}

@keyframes wild-zap {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 0 rgba(121, 235, 255, 0));
  }
  28% {
    transform: rotate(-8deg) scale(1.08);
    filter: drop-shadow(0 0 10px rgba(121, 235, 255, 0.78));
  }
  52% {
    transform: rotate(7deg) scale(1.02);
  }
}

.orb-layer,
.overlay-message,
.win-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.orb {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.3rem;
  color: white;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(180deg, rgba(121, 235, 255, 0.9), rgba(53, 129, 233, 0.65));
  box-shadow: 0 0 26px rgba(121, 235, 255, 0.45);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  animation: orb-pop 1.2s ease forwards;
}

@keyframes orb-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  65% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -72%) scale(1.08);
  }
}

.overlay-message {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.7rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.overlay-message.hidden {
  display: none;
}

.win-overlay {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(8, 12, 24, 0.46), rgba(8, 12, 24, 0.16) 42%, rgba(8, 12, 24, 0));
}

.win-overlay.hidden {
  display: none;
}

.win-overlay-title,
.win-overlay-ratio {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.win-overlay-title {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
}

.win-overlay-amount {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 6rem);
  line-height: 1;
  color: var(--gold);
  text-shadow:
    0 5px 26px rgba(0, 0, 0, 0.62),
    0 0 24px rgba(255, 211, 110, 0.38);
}

.win-overlay-ratio {
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
  color: var(--cyan);
}

.win-overlay.celebrating .win-overlay-amount {
  animation: win-count-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

@keyframes win-count-pop {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.04);
  }
}

.action-row {
  margin-top: 16px;
}

button {
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms ease, filter 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:active {
  transform: translateY(0);
}

.primary-button,
.secondary-button {
  min-height: 56px;
  padding: 0 20px;
}

.primary-button {
  flex: 1;
  background: linear-gradient(180deg, #ffde7b, #f3a62f);
  color: #241100;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.secondary-button[aria-pressed="true"] {
  background: rgba(117, 242, 189, 0.16);
  color: var(--emerald);
  border-color: rgba(117, 242, 189, 0.2);
}

.ticker {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  min-height: 54px;
}

.status-board {
  display: grid;
  gap: 14px;
}

.status-row span {
  color: var(--muted);
}

.paytable ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.paytable li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.symbol-tag {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 900;
  color: #fff;
}

.symbol-tag.gem {
  background: rgba(167, 139, 250, 0.65);
}

.symbol-tag.goblet {
  background: rgba(255, 211, 110, 0.65);
  color: #1e1200;
}

.symbol-tag.crown {
  background: rgba(255, 154, 104, 0.68);
}

.symbol-tag.ring {
  background: rgba(117, 242, 189, 0.65);
  color: #082218;
}

.symbol-tag.bonus {
  background: rgba(255, 109, 146, 0.75);
}

.symbol-tag.wild {
  background: rgba(121, 235, 255, 0.72);
  color: #031b22;
}

@media (max-width: 1140px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .board-wrap {
    min-height: 540px;
  }

  .right-panel,
  .left-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .info-strip,
  .jackpot-block,
  .paytable,
  .status-board {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 12px, 1480px);
    padding-top: max(6px, env(safe-area-inset-top));
  }

  .topbar {
    align-items: center;
    gap: 8px;
    padding: 0 0 8px;
  }

  .topbar .eyebrow,
  .disclaimer {
    display: none;
  }

  h1 {
    font-size: 1.28rem;
  }

  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .board-section {
    order: 1;
    padding: 8px;
    border-radius: 16px;
  }

  .left-panel {
    order: 2;
  }

  .right-panel {
    order: 3;
  }

  .headline-bar {
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .headline-bar .eyebrow {
    margin-bottom: 0;
    font-size: 0.64rem;
  }

  .headline-bar h2 {
    display: none;
  }

  .feature-badge {
    padding: 7px 9px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .left-panel,
  .right-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .left-panel .stat-block {
    padding: 9px 7px;
    border-radius: 11px;
    min-width: 0;
  }

  .left-panel .label {
    margin-bottom: 4px;
    font-size: 0.55rem;
    line-height: 1.15;
  }

  .left-panel .stat-block strong {
    font-size: 0.86rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .info-strip {
    display: none;
  }

  .control-group {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .control-group label {
    font-size: 0.78rem;
  }

  .range-meta {
    font-size: 0.74rem;
  }

  .board-wrap {
    min-height: 370px;
    margin-top: 0;
    padding: 9px;
    border-radius: 14px;
  }

  .deity-stage {
    inset: 5px 9px auto;
    height: 108px;
  }

  .deity-figure {
    width: 112px;
    height: 106px;
  }

  .deity-aura {
    width: 96px;
    height: 64px;
  }

  .deity-crown {
    width: 36px;
    height: 17px;
  }

  .deity-head {
    top: 16px;
    width: 45px;
    height: 48px;
  }

  .deity-beard {
    top: 40px;
    width: 54px;
    height: 42px;
  }

  .deity-torso {
    width: 78px;
    height: 56px;
  }

  .deity-sash {
    width: 82px;
    height: 15px;
  }

  .deity-arm {
    width: 14px;
    height: 50px;
  }

  .deity-arm-left {
    left: 22px;
    top: 54px;
  }

  .deity-arm-right {
    right: 22px;
    top: 48px;
  }

  .deity-forearm {
    left: 1px;
    top: -24px;
    width: 12px;
    height: 31px;
  }

  .deity-hand {
    top: -32px;
    width: 14px;
    height: 14px;
  }

  .deity-multiplier {
    min-width: 40px;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .deity-beam {
    top: 34px;
    width: 8px;
  }

  .impact-burst {
    top: 124px;
    width: 76px;
    height: 76px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
  }

  .action-row {
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
  }

  .ticker {
    margin-top: 10px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .reel-grid {
    gap: 5px;
    margin-top: 92px;
  }

  .symbol {
    border-radius: 10px;
  }

  .symbol::before {
    inset: 3px;
    border-radius: 8px;
  }

  .symbol-inner {
    gap: 2px;
    padding: 3px;
  }

  .symbol-glyph {
    font-size: clamp(1rem, 5.2vw, 1.35rem);
  }

  .symbol-name {
    display: none;
  }

  .symbol-value {
    font-size: clamp(0.46rem, 2.2vw, 0.58rem);
    line-height: 1;
  }

  .right-panel {
    grid-template-columns: 1fr;
  }

  .jackpot-block,
  .paytable,
  .status-board {
    grid-column: 1 / -1;
  }

  .status-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.72rem;
  }
}

@media (max-width: 430px) {
  .board-wrap {
    min-height: 342px;
  }

  .reel-grid {
    gap: 4px;
    margin-top: 86px;
  }

  .symbol-value {
    display: none;
  }

  .left-panel .label {
    font-size: 0.5rem;
  }

  .left-panel .stat-block strong {
    font-size: 0.76rem;
  }
}
