/* ==========================================================================
   Reel Fortune · casino styles
   ========================================================================== */

:root {
  --bg-0: #07030a;
  --bg-1: #14040c;
  --velvet: #3a0614;
  --velvet-2: #5c0a20;
  --felt: #0d4a35;
  --felt-2: #072a1e;
  --gold: #f6c453;
  --gold-2: #d99a1e;
  --gold-3: #fff1b8;
  --gold-dark: #8a5a0b;
  --ruby: #e0193f;
  --ruby-2: #9b0d2a;
  --neon-pink: #ff3d9a;
  --neon-cyan: #3ff0ff;
  --neon-amber: #ffb627;
  --ink: #f8efe0;
  --ink-dim: #cdbba3;
  --ink-mute: #94806b;
  --line: rgba(246, 196, 83, 0.28);

  --tier-bronze: #e0955a;
  --tier-silver: #dfe7ef;
  --tier-gold: #ffd34e;
  --tier-jackpot: #ff3d9a;

  --gold-grad: linear-gradient(135deg, #fff1b8 0%, #f6c453 22%, #b7791f 48%, #f6c453 70%, #fff1b8 100%);
  --chrome-grad: linear-gradient(90deg, #5d5d66 0%, #f2f2f5 38%, #a9a9b3 58%, #45454d 100%);

  --mw: min(500px, calc(100vw - 112px));
  --cell: calc(var(--mw) * 0.215);
  --L: calc(var(--mw) * 0.19);
  --knob: clamp(30px, calc(var(--mw) * 0.09), 46px);
  --lever-w: 54px;

  --font-display: "Monoton", "Outfit", system-ui, sans-serif;
  --font-head: "Cinzel", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1100px 620px at 50% -8%, rgba(255, 61, 154, 0.16), transparent 62%),
    radial-gradient(900px 700px at 50% 34%, rgba(130, 10, 42, 0.55), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23f6c453' stroke-opacity='0.075' stroke-width='1.1'%3E%3Cpath d='M42 5 79 42 42 79 5 42Z'/%3E%3Ccircle cx='42' cy='42' r='9'/%3E%3Cpath d='M42 21 63 42 42 63 21 42Z' stroke-opacity='0.05'/%3E%3C/g%3E%3Cg fill='%23f6c453' fill-opacity='0.06'%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='84' cy='0' r='4'/%3E%3Ccircle cx='0' cy='84' r='4'/%3E%3Ccircle cx='84' cy='84' r='4'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #10030a 0%, #07030a 60%, #050207 100%);
  background-attachment: fixed, fixed, scroll, fixed;
  overflow-x: hidden;
}

a { color: var(--gold); }
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(246, 196, 83, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-3);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

/* ---------- Ambient bokeh ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient span {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient span:nth-child(1) { left: -60px; top: 12%; background: var(--neon-pink); }
.ambient span:nth-child(2) { right: -80px; top: 6%; background: var(--neon-amber); animation-delay: -6s; }
.ambient span:nth-child(3) { left: 20%; top: 62%; background: var(--ruby); animation-delay: -12s; }
.ambient span:nth-child(4) { right: 12%; top: 54%; background: var(--neon-cyan); opacity: 0.12; animation-delay: -3s; }
.ambient span:nth-child(5) { left: 46%; top: 30%; background: var(--gold); opacity: 0.1; animation-delay: -18s; }
.ambient span:nth-child(6) { left: 70%; top: 88%; background: var(--neon-pink); opacity: 0.14; animation-delay: -9s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, -50px, 0) scale(1.25); }
}

main, .hero, .footer { position: relative; z-index: 1; }

/* ---------- Bulbs ---------- */
.bulb-frame { position: absolute; inset: 0; pointer-events: none; --chase: 1s; }
.bulb {
  position: absolute;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5b3a14 0%, #2b1a07 70%);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.7);
  animation: bulb var(--chase) steps(1) infinite;
}
@keyframes bulb {
  0%, 33% {
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fff0b5 28%, #ffbe3b 62%, #b06a08 100%);
    box-shadow: 0 0 6px 2px rgba(255, 190, 59, 0.85), 0 0 16px 4px rgba(255, 150, 30, 0.35);
  }
  34%, 100% {
    background: radial-gradient(circle at 35% 30%, #6a4415 0%, #2b1a07 70%);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.7);
  }
}
.bulb-frame.fast { --chase: 0.33s; }
.bulb-frame.flash .bulb { animation: bulb-flash 0.3s steps(1) infinite; animation-delay: 0s !important; }
.bulb-frame.rainbow .bulb { animation: bulb-flash 0.18s steps(1) infinite, hue 1.2s linear infinite; animation-delay: 0s !important; }
@keyframes bulb-flash {
  0%, 49% {
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fff0b5 28%, #ffbe3b 62%, #b06a08 100%);
    box-shadow: 0 0 8px 3px rgba(255, 190, 59, 0.9), 0 0 22px 6px rgba(255, 150, 30, 0.45);
  }
  50%, 100% {
    background: radial-gradient(circle at 35% 30%, #6a4415 0%, #2b1a07 70%);
    box-shadow: none;
  }
}
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 40px 16px 18px;
}
.sign {
  position: relative;
  display: inline-block;
  padding: 26px clamp(26px, 5vw, 64px) 24px;
  border-radius: 26px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 61, 154, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(40, 6, 18, 0.92), rgba(16, 3, 9, 0.92));
  box-shadow:
    0 0 0 2px rgba(246, 196, 83, 0.55),
    0 0 0 9px rgba(32, 8, 14, 0.95),
    0 0 0 11px rgba(246, 196, 83, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(255, 61, 154, 0.15);
  max-width: 100%;
}
.sign .bulb-frame { inset: 7px; }
.eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.neon {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 9.5vw, 116px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.neon-pink {
  color: #ffe1f0;
  text-shadow: 0 0 3px #fff, 0 0 10px var(--neon-pink), 0 0 24px var(--neon-pink), 0 0 54px var(--neon-pink), 0 0 90px rgba(255, 61, 154, 0.55);
}
.neon-gold {
  color: #fff4d4;
  text-shadow: 0 0 3px #fff, 0 0 10px var(--neon-amber), 0 0 24px var(--neon-amber), 0 0 54px #ff8a00, 0 0 90px rgba(255, 138, 0, 0.5);
}
.flicker { animation: flicker 6s linear infinite; }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.25; text-shadow: none; }
}
.tagline {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
}
.br-sm { display: none; }
.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 0;
  padding: 0;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.chip-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--ruby) 0 30deg, #fff 30deg 60deg);
  box-shadow: inset 0 0 0 3px var(--ruby), inset 0 0 0 5px #fff;
}

/* ---------- Stage ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(250px, 300px) auto minmax(250px, 300px);
  gap: 34px;
  align-items: start;
  justify-content: center;
  max-width: 1380px;
  margin: 26px auto 0;
  padding: 0 20px;
}

.panel {
  position: relative;
  border-radius: 22px;
  padding: 22px 20px 20px;
}
.felt {
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #0f5a40 0%, #0a3f2d 55%, #072a1e 100%);
  box-shadow:
    0 0 0 1px rgba(246, 196, 83, 0.6),
    0 0 0 5px rgba(20, 8, 4, 0.9),
    0 0 0 6px rgba(246, 196, 83, 0.35),
    0 24px 50px rgba(0, 0, 0, 0.5),
    inset 0 2px 30px rgba(0, 0, 0, 0.35);
}
.panel-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-3);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.suit { color: #111; text-shadow: 0 0 1px rgba(255, 255, 255, 0.5); margin-right: 4px; }
.suit.red { color: var(--ruby); }
.panel-sub { margin: 4px 0 16px; font-size: 13.5px; color: rgba(248, 239, 224, 0.72); }

/* Fields */
.field { display: block; border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.field-label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.field-hint { display: block; margin-top: 5px; font-size: 12px; color: rgba(248, 239, 224, 0.58); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field { margin-bottom: 14px; }

input[type="text"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(246, 196, 83, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { resize: vertical; min-height: 56px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: rgba(248, 239, 224, 0.38); }
input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.18);
}
.select { position: relative; display: block; }
.select::after {
  content: "";
  position: absolute;
  right: 13px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select { appearance: none; padding-right: 32px; cursor: pointer; }
select option { background: #1a0a10; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  background: rgba(0, 0, 0, 0.32);
  border: 1px dashed rgba(246, 196, 83, 0.4);
  transition: all 0.18s ease;
}
.chip:hover span { color: var(--ink); border-color: var(--gold); }
.chip input:checked + span {
  color: #2a0a10;
  font-weight: 700;
  background: radial-gradient(circle at 50% 30%, #fff6d2, var(--gold) 60%, var(--gold-2));
  border: 1px solid #fff1b8;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(246, 196, 83, 0.6), 0 4px 14px rgba(246, 196, 83, 0.25);
}
.chip input:focus-visible + span { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

/* ---------- Machine ---------- */
.machine-wrap {
  display: flex;
  justify-content: center;
  padding: 0 var(--lever-w);
}
.machine {
  position: relative;
  width: var(--mw);
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.65));
}

.crown {
  position: relative;
  margin: 0 6%;
  padding: 18px 18px 20px;
  text-align: center;
  border-radius: 26px 26px 6px 6px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #b0102f 0%, #7a0a22 60%, #4d0515 100%);
  box-shadow:
    inset 0 0 0 3px #f6c453,
    inset 0 0 0 6px #5a2a04,
    inset 0 0 0 7px rgba(246, 196, 83, 0.6);
}
.crown .bulb-frame { inset: 12px; }
.crown-sign {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #12040a, #2a0812);
  box-shadow: inset 0 0 0 2px rgba(246, 196, 83, 0.6), inset 0 6px 16px rgba(0, 0, 0, 0.8);
}
.crown-text {
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(16px, calc(var(--mw) * 0.055), 27px);
  letter-spacing: 0.14em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(246, 196, 83, 0.35));
}
.crown-star { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); font-size: 14px; }
.crown-sub {
  position: relative;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #ffd9e8;
  text-shadow: 0 0 8px var(--neon-pink);
}

.cabinet {
  position: relative;
  padding: 18px 18px 14px;
  border-radius: 26px;
  background:
    radial-gradient(140% 60% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.35)),
    linear-gradient(180deg, #a10d2b 0%, #730920 42%, #42040f 100%);
  box-shadow:
    inset 0 0 0 3px #f6c453,
    inset 0 0 0 7px #4d2203,
    inset 0 0 0 8px rgba(246, 196, 83, 0.55),
    inset 0 -20px 40px rgba(0, 0, 0, 0.35);
}

.bezel {
  position: relative;
  padding: 6px;
  border-radius: 20px;
  background: var(--gold-grad);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 8px;
  border-radius: 15px;
  background: linear-gradient(180deg, #0d0306, #24070f 50%, #0d0306);
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.9);
}
.reel {
  position: relative;
  height: calc(var(--cell) * 3);
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(90deg, #b9ab8e 0%, #f3ead6 18%, #fffaf0 50%, #f3ead6 82%, #b9ab8e 100%);
  transition: box-shadow 0.3s;
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 4, 8, 0.78) 0%, rgba(20, 4, 8, 0.18) 22%, transparent 38%, transparent 62%, rgba(20, 4, 8, 0.18) 78%, rgba(20, 4, 8, 0.78) 100%);
}
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.strip.blur { filter: url(#motion-blur); }
.cell {
  height: var(--cell);
  display: grid;
  place-items: center;
}
.cell svg { width: 74%; height: 74%; overflow: visible; }
.cell.hit svg { animation: hit 0.55s ease-in-out infinite alternate; }
@keyframes hit {
  from { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 211, 78, 0)); }
  to { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(255, 211, 78, 0.95)); }
}
.reel.anticipate {
  box-shadow: 0 0 0 3px var(--neon-pink), 0 0 26px 4px rgba(255, 61, 154, 0.75);
  animation: anticipate 0.35s ease-in-out infinite alternate;
}
@keyframes anticipate { to { box-shadow: 0 0 0 3px #fff, 0 0 40px 8px rgba(255, 61, 154, 0.95); } }
.reel.lit { box-shadow: 0 0 0 3px var(--tier-gold), 0 0 26px 4px rgba(255, 211, 78, 0.6); }

.payline {
  position: absolute;
  left: 2px; right: 2px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 154, 0.85) 6%, rgba(255, 61, 154, 0.85) 94%, transparent);
  box-shadow: 0 0 8px rgba(255, 61, 154, 0.9);
  pointer-events: none;
  opacity: 0.75;
}
.payline i {
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  border: 8px solid transparent;
  margin-top: -8px;
}
.payline i:first-child { left: -4px; border-left-color: var(--neon-pink); }
.payline i:last-child { right: -4px; border-right-color: var(--neon-pink); }
.glass {
  position: absolute;
  inset: 6px;
  border-radius: 15px;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.05) 100%);
}

.banner {
  position: absolute;
  inset: 6px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 15px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: radial-gradient(closest-side, rgba(10, 2, 6, 0.92), rgba(10, 2, 6, 0.7) 70%, rgba(10, 2, 6, 0.3));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  --tier: var(--tier-gold);
}
.banner.show { opacity: 1; transform: scale(1); }
.banner.long .banner-title { font-size: clamp(22px, calc(var(--mw) * 0.085), 44px); }
.banner-title {
  font-family: var(--font-display);
  font-size: clamp(26px, calc(var(--mw) * 0.115), 58px);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 14px var(--tier), 0 0 34px var(--tier), 0 0 70px var(--tier);
  animation: banner-pulse 0.5s ease-in-out infinite alternate;
}
.banner-sub {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(11px, calc(var(--mw) * 0.03), 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-3);
}
@keyframes banner-pulse { to { transform: scale(1.06); } }

/* LEDs */
.displays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.led {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px 7px;
  border-radius: 10px;
  background: linear-gradient(180deg, #050102, #160308);
  box-shadow: inset 0 0 0 1px rgba(246, 196, 83, 0.45), inset 0 3px 10px rgba(0, 0, 0, 0.9);
}
.led-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.led output {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(14px, calc(var(--mw) * 0.042), 21px);
  color: #ff5f5f;
  text-shadow: 0 0 6px rgba(255, 60, 60, 0.9), 0 0 16px rgba(255, 40, 40, 0.5);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#lastwin { color: #ffd34e; text-shadow: 0 0 6px rgba(255, 211, 78, 0.9), 0 0 16px rgba(255, 160, 40, 0.5); }

/* Streak */
.streak {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 225, 240, 0.75);
}
.streak-label { font-weight: 700; color: #ffd0e6; }
.streak-pips { display: inline-flex; gap: 7px; }
.streak-pips i {
  width: 11px; height: 11px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 154, 0.55);
  transition: all 0.3s;
}
.streak-pips i.on { background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink), inset 0 0 0 1px #ffd0e6; }
.streak-note { color: rgba(248, 239, 224, 0.55); letter-spacing: 0.08em; text-transform: none; font-size: 11.5px; }
.streak.full .streak-note { color: #fff; font-weight: 700; animation: blink 0.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 5%, 30px);
  margin-top: 14px;
}
.spin-btn {
  position: relative;
  width: clamp(74px, calc(var(--mw) * 0.2), 98px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #ff8f9f 0%, #e0193f 38%, #8d0723 80%, #5a0416 100%);
  box-shadow:
    0 0 0 4px #2a0a04,
    0 0 0 7px #f6c453,
    0 0 0 9px #6a3d06,
    0 8px 0 9px #3a1a02,
    0 14px 30px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(224, 25, 63, 0.5);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.2s;
  animation: spin-glow 1.6s ease-in-out infinite;
}
.spin-btn span {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(15px, calc(var(--mw) * 0.045), 21px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
.spin-btn::before {
  content: "";
  position: absolute;
  left: 22%; right: 22%; top: 10%;
  height: 26%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}
.spin-btn:hover { filter: brightness(1.08); }
.spin-btn:active, .spin-btn.pressed {
  transform: translateY(6px);
  box-shadow: 0 0 0 4px #2a0a04, 0 0 0 7px #f6c453, 0 0 0 9px #6a3d06, 0 2px 0 9px #3a1a02, 0 6px 16px rgba(0, 0, 0, 0.6);
}
.spin-btn:disabled { cursor: progress; filter: saturate(0.6) brightness(0.8); animation: none; }
@keyframes spin-glow {
  50% { box-shadow: 0 0 0 4px #2a0a04, 0 0 0 7px #f6c453, 0 0 0 9px #6a3d06, 0 8px 0 9px #3a1a02, 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 61, 120, 0.85); }
}

.toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-3);
  opacity: 0.9;
}
.toggle svg {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 50%;
  fill: none;
  stroke: #2a1a08;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: radial-gradient(circle at 40% 30%, #ffffff, #c9c9d2 55%, #7b7b86);
  box-shadow: 0 0 0 2px #3a1a02, 0 0 0 3px rgba(246, 196, 83, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
}
.toggle[aria-pressed="true"] svg {
  background: radial-gradient(circle at 40% 30%, #fff6d2, var(--gold) 55%, var(--gold-2));
  box-shadow: 0 0 0 2px #3a1a02, 0 0 0 3px #fff1b8, 0 0 16px rgba(246, 196, 83, 0.7);
}
#turbo-toggle svg path { fill: #2a1a08; stroke: none; }
#sound-toggle .off { display: none; }
#sound-toggle[aria-pressed="false"] .on { display: none; }
#sound-toggle[aria-pressed="false"] .off { display: inline; }

.hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 225, 230, 0.6);
}

.ticket-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
.ticket-slot-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.ticket-mouth {
  width: 64%;
  height: 10px;
  border-radius: 6px;
  background: #050102;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 1), 0 0 0 2px rgba(246, 196, 83, 0.55), 0 1px 0 3px rgba(0, 0, 0, 0.3);
}

.ticket-hold {
  position: relative;
  width: 58%;
  height: 0;
  margin: -12px auto 0;
  overflow: hidden;
  transition: height 1.3s steps(14);
  z-index: 2;
}
.ticket-hold.out { height: 136px; }
.ticket {
  display: block;
  width: 100%;
  height: 128px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0 0 8px 8px;
  text-align: left;
  cursor: pointer;
  color: #2a1a10;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 10%),
    radial-gradient(circle at 0 100%, transparent 6px, #fbf4e2 6.5px) left bottom / 51% 100% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 6px, #fbf4e2 6.5px) right bottom / 51% 100% no-repeat;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.35;
  transform: translateY(-100%);
  transition: transform 1.3s steps(14);
}
.ticket-hold.out .ticket { transform: translateY(0); }
.ticket .t-top { display: flex; justify-content: space-between; font-weight: 800; letter-spacing: 0.08em; }
.ticket .t-tier { font-size: 15px; font-weight: 800; margin: 3px 0 1px; letter-spacing: 0.1em; }
.ticket .t-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket .t-bar {
  height: 20px;
  margin: 6px 0 3px;
  background: repeating-linear-gradient(90deg, #2a1a10 0 2px, transparent 2px 3px, #2a1a10 3px 4px, transparent 4px 7px, #2a1a10 7px 10px, transparent 10px 11px);
}
.ticket .t-cta { font-weight: 800; color: #9b0d2a; letter-spacing: 0.06em; }

/* Lever */
.lever {
  position: absolute;
  right: calc(-1 * var(--lever-w) + 2px);
  top: 26%;
  width: var(--lever-w);
  height: calc(var(--L) * 2 + var(--knob));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 3;
}
.lever-mount {
  position: absolute;
  left: 0;
  top: calc(var(--knob) / 2 + var(--L) - 32px);
  width: 30px;
  height: 64px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #e9e9ee 0%, #8f8f99 45%, #4b4b53 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 6px 14px rgba(0, 0, 0, 0.5);
}
.lever-mount::after {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b5b5bf 50%, #55555e);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.lever-arm {
  position: absolute;
  left: 16px;
  top: calc(var(--knob) / 2);
  width: 10px;
  height: var(--L);
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lever-shaft {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: var(--chrome-grad);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.lever-knob {
  position: absolute;
  left: calc(21px - var(--knob) / 2);
  top: 0;
  width: var(--knob);
  height: var(--knob);
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: grab;
  background: radial-gradient(circle at 35% 28%, #ffd0d8 0%, #ff4d6a 22%, #d0143a 52%, #6a0418 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55), inset 0 -4px 8px rgba(0, 0, 0, 0.35), 0 0 18px rgba(224, 25, 63, 0.45);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}
.lever-knob:active { cursor: grabbing; }
.lever.dragging .lever-arm, .lever.dragging .lever-knob { transition: none; }
.lever.auto .lever-arm, .lever.auto .lever-knob { transition-duration: 0.24s; transition-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
.lever.locked .lever-knob { cursor: not-allowed; }

/* Paytable */
.pay-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  --tier: var(--tier-gold);
}
.pay-row.flash { animation: row-flash 0.4s ease-in-out 6 alternate; }
@keyframes row-flash { to { background: color-mix(in srgb, var(--tier) 30%, transparent); border-color: var(--tier); } }
.pay-syms { display: flex; gap: 2px; }
.pay-syms .ps {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffaf0, #e3d7bd);
}
.pay-syms .ps svg { width: 22px; height: 22px; }
.pay-syms .ps.any {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 12px;
  color: #6a3d06;
}
.pay-syms .ps.dim { opacity: 0.45; }
.pay-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tier);
}
.pay-odds { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: rgba(248, 239, 224, 0.6); letter-spacing: 0; }
.pay-desc { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: rgba(248, 239, 224, 0.78); }
.pay-desc em { color: var(--tier); font-style: normal; font-weight: 600; white-space: nowrap; }
.pay-bonus {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(246, 196, 83, 0.55);
  background: rgba(246, 196, 83, 0.07);
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(248, 239, 224, 0.82);
}
.pay-bonus strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-3);
}

/* ---------- Results ---------- */
.results {
  max-width: 980px;
  margin: 64px auto 0;
  padding: 0 20px;
  scroll-margin-top: 20px;
}
.result-card {
  --tier: var(--tier-gold);
  position: relative;
  padding: 28px clamp(18px, 4vw, 36px) 24px;
  border-radius: 26px;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--tier) 14%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(34, 8, 18, 0.96), rgba(14, 4, 9, 0.97));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--tier) 55%, transparent),
    0 0 0 6px rgba(20, 6, 10, 0.9),
    0 0 0 7px rgba(246, 196, 83, 0.3),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 80px color-mix(in srgb, var(--tier) 18%, transparent);
  animation: card-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(0.98); } }
.result-head { display: flex; align-items: center; gap: 20px; }
.tier-badge {
  flex: none;
  width: 92px; height: 92px;
  padding: 7px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--tier) 0 22.5deg, #fff8e6 22.5deg 45deg);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 30px color-mix(in srgb, var(--tier) 45%, transparent);
}
.tier-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tier) 55%, white), var(--tier) 58%, color-mix(in srgb, var(--tier) 62%, black));
  color: #1c0a0f;
  text-align: center;
  line-height: 1.05;
}
.tier-badge-inner b { font-family: var(--font-head); font-weight: 900; font-size: 13px; letter-spacing: 0; text-transform: uppercase; }
.tier-badge-inner small { font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; max-width: 60px; }
.result-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tier);
}
.result-title {
  margin: 2px 0 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  color: var(--ink);
}
.result-meta { margin: 0; font-size: 13.5px; color: var(--ink-dim); }

.ingredients { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.ing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(246, 196, 83, 0.25);
  font-size: 12.5px;
  color: var(--ink-dim);
}
.ing .ing-sym {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffaf0, #e3d7bd);
}
.ing .ing-sym svg { width: 22px; height: 22px; }
.ing b { color: var(--ink); font-weight: 600; }
.ing.boost {
  padding-left: 12px;
  color: #2a0a10;
  background: var(--gold-grad);
  border-color: #fff1b8;
  font-weight: 700;
}
.ing.boost b { color: #2a0a10; }

.result-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(246, 196, 83, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { border-color: var(--gold); background: rgba(246, 196, 83, 0.1); }
.btn-gold {
  color: #2a0a10;
  border-color: #fff1b8;
  background: var(--gold-grad);
  background-size: 200% 100%;
  box-shadow: 0 6px 18px rgba(246, 196, 83, 0.25);
}
.btn-gold:hover { background: var(--gold-grad); background-position: 100% 0; filter: brightness(1.06); }
.btn-gold.copied { background: linear-gradient(135deg, #b8f27c, #2fa84f); border-color: #d8ffb0; }
.btn-ghost { border-color: transparent; background: none; color: var(--ink-dim); margin-left: auto; }
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); border-color: transparent; }
.view-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.view-switch button {
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
}
.view-switch button[aria-selected="true"] { background: rgba(246, 196, 83, 0.16); color: var(--gold-3); }

.script, .script-raw {
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 18px;
  background: rgba(5, 1, 3, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  max-height: 72vh;
  overflow: auto;
  scrollbar-color: rgba(246, 196, 83, 0.5) transparent;
}
.script { font-size: 15px; line-height: 1.65; color: var(--ink); }
.script > :first-child { margin-top: 0; }
.script h3 { display: none; }
.script h4 {
  margin: 26px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(246, 196, 83, 0.22);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.script h5 {
  margin: 18px 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffd0e6;
}
.script p { margin: 0 0 10px; }
.script ul { margin: 0 0 10px; padding-left: 0; list-style: none; }
.script li { position: relative; padding-left: 20px; margin-bottom: 5px; }
.script li::before {
  content: "";
  position: absolute;
  left: 3px; top: 0.62em;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.8;
}
.script ol { margin: 0 0 10px; padding-left: 22px; }
.script ol li { padding-left: 4px; }
.script ol li::before { display: none; }
.script strong { color: #fff6e2; font-weight: 700; }
.script em { color: var(--ink-dim); }
.script code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold-3);
  white-space: nowrap;
}
.script .swatch {
  display: inline-block;
  width: 0.9em; height: 0.9em;
  margin-right: 5px;
  vertical-align: -0.1em;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.script-raw {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #f1e6d2;
}
.result-foot { margin: 12px 4px 0; font-size: 13px; color: var(--ink-mute); }
.result-foot b { color: var(--ink-dim); }

.stubs { margin-top: 30px; }
.stubs-title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-3);
}
.stubs-title small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-mute);
}
.stubs-list {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.stub {
  --tier: var(--tier-gold);
  flex: none;
  width: 190px;
  padding: 10px 12px 12px;
  border: 0;
  border-left: 5px solid var(--tier);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #fbf4e2, #efe4c9);
  color: #2a1a10;
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}
.stub:hover { transform: translateY(-3px); }
.stub.active { outline: 2px solid var(--gold); outline-offset: 2px; }
.stub b { display: block; font-size: 12px; letter-spacing: 0.08em; }
.stub span { display: block; margin-top: 3px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stub small { display: block; margin-top: 4px; opacity: 0.65; }

/* ---------- Info sections ---------- */
.info {
  max-width: 1120px;
  margin: 96px auto 0;
  padding: 0 20px;
}
.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title::before, .section-title::after {
  content: "♠";
  display: inline-block;
  margin: 0 14px;
  font-size: 0.55em;
  vertical-align: 0.25em;
  color: var(--ruby);
  -webkit-text-fill-color: var(--ruby);
}
.section-title::after { content: "♥"; }
.section-sub { margin: 8px auto 0; max-width: 640px; text-align: center; color: var(--ink-dim); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
}
.step { position: relative; padding: 34px 22px 22px; border-radius: 20px; text-align: center; }
.step-chip {
  position: absolute;
  left: 50%; top: -26px;
  width: 52px; height: 52px;
  margin-left: -26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  background:
    radial-gradient(circle, var(--ruby) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--ruby) 0 22.5deg, #fff 22.5deg 45deg);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.5);
}
.step:nth-child(2) .step-chip { background: radial-gradient(circle, #1a1a22 0 52%, transparent 53%), repeating-conic-gradient(#1a1a22 0 22.5deg, #fff 22.5deg 45deg); }
.step:nth-child(3) .step-chip { background: radial-gradient(circle, #1565c0 0 52%, transparent 53%), repeating-conic-gradient(#1565c0 0 22.5deg, #fff 22.5deg 45deg); }
.step h3 {
  margin: 4px 0 6px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-3);
}
.step p { margin: 0; font-size: 14.5px; color: rgba(248, 239, 224, 0.82); }

.symbol-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
}
.sym-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 8, 20, 0.85), rgba(18, 4, 10, 0.9));
  border: 1px solid rgba(246, 196, 83, 0.2);
  transition: border-color 0.2s, transform 0.2s;
}
.sym-card:hover { border-color: rgba(246, 196, 83, 0.6); transform: translateY(-2px); }
.sym-card .sym-face {
  grid-row: span 2;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(90deg, #d8cbb0, #fffaf0 50%, #d8cbb0);
  box-shadow: inset 0 0 0 2px rgba(246, 196, 83, 0.7);
}
.sym-card .sym-face svg { width: 44px; height: 44px; }
.sym-card b { font-family: var(--font-head); font-weight: 900; font-size: 14.5px; letter-spacing: 0.05em; color: var(--gold-3); }
.sym-card span { font-size: 12.5px; line-height: 1.4; color: var(--ink-dim); }

.tool-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
}
.tool-grid a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(246, 196, 83, 0.22);
  transition: all 0.2s ease;
}
.tool-grid a:hover { border-color: var(--gold); background: rgba(246, 196, 83, 0.08); box-shadow: 0 0 24px rgba(246, 196, 83, 0.15); }
.tool-grid b { display: block; color: var(--ink); font-size: 15.5px; }
.tool-grid b::after { content: " ↗"; color: var(--gold); font-weight: 400; }
.tool-grid span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-mute); }

.faq-list { display: grid; gap: 10px; max-width: 780px; margin: 30px auto 0; }
.faq details {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(246, 196, 83, 0.2);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(246, 196, 83, 0.5); background: rgba(13, 74, 53, 0.35); }
.faq summary {
  position: relative;
  padding: 15px 48px 15px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-dim); font-size: 14.5px; }

.footer {
  margin-top: 90px;
  padding: 30px 20px 40px;
  text-align: center;
  border-top: 1px solid rgba(246, 196, 83, 0.15);
  color: var(--ink-mute);
  font-size: 14px;
}
.footer p { margin: 4px 0; }
.neon-mini { font-family: var(--font-display); color: #ffe1f0; text-shadow: 0 0 8px var(--neon-pink); font-size: 16px; }
.footer-small { font-size: 12px; opacity: 0.8; }

/* ---------- Wheel modal ---------- */
.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 40%, rgba(60, 6, 22, 0.75), rgba(4, 0, 2, 0.92) 70%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in 0.3s ease;
}
.wheel-modal[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.wheel-inner {
  width: min(540px, 100%);
  padding: 22px 20px 20px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 61, 154, 0.18), transparent 60%),
    linear-gradient(180deg, #2a0712, #12030a);
  box-shadow:
    0 0 0 2px rgba(246, 196, 83, 0.7),
    0 0 0 8px rgba(30, 6, 12, 0.95),
    0 0 0 9px rgba(246, 196, 83, 0.35),
    0 40px 100px rgba(0, 0, 0, 0.7);
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.8); } }
.wheel-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); }
.wheel-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 48px);
  color: #fff4d4;
  text-shadow: 0 0 3px #fff, 0 0 12px var(--neon-amber), 0 0 30px #ff8a00;
}
.wheel-stage {
  position: relative;
  width: min(400px, 82vw, 58vh);
  aspect-ratio: 1;
  margin: 18px auto 0;
}
.wheel-svg, .wheel-svg svg { width: 100%; height: 100%; display: block; }
.wheel-svg svg { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.wheel-pointer {
  position: absolute;
  left: 50%; top: -18px;
  width: 38px; height: 52px;
  margin-left: -19px;
  z-index: 3;
  transform-origin: 50% 22%;
  background: var(--gold-grad);
  clip-path: polygon(50% 100%, 6% 30%, 12% 12%, 30% 2%, 70% 2%, 88% 12%, 94% 30%);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}
.wheel-pointer::after {
  content: "";
  position: absolute;
  left: 50%; top: 22%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ruby);
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.4);
}
.wheel-hub {
  position: absolute;
  left: 50%; top: 50%;
  width: 21%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #ff8f9f 0%, #e0193f 40%, #7d0620 100%);
  box-shadow: 0 0 0 4px #f6c453, 0 0 0 7px #4d2203, 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(224, 25, 63, 0.6);
  animation: spin-glow-hub 1.2s ease-in-out infinite;
}
.wheel-hub span {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(14px, 3.5vw, 20px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.wheel-hub:disabled { cursor: default; animation: none; }
@keyframes spin-glow-hub { 50% { box-shadow: 0 0 0 4px #fff1b8, 0 0 0 7px #4d2203, 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 61, 120, 0.9); } }
.wheel-svg .seg.won { animation: seg-won 0.35s ease-in-out infinite alternate; }
@keyframes seg-won { to { filter: brightness(1.6) saturate(1.2); } }
.wheel-svg .rim-bulb { fill: #fff2b0; animation: wbulb 0.9s steps(1) infinite; }
.wheel-svg .rim-bulb.odd { animation-delay: -0.45s; }
.wheel-svg.spinning .rim-bulb { animation-duration: 0.24s; }
.wheel-svg.spinning .rim-bulb.odd { animation-delay: -0.12s; }
@keyframes wbulb { 0%, 49% { fill: #fff2b0; } 50%, 100% { fill: #5a3a10; } }
.wheel-hint { margin: 14px 0 0; font-size: 13px; color: var(--ink-mute); }
.wheel-prize { margin-top: 16px; animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wheel-prize-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--neon-pink); }
.wheel-prize-name {
  margin: 2px 0 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wheel-prize-desc { margin: 0 auto 14px; max-width: 380px; color: var(--ink-dim); font-size: 14.5px; }

/* ---------- FX, toast ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 70;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1b8, #f6c453);
  color: #2a0a10;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.shake .machine { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) 2; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  .stage { grid-template-columns: repeat(2, minmax(0, 420px)); }
  .machine-wrap { grid-column: 1 / -1; order: -1; }
  .symbol-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --lever-w: 46px; --mw: min(500px, calc(100vw - 32px - var(--lever-w))); }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 26px; }
  .machine-wrap { padding: 0 var(--lever-w) 0 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .symbol-grid, .tool-grid { grid-template-columns: 1fr; }
  .results, .info { padding: 0 16px; }
  .info { margin-top: 72px; }
  .result-head { gap: 14px; }
  .tier-badge { width: 74px; height: 74px; padding: 6px; }
  .tier-badge-inner b { font-size: 10.5px; }
  .tier-badge-inner small { display: none; }
  .btn-ghost { margin-left: 0; }
  .br-sm { display: inline; }
  .lever-mount { width: 24px; }
  .lever-mount::after { left: 6px; width: 18px; height: 18px; margin-top: -9px; }
  .lever-arm { left: 13px; width: 8px; }
  .lever-knob { left: calc(17px - var(--knob) / 2); }
  .section-title::before, .section-title::after { margin: 0 8px; }
}
@media (max-width: 560px) {
  .sign { padding: 22px 18px 20px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.2em; }
  .neon { white-space: normal; font-size: clamp(34px, 12.5vw, 64px); line-height: 1.12; }
  .neon > span { display: block; }
  .crown-sign { gap: 6px; padding: 7px 10px; }
  .crown-text { letter-spacing: 0.08em; }
  .crown-sub { font-size: 9.5px; letter-spacing: 0.18em; }
}
@media (max-width: 420px) {
  .cabinet { padding: 14px 12px 12px; }
  .crown { padding: 16px 10px 18px; }
  .reels { gap: 5px; padding: 6px; }
  .displays { gap: 5px; }
  .led-label { font-size: 8px; letter-spacing: 0.12em; }
  .toggle svg { width: 36px; height: 36px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient span, .flicker, .spin-btn, .wheel-hub { animation: none !important; }
  html { scroll-behavior: auto; }
}
