/* ============ THEMES ============ */
:root {
  --bg-0:        #0a0806;
  --bg-1:        #16110d;
  --panel:       #1a1310;
  --panel-2:     #241a15;
  --bezel:       #060404;
  --stroke:      #2a1e18;
  --stroke-hi:   #4a352a;

  --red:         #e0142c;
  --red-deep:    #9a0d1f;
  --red-glow:    #ff2a42;
  --yellow:      #ffc21a;
  --yellow-2:    #ff9a00;
  --gold:        #f5b800;
  --cream:       #ffe9a8;
  --black-suit:  #1a1a1a;

  --led-red:     #ff2a1a;
  --led-green:   #2eff6b;
  --led-amber:   #ffb020;

  --ink-hi:      #fff4d6;
  --ink:         #e7d8b4;
  --ink-dim:     #8a7660;

  --inset-bezel: inset 0 2px 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.5);
}
body[data-theme="neon"] {
  --bg-0:#05060d; --bg-1:#0a0a1a; --panel:#0d0d20; --panel-2:#12122e;
  --stroke:#1e1e42; --stroke-hi:#3a3a72;
  --red:#ff2a6d; --red-deep:#a01050; --red-glow:#ff5a9a;
  --yellow:#f6ff00; --yellow-2:#b3ff00; --gold:#eaff00; --cream:#f0ffe0;
  --led-red:#ff2a6d; --led-green:#00ffe0; --led-amber:#f6ff00;
  --ink-hi:#eafcff; --ink:#b8d0ff; --ink-dim:#6a7abd;
}
body[data-theme="gold"] {
  --bg-0:#1a0e05; --bg-1:#251508; --panel:#2a1a0a; --panel-2:#3a2410;
  --stroke:#4a2e14; --stroke-hi:#7a5028;
  --red:#c8102e; --red-deep:#7a0818; --red-glow:#e83048;
  --yellow:#f5b800; --yellow-2:#d89000; --gold:#ffd766; --cream:#fff2c8;
  --led-red:#ff2a1a; --led-green:#ffb020; --led-amber:#ffd766;
  --ink-hi:#fff2c8; --ink:#e8c88a; --ink-dim:#9a7c4a;
}

/* ============ RESET ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  overflow-x: hidden;
  overscroll-behavior: none;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============ STAGE ============ */
.stage {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  padding: max(env(safe-area-inset-top), 10px) 10px max(env(safe-area-inset-bottom), 14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,42,66,.06), transparent 55%),
    radial-gradient(120% 40% at 50% 100%, rgba(245,184,0,.04), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
  position: relative;
}

/* ============ HEADER ============ */
.header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 4px 2px 0;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5a42, var(--red) 55%, var(--red-deep));
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.4), inset 0 2px 3px rgba(255,255,255,.25), 0 0 12px rgba(255,42,42,.4);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-title { display: flex; flex-direction: column; line-height: .9; }
.brand-title .t1 {
  font-family: 'Bungee', sans-serif; font-size: 16px; color: var(--yellow); letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255,194,26,.5), 2px 2px 0 var(--red-deep);
  transform: skewX(-6deg);
}
.brand-title .t2 {
  font-family: 'Bungee', sans-serif; font-size: 22px; color: var(--red); letter-spacing: 2px; margin-top: 1px;
  text-shadow: 0 0 10px rgba(224,20,44,.6), 3px 3px 0 rgba(0,0,0,.5);
  transform: skewX(-6deg);
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke-hi);
  display: grid; place-items: center; color: var(--ink);
  box-shadow: var(--inset-bezel);
}
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* ============ PAYTABLE ============ */
.paytable {
  background: linear-gradient(180deg, #1a0a0a, #0d0505);
  border: 1px solid var(--red-deep);
  border-radius: 12px;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease;
  max-height: 900px; opacity: 1;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,42,66,.15), 0 0 24px rgba(224,20,44,.15), var(--inset-bezel);
}
.paytable.collapsed { max-height: 0; opacity: 0; margin-top: -8px; border-width: 0; }
.paytable::before {
  content:''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,90,66,.12), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,.02) 60px 61px);
  pointer-events: none;
}
.paytable-header { padding: 8px 12px 4px; text-align: center; }
.paytable-header .pt-title {
  font-family: 'Bungee', sans-serif; color: var(--yellow); font-size: 15px; letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(255,194,26,.4), 2px 2px 0 var(--red-deep);
}
.paytable-header .pt-sub {
  font-size: 9px; color: var(--cream); letter-spacing: 3px; margin-top: 2px; opacity: .8;
}
.paytable-grid {
  display: grid;
  grid-template-columns: 44px repeat(2, 1fr);
  gap: 3px;
  padding: 6px 8px 10px;
  position: relative;
}
.pt-cell {
  background: linear-gradient(180deg, #2a0a0a, #180505);
  border: 1px solid var(--red-deep);
  border-radius: 5px;
  padding: 4px 2px;
  display: grid; place-items: center;
  min-height: 30px;
}
.pt-cell.head {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: var(--yellow); font-weight: 900; font-size: 10px; letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5); min-height: 24px;
}
.pt-cell.sym { background: linear-gradient(180deg, #3a1010, #1a0505); }
.pt-cell.sym svg { width: 22px; height: 22px; }
.pt-cell .payout {
  font-family: 'Bungee', sans-serif; font-size: 12px; color: var(--yellow);
  text-shadow: 1px 1px 0 rgba(0,0,0,.6), 0 0 6px rgba(255,194,26,.35);
}
.pt-cell.jackpot {
  background: linear-gradient(180deg, #4a2010, #2a0808);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.pt-cell.jackpot .payout {
  color: var(--gold); animation: goldPulse 1.6s ease-in-out infinite alternate;
}
@keyframes goldPulse { to { text-shadow: 0 0 12px var(--gold), 1px 1px 0 #000; } }

/* ============ JACKPOT DISPLAY ============ */
.jackpot {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #0a0303, #050101);
  border: 1px solid var(--stroke-hi); border-radius: 10px;
  box-shadow: var(--inset-bezel);
}
.jackpot-label {
  font-family: 'Bungee', sans-serif; font-size: 10px; color: var(--yellow); letter-spacing: 1.5px; line-height: 1;
  text-shadow: 0 0 6px rgba(255,194,26,.3);
}
.jackpot-label small { display: block; font-size: 7px; color: var(--cream); letter-spacing: 2px; margin-top: 2px; opacity: .7; }
.led-panel {
  flex: 1;
  background: linear-gradient(180deg, #1a0000, #060000);
  border: 1px solid #300; border-radius: 5px;
  padding: 4px 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,42,26,.1);
  display: flex; align-items: center; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.led-panel::after {
  content:''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.15) 2px 3px);
  pointer-events: none;
}
.led-text {
  font-family: 'VT323', monospace; font-size: 24px; color: var(--led-red);
  text-shadow: 0 0 8px var(--led-red), 0 0 2px #fff; letter-spacing: 2px; line-height: 1;
}
.led-text.green { color: var(--led-green); text-shadow: 0 0 8px var(--led-green); }
.led-text.amber { color: var(--led-amber); text-shadow: 0 0 8px var(--led-amber); }
.led-text.blink { animation: blinkred 1s steps(2) infinite; }
@keyframes blinkred { 50% { opacity: .35; } }

/* ============ REELS 3x3 ============ */
.reels-wrap {
  background: linear-gradient(180deg, #0d0605, #050202);
  border: 2px solid var(--stroke-hi);
  border-radius: 14px;
  padding: 12px 10px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 2px 4px rgba(255,255,255,.03), inset 0 -10px 20px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.5);
}
.reels-marquee {
  position: absolute; top: -1px; left: 10px; right: 10px; height: 5px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg,
    var(--yellow) 0 8px, transparent 8px 14px,
    var(--red) 14px 22px, transparent 22px 28px,
    var(--yellow) 28px 36px, transparent 36px 42px,
    var(--red) 42px 50px, transparent 50px 56px);
  background-size: 56px 100%;
  animation: marquee 1.2s linear infinite; opacity: .6;
}
@keyframes marquee { to { background-position: 56px 0; } }

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #000;
  border-radius: 8px;
  padding: 6px;
  position: relative;
  box-shadow: inset 0 4px 10px rgba(0,0,0,.9), inset 0 0 0 1px var(--red-deep), inset 0 0 0 3px #000, inset 0 0 0 4px var(--stroke-hi);
}
.reel {
  --cell-h: 76px;
  height: calc(var(--cell-h) * 3);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%, transparent 70%, rgba(0,0,0,.5)),
    linear-gradient(180deg, #f4e4c4, #e8d4a0 50%, #d4b878);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.3), inset 0 -2px 6px rgba(0,0,0,.25), 0 0 0 1px #3a2010;
}
.reel-strip { display: flex; flex-direction: column; will-change: transform; align-items: center; }
.reel-cell {
  width: 100%; height: var(--cell-h);
  display: grid; place-items: center; flex-shrink: 0; position: relative;
}
.reel-cell svg { width: 58px; height: 58px; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.25)); }

/* winning cell highlight */
.reel-cell.win-cell::before {
  content:'';
  position: absolute; inset: 4px;
  border-radius: 4px;
  background: radial-gradient(circle, rgba(255,194,26,.4), transparent 70%);
  animation: cellWin .5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes cellWin {
  from { opacity: .4; }
  to   { opacity: 1; box-shadow: inset 0 0 0 2px var(--yellow), 0 0 16px var(--yellow); }
}

.reel.spinning .reel-strip { filter: blur(1.5px); }

/* ============ PAY LINES (SVG overlay) ============ */
.paylines-svg {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  z-index: 5;
}
.paylines-svg .pl {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .2s;
}
.paylines-svg .pl.preview { opacity: .35; }
.paylines-svg .pl.win {
  opacity: 1;
  animation: pulseLine .5s ease-in-out infinite alternate;
}
@keyframes pulseLine {
  from { filter: drop-shadow(0 0 3px currentColor); }
  to   { filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor); }
}

/* ============ WIN OVERLAY ============ */
.win-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.5);
  background: radial-gradient(circle, var(--yellow), var(--yellow-2) 70%, transparent);
  color: var(--red-deep);
  font-family: 'Bungee', sans-serif;
  font-size: 28px; letter-spacing: 3px;
  padding: 14px 22px; border-radius: 16px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.3);
  box-shadow: 0 0 40px var(--yellow), 0 0 80px var(--red-glow);
  opacity: 0; pointer-events: none; z-index: 20;
  transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.win-badge.show {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  animation: winWobble .5s ease-in-out infinite alternate;
}
@keyframes winWobble {
  from { transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  to   { transform: translate(-50%, -50%) scale(1.05) rotate(2deg); }
}

/* sparks */
.sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 15; }
.spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 8px var(--yellow);
  animation: sparkFly 1.2s ease-out forwards;
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0,0) scale(.5); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

/* ============ INFO STRIP ============ */
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.info-cell {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke-hi); border-radius: 8px;
  padding: 5px 6px 3px;
  box-shadow: var(--inset-bezel);
  min-width: 0;
}
.info-cell .label {
  font-size: 9px; color: var(--ink-dim); letter-spacing: 1.5px;
  font-weight: 700; text-transform: uppercase;
}
.info-cell .led-panel { padding: 2px 4px; margin-top: 2px; }
.info-cell .led-text { font-size: 16px; letter-spacing: 1.5px; }

/* ============ CONTROLS ============ */
.control-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.small-btn {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke-hi); border-radius: 9px;
  color: var(--yellow);
  font-family: 'Bungee', sans-serif; font-size: 12px; letter-spacing: 1px;
  padding: 8px 4px;
  box-shadow: var(--inset-bezel);
  transition: transform .1s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 46px;
}
.small-btn .val {
  font-size: 15px; color: var(--cream);
  text-shadow: 0 0 5px rgba(255,233,168,.4);
}
.small-btn.active {
  background: linear-gradient(180deg, var(--yellow), var(--yellow-2));
  color: var(--red-deep);
  box-shadow: 0 0 12px rgba(255,194,26,.5), inset 0 2px 0 rgba(255,255,255,.3);
}
.small-btn.active .val { color: var(--red-deep); text-shadow: none; }
.small-btn:active { transform: translateY(2px); }
.small-btn[disabled] { opacity: .4; pointer-events: none; }

.spin-row {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.spin-btn {
  position: relative; border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, #ff8877, var(--red) 45%, var(--red-deep) 100%);
  color: var(--yellow);
  font-family: 'Bungee', sans-serif; font-size: 20px; letter-spacing: 3px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5), 0 0 10px rgba(255,194,26,.5);
  border: 3px solid #3a0810;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.25), inset 0 -6px 12px rgba(0,0,0,.5),
    0 5px 0 var(--red-deep), 0 8px 20px rgba(224,20,44,.4), 0 0 24px rgba(255,42,42,.25);
  transition: transform .1s ease, box-shadow .1s ease;
  padding: 10px 0;
  min-height: 66px;
}
.spin-btn::before {
  content:''; position:absolute; inset: 4px; border-radius: 999px;
  border: 1px dashed rgba(255,194,26,.35); pointer-events: none;
}
.spin-btn:active { transform: translateY(4px); box-shadow: inset 0 4px 8px rgba(0,0,0,.5), 0 2px 0 var(--red-deep); }
.spin-btn.spinning { animation: spinPulse .6s ease-in-out infinite alternate; pointer-events: none; opacity: .85; }
@keyframes spinPulse {
  from { filter: brightness(1); }
  to   { filter: brightness(1.15) drop-shadow(0 0 10px var(--red-glow)); }
}
.spin-btn[disabled] { opacity: .5; pointer-events: none; }

/* Big action buttons: TAKE + RISK */
.action-btn {
  border-radius: 12px;
  font-family: 'Bungee', sans-serif; font-size: 13px; letter-spacing: 2px;
  padding: 10px 6px;
  border: 2px solid;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.15), 0 3px 0 rgba(0,0,0,.5);
  transition: transform .1s;
  min-height: 66px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.action-btn:active { transform: translateY(3px); box-shadow: inset 0 3px 6px rgba(0,0,0,.4); }
.action-btn small { font-size: 8px; letter-spacing: 1px; opacity: .8; font-weight: 700; }

.take-btn {
  background: linear-gradient(180deg, #2eff6b, #0aa040);
  color: #062a14; border-color: #04702a;
  text-shadow: 1px 1px 0 rgba(255,255,255,.3);
}
.risk-btn {
  background: linear-gradient(180deg, var(--yellow), var(--yellow-2));
  color: var(--red-deep); border-color: #7a4400;
  text-shadow: 1px 1px 0 rgba(255,255,255,.3);
  animation: riskPulse 1s ease-in-out infinite alternate;
}
@keyframes riskPulse {
  from { box-shadow: inset 0 2px 0 rgba(255,255,255,.15), 0 3px 0 rgba(0,0,0,.5); }
  to   { box-shadow: inset 0 2px 0 rgba(255,255,255,.15), 0 3px 0 rgba(0,0,0,.5), 0 0 20px var(--yellow); }
}
.action-btn[disabled] { opacity: .35; pointer-events: none; animation: none; }

/* ============ RISK GAME MODAL ============ */
.risk-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.risk-modal.show { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.risk-panel {
  background: linear-gradient(180deg, #1a0505, #0a0202);
  border: 2px solid var(--red);
  border-radius: 18px;
  padding: 20px 18px;
  width: 100%; max-width: 360px;
  box-shadow: 0 0 40px var(--red-glow), 0 20px 60px rgba(0,0,0,.8);
  position: relative;
}
.risk-panel::before {
  content:''; position: absolute; inset: 6px;
  border: 1px dashed rgba(255,194,26,.3); border-radius: 12px;
  pointer-events: none;
}
.risk-title {
  font-family: 'Bungee', sans-serif; font-size: 22px; color: var(--yellow);
  letter-spacing: 3px; text-align: center;
  text-shadow: 0 0 10px rgba(255,194,26,.5), 3px 3px 0 var(--red-deep);
  margin-bottom: 4px;
}
.risk-sub {
  text-align: center; color: var(--cream);
  font-size: 11px; letter-spacing: 2px; margin-bottom: 14px; opacity: .8;
}
.risk-stakes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px;
}
.risk-stake {
  background: linear-gradient(180deg, #0a0303, #050101);
  border: 1px solid var(--red-deep); border-radius: 8px;
  padding: 6px 8px; text-align: center;
}
.risk-stake .lbl {
  font-size: 9px; color: var(--ink-dim); letter-spacing: 1.5px; font-weight: 700;
}
.risk-stake .val {
  font-family: 'VT323', monospace; font-size: 22px;
  color: var(--led-red); text-shadow: 0 0 8px var(--led-red);
  letter-spacing: 2px;
}
.risk-stake.win .val { color: var(--led-green); text-shadow: 0 0 8px var(--led-green); }

.risk-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.risk-card {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #f8f0d8, #e0d0a0);
  border-radius: 10px;
  border: 3px solid #3a2010;
  display: grid; place-items: center;
  box-shadow: inset 0 4px 8px rgba(255,255,255,.4), inset 0 -4px 8px rgba(0,0,0,.15), 0 4px 12px rgba(0,0,0,.6);
  position: relative;
  overflow: hidden;
  transition: transform .3s;
  cursor: pointer;
}
.risk-card:active { transform: scale(.96); }
.risk-card svg { width: 60%; height: 60%; transition: opacity .15s; }
.risk-card.flip-anim {
  animation: flipSuits .12s steps(2) infinite;
}
@keyframes flipSuits { 0% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(180deg); } }
.risk-card[data-suit="hearts"] svg   { color: #e0142c; }
.risk-card[data-suit="spades"] svg   { color: #1a1a1a; }
.risk-card.red-highlight   { box-shadow: inset 0 0 0 4px var(--red-glow), 0 0 30px var(--red-glow), 0 4px 12px rgba(0,0,0,.6); }
.risk-card.black-highlight { box-shadow: inset 0 0 0 4px #444, 0 0 30px #666, 0 4px 12px rgba(0,0,0,.6); }
.risk-card.disabled { opacity: .3; pointer-events: none; }

.risk-hint {
  text-align: center; color: var(--yellow); font-size: 11px; letter-spacing: 2px;
  min-height: 16px; margin-bottom: 12px;
  font-family: 'Bungee', sans-serif;
}

.risk-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.risk-take-btn {
  padding: 12px; border-radius: 10px;
  background: linear-gradient(180deg, #2eff6b, #0aa040);
  color: #062a14; border: 2px solid #04702a;
  font-family: 'Bungee', sans-serif; font-size: 14px; letter-spacing: 2px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 3px 0 rgba(0,0,0,.5);
}
.risk-take-btn:active { transform: translateY(2px); }

.risk-result {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  flex-direction: column;
  background: rgba(0,0,0,.7); border-radius: 16px;
  z-index: 5;
}
.risk-result.show { display: flex; animation: fadeIn .3s; }
.risk-result .rr-title {
  font-family: 'Bungee', sans-serif; font-size: 32px;
  letter-spacing: 3px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.5);
  margin-bottom: 10px;
}
.risk-result.won .rr-title { color: var(--yellow); animation: winWobble .4s alternate infinite; }
.risk-result.lost .rr-title { color: #ff4a4a; }
.risk-result .rr-amt {
  font-family: 'VT323', monospace; font-size: 40px;
  color: var(--yellow); text-shadow: 0 0 12px var(--yellow);
}
.risk-result.lost .rr-amt { color: #ff4a4a; text-shadow: 0 0 12px #ff4a4a; }
.risk-result .rr-btn {
  margin-top: 16px; padding: 10px 24px;
  background: var(--red); color: var(--yellow);
  border: 2px solid var(--red-deep); border-radius: 10px;
  font-family: 'Bungee', sans-serif; font-size: 14px; letter-spacing: 2px;
}

.legend {
  text-align: center; font-size: 9px; letter-spacing: 3px; color: var(--ink-dim);
  padding: 4px 0 0; text-transform: uppercase;
}

/* CRT effect on neon theme */
body[data-theme="neon"] .stage::after {
  content: ''; position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,255,255,.03) 2px 3px);
  pointer-events: none; z-index: 100; mix-blend-mode: overlay;
}

/* small phones */
@media (max-height: 780px) {
  .reel { --cell-h: 66px; }
  .reel-cell svg { width: 50px; height: 50px; }
  .spin-btn { min-height: 56px; font-size: 17px; }
  .action-btn { min-height: 56px; font-size: 11px; padding: 8px 4px; }
}
@media (max-height: 680px) {
  .reel { --cell-h: 56px; }
  .reel-cell svg { width: 42px; height: 42px; }
  .paytable-grid .pt-cell.sym svg { width: 18px; height: 18px; }
}
