/* Fire 7s · Twin Bonuses — presentation layer.
   The game is laid out on a fixed 1280×720 (landscape) or 720×1280 (portrait) stage that is scaled to fit the viewport,
   the same way as Smash N Grab. Warm bronze-and-ember cabinet; gold for Rising Fortune, ice-blue chrome for Big Spins. */

:root {
  --gold-1: #fff3c4; --gold-2: #ffd35b; --gold-3: #d9962c; --gold-4: #8a5210; --gold-5: #4a2a06;
  --ember-0: #070203; --ember-1: #140505; --ember-2: #24100a; --ember-3: #3a170d; --ember-4: #5a2410;
  --ice-1: #eaf8ff; --ice-2: #8fe3ff; --ice-3: #3d9be0; --ice-4: #11466e; --ice-5: #071f33;
  --red: #ff3b3b; --orange: #ff8a2a; --green: #5ee39c; --purple: #b46cff;
  --display: Impact, 'Arial Narrow Bold', 'Arial Black', Haettenschweiler, sans-serif;
  --cond: Bahnschrift, 'Roboto Condensed', 'Arial Narrow', 'Segoe UI', Arial, sans-serif;
  --body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --cell: 98px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ember-0); color: #fbf1e3; font-family: var(--body); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
[hidden] { display: none !important; }
#viewport { position: fixed; inset: 0; overflow: hidden; background: var(--ember-0); }
#stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: center center; overflow: hidden; user-select: none; -webkit-user-select: none; font-family: var(--cond); font-stretch: condensed; }
#stage.portrait { width: 720px; height: 1280px; }

/* ---------- background ---------- */
.bg { position: absolute; inset: 0; overflow: hidden; }
.bg .layer { position: absolute; inset: -3%; background-size: cover; background-position: center 40%; transition: filter 1.2s ease; }
.bg .env { background-image: url('../art/environment.png'); animation: drift 44s ease-in-out infinite alternate; filter: saturate(1.05) brightness(.95); }
#stage.big .bg .env { filter: saturate(.7) brightness(.7) hue-rotate(-30deg); }
#stage.rising .bg .env { filter: saturate(1.25) brightness(1.08); }
.portrait .bg .layer { background-position: center top; background-size: auto 100%; }
.heat { position: absolute; left: 50%; bottom: -10%; width: 1100px; height: 620px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, #ff6a1a3a, transparent 60%); animation: breathe 6s ease-in-out infinite; pointer-events: none; transition: background 1s; }
#stage.big .heat { background: radial-gradient(ellipse at 50% 100%, #3da5ff33, transparent 60%); }
#stage.rising .heat { background: radial-gradient(ellipse at 50% 100%, #ff9a2a55, transparent 62%); }
.haze { position: absolute; inset: -20%; background: radial-gradient(ellipse at 20% 70%, #ff8a2a12, transparent 45%), radial-gradient(ellipse at 75% 30%, #ffb34710, transparent 40%); pointer-events: none; mix-blend-mode: screen; }
.haze.a { animation: hazeA 38s linear infinite; }
.haze.b { animation: hazeB 52s linear infinite; opacity: .7; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 42%, #070203cc 100%), linear-gradient(180deg, #07020388, transparent 18%, transparent 78%, #070203dd); pointer-events: none; }
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.flash i { position: absolute; top: -20%; bottom: -20%; width: 34%; filter: blur(30px); }
.flash i:first-child { background: linear-gradient(90deg, transparent, #ffb34799, transparent); left: -40%; }
.flash i:last-child { background: linear-gradient(90deg, transparent, #ff8a2a99, transparent); left: 110%; }
.flash.blue i:first-child { background: linear-gradient(90deg, transparent, #8fe3ff99, transparent); }
.flash.blue i:last-child { background: linear-gradient(90deg, transparent, #3d9be099, transparent); }
.flash.on { opacity: 1; animation: flashFade 2.6s ease-out forwards; }
.flash.on i:first-child { animation: sweepR 2.6s cubic-bezier(.3, 0, .2, 1) forwards; }
.flash.on i:last-child { animation: sweepL 2.6s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes drift { to { transform: translate3d(1.5%, -1%, 0) scale(1.03); } }
@keyframes breathe { 50% { opacity: .6; transform: translateX(-50%) scaleX(1.08); } }
@keyframes hazeA { to { transform: translate3d(12%, -4%, 0); } }
@keyframes hazeB { from { transform: translate3d(8%, 3%, 0); } to { transform: translate3d(-10%, -2%, 0); } }
@keyframes sweepR { 0% { left: -40%; } 100% { left: 130%; } }
@keyframes sweepL { 0% { left: 110%; } 100% { left: -60%; } }
@keyframes flashFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- symbols ---------- */
.sym { position: relative; display: inline-block; width: 100%; height: 100%; background-image: url('../art/symbols.png'); background-repeat: no-repeat; background-size: 400% 300%; mix-blend-mode: screen; flex-shrink: 0; }
.sym[data-id="red"] { background-position: 0% 0%; }
.sym[data-id="blue"] { background-position: 33.333% 0%; }
.sym[data-id="fire"] { background-position: 66.667% 0%; }
.sym[data-id="wild"] { background-position: 100% 0%; }
.sym[data-id="orange"] { background-position: 0% 50%; }
.sym[data-id="plum"] { background-position: 33.333% 50%; }
.sym[data-id="melon"] { background-position: 66.667% 50%; }
.sym[data-id="grape"] { background-position: 100% 50%; }
.sym[data-id="bell"] { background-position: 0% 100%; }
.sym[data-id="gem"] { background-position: 33.333% 100%; }
.sym[data-id="bigbonus"], .sym[data-id="rising"], .sym[data-id="super"], .sym[data-id="mega"], .sym[data-id="ultra"] { background-image: url('../art/bonus-icons.png'); background-size: 200% 100%; }
.sym[data-id="bigbonus"] { background-position: 0% 50%; }
.sym[data-id="rising"], .sym[data-id="super"], .sym[data-id="mega"], .sym[data-id="ultra"] { background-position: 100% 50%; }
.tier-tag { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); font-family: var(--display); font-size: 12px; letter-spacing: 1.5px; color: #fff; padding: 1px 7px; border-radius: 4px; border: 1px solid #fff2b0; text-shadow: 0 1px 0 #000; mix-blend-mode: normal; box-shadow: 0 2px 6px #000; }
.tier-tag.super { background: linear-gradient(180deg, #b46cff, #4d1e8a); }
.tier-tag.mega { background: linear-gradient(180deg, #ff5a5a, #8a0f1c); }
.tier-tag.ultra { background: linear-gradient(180deg, #ffb347, #a35208); color: #2b1a04; text-shadow: none; }

/* ---------- logo ---------- */
.logo { position: absolute; left: 14px; top: 4px; width: 292px; text-align: center; filter: drop-shadow(0 10px 14px #000c); z-index: 3; pointer-events: none; }
.logo::before { content: ''; position: absolute; left: 50%; top: 40%; width: 260px; height: 120px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, #ff7a2a33, transparent 65%); z-index: -1; animation: breatheGlow 3s ease-in-out infinite; }
@keyframes breatheGlow { 50% { opacity: .5; transform: translate(-50%, -50%) scale(1.1); } }
.logo-kicker { font-size: 10px; letter-spacing: 7px; color: #ffc98a; font-weight: 700; text-shadow: 0 1px 2px #000; margin-left: 7px; }
.logo-main { font-family: var(--display); font-size: 60px; line-height: .92; white-space: nowrap; letter-spacing: 1px; display: flex; justify-content: center; align-items: baseline; gap: 10px; transform: skewX(-6deg); margin-top: 2px; }
.logo-main .fire { background: linear-gradient(180deg, #fff9d6 0%, #ffe27a 35%, #f3ad2b 55%, #b76a10 75%, #ffd86a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #6b3d05) drop-shadow(0 6px 0 #3a2002) drop-shadow(0 10px 12px #000c); }
.logo-main .seven { font-style: italic; font-size: 1.12em; background: linear-gradient(180deg, #fff2c8 0%, #ffb347 22%, #ff5a1f 50%, #a0140a 80%, #ff8a2a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #5a0b08) drop-shadow(0 6px 0 #2a0402) drop-shadow(0 0 18px #ff6a1a99); animation: flicker 2.8s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { filter: drop-shadow(0 3px 0 #5a0b08) drop-shadow(0 6px 0 #2a0402) drop-shadow(0 0 18px #ff6a1a99); } 50% { filter: drop-shadow(0 3px 0 #5a0b08) drop-shadow(0 6px 0 #2a0402) drop-shadow(0 0 30px #ffb347cc); } }
.logo-sub { margin-top: 6px; font-size: 11px; letter-spacing: 4.5px; color: #ffd9a0; font-weight: 700; text-shadow: 0 1px 2px #000; }
.logo-sub::before, .logo-sub::after { content: ''; display: inline-block; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #ffd9a099); vertical-align: middle; margin: 0 8px; }
.logo-sub::after { background: linear-gradient(90deg, #ffd9a099, transparent); }
.logo.big { position: static; width: 560px; filter: drop-shadow(0 14px 22px #000); }
.logo.big::before { width: 620px; height: 260px; }
.logo.big .logo-kicker { font-size: 16px; letter-spacing: 12px; }
.logo.big .logo-main { font-size: 132px; gap: 20px; }
.logo.big .logo-sub { font-size: 17px; margin-top: 16px; letter-spacing: 7px; }
.portrait .logo { left: 50%; top: 10px; width: 460px; transform: translateX(-50%); }
.portrait .logo-main { font-size: 78px; }
.portrait .logo-sub { font-size: 13px; }

/* ---------- top nav ---------- */
.topnav { position: absolute; right: 18px; top: 16px; display: flex; gap: 10px; z-index: 5; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #3a1a0e, #170705); border: 1px solid #b0703066; box-shadow: 0 4px 10px #0009, inset 0 1px 0 #ffffff22; color: #f3dcc0; transition: transform .15s, filter .15s; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { filter: brightness(1.25); transform: translateY(-1px); }
.icon-btn:active:not(:disabled) { transform: translateY(1px); }
.icon-btn:disabled { opacity: .4; }
#btn-sound .mute { display: none; }
#btn-sound.muted .wave { display: none; }
#btn-sound.muted .mute { display: block; }
.portrait .topnav { right: 14px; top: 14px; }

/* ---------- bonus plaques (top centre) ---------- */
.plaques { position: absolute; left: 318px; top: 14px; width: 644px; height: 76px; display: grid; grid-template-columns: 1fr 104px 1fr; gap: 10px; z-index: 3; }
.plaque { --pc1: #6b3a10; --pc2: #2a1206; --glow: #ffd35b; position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 12px; background: linear-gradient(160deg, var(--pc1), var(--pc2) 70%); border: 2px solid #d9b45c; box-shadow: 0 0 0 1px #3b2708, 0 6px 14px #000a, inset 0 0 0 2px #00000045, inset 0 1px 0 #ffffff55; overflow: hidden; transition: transform .2s, box-shadow .4s; }
.plaque::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, #ffffff2a 45%, transparent 55%); background-size: 250% 100%; animation: shimmer 7s ease-in-out infinite; pointer-events: none; }
.plaque.gold { --pc1: #8a4a12; --pc2: #2a1206; --glow: #ffd35b; }
.plaque.blue { --pc1: #1f5f8f; --pc2: #071f33; --glow: #8fe3ff; border-color: #a9dcff; justify-content: flex-end; }
.plaque .sym { width: 64px; height: 64px; filter: drop-shadow(0 4px 6px #000a); }
.plaque-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.plaque-text.right { text-align: right; align-items: flex-end; }
.plaque-text b { font-family: var(--display); font-size: 19px; letter-spacing: 1.5px; color: #fff3cf; text-shadow: 0 2px 0 #000a; }
.plaque.blue .plaque-text b { color: #eaf8ff; }
.plaque-text small { font-size: 9.5px; letter-spacing: 1.6px; color: #ffe9c2; font-weight: 700; margin-top: 4px; opacity: .9; white-space: nowrap; }
.plaque-text em { font-style: normal; font-family: var(--display); font-size: 20px; color: var(--glow); text-shadow: 0 2px 0 #000; margin-top: 2px; min-height: 0; font-variant-numeric: tabular-nums; }
.plaque.live { box-shadow: 0 0 0 1px #3b2708, 0 6px 14px #000a, 0 0 26px var(--glow), inset 0 0 0 2px #00000045, inset 0 1px 0 #ffffff55; }
.plaque.live .plaque-text small { color: #fff; opacity: 1; }
.bulbs { position: absolute; inset: 3px; border-radius: 9px; pointer-events: none; background-image: radial-gradient(circle, #fff6c8 0 1.3px, transparent 2px); background-size: 12px 12px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 4px; opacity: .45; }
.plaque.hit { animation: plaqueHit .5s ease-in-out 6 alternate; transform: scale(1.05); }
.plaque.hit .bulbs, .plaque.live .bulbs { animation: chase .3s steps(2) infinite; opacity: 1; }
@keyframes plaqueHit { to { filter: brightness(1.8); box-shadow: 0 0 34px var(--glow); } }
@keyframes chase { to { background-position: 6px 6px; } }
@keyframes shimmer { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.plaque-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(180deg, #2a1208, #120504); border: 1px solid #b0703066; box-shadow: 0 6px 14px #000a, inset 0 1px 0 #ffffff1a; line-height: 1; gap: 3px; }
.plaque-mid b { font-family: var(--display); font-size: 24px; color: #ffe9a6; text-shadow: 0 2px 0 #5a3a05, 0 3px 6px #000; }
.plaque-mid small { font-size: 8.5px; letter-spacing: 1.8px; color: #d9b98f; font-weight: 700; }
.plaque-rtp { font-size: 8.5px; letter-spacing: 1.2px; color: #ffd35b; font-weight: 700; }
.portrait .plaques { left: 12px; top: 148px; width: 696px; height: 68px; grid-template-columns: 1fr 92px 1fr; gap: 8px; }
.portrait .plaque .sym { width: 56px; height: 56px; }
.portrait .plaque-text b { font-size: 17px; }

/* ---------- cabinet ---------- */
.cabinet { position: absolute; left: 318px; top: 98px; width: 644px; z-index: 2; }
.cabinet-title { display: flex; justify-content: space-between; padding: 0 12px 5px; font-size: 11px; letter-spacing: 2.2px; font-weight: 700; color: #e6c9a6; text-shadow: 0 1px 2px #000; }
.cabinet-title span:first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); margin-right: 8px; vertical-align: 1px; animation: blink 2.4s infinite; }
#stage.rising .cabinet-title span:first-child::before { background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); }
#stage.big .cabinet-title span:first-child::before { background: var(--ice-2); box-shadow: 0 0 8px var(--ice-2); }
@keyframes blink { 50% { opacity: .35; } }
.reels { position: relative; height: 436px; padding: 13px; border-radius: 16px; display: grid; grid-template-columns: repeat(6, var(--cell)); gap: 6px; justify-content: center; background: linear-gradient(160deg, #fff1c8 0%, #d9a24a 12%, #6b3a12 28%, #2a1206 46%, #b87a2a 64%, #ffe0a0 80%, #6e3f16 100%); box-shadow: 0 0 0 2px #1a0a04, 0 0 0 4px #c89b3f55, 0 30px 60px #000c, 0 0 90px #ff7a2a2a, inset 0 0 0 1px #ffffff66; transition: background 1s, box-shadow 1s; }
.reels::before { content: ''; position: absolute; inset: 11px; border-radius: 8px; background: #0c0303; box-shadow: inset 0 0 0 1px #3a1a0c, inset 0 0 40px #000; }
.reels::after { content: ''; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; background: linear-gradient(180deg, #ffffff22, transparent 30%); }
#stage.big .reels { background: linear-gradient(160deg, #f4fbff 0%, #a9d9f5 12%, #2f6d96 28%, #0d2a44 46%, #5a9cc4 64%, #e0f4ff 80%, #2a5c80 100%); box-shadow: 0 0 0 2px #04111c, 0 0 0 4px #7ec3ea55, 0 30px 60px #000c, 0 0 90px #3d9be03a, inset 0 0 0 1px #ffffff66; }
#stage.rising .reels { box-shadow: 0 0 0 2px #1a0a04, 0 0 0 4px #ffd35b66, 0 30px 60px #000c, 0 0 110px #ff9a2a55, inset 0 0 0 1px #ffffff66; }
.reel { position: relative; height: 410px; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, #1c0806 0%, #2e0f0a 50%, #1c0806 100%); box-shadow: inset 0 0 0 1px #5a2a14, inset 0 18px 20px -14px #000, inset 0 -18px 20px -14px #000; transition: background .8s; }
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 var(--cell), #00000055 var(--cell) calc(var(--cell) + 6px)); background-position: 0 calc(var(--cell) - 3px); opacity: .9; }
#stage.big .reel { background: linear-gradient(180deg, #071726 0%, #0e2a42 50%, #071726 100%); box-shadow: inset 0 0 0 1px #2f6d96, inset 0 18px 20px -14px #000, inset 0 -18px 20px -14px #000; }
#stage.rising .reel { background: linear-gradient(180deg, #2a0c06 0%, #4a1a0a 50%, #2a0c06 100%); box-shadow: inset 0 0 0 1px #8a4a12, inset 0 18px 20px -14px #000, inset 0 -18px 20px -14px #000; }
.strip { position: absolute; left: 0; right: 0; top: 0; transform: translateY(calc(var(--cell) * -1)); will-change: transform; }
.reel.spinning .strip { filter: blur(1.4px); }
.reel.turbo.spinning .strip { filter: blur(3px); }
.cell { position: relative; height: var(--cell); display: flex; align-items: center; justify-content: center; }
.cell .sym { width: 96%; height: 96%; filter: drop-shadow(0 6px 4px #0008); transition: transform .25s, filter .25s; }
.cell .tag { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) rotate(-5deg); font-family: var(--display); font-size: 12px; letter-spacing: 1.5px; color: #fff; padding: 1px 7px; border-radius: 4px; text-shadow: 0 1px 0 #000, 0 0 4px #000; pointer-events: none; white-space: nowrap; }
.cell .tag.wild { color: #ffe08a; text-shadow: 0 2px 0 #7a1d1d, 0 -1px 0 #7a1d1d, 1px 0 0 #7a1d1d, -1px 0 0 #7a1d1d, 0 4px 8px #000; }
.cell .tag.blue { color: #eaf8ff; background: linear-gradient(180deg, #2f7fb8dd, #0d3a5add); border: 1px solid #a9dcff; font-size: 10px; letter-spacing: 1.2px; }
.cell .tag.gold { color: #fff3cf; background: linear-gradient(180deg, #b8641add, #5a2a08dd); border: 1px solid #ffd35b; font-size: 10px; letter-spacing: 1.5px; }
.reel.spinning .cell .tag { opacity: 0; }
.reel.antic { box-shadow: inset 0 0 0 3px #ffb347, inset 0 0 40px #ff8a2a66; animation: anticGlow .5s ease-in-out infinite alternate; }
.reel.antic.blue { box-shadow: inset 0 0 0 3px #8fe3ff, inset 0 0 40px #3d9be066; animation: anticGlowBlue .5s ease-in-out infinite alternate; }
@keyframes anticGlow { to { box-shadow: inset 0 0 0 3px #fff0b3, inset 0 0 60px #ffb347aa; } }
@keyframes anticGlowBlue { to { box-shadow: inset 0 0 0 3px #fff, inset 0 0 60px #8fe3ffaa; } }
.cell.land .sym { animation: land .45s cubic-bezier(.2, 1.4, .4, 1); }
.cell.land::after { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, #fff8, transparent 65%); animation: flashOut .5s ease-out forwards; pointer-events: none; }
@keyframes land { 0% { transform: scale(1.35); filter: brightness(2) drop-shadow(0 0 20px #fff); } 100% { transform: scale(1); } }
@keyframes flashOut { to { opacity: 0; transform: scale(1.6); } }
.reels.showing .cell:not(.hit) .sym { filter: brightness(.38) saturate(.6) drop-shadow(0 6px 4px #0008); }
.reels.showing .cell:not(.hit) .tag { opacity: .3; }
.cell.hit .sym { animation: winPulse .7s ease-in-out infinite alternate; }
.cell.hit::before { content: ''; position: absolute; inset: 3px; border-radius: 8px; box-shadow: inset 0 0 0 3px #ffe9a6, 0 0 22px #ffd86a; animation: hitRing .7s ease-in-out infinite alternate; pointer-events: none; z-index: 1; }
@keyframes winPulse { to { transform: scale(1.1); filter: brightness(1.3) drop-shadow(0 0 16px #ffd86a); } }
@keyframes hitRing { to { box-shadow: inset 0 0 0 3px #fff, 0 0 34px #ffd86a; } }
.cell.active .sym { animation: pickPulse 1.1s ease-in-out infinite alternate; }
@keyframes pickPulse { to { transform: scale(1.08); filter: brightness(1.4) drop-shadow(0 0 18px #8fe3ff); } }
.cell[data-id="fire"] .sym { animation: fireIdle 1.6s ease-in-out infinite alternate; }
@keyframes fireIdle { to { filter: drop-shadow(0 6px 4px #0008) drop-shadow(0 0 14px #ff7a2a88); } }
.cell[data-id="wild"] .sym { animation: wildIdle 2.4s ease-in-out infinite; }
@keyframes wildIdle { 50% { filter: drop-shadow(0 6px 4px #0008) drop-shadow(0 0 12px #ff5c5c88); } }
.cell[data-id="bigbonus"] .sym { animation: blueIdle 2s ease-in-out infinite alternate; }
@keyframes blueIdle { to { filter: drop-shadow(0 6px 4px #0008) drop-shadow(0 0 16px #8fe3ff99); } }
.cell[data-id="rising"] .sym, .cell[data-id="super"] .sym, .cell[data-id="mega"] .sym, .cell[data-id="ultra"] .sym { animation: goldIdle 2s ease-in-out infinite alternate; }
@keyframes goldIdle { to { filter: drop-shadow(0 6px 4px #0008) drop-shadow(0 0 16px #ffd35b99); } }
.reel.spinning .cell .sym { animation: none !important; }
.glass { position: absolute; inset: 13px; border-radius: 8px; pointer-events: none; background: linear-gradient(100deg, #ffffff10, transparent 30%, transparent 70%, #ffffff08), linear-gradient(180deg, #ffffff14, transparent 12%, transparent 88%, #00000055); z-index: 5; }
#stage.rising .glass::after, #stage.big .glass::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, #ffffff18 48%, #ffffff30 50%, #ffffff18 52%, transparent 60%); animation: spot 5s ease-in-out infinite; }
@keyframes spot { 0% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

/* winlines, locks and picks layers */
.lines-layer { position: absolute; inset: 13px; width: calc(100% - 26px); height: calc(100% - 26px); pointer-events: none; z-index: 3; overflow: visible; }
.lines-layer polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.lines-layer .glow { stroke-width: 12; opacity: .45; filter: blur(2px); }
.lines-layer .core { stroke: #fff; stroke-width: 3; opacity: .9; stroke-dasharray: 2000; animation: lineDraw .8s ease-out; }
@keyframes lineDraw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.locks { position: absolute; inset: 13px; display: grid; grid-template-columns: repeat(6, var(--cell)); grid-template-rows: repeat(4, var(--cell)); gap: 6px; justify-content: center; pointer-events: none; z-index: 4; }
.lock { position: relative; border-radius: 8px; opacity: 0; }
.lock.on { opacity: 1; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, #1a4a6e, #071726 75%); box-shadow: inset 0 0 0 3px #a9dcff, inset 0 0 26px #3d9be0aa, 0 0 18px #8fe3ff88; animation: lockGlow 1.6s ease-in-out infinite alternate; }
@keyframes lockGlow { to { box-shadow: inset 0 0 0 3px #fff, inset 0 0 36px #8fe3ffcc, 0 0 28px #8fe3ffcc; } }
.lock .sym { width: 90%; height: 90%; filter: drop-shadow(0 6px 4px #0008); }
.lock b { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 11px; letter-spacing: 2px; color: #eaf8ff; background: #0d3a5add; border: 1px solid #a9dcff; padding: 1px 7px; border-radius: 4px; text-shadow: 0 1px 0 #000; }
.lock i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #7fb6d6 60%, #1a3a55); box-shadow: 0 1px 2px #000; }
.lock i:nth-of-type(1) { left: 6px; top: 6px; } .lock i:nth-of-type(2) { right: 6px; top: 6px; } .lock i:nth-of-type(3) { left: 6px; bottom: 6px; } .lock i:nth-of-type(4) { right: 6px; bottom: 6px; }
.lock.pop { animation: lockPop .55s cubic-bezier(.2, 1.5, .4, 1), lockGlow 1.6s .55s ease-in-out infinite alternate; }
@keyframes lockPop { 0% { transform: scale(.6); filter: brightness(2.5); } 100% { transform: scale(1); filter: brightness(1); } }
.picks { position: absolute; inset: 13px; display: grid; grid-template-columns: repeat(6, var(--cell)); grid-template-rows: repeat(4, var(--cell)); gap: 6px; justify-content: center; z-index: 6; pointer-events: none; }
.picks:empty { display: none; }
.pick-me { pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: .95; margin: 8%; border-radius: 50% 50% 22% 22%; background: radial-gradient(ellipse at 50% 30%, #2f8fd0, #0d3a5a 70%); border: 2px solid #eaf8ff; color: #fff; font-family: var(--display); font-size: 22px; letter-spacing: 2px; text-shadow: 0 2px 0 #062033, 0 0 12px #8fe3ff; box-shadow: 0 0 18px #8fe3ffaa, inset 0 0 18px #3d9be066; animation: pickGlow 1.4s ease-in-out infinite; transition: transform .15s, filter .15s; }
.pick-me:hover { transform: scale(1.06); filter: brightness(1.2); }
@keyframes pickGlow { 50% { box-shadow: 0 0 30px #8fe3ff, inset 0 0 24px #8fe3ff99; } }
.pick-me.revealed { animation: revealPop .5s cubic-bezier(.2, 1.5, .4, 1); background: radial-gradient(ellipse at 50% 30%, #1a4a6e, #071726 75%); border-color: #7fb6d6; box-shadow: none; }
.pick-me.revealed b { font-size: 46px; color: #eaf8ff; text-shadow: 0 3px 0 #062033, 0 0 18px #8fe3ff; }
.pick-me.revealed span { font-size: 9px; letter-spacing: 1.5px; margin-top: 2px; }
.pick-me.revealed.chosen { background: radial-gradient(ellipse at 50% 30%, #ffd35b, #b8641a 75%); border-color: #fff3c4; box-shadow: 0 0 30px #ffd35b; color: #2b1a04; }
.pick-me.revealed.chosen b { color: #fff; text-shadow: 0 3px 0 #6b3d05, 0 0 18px #ffd35b; }
.pick-me.revealed.other { opacity: .7; filter: saturate(.6); }
@keyframes revealPop { 0% { transform: scale(.5) rotateY(90deg); } 100% { transform: scale(1) rotateY(0); } }
.fx-layer { position: absolute; inset: 13px; pointer-events: none; z-index: 7; }

.message { margin: 8px 12px 0; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: 2.4px; font-weight: 700; color: #ffe6b3; text-shadow: 0 1px 3px #000; background: linear-gradient(90deg, transparent, #140505d9 20%, #140505d9 80%, transparent); transition: color .3s; white-space: nowrap; overflow: hidden; }
.message.excite { color: #fff; animation: msgPulse .6s ease-in-out infinite alternate; }
@keyframes msgPulse { to { text-shadow: 0 0 14px #ffd86a, 0 1px 3px #000; letter-spacing: 3px; } }
.portrait .cabinet { left: 8px; top: 222px; width: 704px; --cell: 108px; }
.portrait .reels { height: 476px; padding: 13px; --cell: 108px; }
.portrait .reel { height: 450px; }
.portrait .locks, .portrait .picks, .portrait .fx-layer, .portrait .glass, .portrait .lines-layer { inset: 13px; }

/* ---------- side panels ---------- */
.panel { position: absolute; top: 106px; width: 280px; height: 480px; z-index: 3; }
.panel.left { left: 20px; }
.panel.right { right: 20px; }
.panel-base, .panel-bonus { display: flex; flex-direction: column; gap: 12px; }
#stage.rising .panel-base, #stage.big .panel-base, .panel-bonus { display: none; }
#stage.rising .panel-bonus, #stage.big .panel-bonus { display: flex; }
.buy-btn { display: flex; align-items: center; gap: 10px; height: 88px; padding: 0 16px; border-radius: 12px; background: linear-gradient(180deg, #ffd766, #d59a2c 55%, #8f5a12); border: 2px solid #fff0b3; box-shadow: 0 6px 0 #4a2e08, 0 12px 20px #000a, inset 0 1px 0 #fff8, inset 0 -3px 0 #00000033; color: #2b1a04; font-family: var(--display); font-size: 34px; letter-spacing: 2px; line-height: .95; text-shadow: 0 1px 0 #ffe8a8; transition: transform .1s, filter .15s; }
.buy-btn .sym { width: 68px; height: 68px; mix-blend-mode: normal; border-radius: 8px; background-color: #1c0806; box-shadow: inset 0 0 0 2px #00000055; }
.buy-btn small { display: block; font-family: var(--cond); font-size: 12px; letter-spacing: 3px; font-weight: 700; color: #4a2e08; }
.buy-btn:hover:not(:disabled) { filter: brightness(1.1); }
.buy-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #4a2e08, 0 6px 12px #000a; }
.buy-btn:disabled { filter: saturate(.4) brightness(.65); }
.mode-btn { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 14px; border-radius: 10px; background: linear-gradient(180deg, #3a1a0e, #170705); border: 1px solid #b0703066; box-shadow: 0 4px 12px #0009, inset 0 1px 0 #ffffff1a; text-align: left; transition: filter .15s; }
.mode-btn small { display: block; font-size: 10px; letter-spacing: 2.4px; color: #d0a882; font-weight: 700; }
.mode-btn b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: 1.5px; color: #f6e3c8; margin-top: 2px; font-weight: 400; }
.mode-ind { width: 14px; height: 14px; border-radius: 50%; background: #3a1a12; box-shadow: inset 0 0 0 2px #140604, 0 0 0 1px #b0703055; flex-shrink: 0; transition: background .2s, box-shadow .2s; }
.mode-btn.on .mode-ind { background: var(--gold-2); box-shadow: 0 0 14px var(--gold-2), inset 0 0 0 2px #7a4f0a; }
.mode-btn.on b { color: var(--gold-1); }
.mode-btn:hover:not(:disabled) { filter: brightness(1.2); }
.mode-btn:disabled { opacity: .55; }
.hints { display: flex; flex-direction: column; gap: 6px; padding: 4px 6px 0; }
.hint { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.6px; font-weight: 700; color: #e6c9a6; line-height: 1.3; text-shadow: 0 1px 2px #000; }
.hint .sym { width: 46px; height: 42px; }
.hint b { color: var(--gold-2); }
.feature-badge { font-family: var(--display); font-size: 25px; letter-spacing: 2px; text-align: center; padding: 10px 8px; border-radius: 10px; color: #fff3cf; background: linear-gradient(180deg, #b8641a, #5a2a08); border: 2px solid #ffd07a; box-shadow: 0 6px 16px #000a, inset 0 1px 0 #fff5; text-shadow: 0 2px 0 #000; }
.feature-badge.blue { background: linear-gradient(180deg, #2f7fb8, #0d3a5a); border-color: #a9dcff; }
.meter { padding: 10px 14px; border-radius: 10px; background: linear-gradient(180deg, #2a0f0a, #150705); border: 2px solid #d9b45c; box-shadow: 0 6px 14px #000a, inset 0 0 0 2px #00000045; text-align: center; }
#stage.big .meter { border-color: #7fb6d6; background: linear-gradient(180deg, #0e2a42, #071726); }
.meter span { display: block; font-size: 11px; letter-spacing: 2.6px; color: #f3c98a; font-weight: 700; }
#stage.big .meter span { color: #a9dcff; }
.meter b { display: block; font-family: var(--display); font-size: 40px; line-height: 1.05; color: #ffe9a6; text-shadow: 0 2px 0 #5a3a05, 0 3px 8px #000; font-variant-numeric: tabular-nums; }
#stage.big .meter b { color: #eaf8ff; text-shadow: 0 2px 0 #0d3a5a, 0 3px 8px #000; }
.meter.spins b { font-size: 46px; }
.meter.qualify b { font-size: 30px; }
.meter.qualify small { display: block; font-size: 8.5px; letter-spacing: 1.4px; color: #d0a882; font-weight: 700; margin-top: 4px; }
#stage.big .meter.qualify small { color: #a9dcff; }
.meter.bump b { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); filter: brightness(1.6); } }
.tiers { display: flex; justify-content: center; gap: 4px; }
.tiers .sym { width: 74px; height: 66px; }
.spin-btn { position: absolute; left: 50%; top: 140px; transform: translateX(-50%); width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #fff6cc, #f3c65a 35%, #c48a24 70%, #6d4410); box-shadow: 0 0 0 5px #140604, 0 0 0 8px #a8853d, 0 14px 30px #000c, 0 0 60px #f4bb4e33, inset 0 -8px 16px #00000040, inset 0 6px 10px #fff8; color: #2c1d06; transition: transform .12s, box-shadow .12s, filter .2s; }
.spin-btn .ring { position: absolute; inset: 9px; border-radius: 50%; border: 2px dashed #6d441066; }
.spin-btn svg { width: 82px; height: 82px; fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 #ffe8a8); transition: transform .3s; }
.spin-btn .label { position: absolute; bottom: 24px; font-family: var(--display); font-size: 19px; letter-spacing: 3px; }
.spin-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateX(-50%) scale(1.03); }
.spin-btn:active:not(:disabled) { transform: translateX(-50%) scale(.96); }
.spin-btn:disabled { filter: saturate(.5) brightness(.75); }
.spin-btn.busy svg { animation: spinIcon 1.1s linear infinite; }
.spin-btn.pulse { animation: spinPulse 1.6s ease-in-out infinite; }
@keyframes spinIcon { to { transform: rotate(360deg); } }
@keyframes spinPulse { 50% { box-shadow: 0 0 0 5px #140604, 0 0 0 8px #a8853d, 0 14px 30px #000c, 0 0 90px #f4bb4e77, inset 0 -8px 16px #00000040, inset 0 6px 10px #fff8; } }
.spin-side { position: absolute; left: 50%; top: 330px; transform: translateX(-50%); display: flex; gap: 22px; }
.round-btn { width: 72px; height: 72px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(180deg, #3a1a0e, #170705); border: 1px solid #b0703066; box-shadow: 0 5px 12px #0009, inset 0 1px 0 #ffffff22; color: #f0d8bd; transition: filter .15s, transform .1s; }
.round-btn svg { width: 26px; height: 26px; fill: currentColor; }
.round-btn small { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; }
.round-btn .ico-stop { display: none; }
.round-btn.on { color: var(--gold-1); box-shadow: 0 0 0 2px var(--gold-3), 0 0 18px #f7d36a66, 0 5px 12px #0009; }
.round-btn.running .ico-play { display: none; }
.round-btn.running .ico-stop { display: block; }
.round-btn:hover:not(:disabled) { filter: brightness(1.25); }
.round-btn:disabled { opacity: .45; }
.gamble-btn { position: absolute; left: 50%; top: 420px; transform: translateX(-50%); width: 150px; height: 46px; border-radius: 23px; background: linear-gradient(180deg, #3a1a0e, #170705); border: 1px solid #b0703066; box-shadow: 0 4px 10px #0009; display: flex; align-items: center; justify-content: center; gap: 8px; }
.gamble-btn small { font-size: 10px; letter-spacing: 2px; color: #d0a882; font-weight: 700; }
.gamble-btn b { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: #f6e3c8; font-weight: 400; }
.gamble-btn.on b { color: var(--gold-1); }
.gamble-btn:disabled { opacity: .5; }
.portrait .panel { top: auto; height: auto; width: auto; }
.portrait .panel.left { left: 12px; right: 12px; top: 770px; height: 96px; }
.portrait .panel-base { flex-direction: row; align-items: stretch; }
.portrait .panel-bonus { flex-direction: row; }
.portrait .buy-btn { height: 96px; padding: 0 12px; flex: 1.05; font-size: 24px; }
.portrait .buy-btn .sym { width: 50px; height: 50px; }
.portrait .mode-btn { height: 96px; flex: 1; padding: 0 10px; gap: 8px; }
.portrait .mode-btn b { font-size: 18px; }
.portrait .hints { flex-direction: column; justify-content: center; padding: 0 4px; gap: 4px; flex: .9; }
.portrait .hint { font-size: 9px; letter-spacing: 1px; }
.portrait .hint .sym { width: 34px; height: 32px; }
.portrait .feature-badge { flex: 1; display: grid; place-items: center; font-size: 20px; }
.portrait .meter { flex: 1; padding: 6px; }
.portrait .meter b, .portrait .meter.spins b { font-size: 32px; }
.portrait .meter.qualify b { font-size: 22px; }
.portrait .tiers { display: none; }
.portrait .panel.right { left: 0; right: 0; top: 872px; height: 180px; }
.portrait .spin-btn { top: 2px; width: 176px; height: 176px; }
.portrait .spin-side { left: auto; right: 40px; top: 40px; transform: none; flex-direction: column; gap: 14px; }
.portrait .gamble-btn { left: 40px; top: 66px; transform: none; width: 150px; }

/* ---------- hud ---------- */
.hud { position: absolute; left: 0; right: 0; bottom: 30px; height: 84px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 60px; background: linear-gradient(180deg, #14050500, #140505e6 30%, #0a0303f5); border-top: 1px solid #b0703033; z-index: 4; }
.hud-item span { display: block; font-size: 11px; letter-spacing: 3px; color: #d0a882; font-weight: 700; }
.hud-item b { display: block; font-family: var(--display); font-size: 34px; line-height: 1.1; color: #fbf1e3; letter-spacing: 1px; font-variant-numeric: tabular-nums; font-weight: 400; text-shadow: 0 2px 4px #000; }
.hud-item.win { text-align: right; }
.hud-item.win b { color: var(--gold-1); text-shadow: 0 0 18px #f7d36a55, 0 2px 4px #000; }
.hud-item.win.count b { animation: winGlow .5s ease-in-out infinite alternate; }
@keyframes winGlow { to { text-shadow: 0 0 30px #f7d36a, 0 2px 4px #000; transform: scale(1.04); } }
.hud-item.stake { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.stake-btn { width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 1; display: grid; place-items: center; background: linear-gradient(180deg, #3a1a0e, #170705); border: 1px solid #b0703066; box-shadow: 0 4px 10px #0009, inset 0 1px 0 #ffffff22; color: #f6e3c8; transition: filter .15s, transform .1s; }
.stake-btn:hover:not(:disabled) { filter: brightness(1.3); }
.stake-btn:active:not(:disabled) { transform: scale(.94); }
.stake-btn:disabled { opacity: .35; }
.footer-note { position: absolute; left: 60px; right: 60px; bottom: 9px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 2px; color: #a07d5c; font-weight: 700; z-index: 4; }
.portrait .hud { bottom: 136px; height: 90px; padding: 0 28px; }
.portrait .hud-item b { font-size: 30px; }
.portrait .footer-note { left: 24px; right: 24px; bottom: 112px; }

#fx { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.toast { position: absolute; left: 50%; top: 96px; transform: translate(-50%, -20px); padding: 10px 22px; border-radius: 30px; background: #140505e8; border: 1px solid #ffd07a66; color: #ffe6b3; font-size: 13px; letter-spacing: 2px; font-weight: 700; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 60; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.portrait .toast { top: 700px; }

/* ---------- overlays ---------- */
.overlay { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #3a170dcc, #070203e8 75%); animation: fadeIn .3s ease-out; }
.overlay[hidden] { display: none; }
.overlay.splash { background: radial-gradient(ellipse at 50% 30%, #5a2410cc, #070203f2 70%); z-index: 50; }
@keyframes fadeIn { from { opacity: 0; } }
.card { position: relative; width: 520px; max-width: calc(100% - 40px); padding: 30px 34px 28px; border-radius: 22px; background: linear-gradient(160deg, #3a170d, #140505 60%, #24100a); border: 1px solid #c89b3f; box-shadow: 0 30px 90px #000d, inset 0 0 0 3px #ffffff0c, inset 0 1px 0 #ffffff33; text-align: center; animation: cardIn .45s cubic-bezier(.2, 1.3, .4, 1); display: flex; flex-direction: column; align-items: center; gap: 14px; }
@keyframes cardIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }
.card .close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; color: #f0d8bd; background: #170705; border: 1px solid #b0703066; display: grid; place-items: center; line-height: 1; z-index: 2; }
.card .close:hover { filter: brightness(1.4); }
.kicker { font-size: 12px; letter-spacing: 4px; color: #f3c98a; font-weight: 700; }
.ov-title { margin: 0; font-family: var(--display); font-size: 40px; letter-spacing: 2px; line-height: 1; color: #ffe9a6; text-shadow: 0 3px 0 #6b3d05, 0 6px 14px #000; font-weight: 400; }
.ov-sub { margin: 0; font-size: 12px; letter-spacing: 2.6px; color: #d0a882; font-weight: 700; }
.feature-title { margin: 0; font-family: var(--display); font-size: 58px; letter-spacing: 3px; line-height: 1; background: linear-gradient(180deg, #fff9d6, #ffe27a 40%, #f3ad2b 60%, #b76a10 80%, #ffd86a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #6b3d05) drop-shadow(0 8px 14px #000c); transform: skewX(-5deg); font-weight: 400; white-space: nowrap; }
.feature-title.blue { background: linear-gradient(180deg, #ffffff, #8fe3ff 40%, #3d9be0 60%, #11466e 80%, #a9dcff); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 #062033) drop-shadow(0 8px 14px #000c); }
.cta { min-width: 260px; height: 58px; padding: 0 30px; border-radius: 12px; font-family: var(--display); font-size: 22px; letter-spacing: 2.5px; color: #2b1a04; background: linear-gradient(180deg, #ffd766, #d59a2c 55%, #8f5a12); border: 2px solid #fff0b3; box-shadow: 0 5px 0 #4a2e08, 0 12px 24px #000a, inset 0 1px 0 #fff8; text-shadow: 0 1px 0 #ffe8a8; transition: transform .1s, filter .15s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.cta small { font-family: var(--cond); font-size: 12px; letter-spacing: 1px; font-weight: 700; opacity: .8; }
.cta:hover:not(:disabled) { filter: brightness(1.1); }
.cta:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #4a2e08, 0 6px 12px #000a; }
.cta:disabled { filter: saturate(.4) brightness(.6); }
.cta.ghost { background: linear-gradient(180deg, #4a2414, #24100a); color: #f6e3c8; border-color: #b07030; box-shadow: 0 5px 0 #0a0303, 0 12px 24px #000a; text-shadow: none; }
.cta.alt { background: linear-gradient(180deg, #b46cff, #5e2ea6 60%, #341560); color: #fff; border-color: #e6ccff; box-shadow: 0 5px 0 #1e0a3a, 0 12px 24px #000a; text-shadow: 0 1px 0 #3a1a6a; }
.cta.blue { background: linear-gradient(180deg, #8fe3ff, #2f7fb8 55%, #0d3a5a); color: #fff; border-color: #eaf8ff; box-shadow: 0 5px 0 #062033, 0 12px 24px #000a; text-shadow: 0 1px 0 #062033; }
.cta.ghost:active:not(:disabled), .cta.alt:active:not(:disabled), .cta.blue:active:not(:disabled) { box-shadow: 0 1px 0 #0a0303, 0 6px 12px #000a; }
.fine { margin: 0; font-size: 12px; line-height: 1.6; color: #d0a882; }

/* splash */
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; animation: cardIn .8s cubic-bezier(.2, 1.2, .4, 1); }
.splash-cast { display: flex; gap: 8px; }
.splash-cast .sym { width: 124px; height: 124px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 10px #000); }
.splash-cast .sym:nth-child(2) { animation-delay: -.7s; } .splash-cast .sym:nth-child(3) { animation-delay: -1.4s; } .splash-cast .sym:nth-child(4) { animation-delay: -2.1s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.loading { width: 320px; height: 8px; border-radius: 4px; background: #170705; border: 1px solid #b0703066; overflow: hidden; }
.loading i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c48a24, #ffe27a); transition: width .3s; box-shadow: 0 0 12px #ffe27a; }
.loading.done { display: none; }
.splash .cta { animation: spinPulse 1.6s ease-in-out infinite; }
.splash-note { margin: 0; font-size: 12px; letter-spacing: 1px; color: #d0a882; }
.portrait .logo.big { width: 600px; }
.portrait .logo.big .logo-main { font-size: 120px; }
.portrait .splash-cast .sym { width: 130px; height: 130px; }

/* select (Rising Fortune heat) */
.card.select { width: 760px; gap: 10px; }
.select-cards { display: flex; gap: 14px; margin-top: 8px; }
.select-card { --pc1: #38d68a; --pc2: #0a4a2c; width: 168px; padding: 16px 12px 14px; border-radius: 14px; background: linear-gradient(180deg, var(--pc1), var(--pc2) 70%); border: 3px solid #ffe9a6; box-shadow: 0 8px 24px #000a, inset 0 1px 0 #fff8; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-shadow: 0 2px 0 #000a; transition: transform .15s, filter .15s; }
.select-card.green { --pc1: #38d68a; --pc2: #0a4a2c; } .select-card.gold { --pc1: #ffb347; --pc2: #8a3a05; } .select-card.red { --pc1: #ff4e5f; --pc2: #6b0716; } .select-card.purple { --pc1: #b46cff; --pc2: #3b0f6e; }
.select-card b { font-family: var(--display); font-size: 58px; line-height: .95; }
.select-card span { font-size: 10px; letter-spacing: 2.5px; font-weight: 700; }
.select-card .sym { width: 96px; height: 86px; }
.select-card .mystery { width: 96px; height: 86px; display: grid; place-items: center; font-family: var(--display); font-size: 66px; color: #fff; text-shadow: 0 0 20px #ffc838, 0 3px 0 #3b0f6e; }
.select-card em { font-style: normal; font-family: var(--display); font-size: 20px; color: #ffe9a6; letter-spacing: 1px; }
.select-card small { font-size: 10px; letter-spacing: .6px; font-weight: 700; opacity: .9; line-height: 1.3; }
.select-card:hover { transform: translateY(-4px); filter: brightness(1.12); }
.select-card:disabled { filter: brightness(.6); transform: none; }
.portrait .card.select { width: 680px; }
.portrait .select-cards { flex-wrap: wrap; justify-content: center; }
.portrait .select-card { width: 290px; }

/* intro / summary / result */
.card.intro { width: 600px; }
.intro-art { display: flex; align-items: center; gap: 16px; }
.intro-art .sym { width: 190px; height: 190px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 12px #000); }
.free-spins { text-align: center; }
.free-spins b { display: block; font-family: var(--display); font-size: 120px; line-height: .9; color: #ffe27a; text-shadow: 0 4px 0 #6b3d05, 0 8px 18px #000; }
#stage.big .free-spins b { color: #eaf8ff; text-shadow: 0 4px 0 #0d3a5a, 0 8px 18px #000, 0 0 30px #8fe3ff88; }
.free-spins span { font-size: 15px; letter-spacing: 4px; font-weight: 700; color: #f3c98a; }
.intro-copy { margin: 0; font-size: 15px; line-height: 1.55; color: #ead9c4; max-width: 480px; }
.tier-row { display: flex; gap: 16px; }
.tier-row > div { width: 96px; text-align: center; }
.tier-row .sym { width: 96px; height: 84px; }
.tier-row span:not(.sym) { display: block; font-size: 11px; letter-spacing: 2.5px; font-weight: 700; color: #e6c9a6; }
.tier-row.facts > div { width: 130px; padding: 12px 8px; border-radius: 10px; background: #071726aa; border: 1px solid #7fb6d655; }
.tier-row.facts b { display: block; font-family: var(--display); font-size: 34px; color: #eaf8ff; text-shadow: 0 2px 0 #0d3a5a; }
.tier-row.facts span { color: #a9dcff; margin-top: 4px; }
.summary-amount span { display: block; font-size: 13px; letter-spacing: 4px; color: #f3c98a; font-weight: 700; }
.summary-amount b { display: block; font-family: var(--display); font-size: 84px; line-height: 1.1; color: #ffe9a6; text-shadow: 0 4px 0 #6b3d05, 0 8px 18px #000, 0 0 40px #f7d36a55; font-variant-numeric: tabular-nums; }
.summary-chips { display: flex; gap: 14px; }
.summary-chips .chip { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 20px; letter-spacing: 1px; color: #f6e3c8; }
.summary-chips .sym { width: 50px; height: 44px; }
.result-amount { font-family: var(--display); font-size: 90px; line-height: 1.1; color: #ffe9a6; text-shadow: 0 4px 0 #6b3d05, 0 8px 18px #000, 0 0 40px #f7d36a55; font-variant-numeric: tabular-nums; padding: 10px 0; }
.card.result { padding-top: 40px; }

/* big win */
.overlay.bigwin { background: radial-gradient(ellipse at 50% 50%, #5a2410cc, #070203e0 70%); z-index: 45; cursor: pointer; }
.bigwin-inner { text-align: center; animation: bigIn .7s cubic-bezier(.17, .89, .3, 1.25); }
@keyframes bigIn { from { transform: scale(.3); opacity: 0; } }
.bigwin-title { font-family: var(--display); font-size: 150px; line-height: .9; letter-spacing: 6px; background: linear-gradient(180deg, #fff9d6, #ffe27a 35%, #f3ad2b 55%, #b76a10 75%, #ffd86a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 #6b3d05) drop-shadow(0 8px 0 #3a2002) drop-shadow(0 20px 30px #000); transform: skewX(-6deg); animation: titleThrob 1s ease-in-out infinite alternate; }
.bigwin-title.mega { background: linear-gradient(180deg, #fff0e0, #ff8a2a 35%, #e0321a 60%, #6b0716 80%, #ffb347); -webkit-background-clip: text; background-clip: text; }
.bigwin-title.epic { background: linear-gradient(180deg, #e2fbff, #6fe7ff 35%, #1fa2ff 60%, #0a3d8a 80%, #9be7ff); -webkit-background-clip: text; background-clip: text; }
@keyframes titleThrob { to { transform: skewX(-6deg) scale(1.05); } }
.bigwin-amount { font-family: var(--display); font-size: 110px; line-height: 1; color: #fff; text-shadow: 0 4px 0 #6b3d05, 0 10px 24px #000, 0 0 60px #ffd86a88; margin-top: 12px; font-variant-numeric: tabular-nums; }
.bigwin-note { margin-top: 18px; font-size: 12px; letter-spacing: 4px; color: #f6e3c8aa; font-weight: 700; }
.portrait .bigwin-title { font-size: 120px; }
.portrait .bigwin-amount { font-size: 90px; }

/* jackpot */
.overlay.potwin { --glow: #ffd44d; background: radial-gradient(ellipse at center, #5a2410dd, #070203f2 75%); z-index: 47; overflow: hidden; cursor: pointer; }
.rays { position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-conic-gradient(from 0deg, transparent 0deg 12deg, #f9d99118 12deg 18deg, transparent 18deg 26deg); animation: rays 24s linear infinite; -webkit-mask-image: radial-gradient(#000 0%, #000 30%, transparent 70%); mask-image: radial-gradient(#000 0%, #000 30%, transparent 70%); }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.pot-inner { position: relative; text-align: center; animation: bigIn .8s cubic-bezier(.17, .89, .3, 1.25); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pot-amount { font-family: var(--display); font-size: 96px; line-height: 1.1; color: #fff; text-shadow: 0 4px 0 #8b5d28, 0 10px 24px #000; font-variant-numeric: tabular-nums; }
.jackpot-title { margin: 6px 0; font-family: var(--display); font-size: 170px; line-height: .9; letter-spacing: 8px; background: linear-gradient(180deg, #fff9d6, #ffe27a 35%, #f3ad2b 55%, #b76a10 75%, #ffd86a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 #6b3d05) drop-shadow(0 8px 0 #3a2002) drop-shadow(0 20px 40px #000) drop-shadow(0 0 40px #ffd44d88); transform: skewX(-6deg); animation: titleThrob .9s ease-in-out infinite alternate; }
.kicker.dim { opacity: .75; margin-top: 10px; }
.portrait .jackpot-title { font-size: 128px; }

/* gamble */
.card.gamble { width: 640px; gap: 8px; padding: 22px 28px 20px; }
.risk-wrap { position: relative; width: 190px; height: 190px; margin: 2px 0; }
.risk-wheel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #d9b45c; background: conic-gradient(#1f9a72 0deg 145deg, #a52443 145deg 360deg); box-shadow: 0 0 0 3px #3b2708, 0 12px 30px #000c, inset 0 0 30px #0009; will-change: transform; }
.risk-wheel span, .risk-wheel b { position: absolute; font-family: var(--display); font-size: 14px; letter-spacing: 1px; color: #fff3cf; text-shadow: 0 2px 0 #000; }
.risk-wheel span { right: 14px; top: 40px; transform: rotate(60deg); }
.risk-wheel b { left: 14px; bottom: 44px; transform: rotate(240deg); font-weight: 400; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3c4, #d9a13c 50%, #6b4310); border: 4px solid #ffe9a6; box-shadow: 0 0 0 3px #3b2708, 0 8px 20px #000c, inset 0 -4px 8px #0006; z-index: 3; }
.wheel-hub .sym { width: 44px; height: 44px; mix-blend-mode: normal; border-radius: 50%; background-color: #1c0806; }
.wheel-pointer { position: absolute; left: 50%; top: -18px; width: 30px; height: 40px; margin-left: -15px; z-index: 4; transform-origin: 50% 15%; filter: drop-shadow(0 6px 6px #000c); background: linear-gradient(180deg, #ffe9a6, #d9a13c); clip-path: polygon(50% 100%, 0 22%, 12% 0, 88% 0, 100% 22%); }
.risk-result { min-height: 26px; font-family: var(--display); font-size: 24px; letter-spacing: 2px; color: #ffe9a6; text-shadow: 0 2px 0 #5a3a05, 0 3px 8px #000; }
.gamble-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; width: 100%; align-items: center; }
.gamble-grid .cta { width: 100%; min-width: 0; height: 52px; font-size: 16px; padding: 0 12px; flex-direction: column; gap: 0; line-height: 1; }
.gamble-grid .cta small { font-size: 10px; }
.gamble-grid .fine, .gamble-grid .collect-row { grid-column: 1 / -1; }
.gamble-grid .fine { text-align: center; font-size: 11px; line-height: 1.5; }
.collect-row { display: flex; gap: 10px; }
.collect-row .cta { flex: 1; }
#gamble-cash { grid-template-areas: 'segc segf' 'btnc segb' 'btnc btnb' 'fine fine' 'coll coll'; }
#seg-cash { grid-area: segc; } #seg-family { grid-area: segf; } #btn-gamble-cash { grid-area: btnc; height: 100%; min-height: 96px; } #seg-bonus { grid-area: segb; } #btn-gamble-bonus { grid-area: btnb; } #gamble-fine { grid-area: fine; } .collect-row { grid-area: coll; }
#gamble-chance { grid-template-columns: 1fr; }
.seg { display: flex; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid #b0703066; background: #170705; }
.seg button { flex: 1; height: 40px; font-family: var(--display); font-size: 14px; letter-spacing: 1.2px; color: #d0a882; transition: background .15s, color .15s; padding: 0 4px; }
.seg button + button { border-left: 1px solid #b0703044; }
.seg button.on { background: linear-gradient(180deg, #ffd766, #d59a2c); color: #2b1a04; }
.seg button.on.big { background: linear-gradient(180deg, #8fe3ff, #2f7fb8); color: #fff; }
.seg button:disabled { opacity: .35; }

/* dialogs */
.card.dialog { width: 620px; max-height: 670px; gap: 10px; padding-top: 26px; }
.dialog-body { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; overflow: auto; max-height: 530px; padding: 2px; text-align: left; }
.dialog-body p { margin: 0; font-size: 15px; line-height: 1.6; color: #ead9c4; }
.dialog-body p.small { font-size: 12px; color: #d0a882; }
.dialog-body h3 { margin: 6px 0 0; font-size: 11px; letter-spacing: 3px; color: #f3c98a; }
.paytable { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.paytable > div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: #1c0806; border: 1px solid #4a2414; }
.paytable .sym { width: 82px; height: 72px; }
.paytable small { font-size: 11px; color: #e6c9a6; letter-spacing: .5px; line-height: 1.5; text-align: center; }
.paytable small b { color: #fff; }
.tier-table { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tier-table > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 10px; background: #1c0806; border: 1px solid #4a2414; text-align: center; }
.tier-table b { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: #ffe9a6; }
.tier-table span { font-size: 12px; color: #ead9c4; }
.tier-table small { font-size: 11px; color: #d0a882; }
.lines-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px 6px; }
.line-card { position: relative; }
.line-card b { position: absolute; top: -6px; left: -6px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #ffd35b; color: #2b1a04; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 1px; height: 34px; background: #4a2414; padding: 1px; border-radius: 3px; }
.mini-grid i { background: #1c0806; }
.mini-grid i.lit { background: #ffd35b; box-shadow: 0 0 4px #ffa700; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-list button { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border-radius: 10px; background: #24100a; border: 1px solid #5a2a14; color: #f6e3c8; font-size: 15px; font-weight: 600; }
.menu-list button:hover { filter: brightness(1.2); }
.menu-list button span:last-child { color: #d0a882; font-size: 18px; }
.history { display: flex; flex-direction: column; max-height: 160px; overflow: auto; }
.history > div { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid #5a2a143b; font-size: 13px; color: #d6bfa4; }
.history b { color: #e1c38a; }
.slider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #ead9c4; font-weight: 600; }
.slider span { width: 90px; letter-spacing: 1px; }
.slider input { flex: 1; accent-color: #f7d36a; }
.slider b { width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.choice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #ead9c4; font-weight: 600; }
.choice-row .seg { width: auto; flex: 1; }
.buy-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.buy-tiers button { --tc: #ffd35b; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: #24100a; border: 1px solid #5a2a14; color: #f6e3c8; }
.buy-tiers button.on { border-color: var(--tc); background: linear-gradient(#4a2414, #24100a); box-shadow: 0 0 0 1px var(--tc), 0 0 20px color-mix(in srgb, var(--tc) 35%, transparent); }
.buy-tiers button.blue.on { --tc: #8fe3ff; }
.buy-tiers span { font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
.buy-tiers b { font-family: var(--display); font-size: 30px; color: #f1d499; font-weight: 400; }
.buy-tiers small { font-size: 10px; color: #d0a882; letter-spacing: .5px; text-align: center; }
.buy-tiers .sym { width: 74px; height: 66px; }
.buy-tiers .tier-tag, .paytable .tier-tag { display: none; }
.buy-art { display: flex; justify-content: center; gap: 4px; }
.buy-art .sym { width: 120px; height: 108px; }
.purchase { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #d0a882; font-weight: 600; }
.purchase b { font-family: var(--display); font-size: 26px; color: #f1d498; font-weight: 400; }
.help-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.help-nav .dots { display: flex; gap: 8px; }
.help-nav .dots button { width: 9px; height: 9px; border-radius: 50%; background: #5a2a14; }
.help-nav .dots button.on { background: #eec57c; }
.help-nav .nav { width: 40px; height: 40px; border-radius: 50%; background: #170705; border: 1px solid #b0703066; color: #f6e3c8; font-size: 20px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-grid button { height: 44px; border-radius: 8px; background: #24100a; border: 1px solid #5a2a14; color: #f6e3c8; font-size: 13px; font-weight: 600; }
.demo-grid button:hover { filter: brightness(1.3); }
.dialog .cta { align-self: center; }
.card.dialog.buy { width: 820px; max-height: 690px; }
.card.dialog.buy .dialog-body { max-height: 600px; gap: 14px; }
.card.dialog.buy .seg button { height: 50px; font-size: 18px; }
.card.dialog.buy .cta { height: 64px; font-size: 24px; min-width: 340px; }
.astats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.astat { background: #1c0806; border: 1px solid #4a2414; border-radius: 8px; padding: 8px 10px; }
.astat span { display: block; font-size: 9px; letter-spacing: 1.5px; color: #d0a882; font-weight: 700; }
.astat b { display: block; font-family: var(--display); font-size: 22px; color: #fbf1e3; font-variant-numeric: tabular-nums; font-weight: 400; }
.astat.good b { color: #5ee39c; } .astat.warn b { color: #f7d36a; } .astat.bad b { color: #ff5c5c; }
.arow { display: flex; gap: 10px; justify-content: center; }
.arow .cta { min-width: 0; padding: 0 22px; height: 48px; font-size: 18px; }
.pass-input { width: 100%; max-width: 320px; align-self: center; padding: 14px 16px; border-radius: 10px; border: 1px solid #b0703066; background: #0d0404; color: #fbf1e3; font: 26px var(--display); letter-spacing: 8px; text-align: center; }
.pass-input:focus { outline: 2px solid var(--gold-2); }
.pass-err { min-height: 18px; text-align: center; color: #ff5c5c; }
.portrait .card.dialog { width: 660px; max-height: 1000px; }
.portrait .dialog-body { max-height: 820px; }
.portrait .card.dialog.buy { width: 680px; max-height: 1000px; }
.portrait .card.dialog.buy .dialog-body { max-height: 860px; }
.portrait .lines-grid { grid-template-columns: repeat(5, 1fr); }
.portrait .card.gamble { width: 660px; }
.portrait .card.intro { width: 660px; }

/* jackpot run badge */
.jackpot-badge { position: absolute; left: 50%; top: 94px; transform: translateX(-50%); padding: 4px 14px; border-radius: 20px; background: linear-gradient(90deg, #ff4e5f, #ffb347); color: #fff; font-family: var(--cond); font-size: 11px; letter-spacing: 3px; font-weight: 700; box-shadow: 0 4px 12px #000a, 0 0 18px #ff4e5f88; z-index: 6; display: none; animation: blink 1.4s infinite; pointer-events: none; }
#stage.jackpot .jackpot-badge { display: block; }
.portrait .jackpot-badge { top: 218px; }

/* ---------- motion preferences ---------- */
#stage.reduced *, #stage.reduced *::before, #stage.reduced *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .05s !important; }
