/* Slot Lounge — shared styles; each game sets its palette via body[data-theme] */
:root, body[data-theme="lobby"], body[data-theme="inferno"] {
  --bg: radial-gradient(ellipse at 50% 110%, #5a0d06 0%, #2a0507 35%, #0b0203 75%);
  --bg-solid: #0b0203;
  --bg-fs: radial-gradient(ellipse at 50% 110%, #3c0f63 0%, #1d0630 38%, #07020c 78%);
  --accent: #ff7a1a; --accent-2: #ffd166; --accent-fs: #c77dff; --accent-2-fs: #ffe066;
  --gold-d: #a86b00; --ink: #2a0d0a; --text: #fbe9d2; --muted: #c9a98c;
  --line: #5a2320; --line2: #4a1d18; --btn: #2a0b0b; --btn2: #1c0707;
  --panel-a: #2a0c0c; --panel-b: #140404; --panel: rgba(24, 6, 8, .94);
  --reel-a: #0d0304; --reel-b: #2a0a0b; --frame-a: #2f1715; --frame-b: #291311; --frame-edge: #120505;
  --glow: rgba(255, 77, 0, .45); --lava: rgba(255, 90, 0, .55); --lava-fs: rgba(157, 78, 221, .55);
  --title-grad: linear-gradient(to bottom, #fff3b0, #ffb703 40%, #ff4d00 70%, #9d0208);
  --title-grad-fs: linear-gradient(to bottom, #fff9db, #ffe066 40%, #c77dff 72%, #5a189a);
  --spin-grad: radial-gradient(circle at 35% 30%, #ffe38a, #ff8c1a 45%, #b3130b 80%);
  --spin-grad-fs: radial-gradient(circle at 35% 30%, #fff3bf, #c77dff 45%, #3c096c 85%);
  --display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --serif: 'Cinzel', Georgia, serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --reels-w: min(calc(100vw - 110px), 760px, calc((100svh - 360px) * 1.6667));
}
body[data-theme="city"] {
  --bg: linear-gradient(to bottom, #0a1330 0%, #1b2a5a 55%, #3a3f7a 100%);
  --bg-solid: #0a1330;
  --bg-fs: linear-gradient(to bottom, #051a2a 0%, #0b4a6a 60%, #1f8aa8 100%);
  --accent: #ffb000; --accent-2: #ffe066; --accent-fs: #2ee6d6; --accent-2-fs: #ffe066;
  --gold-d: #c98a00; --ink: #101a33; --text: #eaf1ff; --muted: #9fb0d6;
  --line: #2c3f70; --line2: #22335c; --btn: #13204a; --btn2: #0c1636;
  --panel-a: #16244d; --panel-b: #0a1330; --panel: rgba(10, 19, 48, .95);
  --reel-a: #070d22; --reel-b: #15224a; --frame-a: #3a4a6e; --frame-b: #2c3a5c; --frame-edge: #070d22;
  --glow: rgba(255, 190, 0, .4); --lava: rgba(255, 176, 0, .35); --lava-fs: rgba(46, 230, 214, .45);
  --title-grad: linear-gradient(to bottom, #ffffff, #ffe066 45%, #ffb000 75%, #b36b00);
  --title-grad-fs: linear-gradient(to bottom, #ffffff, #b3fff7 45%, #2ee6d6 75%, #0b7a73);
  --spin-grad: radial-gradient(circle at 35% 30%, #fff6b0, #ffc400 45%, #d97a00 85%);
  --spin-grad-fs: radial-gradient(circle at 35% 30%, #e6fffb, #2ee6d6 45%, #0b5a73 85%);
  --display: 'Arial Black', 'Inter', sans-serif; --serif: 'Inter', sans-serif;
}
body[data-theme="space"] {
  --bg: radial-gradient(ellipse at 30% 20%, #2a0f5a 0%, #0b0626 45%, #020108 85%);
  --bg-solid: #020108;
  --bg-fs: radial-gradient(ellipse at 50% 30%, #5a0f4a 0%, #1a0626 45%, #020108 85%);
  --accent: #ff5ec4; --accent-2: #7ee8ff; --accent-fs: #ffb13b; --accent-2-fs: #fff3b0;
  --gold-d: #7b5cff; --ink: #0b0626; --text: #eef0ff; --muted: #a9a3d9;
  --line: #3a2a7a; --line2: #2a1f5c; --btn: #150c3a; --btn2: #0c0626;
  --panel-a: #1a0f45; --panel-b: #0a0520; --panel: rgba(10, 5, 32, .95);
  --reel-a: #030112; --reel-b: #140a3a; --frame-a: #241a5a; --frame-b: #1c144a; --frame-edge: #05020f;
  --glow: rgba(126, 232, 255, .4); --lava: rgba(123, 44, 191, .45); --lava-fs: rgba(255, 94, 196, .45);
  --title-grad: linear-gradient(to bottom, #ffffff, #7ee8ff 45%, #a970ff 75%, #5a189a);
  --title-grad-fs: linear-gradient(to bottom, #ffffff, #fff3b0 40%, #ffb13b 70%, #ff5ec4);
  --spin-grad: radial-gradient(circle at 35% 30%, #e0fbff, #5b8cff 45%, #3a0f8a 85%);
  --spin-grad-fs: radial-gradient(circle at 35% 30%, #fff6d0, #ff5ec4 45%, #7a0f5a 85%);
  --display: 'Orbitron', 'Arial Black', sans-serif; --serif: 'Orbitron', 'Inter', sans-serif;
}
body[data-theme="west"] {
  --bg: linear-gradient(to bottom, #f08a3c 0%, #b8471f 35%, #4a1a0a 75%, #1e0a04 100%);
  --bg-solid: #1e0a04;
  --bg-fs: linear-gradient(to bottom, #3a1a5a 0%, #8a3a2a 40%, #2a0f06 100%);
  --accent: #e0a13a; --accent-2: #ffe08a; --accent-fs: #ff7a3c; --accent-2-fs: #fff4c9;
  --gold-d: #9c6a0c; --ink: #2b1608; --text: #fbefd8; --muted: #d8b98a;
  --line: #7a4a24; --line2: #5a3418; --btn: #3a1f0c; --btn2: #2b1608;
  --panel-a: #4a2812; --panel-b: #24110a; --panel: rgba(36, 17, 10, .95);
  --reel-a: #1e0f06; --reel-b: #4a2a14; --frame-a: #6b4020; --frame-b: #5a3418; --frame-edge: #1e0f06;
  --glow: rgba(240, 160, 60, .4); --lava: rgba(255, 140, 50, .35); --lava-fs: rgba(255, 90, 60, .45);
  --title-grad: linear-gradient(to bottom, #fff4c9, #f0c24b 45%, #c9731f 75%, #6b2a0a);
  --title-grad-fs: linear-gradient(to bottom, #ffffff, #ffe08a 40%, #ff7a3c 75%, #8a1a0a);
  --spin-grad: radial-gradient(circle at 35% 30%, #fff1cc, #e0a13a 45%, #7a3a0a 85%);
  --spin-grad-fs: radial-gradient(circle at 35% 30%, #fff4c9, #ff7a3c 45%, #7a1a0a 85%);
  --display: 'Rye', Georgia, serif; --serif: 'Rye', Georgia, serif;
}
body[data-theme="derby"] {
  --bg: linear-gradient(to bottom, #7fc8f0 0%, #b8e2f5 30%, #2e7a4a 62%, #0f3b22 100%);
  --bg-solid: #0f3b22;
  --bg-fs: linear-gradient(to bottom, #f2c230 0%, #d68a1a 35%, #1f5a34 70%, #0a2a16 100%);
  --accent: #d62839; --accent-2: #ffe066; --accent-fs: #d62839; --accent-2-fs: #fff6d0;
  --gold-d: #9a6c00; --ink: #10231a; --text: #f4fff6; --muted: #b8dcc4;
  --line: #2e6a44; --line2: #1f5234; --btn: #123a24; --btn2: #0c2a1a;
  --panel-a: #164a2c; --panel-b: #0a2616; --panel: rgba(10, 38, 22, .95);
  --reel-a: #f4efe0; --reel-b: #fffdf5; --frame-a: #1f5a34; --frame-b: #184a2a; --frame-edge: #0a2616;
  --glow: rgba(255, 224, 102, .45); --lava: rgba(46, 158, 87, .3); --lava-fs: rgba(242, 194, 48, .45);
  --title-grad: linear-gradient(to bottom, #ffffff, #fff3a8 40%, #f2c230 70%, #9a6c00);
  --title-grad-fs: linear-gradient(to bottom, #ffffff, #ffd6d6 40%, #d62839 75%, #6a0d1a);
  --spin-grad: radial-gradient(circle at 35% 30%, #ffd6d6, #d62839 45%, #6a0d1a 85%);
  --spin-grad-fs: radial-gradient(circle at 35% 30%, #fff6d0, #f2c230 45%, #7a5200 85%);
  --display: 'Playfair Display', Georgia, serif; --serif: 'Playfair Display', Georgia, serif;
}
body[data-theme="derby"] .reel { box-shadow: inset 0 8px 14px rgba(0, 0, 0, .25), inset 0 -8px 14px rgba(0, 0, 0, .25); }
body[data-theme="derby"] .reel::after { background: linear-gradient(to bottom, rgba(0, 0, 0, .18), transparent 16%, transparent 84%, rgba(0, 0, 0, .18)); }
body[data-theme="afterdark"] {
  --bg: radial-gradient(ellipse at 50% 100%, #5a0a3a 0%, #2a0420 40%, #0a0108 80%);
  --bg-solid: #0a0108;
  --bg-fs: radial-gradient(ellipse at 50% 100%, #7a5a0a 0%, #3a1a10 40%, #0a0308 80%);
  --accent: #ff3fae; --accent-2: #ffd6f0; --accent-fs: #f5c04a; --accent-2-fs: #fff6d6;
  --gold-d: #b3136e; --ink: #1a0418; --text: #ffeef8; --muted: #d9a3c4;
  --line: #5a1a4a; --line2: #4a1238; --btn: #2a0824; --btn2: #1a0418;
  --panel-a: #2e0a2a; --panel-b: #140312; --panel: rgba(20, 3, 18, .95);
  --reel-a: #0a0108; --reel-b: #2a0624; --frame-a: #3a0a32; --frame-b: #2e0828; --frame-edge: #0a0108;
  --glow: rgba(255, 63, 174, .5); --lava: rgba(255, 63, 174, .35); --lava-fs: rgba(245, 192, 74, .45);
  --title-grad: linear-gradient(to bottom, #ffffff, #ffd6f0 35%, #ff3fae 70%, #8a0055);
  --title-grad-fs: linear-gradient(to bottom, #ffffff, #fff6d6 40%, #f5c04a 70%, #9a6400);
  --spin-grad: radial-gradient(circle at 35% 30%, #ffe0f4, #ff3fae 45%, #6a0040 85%);
  --spin-grad-fs: radial-gradient(circle at 35% 30%, #fff6d6, #f5c04a 45%, #7a4a00 85%);
  --display: 'Pacifico', cursive; --serif: 'Inter', sans-serif;
}
body.fs-mode { --accent: var(--accent-fs); --accent-2: var(--accent-2-fs); --lava: var(--lava-fs); --title-grad: var(--title-grad-fs); --spin-grad: var(--spin-grad-fs); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); background-color: var(--bg-solid); background-attachment: fixed;
  color: var(--text); font-family: var(--ui); overflow-x: hidden; min-height: 100svh;
  -webkit-tap-highlight-color: transparent;
}
body.fs-mode { background: var(--bg-fs); background-color: var(--bg-solid); background-attachment: fixed; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
a { color: var(--accent-2); }

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#scenery .scene { position: absolute; bottom: 0; left: 0; width: 100%; height: 40vh; }
#scenery .scene.tall { height: 100%; }
.lava { position: absolute; bottom: 0; left: 0; right: 0; height: 16vh; background: linear-gradient(to top, var(--lava), transparent); filter: blur(6px); animation: lavaPulse 4s ease-in-out infinite; }
@keyframes lavaPulse { 50% { opacity: .6; } }
#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #0b0203; }
.loader-inner { text-align: center; width: min(420px, 86vw); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .95; margin-bottom: 28px; }
.dante { font-family: var(--serif); font-weight: 700; letter-spacing: .3em; color: var(--accent-2); font-size: .5em; text-transform: uppercase; }
.inferno {
  font-family: var(--display); font-weight: 900; background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 0 14px var(--glow));
}
.logo .dante { font-size: 18px; } .logo .inferno { font-size: 50px; }
.loader-bar { height: 10px; border-radius: 6px; background: #2a0a0a; overflow: hidden; }
#loaderFill { height: 100%; background: linear-gradient(90deg, #9d0208, #ff7a1a, #ffd166); animation: loadPulse 1.2s ease-in-out infinite alternate; }
@keyframes loadPulse { to { opacity: .5; } }
#loaderText { color: #c9a98c; font-size: 14px; margin-top: 14px; }

/* ---------- Shell ---------- */
#app { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; min-height: 100svh; padding: 8px 12px 10px; gap: 6px; }
.topbar { width: min(100%, 1040px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand h1 { margin: 0; display: flex; flex-direction: column; line-height: .95; min-width: 0; }
.brand .dante { font-size: 11px; white-space: nowrap; }
.brand .inferno { font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-theme="lobby"] #btnLobby { display: none; }
.wallet { display: flex; align-items: center; gap: 10px; }
.mode-switch { display: flex; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.mode-switch button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.mode-switch button.on { background: linear-gradient(to bottom, var(--accent-2), var(--accent)); color: var(--ink); box-shadow: 0 0 12px var(--glow); }
.mode-switch .srv { font-style: normal; font-size: 8px; vertical-align: middle; color: #3ddc84; }
.mode-switch .locked { padding: 6px 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.balance-box { display: flex; flex-direction: column; align-items: flex-end; min-width: 130px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); border-radius: 12px; padding: 5px 12px; }
.lbl { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.balance-box strong { font-size: 19px; font-variant-numeric: tabular-nums; color: var(--accent-2); white-space: nowrap; }
.tools { display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--gold-d); background: radial-gradient(circle at 35% 30%, var(--line), var(--btn2)); color: var(--accent-2); font-weight: 900; font-size: 17px; box-shadow: 0 2px 0 var(--ink), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform .12s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn.off { color: var(--muted); opacity: .6; }
.icon-btn.on { box-shadow: 0 0 0 2px #3ddc84, 0 2px 0 var(--ink); }

/* ---------- Lobby ---------- */
.lobby { width: min(100%, 1040px); padding: 10px 0 20px; }
.lobby-title { font-family: 'Cinzel Decorative', Georgia, serif; text-align: center; color: #ffd166; font-size: 26px; margin: 10px 0 18px; text-shadow: 0 2px 0 #2a0d0a, 0 0 18px rgba(255, 120, 0, .5); }
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.game-card { display: flex; flex-direction: column; text-decoration: none; color: #fff; border-radius: 20px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .15); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .18s, box-shadow .18s; background: #1a0a0a; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .6), 0 0 24px rgba(255, 200, 80, .35); }
.game-card.disabled { filter: grayscale(.9) brightness(.6); cursor: not-allowed; }
.card-art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; }
.card-sym.main { width: 128px; height: 128px; position: relative; z-index: 1; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); transition: transform .25s; }
.card-sym.side { position: absolute; right: 8px; bottom: 6px; width: 70px; height: 70px; opacity: .95; transform: rotate(10deg); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
.game-card:hover .card-sym.main { transform: scale(1.08) rotate(-3deg); }
.card-body { padding: 12px 14px 14px; background: rgba(0, 0, 0, .45); flex: 1; }
.card-body h3 { margin: 0; font-size: 19px; }
.card-body p { margin: 2px 0 8px; font-size: 13px; opacity: .8; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.card-tags .adult, .pill-18 { background: #d0102a; color: #fff; }
.pill-18 { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
.card-tags .off { background: #555; }
[data-theme-card="inferno"] .card-art { background: radial-gradient(circle at 50% 80%, #b3130b, #2a0507 75%); }
[data-theme-card="inferno"] h3 { font-family: 'Cinzel Decorative', serif; color: #ffd166; }
[data-theme-card="city"] .card-art { background: linear-gradient(to bottom, #1b2a5a, #3a3f7a); }
[data-theme-card="city"] h3 { font-family: 'Arial Black', sans-serif; color: #ffe066; }
[data-theme-card="space"] .card-art { background: radial-gradient(circle at 30% 30%, #5a1f9a, #0b0626 70%); }
[data-theme-card="space"] h3 { font-family: 'Orbitron', sans-serif; color: #7ee8ff; }
[data-theme-card="west"] .card-art { background: linear-gradient(to bottom, #f08a3c, #7a2a0a); }
[data-theme-card="west"] h3 { font-family: 'Rye', serif; color: #ffe08a; }
[data-theme-card="derby"] .card-art { background: linear-gradient(to bottom, #7fc8f0, #2e7a4a); }
[data-theme-card="derby"] h3 { font-family: 'Playfair Display', serif; color: #fff3a8; }
[data-theme-card="afterdark"] .card-art { background: radial-gradient(circle at 50% 70%, #a0105a, #1a0418 75%); }
[data-theme-card="afterdark"] h3 { font-family: 'Pacifico', cursive; font-weight: 400; color: #ffd6f0; }

/* ---------- Machine ---------- */
.machine { display: flex; flex-direction: column; align-items: center; width: 100%; }
.game-tag { margin: -2px 0 0; font-family: var(--serif); font-size: 11px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.gate { width: calc(var(--reels-w) + 90px); max-width: 100%; margin-bottom: -18px; position: relative; z-index: 3; }
.gate svg { width: 100%; height: auto; display: block; }
.inscription { font-family: var(--serif); font-weight: 900; font-size: 25px; letter-spacing: 2px; fill: var(--accent-2); stroke: var(--ink); stroke-width: 5px; paint-order: stroke; }
.status-row { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; position: relative; z-index: 4; }
.ladder { display: flex; gap: 6px; }
.ladder .step { min-width: 46px; padding: 5px 8px; text-align: center; border-radius: 9px; font-family: var(--display); font-weight: 900; font-size: 15px; background: var(--btn2); border: 2px solid var(--line2); color: var(--muted); opacity: .7; transition: all .25s; }
.ladder .step.on { background: linear-gradient(to bottom, var(--accent-2), var(--accent)); color: var(--ink); border-color: #fff; opacity: 1; box-shadow: 0 0 16px var(--glow); transform: scale(1.08); }
.ladder .step.passed { opacity: .9; }
.ladder-label { align-self: center; font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-right: 4px; }
.fs-banner { display: flex; gap: 16px; align-items: center; padding: 6px 16px; border-radius: 999px; background: linear-gradient(to bottom, var(--panel-a), var(--panel-b)); border: 2px solid var(--accent-2); box-shadow: 0 0 22px var(--glow); font-weight: 800; font-size: 14px; }
.fs-banner .fs-title { font-family: var(--display); color: var(--accent-2); font-size: 16px; }
.fs-banner em { font-style: normal; font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.fs-banner b { color: #fff; font-variant-numeric: tabular-nums; }
.fs-banner b.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.45); color: var(--accent-2); } }

.reel-frame {
  position: relative; display: flex; align-items: stretch; gap: 6px; padding: 16px 8px; border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 40%), repeating-linear-gradient(35deg, var(--frame-a) 0 14px, var(--frame-b) 14px 28px);
  border: 4px solid var(--frame-edge);
  box-shadow: 0 0 0 3px var(--accent-2), 0 0 0 6px var(--frame-edge), 0 0 40px 6px var(--glow), inset 0 0 30px rgba(0, 0, 0, .8);
}
.line-markers { position: relative; width: 26px; }
.line-markers span { position: absolute; left: 0; width: 26px; height: 22px; margin-top: -11px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 1.5px solid rgba(0, 0, 0, .6); opacity: .8; transition: all .2s; }
.line-markers span i { font-style: normal; color: #1a0505; }
.line-markers span.on { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px currentColor; z-index: 2; }
.reels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: var(--reels-w); aspect-ratio: 5 / 3; }
.reel { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(to bottom, var(--reel-a), var(--reel-b) 50%, var(--reel-a)); box-shadow: inset 0 10px 18px rgba(0, 0, 0, .9), inset 0 -10px 18px rgba(0, 0, 0, .9); }
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 12px; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 18%, transparent 82%, rgba(0, 0, 0, .55)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.reel.tease { box-shadow: inset 0 0 30px var(--accent-2), 0 0 24px 4px var(--accent); animation: teaseGlow .35s ease-in-out infinite alternate; }
@keyframes teaseGlow { to { box-shadow: inset 0 0 40px var(--accent-2), 0 0 34px 8px var(--accent); } }
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.strip.blur { filter: url(#f-motion); }
.cell { position: relative; width: 100%; display: grid; place-items: center; }
.cell .sym { width: 90%; height: 90%; overflow: visible; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); transition: opacity .3s, filter .3s; }
.reels.dim .cell .sym { opacity: .28; filter: grayscale(.7) brightness(.6); }
.reels.dim .cell.win .sym { opacity: 1; filter: drop-shadow(0 0 10px var(--accent-2)) drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); }
.reels .cell.win .sym { animation: symWin .9s ease-in-out infinite; }
.cell.win::before { content: ''; position: absolute; inset: 4%; border-radius: 12px; border: 2px solid var(--accent-2); box-shadow: 0 0 14px var(--accent), inset 0 0 14px var(--glow); animation: frameGlow .9s ease-in-out infinite alternate; }
.cell.land .sym { animation: symLand .5s ease-out; }
.cell.scatter-hit .sym { animation: scatterPop .7s ease-out; }
@keyframes symWin { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1) rotate(-2deg); } }
@keyframes frameGlow { to { opacity: .55; } }
@keyframes symLand { 0% { transform: scale(1.25); filter: brightness(2); } 100% { transform: scale(1); } }
@keyframes scatterPop { 0% { transform: scale(.6) rotate(-10deg); } 55% { transform: scale(1.3) rotate(6deg); filter: brightness(1.8); } 100% { transform: scale(1); } }
.paylines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.paylines polyline { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: drawLine .6s ease-out forwards; }
.paylines polyline.under { stroke: #000 !important; stroke-width: 9; opacity: .55; filter: none; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.mult-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); font-family: var(--display); font-weight: 900; font-size: calc(var(--reels-w) * .16); color: var(--accent-2); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 0 30px var(--accent), 0 6px 0 var(--ink); pointer-events: none; opacity: 0; z-index: 5; }
.mult-stamp.show { animation: stamp 1.2s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(3) rotate(-10deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-6deg); } }
.game-loading { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 0, 0, .7); border-radius: 12px; font-family: var(--serif); color: var(--accent-2); }
.game-loading .progress { width: 60%; }
.win-ticker { margin-top: 8px; min-height: 26px; padding: 4px 18px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line2); font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--accent-2); text-align: center; display: flex; align-items: center; gap: 8px; justify-content: center; max-width: 94vw; }
.win-ticker .mini { width: 24px; height: 24px; }

/* ---------- Controls ---------- */
.controls { width: min(100%, 900px); margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr auto 1.3fr; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 22px; background: linear-gradient(to bottom, var(--panel-a), var(--panel-b)); border: 2px solid var(--line2); box-shadow: 0 6px 24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ctl small { color: var(--muted); font-size: 11px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gold-d); background: var(--btn); color: var(--accent-2); font-size: 20px; font-weight: 900; line-height: 1; }
.stepper strong, .win-ctl strong { font-size: 20px; font-variant-numeric: tabular-nums; min-width: 92px; text-align: center; white-space: nowrap; }
.win-ctl strong { color: var(--accent-2); font-size: 24px; text-shadow: 0 0 12px var(--glow); }
.win-ctl strong.counting { animation: pulseText .3s ease-in-out infinite alternate; }
@keyframes pulseText { to { transform: scale(1.08); } }
.spin-btn { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff5d0; background: var(--spin-grad); color: var(--ink); font-family: var(--display); font-weight: 900; box-shadow: 0 0 0 4px var(--ink), 0 0 30px var(--glow), inset 0 -8px 14px rgba(0, 0, 0, .35); display: grid; place-items: center; transition: transform .1s; margin-top: -34px; }
.spin-btn svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); opacity: .35; }
.spin-btn span { position: relative; font-size: 17px; letter-spacing: .04em; }
.spin-btn:hover:not(:disabled) { transform: scale(1.05); }
.spin-btn:active:not(:disabled) { transform: scale(.95); }
.spin-btn.spinning svg { animation: rot .6s linear infinite; opacity: .6; }
.spin-btn.auto { box-shadow: 0 0 0 4px var(--ink), 0 0 30px 8px rgba(80, 220, 255, .8); }
@keyframes rot { to { transform: rotate(360deg); } }
.side-ctl { flex-direction: row; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pill-btn { padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--btn2); font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.pill-btn.on { border-color: var(--accent-2); color: var(--ink); background: linear-gradient(to bottom, var(--accent-2), var(--accent)); }
.auto-wrap { position: relative; }
.auto-menu { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); z-index: 20; }
.auto-menu button { border: 1px solid var(--line); background: var(--btn); border-radius: 8px; padding: 6px 10px; font-weight: 800; }
.auto-menu button:hover { background: var(--accent); color: var(--ink); }
.fineprint { font-size: 11px; color: var(--muted); opacity: .85; text-align: center; margin: 6px 0 0; max-width: 900px; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 0, 1, .78); backdrop-filter: blur(4px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { position: relative; width: min(560px, 100%); max-height: 92svh; overflow: auto; background: linear-gradient(to bottom, var(--panel-a), var(--panel-b)); border: 2px solid var(--gold-d); border-radius: 20px; padding: 22px 24px; box-shadow: 0 0 60px var(--glow); }
.modal-card.wide { width: min(900px, 100%); }
.modal-card.narrow { width: min(380px, 100%); }
.modal-card h2 { font-family: var(--display); margin: 0 0 8px; color: var(--accent-2); font-size: 24px; }
.modal-card h3 { font-family: var(--serif); color: var(--accent-2); margin: 22px 0 10px; font-size: 16px; letter-spacing: .06em; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--btn); font-size: 22px; line-height: 1; }
.muted { color: var(--muted); font-size: 13px; }
.err { color: #ff6b6b; font-size: 13px; min-height: 18px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pt-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); }
.pt-item svg { width: 64px; height: 64px; flex: none; }
.pt-item .pays { font-size: 12.5px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.pt-item .pays b { color: var(--accent-2); display: inline-block; min-width: 18px; }
.pt-item .nm { font-weight: 800; font-size: 13px; color: #fff; }
.pt-item.feature { grid-column: span 2; }
.rules { font-size: 13.5px; line-height: 1.6; }
.rules p { margin: 0 0 8px; } .rules b { color: var(--accent-2); }
.lines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.line-mini { text-align: center; font-size: 11px; color: var(--muted); }
.line-mini .g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 4px; background: rgba(0, 0, 0, .4); border-radius: 6px; margin-bottom: 3px; }
.line-mini .g i { aspect-ratio: 1; background: rgba(255, 255, 255, .08); border-radius: 2px; }
.line-mini .g i.on { background: var(--c); box-shadow: 0 0 5px var(--c); }
.modal.bonus { background: radial-gradient(circle at 50% 45%, var(--glow), rgba(5, 0, 10, .92)); }
.bonus-card { text-align: center; border-color: var(--accent-2); width: min(640px, 100%); }
.bonus-title { font-size: 28px !important; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 2px 0 var(--ink)); }
.bonus-sub b { color: var(--accent-2); font-size: 1.2em; }
.masks { display: flex; justify-content: center; gap: 18px; margin: 22px 0; perspective: 800px; }
.mask { position: relative; width: 150px; height: 170px; border: 0; background: none; padding: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.mask:not(:disabled):hover { transform: translateY(-6px) scale(1.04); }
.mask:disabled { opacity: 1; cursor: default; }
.mask .face, .mask .back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; display: grid; place-items: center; }
.mask .face { background: radial-gradient(circle, var(--glow), transparent 70%); animation: floaty 2.4s ease-in-out infinite; }
.mask:nth-child(2) .face { animation-delay: .4s; } .mask:nth-child(3) .face { animation-delay: .8s; }
.mask .face svg { width: 100%; height: 100%; }
.mask .back { transform: rotateY(180deg); background: linear-gradient(to bottom, var(--accent-2), var(--accent)); border: 3px solid #fff; box-shadow: 0 0 30px var(--glow); font-family: var(--display); font-weight: 900; color: var(--ink); flex-direction: column; }
.mask .back b { font-size: 46px; line-height: 1; }
.mask .back small { font-family: var(--ui); font-size: 11px; letter-spacing: .1em; font-weight: 800; }
.mask.revealed { transform: rotateY(180deg); }
.mask.other .back { background: linear-gradient(to bottom, #6b6b7a, #3a3a4a); border-color: #9a9aa8; box-shadow: none; color: #eee; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.cta { border: 3px solid #fff; border-radius: 999px; padding: 12px 34px; background: linear-gradient(to bottom, var(--accent-2), var(--accent)); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 18px; box-shadow: 0 0 24px var(--glow); }
.cta.small { font-size: 14px; padding: 9px 20px; }
.fs-end-amount { font-family: var(--display); font-weight: 900; font-size: 54px; color: var(--accent-2); margin: 10px 0 22px; text-shadow: 0 0 30px var(--glow), 0 4px 0 var(--ink); }
.bigwin { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, var(--glow), rgba(10, 0, 0, .85) 65%); cursor: pointer; animation: fadeIn .3s; }
.bigwin-title { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 11vw, 120px); background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 var(--ink)) drop-shadow(0 0 30px var(--glow)); animation: bigIn .8s cubic-bezier(.2, 1.6, .4, 1); }
.bigwin-amount { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 8vw, 84px); color: #fff; text-shadow: 0 0 24px var(--accent), 0 4px 0 var(--ink); font-variant-numeric: tabular-nums; }
.bigwin-hint { margin-top: 16px; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
@keyframes bigIn { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
.age-card { text-align: center; }
.age-badge { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #d0102a; color: #fff; font-weight: 900; font-size: 26px; border: 4px solid #fff; box-shadow: 0 0 24px rgba(208, 16, 42, .7); }
#loginForm { display: flex; flex-direction: column; gap: 10px; }
.age-row { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70; background: var(--panel); border: 1px solid var(--gold-d); padding: 10px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); animation: fadeIn .2s; max-width: 90vw; text-align: center; }

/* ---------- Console widgets (shared with admin.html) ---------- */
#pinForm { display: flex; gap: 8px; }
.admin-card { width: min(900px, 100%); }
input, select { background: var(--btn2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=range] { padding: 0; accent-color: var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line2); margin: 8px 0 16px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 9px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--accent-2); border-color: var(--accent); }
.adm-section { background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.adm-section h4 { margin: 0 0 10px; font-family: var(--serif); color: var(--accent-2); font-size: 15px; }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.adm-row label { display: flex; align-items: center; gap: 6px; }
.adm-row .grow, .grow { flex: 1; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mode-card { border: 1px solid var(--line2); border-radius: 12px; padding: 12px; background: rgba(0, 0, 0, .25); }
.mode-card.active { border-color: var(--accent); box-shadow: 0 0 14px var(--glow); }
.mode-card h5 { margin: 0 0 8px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.mode-card .bal { font-size: 20px; font-weight: 800; color: var(--accent-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.mode-card .field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.inline { display: flex; gap: 6px; }
.inline input { flex: 1; width: 0; }
.btn { border: 1px solid var(--line); background: var(--btn); color: var(--text); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.btn.primary { background: linear-gradient(to bottom, var(--accent-2), var(--accent)); color: var(--ink); border-color: #fff; }
.btn.danger { background: #5a0a0a; border-color: #b3130b; color: #fff; }
.btn:hover { filter: brightness(1.15); }
table.adm { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.adm th, table.adm td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line2); }
table.adm th { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
table.adm td.num, table.adm th.num { text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }
.kpi span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.kpi b { font-size: 20px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.note.warn, .warn { color: #ffb4a2; }
.note.warn { border-left: 3px solid #ff6b4a; padding-left: 10px; }
.progress { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); overflow: hidden; margin-top: 8px; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.log { max-height: 260px; overflow: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  :root, body[data-theme] { --reels-w: min(calc(100vw - 76px), calc((100svh - 420px) * 1.6667)); }
  .topbar { grid-template-columns: 1fr auto; }
  .wallet { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .brand .inferno { font-size: 22px; }
  .line-markers { width: 16px; }
  .line-markers span { width: 16px; font-size: 9px; height: 16px; margin-top: -8px; }
  .reel-frame { padding: 10px 5px; gap: 4px; border-radius: 18px; }
  .reels { gap: 4px; }
  .controls { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 8px 10px; }
  .side-ctl { grid-column: 1 / -1; justify-content: center; }
  .spin-btn { width: 80px; height: 80px; margin-top: 0; }
  .stepper strong, .win-ctl strong { font-size: 16px; min-width: 70px; }
  .ladder .step { min-width: 34px; font-size: 13px; padding: 4px 6px; }
  .fs-banner { gap: 8px; font-size: 12px; padding: 5px 10px; flex-wrap: wrap; justify-content: center; }
  .mask { width: 96px; height: 112px; } .masks { gap: 8px; } .mask .back b { font-size: 32px; }
  .pt-item.feature { grid-column: auto; }
  .lobby-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-art { height: 110px; } .card-sym.main { width: 92px; height: 92px; } .card-sym.side { width: 48px; height: 48px; }
  .card-body h3 { font-size: 15px; } .card-body p { font-size: 11.5px; }
}
@media (max-width: 420px) { .mode-switch button { padding: 6px 8px; font-size: 11px; letter-spacing: .02em; } }
@media (prefers-reduced-motion: reduce) { .reels .cell.win .sym, .mask .face, .lava { animation: none; } }
