/* Cops N Robbers · Smash N Grab · The Midnight Edition — 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. */

:root {
  --gold-1: #fff3c4; --gold-2: #f7d36a; --gold-3: #d9a13c; --gold-4: #8a5a14; --gold-5: #4a2e08;
  --navy-0: #03060f; --navy-1: #050b1a; --navy-2: #0a1428; --navy-3: #11203d; --navy-4: #1a2e55;
  --chrome-1: #f4f7fb; --chrome-2: #b9c4d4; --chrome-3: #6e7d94; --chrome-4: #2c3749; --chrome-5: #141b28;
  --red: #ff3b5c; --blue: #3d8bff; --green: #52e39c; --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: 132px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--navy-0); color: #eef2fa; 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(--navy-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: -4%; background-size: cover; background-position: center 45%; transition: opacity 1.4s ease; filter: saturate(.92) brightness(.95); }
.bg .city { background-image: url('../art/city.png'); animation: drift 40s ease-in-out infinite alternate; }
.bg .mansion { background-image: url('../art/mansion.png'); opacity: 0; animation: drift 46s ease-in-out infinite alternate-reverse; }
#stage.inside .bg .city { opacity: 0; }
#stage.inside .bg .mansion { opacity: 1; }
.portrait .bg .layer { background-position: center top; }
.moonglow { position: absolute; left: 50%; top: 0; width: 900px; height: 700px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 15%, #7f9fff30, transparent 55%); animation: breathe 9s ease-in-out infinite; pointer-events: none; }
#stage.heist .bg .city { filter: saturate(1.25) hue-rotate(-18deg) brightness(.9); }
#stage.heist .moonglow { background: radial-gradient(ellipse at 50% 10%, #ff7ad955, transparent 55%); }
#stage.inside .moonglow { background: radial-gradient(ellipse at 50% 10%, #ffbe6a2e, transparent 55%); }
.fog { position: absolute; inset: -20%; background: radial-gradient(ellipse at 20% 70%, #9db6ff14, transparent 45%), radial-gradient(ellipse at 75% 30%, #8fa8ff10, transparent 40%); pointer-events: none; mix-blend-mode: screen; }
.fog.a { animation: fogA 38s linear infinite; }
.fog.b { animation: fogB 52s linear infinite; opacity: .7; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 40%, #03060fcc 100%), linear-gradient(180deg, #03060f88, transparent 18%, transparent 78%, #03060fdd); pointer-events: none; }
.police { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.police i { position: absolute; top: -20%; bottom: -20%; width: 34%; filter: blur(30px); }
.police i:first-child { background: linear-gradient(90deg, transparent, #ff2d5a99, transparent); left: -40%; }
.police i:last-child { background: linear-gradient(90deg, transparent, #2f7dff99, transparent); left: 110%; }
.police.on { opacity: 1; animation: policeFade 2.6s ease-out forwards; }
.police.on i:first-child { animation: sweepR 2.6s cubic-bezier(.3, 0, .2, 1) forwards; }
.police.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: .55; } }
@keyframes fogA { to { transform: translate3d(12%, -4%, 0); } }
@keyframes fogB { 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 policeFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
#stage.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translate3d(-2px, 1px, 0); } 20%, 80% { transform: translate3d(3px, -1px, 0); } 30%, 50%, 70% { transform: translate3d(-5px, 2px, 0); } 40%, 60% { transform: translate3d(5px, -2px, 0); } }

/* ---------- symbols ---------- */
.sym { display: inline-block; width: 100%; height: 100%; background-image: url('../art/symbols.png'); background-repeat: no-repeat; background-size: 400% 265.97%; mix-blend-mode: lighten; flex-shrink: 0; }
.sym[data-id="cop"] { background-position: 0% 0%; }
.sym[data-id="robber"] { background-position: 33.333% 0%; }
.sym[data-id="wild"] { background-position: 66.667% 0%; }
.sym[data-id="boss"] { background-position: 100% 0%; }
.sym[data-id="bag"], .sym[data-id="bomb"], .sym[data-id="cash"], .sym[data-id="car"] { background-size: 400% 335.74%; background-position-y: 53.55%; }
.sym[data-id="bag"] { background-position-x: 0%; }
.sym[data-id="bomb"] { background-position-x: 33.333%; }
.sym[data-id="cash"] { background-position-x: 66.667%; }
.sym[data-id="car"] { background-position-x: 100%; }
.sym[data-id="bronze"], .sym[data-id="silver"], .sym[data-id="gold"], .sym[data-id="dynamite"] { background-size: 400% 306.59%; background-position-y: 100%; }
.sym[data-id="bronze"] { background-position-x: 0%; }
.sym[data-id="silver"] { background-position-x: 33.333%; }
.sym[data-id="gold"] { background-position-x: 66.667%; }
.sym[data-id="dynamite"] { background-position-x: 100%; }
.sym[data-id="a"] { background: none; mix-blend-mode: normal; display: inline-flex; align-items: center; justify-content: center; }
.sym[data-id="a"]::after { content: 'A'; font-family: var(--display); font-size: calc(var(--cell) * .68); line-height: 1; color: #ff5a6e; background: linear-gradient(180deg, #ffd6dc, #ff4b60 45%, #a3132b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 #5a0b18) drop-shadow(0 8px 10px #0009); transform: skewX(-4deg); }

/* ---------- logo ---------- */
.logo { position: absolute; left: 6px; top: 6px; width: 330px; text-align: center; filter: drop-shadow(0 10px 14px #000c); z-index: 3; pointer-events: none; }
.logo-top { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--display); font-size: 22px; letter-spacing: 1px; line-height: 1; }
.logo-top .cops { color: #9fd4ff; text-shadow: 0 2px 0 #0b3a66, 0 4px 0 #041a30, 0 6px 8px #000; transform: rotate(-4deg); }
.logo-top .robbers { color: #ffd07a; text-shadow: 0 2px 0 #7a4a08, 0 4px 0 #3a2202, 0 6px 8px #000; transform: rotate(4deg); }
.logo-top .n { position: relative; width: 32px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.logo-top .n .sym { position: absolute; inset: -6px; width: auto; height: auto; }
.logo-top .n b { position: relative; font-family: var(--display); font-size: 16px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 6px #000; }
.logo-main { font-family: var(--display); font-size: 52px; line-height: .92; white-space: nowrap; letter-spacing: 2px; margin-top: 2px; display: flex; justify-content: center; align-items: baseline; gap: 6px; transform: skewX(-6deg); }
.logo-main span { 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 em { font-style: italic; font-size: .55em; color: #ff5c7a; text-shadow: 0 2px 0 #6b0b20, 0 4px 6px #000; transform: translateY(-4px); }
.logo-sub { margin-top: 5px; font-size: 10px; letter-spacing: 4px; color: #b8c6de; font-weight: 600; }
.logo-sub::before, .logo-sub::after { content: ''; display: inline-block; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, #b8c6de99); vertical-align: middle; margin: 0 8px; }
.logo-sub::after { background: linear-gradient(90deg, #b8c6de99, transparent); }
.logo.big { position: static; width: 520px; filter: drop-shadow(0 14px 22px #000); }
.logo.big .logo-top { font-size: 40px; }
.logo.big .logo-top .n { width: 58px; height: 52px; }
.logo.big .logo-top .n b { font-size: 24px; }
.logo.big .logo-main { font-size: 108px; }
.logo.big .logo-sub { font-size: 15px; margin-top: 14px; }
.portrait .logo { left: 50%; top: 12px; width: 420px; transform: translateX(-50%); }
.portrait .logo-top { font-size: 30px; }
.portrait .logo-main { font-size: 74px; }

/* ---------- 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, #1c2a46, #0b1426); border: 1px solid #5c6f8f66; box-shadow: 0 4px 10px #0009, inset 0 1px 0 #ffffff22; color: #d8e2f2; 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; }

/* ---------- pots ---------- */
.pots { position: absolute; left: 348px; top: 16px; width: 584px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; z-index: 3; }
.pot { --pc1: #ff5a5a; --pc2: #7a0f1c; position: relative; height: 68px; border-radius: 10px; padding: 6px 6px 5px; text-align: center; 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; }
.pot::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, #ffffff2e 45%, transparent 55%); background-size: 250% 100%; animation: shimmer 6s ease-in-out infinite; }
.pot.grand { --pc1: #ff4e5f; --pc2: #6b0716; }
.pot.major { --pc1: #b26cff; --pc2: #3b0f6e; }
.pot.minor { --pc1: #3f96ff; --pc2: #0c2f6e; }
.pot.mini { --pc1: #38d68a; --pc2: #0a4a2c; }
.pot-name { display: block; font-family: var(--display); font-size: 17px; letter-spacing: 2px; color: #fff3cf; text-shadow: 0 2px 0 #000a; line-height: 1; }
.pot-mult { display: block; font-family: var(--display); font-size: 26px; line-height: 1; color: #ffe89a; text-shadow: 0 2px 0 #5a3a05, 0 3px 6px #000; margin-top: 1px; }
.pot-mult i { font-style: normal; font-size: 16px; margin-left: 1px; }
.pot-value { display: block; font-size: 10px; letter-spacing: 1px; color: #ffe9c2; opacity: .9; font-weight: 600; margin-top: 1px; }
.bulbs { position: absolute; inset: 3px; border-radius: 7px; pointer-events: none; background-image: radial-gradient(circle, #fff6c8 0 1.3px, transparent 2px); background-size: 12px 12px; background-position: 0 0; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 4px; opacity: .55; }
.pot.hit { animation: potHit .5s ease-in-out 6 alternate; transform: scale(1.06); }
.pot.hit .bulbs { animation: chase .3s steps(2) infinite; opacity: 1; }
@keyframes potHit { to { filter: brightness(1.9); box-shadow: 0 0 30px #ffd86a; } }
@keyframes chase { to { background-position: 6px 6px; } }
@keyframes shimmer { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.portrait .pots { left: 12px; top: 150px; width: 696px; gap: 8px; }
.portrait .pot { height: 64px; }

/* ---------- cabinet ---------- */
.cabinet { position: absolute; left: 268px; top: 110px; width: 744px; z-index: 2; }
.cabinet-title { display: flex; justify-content: space-between; padding: 0 12px 6px; font-size: 11px; letter-spacing: 2.2px; font-weight: 700; color: #b9c8e0; 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.inside .cabinet-title span:first-child::before { background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); }
@keyframes blink { 50% { opacity: .35; } }
.reels { position: relative; height: 434px; padding: 13px; border-radius: 16px; display: grid; grid-template-columns: repeat(5, var(--cell)); gap: 6px; justify-content: center; background: linear-gradient(160deg, #e9eef5 0%, #98a5b8 12%, #3b4a61 28%, #1b2536 46%, #6f7d92 64%, #d5dce6 80%, #43536c 100%); box-shadow: 0 0 0 2px #0a101c, 0 0 0 4px #7d8ba055, 0 30px 60px #000c, 0 0 80px #3a7bff22, inset 0 0 0 1px #ffffff66; }
.reels::before { content: ''; position: absolute; inset: 11px; border-radius: 8px; background: #040914; box-shadow: inset 0 0 0 1px #1b2740, 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.inside .reels { background: linear-gradient(160deg, #fff3c9 0%, #d9a94a 12%, #6d4a12 28%, #2a1c08 46%, #b9862a 64%, #ffe9a6 80%, #7a5716 100%); box-shadow: 0 0 0 2px #1a1004, 0 0 0 4px #c89b3f55, 0 30px 60px #000c, 0 0 90px #ffb43a2a, inset 0 0 0 1px #ffffff66; }
.reel { position: relative; height: 408px; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, #0f1b3a 0%, #1a2c57 50%, #0f1b3a 100%); box-shadow: inset 0 0 0 1px #2e4270, inset 0 18px 20px -14px #000, inset 0 -18px 20px -14px #000; }
.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.inside .reel { background: linear-gradient(180deg, #2a1650 0%, #3d2273 50%, #2a1650 100%); box-shadow: inset 0 0 0 1px #5a3aa0, 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: 92%; height: 92%; filter: drop-shadow(0 6px 4px #0008); transition: transform .25s, filter .25s; }
.cell .tag { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%) rotate(-5deg); font-family: var(--display); font-size: 15px; letter-spacing: 1.5px; color: #fff; padding: 1px 8px; border-radius: 4px; text-shadow: 0 1px 0 #000, 0 0 4px #000; pointer-events: none; }
.cell .tag.bonus { color: #c9ff8f; text-shadow: 0 2px 0 #1f4d0c, 0 -1px 0 #1f4d0c, 1px 0 0 #1f4d0c, -1px 0 0 #1f4d0c, 0 4px 8px #000; }
.cell .tag.wild { color: #ffe08a; text-shadow: 0 2px 0 #7a1d3a, 0 -1px 0 #7a1d3a, 1px 0 0 #7a1d3a, -1px 0 0 #7a1d3a, 0 4px 8px #000; }
.cell .tag.scatter { color: #fff1c6; font-size: 12px; text-shadow: 0 2px 0 #6a4a08, 0 -1px 0 #6a4a08, 1px 0 0 #6a4a08, -1px 0 0 #6a4a08, 0 4px 8px #000; }
.reel.spinning .cell .tag { opacity: 0; }
.reel.held { box-shadow: inset 0 0 0 3px var(--gold-2), inset 0 0 30px #f7d36a55; }
.reel.held::before { content: 'HELD'; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 4; font-family: var(--display); font-size: 13px; letter-spacing: 2px; color: var(--gold-1); background: #000000aa; padding: 2px 8px; border-radius: 4px; }
.reel.antic { box-shadow: inset 0 0 0 3px #ffb347, inset 0 0 40px #ff8a2a66; animation: anticGlow .5s ease-in-out infinite alternate; }
@keyframes anticGlow { to { box-shadow: inset 0 0 0 3px #fff0b3, inset 0 0 60px #ffb347aa; } }
.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: flash .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 flash { 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: 4px; 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; }
@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: wobble .6s ease-in-out; }
@keyframes wobble { 20%, 60% { transform: rotate(-4deg) scale(1.05); } 40%, 80% { transform: rotate(4deg) scale(1.05); } }
.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: 3; }

/* frames layer */
.frames { position: absolute; inset: 13px; display: grid; grid-template-columns: repeat(5, var(--cell)); grid-template-rows: repeat(3, var(--cell)); gap: 6px; justify-content: center; pointer-events: none; z-index: 2; }
.frame { position: relative; border-radius: 8px; opacity: 0; transition: opacity .3s; }
.frame[data-level="1"], .frame[data-level="2"], .frame[data-level="3"] { opacity: 1; }
.frame::before { content: ''; position: absolute; inset: 0; border-radius: 8px; border: 5px solid; border-image-slice: 1; }
.frame[data-level="1"]::before { border-color: #c47a3a; box-shadow: inset 0 0 0 2px #5e2f0e, inset 0 0 18px #ff9a4a55, 0 0 12px #c47a3a88; background: linear-gradient(135deg, #ff9a4a22, transparent 40%, transparent 60%, #ff9a4a15); }
.frame[data-level="2"]::before { border-color: #dfe7f0; box-shadow: inset 0 0 0 2px #5b6b80, inset 0 0 18px #ffffff66, 0 0 14px #dfe7f0aa; background: linear-gradient(135deg, #ffffff30, transparent 40%, transparent 60%, #ffffff18); }
.frame[data-level="3"]::before { border-color: #ffd44d; box-shadow: inset 0 0 0 2px #8a5a10, inset 0 0 22px #ffd44d77, 0 0 22px #ffc93aaa; background: linear-gradient(135deg, #ffe58a33, transparent 40%, transparent 60%, #ffe58a20); animation: goldGlow 1.8s ease-in-out infinite alternate; }
@keyframes goldGlow { to { box-shadow: inset 0 0 0 2px #8a5a10, inset 0 0 30px #ffd44daa, 0 0 34px #ffc93ad0; } }
.frame i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #7a8797 60%, #2c3749); box-shadow: 0 1px 2px #000; }
.frame i:nth-child(1) { left: 6px; top: 6px; } .frame i:nth-child(2) { right: 6px; top: 6px; } .frame i:nth-child(3) { left: 6px; bottom: 6px; } .frame i:nth-child(4) { right: 6px; bottom: 6px; }
.frame b { position: absolute; right: 10px; top: 8px; font-family: var(--display); font-size: 14px; letter-spacing: 1px; color: #fff3cf; text-shadow: 0 1px 2px #000, 0 0 6px #000; }
.frame.pop { animation: framePop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes framePop { 0% { transform: scale(.7); filter: brightness(2.5); } 100% { transform: scale(1); filter: brightness(1); } }
.fx-layer { position: absolute; inset: 13px; pointer-events: none; z-index: 6; }
.flyer { position: absolute; width: var(--cell); height: var(--cell); transform: translate(-50%, -50%); filter: drop-shadow(0 0 16px #ffd86a); z-index: 7; }
.large-bag { position: absolute; border-radius: 10px; background: #2a1650ee; border: 5px solid #ffd44d; box-shadow: 0 0 40px #ffd44d88, inset 0 0 30px #000; display: grid; place-items: center; animation: framePop .7s cubic-bezier(.2, 1.4, .4, 1); }
.large-bag .sym { width: 90%; height: 90%; }
.safe-val { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-family: var(--display); font-size: 24px; letter-spacing: 1px; color: #fff3cf; padding: 4px 12px; border-radius: 6px; background: linear-gradient(180deg, #1a1f30f0, #05080ff0); border: 1px solid #ffd44d88; box-shadow: 0 4px 12px #000; text-shadow: 0 2px 0 #000; animation: valPop .5s cubic-bezier(.2, 1.5, .4, 1); white-space: nowrap; z-index: 8; }
.safe-val.jackpot { color: #fff; background: linear-gradient(180deg, #ffb347, #c4471d); border-color: #fff0b3; font-size: 20px; }
@keyframes valPop { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.cell.opened .sym { filter: brightness(.55) drop-shadow(0 6px 4px #0008); }
.cell.cracking .sym { animation: crack 1s ease-in-out; }
@keyframes crack { 0%, 100% { transform: rotate(0); } 15%, 45%, 75% { transform: rotate(-3deg) translateX(-2px); } 30%, 60%, 90% { transform: rotate(3deg) translateX(2px); } }
.dial { position: absolute; width: 38%; height: 38%; border-radius: 50%; border: 4px solid #ffe9a6cc; border-top-color: transparent; z-index: 5; animation: dial .9s cubic-bezier(.5, 0, .3, 1) forwards; box-shadow: 0 0 12px #ffd86a, inset 0 0 12px #ffd86a; }
@keyframes dial { to { transform: rotate(1080deg); opacity: 0; } }

.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, #04091ad9 20%, #04091ad9 80%, transparent); transition: color .3s; }
.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: 226px; width: 704px; --cell: 130px; }
.portrait .reels { height: 428px; padding: 12px; --cell: 130px; }
.portrait .reel { height: 402px; }
.portrait .frames { inset: 12px; }
.portrait .fx-layer, .portrait .glass { inset: 12px; }

/* ---------- side panels ---------- */
.panel { position: absolute; top: 122px; width: 232px; height: 470px; z-index: 3; }
.panel.left { left: 20px; }
.panel.right { right: 20px; }
.panel-base, .panel-bonus { display: flex; flex-direction: column; gap: 12px; }
#stage.inside .panel-base, #stage.heist .panel-base, .panel-bonus { display: none; }
#stage.inside .panel-bonus, #stage.heist .panel-bonus { display: flex; }
.buy-btn { display: flex; align-items: center; gap: 10px; height: 78px; 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: 30px; letter-spacing: 2px; line-height: .95; text-shadow: 0 1px 0 #ffe8a8; transition: transform .1s, filter .15s; }
.buy-btn .sym { width: 56px; height: 56px; mix-blend-mode: normal; border-radius: 8px; background-color: #0d1730; 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, #1c2a48, #0b1428); border: 1px solid #5c6f8f66; 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: #8ea3c4; font-weight: 700; }
.mode-btn b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: 1.5px; color: #dbe5f5; margin-top: 2px; font-weight: 400; }
.mode-ind { width: 14px; height: 14px; border-radius: 50%; background: #2a3a58; box-shadow: inset 0 0 0 2px #0a1020, 0 0 0 1px #5c6f8f55; 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: #b9c8e0; line-height: 1.3; text-shadow: 0 1px 2px #000; }
.hint .sym { width: 44px; height: 40px; }
.hint b { color: var(--gold-2); }
.feature-badge { font-family: var(--display); font-size: 26px; letter-spacing: 2px; text-align: center; padding: 10px 8px; border-radius: 10px; color: #fff3cf; background: linear-gradient(180deg, #b0202f, #5d0c1a); border: 2px solid #ffd07a; box-shadow: 0 6px 16px #000a, inset 0 1px 0 #fff5; text-shadow: 0 2px 0 #000; }
.meter { padding: 10px 14px; border-radius: 10px; background: linear-gradient(180deg, #2a0f18, #150710); border: 2px solid #d9b45c; box-shadow: 0 6px 14px #000a, inset 0 0 0 2px #00000045; text-align: center; }
.meter span { display: block; font-size: 11px; letter-spacing: 2.6px; color: #f3c98a; font-weight: 700; }
.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; }
.meter.spins b { font-size: 46px; }
.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: 66px; height: 60px; }
.spin-btn { position: absolute; left: 50%; top: 150px; 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 #0a1020, 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 #0a1020, 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: 340px; 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, #1c2a48, #0b1428); border: 1px solid #5c6f8f66; box-shadow: 0 5px 12px #0009, inset 0 1px 0 #ffffff22; color: #c9d6ea; 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: 428px; transform: translateX(-50%); width: 140px; height: 44px; border-radius: 22px; background: linear-gradient(180deg, #1c2a48, #0b1428); border: 1px solid #5c6f8f66; 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: #8ea3c4; font-weight: 700; }
.gamble-btn b { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: #dbe5f5; 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: 712px; 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: 10px; letter-spacing: 1px; }
.portrait .hint .sym { width: 36px; height: 34px; }
.portrait .feature-badge { flex: 1; display: grid; place-items: center; font-size: 22px; }
.portrait .meter { flex: 1; padding: 6px; }
.portrait .meter b, .portrait .meter.spins b { font-size: 34px; }
.portrait .tiers { display: none; }
.portrait .panel.right { left: 0; right: 0; top: 830px; height: 220px; }
.portrait .spin-btn { top: 12px; width: 176px; height: 176px; }
.portrait .spin-side { left: auto; right: 40px; top: 46px; transform: none; flex-direction: column; gap: 14px; }
.portrait .gamble-btn { left: 40px; top: 90px; 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, #0b142a00, #0b142ae6 30%, #050b1af5); border-top: 1px solid #5c6f8f33; z-index: 4; }
.hud-item span { display: block; font-size: 11px; letter-spacing: 3px; color: #8ea3c4; font-weight: 700; }
.hud-item b { display: block; font-family: var(--display); font-size: 34px; line-height: 1.1; color: #eef2fa; 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, #1c2a48, #0b1428); border: 1px solid #5c6f8f66; box-shadow: 0 4px 10px #0009, inset 0 1px 0 #ffffff22; color: #dbe5f5; 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: #6e809c; 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: 88px; transform: translate(-50%, -20px); padding: 10px 22px; border-radius: 30px; background: #04091ae8; 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: 620px; }

/* ---------- overlays ---------- */
.overlay { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #0f1e3ecc, #03060fe8 75%); animation: fadeIn .3s ease-out; }
.overlay[hidden] { display: none; }
.overlay.splash { background: radial-gradient(ellipse at 50% 30%, #17305fcc, #03060ff2 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, #1a2a4a, #070f22 60%, #131f3a); border: 1px solid #b09563; 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: #c8d3e6; background: #0b1426; border: 1px solid #5c6f8f66; display: grid; place-items: center; line-height: 1; }
.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: #9fb2cf; 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; }
.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, #24365a, #101b33); color: #dbe5f5; border-color: #6d84ab; box-shadow: 0 5px 0 #0a1224, 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.ghost:active:not(:disabled), .cta.alt:active:not(:disabled) { box-shadow: 0 1px 0 #0a1224, 0 6px 12px #000a; }
.fine { margin: 0; font-size: 12px; line-height: 1.6; color: #9fb2cf; }

/* 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: 4px; }
.splash-cast .sym { width: 120px; height: 120px; animation: bob 3s ease-in-out infinite; }
.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: #0b1426; border: 1px solid #5c6f8f66; 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: #8ea3c4; }
.portrait .logo.big { width: 560px; }
.portrait .splash-cast .sym { width: 130px; height: 130px; }

/* wheel */
.wheel-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: cardIn .5s cubic-bezier(.2, 1.3, .4, 1); }
.wheel-wrap { position: relative; width: 470px; height: 470px; margin: 6px 0; }
.wheel-lights { position: absolute; inset: -16px; border-radius: 50%; background: radial-gradient(circle, #1c2a48, #070d1c 70%); box-shadow: 0 30px 70px #000d, 0 0 0 3px #d9b45c, 0 0 0 6px #3b2708, 0 0 60px #f7d36a33; }
.wheel-lights i { position: absolute; left: 50%; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffbe6, #f7d36a 55%, #b57d1a); box-shadow: 0 0 8px #ffe27a; transform-origin: 50% 247px; animation: bulb 1.2s ease-in-out infinite; }
.wheel-lights i:nth-child(odd) { animation-delay: -.6s; }
.wheel-lights.fast i { animation-duration: .25s; }
@keyframes bulb { 50% { opacity: .3; box-shadow: none; } }
.wheel { position: absolute; inset: 0; border-radius: 50%; will-change: transform; filter: drop-shadow(0 10px 20px #000c); }
.wheel svg { width: 100%; height: 100%; display: block; }
.wheel-label { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.wheel-label > span { position: absolute; top: 22px; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; line-height: 1; }
.wheel-label b { font-family: var(--display); font-size: 17px; letter-spacing: .5px; color: #fff3cf; text-shadow: 0 2px 0 #000b, 0 0 6px #000; font-weight: 400; max-width: 88px; }
.wheel-label em { font-style: normal; font-family: var(--display); font-size: 32px; color: #ffe27a; text-shadow: 0 2px 0 #5a3a05, 0 3px 8px #000; }
.wheel-label .sym { width: 58px; height: 50px; }
.wheel-label.win b, .wheel-label.win em { animation: labelWin .4s ease-in-out infinite alternate; }
@keyframes labelWin { to { transform: scale(1.15); filter: brightness(1.6) drop-shadow(0 0 10px #fff); } }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; 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: 66px; height: 66px; mix-blend-mode: normal; border-radius: 50%; background-color: #1a2a48; }
.wheel-hub.small { width: 60px; height: 60px; }
.wheel-hub.small .sym { width: 44px; height: 44px; }
.wheel-pointer { position: absolute; left: 50%; top: -30px; width: 48px; height: 64px; margin-left: -24px; 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%); }
.wheel-pointer.small { width: 30px; height: 40px; margin-left: -15px; top: -18px; }
.wheel-pointer.flick { animation: flick .12s ease-out; }
@keyframes flick { 30% { transform: rotate(-22deg); } }
.wheel-result { min-height: 30px; font-family: var(--display); font-size: 26px; letter-spacing: 2px; color: #ffe9a6; text-shadow: 0 2px 0 #5a3a05, 0 3px 8px #000; }
.portrait .wheel-wrap { width: 520px; height: 520px; }
.portrait .wheel-lights i { transform-origin: 50% 272px; }

/* intro / summary / result */
.card.intro { width: 560px; }
.intro-art { display: flex; align-items: center; gap: 12px; }
.intro-art .sym { width: 180px; height: 180px; animation: bob 3s ease-in-out infinite; }
.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; }
.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: #c9d6ea; max-width: 440px; }
.tier-row { display: flex; gap: 24px; }
.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: #b9c8e0; }
.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-safes { display: flex; gap: 14px; }
.summary-safes > div { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 22px; color: #dbe5f5; }
.summary-safes .sym { width: 46px; height: 40px; }
.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%, #3d2a0acc, #03060fe0 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, #ffe6ff, #ff7ad9 35%, #c227a6 60%, #5f0f5a 80%, #ff9bf0); -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: #dbe5f5aa; font-weight: 700; }
.portrait .bigwin-title { font-size: 120px; }
.portrait .bigwin-amount { font-size: 90px; }

/* pot celebration */
.overlay.potwin { --glow: #52e39c; background: radial-gradient(ellipse at center, #213555cc, #020615ee 75%); z-index: 46; overflow: hidden; }
.overlay.potwin.minor { --glow: #54bafa; } .overlay.potwin.major { --glow: #cb86ff; } .overlay.potwin.grand { --glow: #ff657c; }
.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-plaque { position: relative; width: 460px; padding: 22px 20px 20px; border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 70%), linear-gradient(180deg, #1a2a4a, #070f22); border: 3px solid #ffd07a; box-shadow: 0 0 0 3px #3b2708, 0 30px 80px #000, 0 0 80px var(--glow); }
.pot-plaque .sym { width: 150px; height: 130px; mix-blend-mode: normal; background-color: #0d1730; border-radius: 20px; box-shadow: 0 0 0 3px #3b2708, 0 0 30px #ffd96f88; animation: bob 2s ease-in-out infinite; }
.pot-plaque h2 { margin: 0; font-family: var(--display); font-size: 100px; line-height: .95; letter-spacing: 5px; color: #ffedb5; text-shadow: 0 4px 0 #bd862c, 0 8px 0 #6b3d14, 0 0 40px var(--glow); }
.pot-plaque small { display: block; font-size: 13px; letter-spacing: 5px; color: #f8dda3; font-weight: 700; margin-top: 6px; }
.pot-amount { font-family: var(--display); font-size: 84px; line-height: 1.1; color: #fff; text-shadow: 0 4px 0 #8b5d28, 0 10px 24px #000; font-variant-numeric: tabular-nums; }

/* gamble */
.card.gamble { width: 600px; 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: 6px; top: 46px; transform: rotate(60deg); }
.risk-wheel b { left: 10px; bottom: 48px; transform: rotate(240deg); font-weight: 400; }
.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: 50px; font-size: 17px; padding: 0 12px; flex-direction: column; gap: 0; line-height: 1; }
.gamble-grid .cta small { font-size: 10px; }
.gamble-grid .fine, .gamble-grid .cta.ghost { grid-column: 1 / -1; }
.gamble-grid .fine { text-align: center; font-size: 11px; line-height: 1.5; }
#gamble-cash { grid-template-areas: 'segc segb' 'btnc btnb' 'fine fine' 'coll coll'; }
#seg-cash { grid-area: segc; } #seg-bonus { grid-area: segb; } #btn-gamble-cash { grid-area: btnc; } #btn-gamble-bonus { grid-area: btnb; } #gamble-fine { grid-area: fine; } #btn-gamble-collect { grid-area: coll; }
#gamble-chance { grid-template-columns: 1fr; }
.seg { display: flex; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid #5c6f8f66; background: #0b1426; }
.seg button { flex: 1; height: 40px; font-family: var(--display); font-size: 16px; letter-spacing: 1.5px; color: #9fb2cf; transition: background .15s, color .15s; }
.seg button + button { border-left: 1px solid #5c6f8f44; }
.seg button.on { background: linear-gradient(180deg, #ffd766, #d59a2c); color: #2b1a04; }
.seg button:disabled { opacity: .35; }

/* dialogs */
.card.dialog { width: 600px; max-height: 660px; gap: 10px; padding-top: 26px; }
.dialog-body { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; overflow: auto; max-height: 520px; padding: 2px; text-align: left; }
.dialog-body p { margin: 0; font-size: 15px; line-height: 1.6; color: #d0daea; }
.dialog-body p.small { font-size: 12px; color: #9fb2cf; }
.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: #071329; border: 1px solid #1f2f4f; }
.paytable .sym { width: 76px; height: 68px; --cell: 76px; }
.paytable small { font-size: 11px; color: #d3bd92; letter-spacing: .5px; line-height: 1.5; text-align: center; }
.paytable small b { color: #fff; }
.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: #102039; border: 1px solid #364a66; color: #dbe5f5; font-size: 15px; font-weight: 600; }
.menu-list button:hover { filter: brightness(1.2); }
.menu-list button span:last-child { color: #8ea3c4; 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 #4358743b; font-size: 13px; color: #a8bbd4; }
.history b { color: #e1c38a; }
.slider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #c9d6ea; font-weight: 600; }
.slider span { width: 90px; letter-spacing: 1px; }
.slider input { flex: 1; accent-color: #f7d36a; }
.slider b { width: 44px; 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: #c9d6ea; font-weight: 600; }
.choice-row .seg { width: auto; flex: 1; }
.buy-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.buy-tiers button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 10px; background: #14223a; border: 1px solid #43546e; color: #d1def0; }
.buy-tiers button.on { border-color: #edc378; background: linear-gradient(#5a4529, #30291f); box-shadow: 0 0 0 1px #f1ca74, 0 0 20px #f7d36a33; }
.buy-tiers span { font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
.buy-tiers b { font-family: var(--display); font-size: 28px; color: #f1d499; font-weight: 400; }
.buy-tiers small { font-size: 10px; color: #aebbd0; letter-spacing: .5px; }
.buy-art { display: flex; justify-content: center; gap: 4px; }
.buy-art .sym { width: 110px; height: 100px; }
.purchase { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #9fb2cf; font-weight: 600; }
.purchase b { font-family: var(--display); font-size: 24px; 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: #435370; }
.help-nav .dots button.on { background: #eec57c; }
.help-nav .nav { width: 40px; height: 40px; border-radius: 50%; background: #0b1426; border: 1px solid #5c6f8f66; color: #dbe5f5; font-size: 20px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-grid button { height: 44px; border-radius: 8px; background: #14223a; border: 1px solid #43546e; color: #d1def0; font-size: 13px; font-weight: 600; }
.demo-grid button:hover { filter: brightness(1.3); }
.dialog .cta { align-self: center; }
.portrait .card.dialog { width: 640px; max-height: 1000px; }
.portrait .dialog-body { max-height: 820px; }

/* ---------- motion preferences ---------- */
#stage.reduced *, #stage.reduced *::before, #stage.reduced *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .05s !important; }

/* ---------- The Heist ---------- */
.sym[data-id="bar"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='top' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fffbe0'/%3E%3Cstop offset='1' stop-color='%23ffd85c'/%3E%3C/linearGradient%3E%3ClinearGradient id='front' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe27a'/%3E%3Cstop offset='.5' stop-color='%23f0b429'/%3E%3Cstop offset='1' stop-color='%23b3730f'/%3E%3C/linearGradient%3E%3ClinearGradient id='side' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23c98a1a'/%3E%3Cstop offset='1' stop-color='%236b4008'/%3E%3C/linearGradient%3E%3CradialGradient id='glow' cx='50%' cy='60%' r='50%'%3E%3Cstop offset='0' stop-color='%23ffd35b' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23ffd35b' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='60' cy='66' r='56' fill='url(%23glow)'/%3E%3Cg stroke='%235a3606' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpolygon points='6,78 52,78 57,98 2,98' fill='url(%23front)'/%3E%3Cpolygon points='12,66 46,66 52,78 6,78' fill='url(%23top)'/%3E%3Cpolygon points='52,78 57,98 61,94 56,76' fill='url(%23side)'/%3E%3Cpolygon points='62,78 108,78 113,98 58,98' fill='url(%23front)'/%3E%3Cpolygon points='68,66 102,66 108,78 62,78' fill='url(%23top)'/%3E%3Cpolygon points='108,78 113,98 117,94 112,76' fill='url(%23side)'/%3E%3Cpolygon points='34,52 82,52 88,72 28,72' fill='url(%23front)'/%3E%3Cpolygon points='40,38 76,38 82,52 34,52' fill='url(%23top)'/%3E%3Cpolygon points='82,52 88,72 92,68 86,50' fill='url(%23side)'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.75' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M42 41h30'/%3E%3Cpath d='M14 69h28'/%3E%3Cpath d='M70 69h28'/%3E%3C/g%3E%3Ctext x='60' y='66' text-anchor='middle' font-family='Impact,Arial Black,sans-serif' font-size='10' fill='%237a4a05' letter-spacing='.8'%3E1000g GOLD%3C/text%3E%3Ctext x='28' y='92' text-anchor='middle' font-family='Impact,Arial Black,sans-serif' font-size='8' fill='%237a4a05'%3E999.9%3C/text%3E%3Ctext x='84' y='92' text-anchor='middle' font-family='Impact,Arial Black,sans-serif' font-size='8' fill='%237a4a05'%3E999.9%3C/text%3E%3Cg fill='%23fff'%3E%3Cpath d='M22 30l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M100 26l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z'/%3E%3Cpath d='M60 104l1.2 3.6 3.6 1.2-3.6 1.2-1.2 3.6-1.2-3.6-3.6-1.2 3.6-1.2z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 96%; background-position: center 44%; mix-blend-mode: normal; filter: drop-shadow(0 0 12px #ffd35b99); }
.cell .tag.bar { bottom: 3px; color: #ff5a4a; text-shadow: 0 2px 0 #5a0b0b, 0 -1px 0 #5a0b0b, 1px 0 0 #5a0b0b, -1px 0 0 #5a0b0b, 0 4px 8px #000; font-size: 17px; }
.cell[data-id="collector"]::before { content: ''; position: absolute; inset: 5px; border-radius: 8px; border: 4px solid #ffd44d; box-shadow: inset 0 0 0 2px #7a4f0a, 0 0 16px #ffd44d99, inset 0 0 18px #ffd44d55; background: linear-gradient(160deg, #ffe58a22, transparent 45%); pointer-events: none; }
.cell .tag.collect { color: #fff3c4; background: linear-gradient(180deg, #c4471d, #7a1d0e); border: 1px solid #ffd07a; font-size: 12px; letter-spacing: 2px; padding: 2px 8px; }
.cell .val { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); min-width: 62%; text-align: center; font-family: var(--display); font-size: 21px; letter-spacing: 1px; color: #fff3cf; padding: 2px 8px; border-radius: 5px; background: linear-gradient(180deg, #1a1f30f2, #05080ff2); border: 1px solid #ffd44d99; box-shadow: 0 3px 8px #000; text-shadow: 0 2px 0 #000; white-space: nowrap; pointer-events: none; }
.cell .val.pot { color: #fff; border-color: #fff0b3; font-size: 15px; letter-spacing: 2px; }
.cell .val.pot.grand { background: linear-gradient(180deg, #ff4e5f, #6b0716); } .cell .val.pot.major { background: linear-gradient(180deg, #b26cff, #3b0f6e); } .cell .val.pot.minor { background: linear-gradient(180deg, #3f96ff, #0c2f6e); } .cell .val.pot.mini { background: linear-gradient(180deg, #38d68a, #0a4a2c); }
.reel.spinning .cell .val { opacity: 0; }
.cell.collected .val { animation: valTaken .5s ease-out forwards; }
@keyframes valTaken { to { transform: translateX(-50%) scale(.4); opacity: 0; } }
.cell.collector-hit .sym { animation: winPulse .6s ease-in-out infinite alternate; }
.flyer.chip { width: auto; height: auto; font-family: var(--display); font-size: 26px; color: #fff3cf; padding: 3px 12px; border-radius: 6px; background: linear-gradient(180deg, #2a1f10f2, #05080ff2); border: 2px solid #ffd44d; text-shadow: 0 2px 0 #000; white-space: nowrap; }
.stage-flyer { position: absolute; width: 96px; height: 96px; transform: translate(-50%, -50%); z-index: 38; filter: drop-shadow(0 0 18px #ffd86a); pointer-events: none; }
.stage-flyer .sym { width: 100%; height: 100%; }

.trail { position: absolute; left: 342px; top: 10px; width: 596px; height: 82px; padding: 7px 8px; border-radius: 12px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; z-index: 3; background: linear-gradient(180deg, #2a1650, #120826); border: 2px solid #d9b45c; box-shadow: 0 0 0 1px #3b2708, 0 8px 20px #000a, inset 0 0 20px #000; }
.trail[hidden] { display: none; }
.slot { position: relative; border-radius: 6px; background: linear-gradient(180deg, #1c1236, #0a0618); border: 1px solid #5c4a8a66; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.slot .sym { width: 78%; height: 78%; filter: grayscale(1) brightness(.45) contrast(1.2); transition: filter .3s, transform .3s; }
.slot.stage { background: linear-gradient(180deg, #4a2a06, #1c0f02); border-color: #d9b45c; }
.slot.stage b { font-family: var(--display); font-size: 17px; line-height: 1; color: #ffe9a6; text-shadow: 0 1px 0 #000; }
.slot.stage small { font-size: 7px; letter-spacing: 1px; color: #f3c98a; font-weight: 700; line-height: 1.1; text-align: center; }
.slot.stage em { font-style: normal; font-family: var(--display); font-size: 15px; color: #fff; background: #c4471d; padding: 0 5px; border-radius: 3px; margin-top: 2px; text-shadow: 0 1px 0 #000; }
.slot.lit { border-color: #ffd44d; box-shadow: 0 0 14px #ffd44d88, inset 0 0 12px #ffd44d33; background: linear-gradient(180deg, #3b2a6e, #1a1040); }
.slot.lit .sym { filter: none; transform: scale(1.05); }
.slot.lit.stage { background: linear-gradient(180deg, #ffb347, #8a3a05); }
.slot.lit.stage b, .slot.lit.stage small { color: #fff; }
.slot.next { animation: slotNext 1.2s ease-in-out infinite alternate; }
@keyframes slotNext { to { box-shadow: 0 0 14px #ffd44d, inset 0 0 12px #ffd44d55; border-color: #fff0b3; } }
.slot.hit { animation: framePop .5s cubic-bezier(.2, 1.5, .4, 1); }
#stage.heist .pots { display: none; }
#stage:not(.heist) .trail { display: none; }
#stage.heist .reels { background: linear-gradient(160deg, #ffd6f6 0%, #c64fb8 12%, #5a1d6e 28%, #22083a 46%, #a9469f 64%, #f5c7ee 80%, #5f2a78 100%); box-shadow: 0 0 0 2px #14061f, 0 0 0 4px #c47ac055, 0 30px 60px #000c, 0 0 90px #ff7ad92a, inset 0 0 0 1px #ffffff66; }
#stage.heist .reel { background: linear-gradient(180deg, #2a0f3a 0%, #45185e 50%, #2a0f3a 100%); box-shadow: inset 0 0 0 1px #7a3a96, inset 0 18px 20px -14px #000, inset 0 -18px 20px -14px #000; }
#stage.heist .cabinet-title span:first-child::before { background: #ff7ad9; box-shadow: 0 0 8px #ff7ad9; }
#stage.heist .feature-badge { background: linear-gradient(180deg, #8b2fb0, #3a0f5a); }
.meter.mult, .mini-pots { display: none; }
#stage.heist .meter.mult, #stage.heist .mini-pots { display: block; }
#stage.heist .tiers { display: none; }
.meter.mult b { color: #fff; }
.mini-pots { display: none; flex-direction: column; gap: 4px; }
#stage.heist .mini-pots { display: flex; }
.mini-pot { --pc1: #ff5a5a; --pc2: #7a0f1c; display: flex; justify-content: space-between; align-items: center; padding: 3px 10px; border-radius: 6px; background: linear-gradient(90deg, var(--pc1), var(--pc2)); border: 1px solid #d9b45c; font-family: var(--display); font-size: 15px; letter-spacing: 1.5px; color: #fff3cf; text-shadow: 0 1px 0 #000; }
.mini-pot.grand { --pc1: #ff4e5f; --pc2: #6b0716; } .mini-pot.major { --pc1: #b26cff; --pc2: #3b0f6e; } .mini-pot.minor { --pc1: #3f96ff; --pc2: #0c2f6e; } .mini-pot.mini { --pc1: #38d68a; --pc2: #0a4a2c; }
.mini-pot b { font-weight: 400; font-variant-numeric: tabular-nums; }
.mini-pot.hit { animation: potHit .4s ease-in-out 4 alternate; }
.stack { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: linear-gradient(180deg, #1c2a48, #0b1428); border: 1px solid #5c6f8f66; box-shadow: 0 4px 12px #0009, inset 0 1px 0 #ffffff1a; }
.stack .sym { width: 40px; height: 36px; flex-shrink: 0; }
.stack > div { flex: 1; }
.stack small { display: block; font-size: 9px; letter-spacing: 2px; color: #8ea3c4; font-weight: 700; margin-bottom: 4px; }
.stack i { display: block; height: 8px; border-radius: 4px; background: #0a1020; border: 1px solid #5c6f8f55; overflow: hidden; }
.stack i b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c48a24, #ffe27a); box-shadow: 0 0 8px #ffe27a; transition: width .4s; }
.stack > b { font-family: var(--display); font-size: 16px; color: #ffe9a6; letter-spacing: 1px; font-weight: 400; }
.stack.bump { animation: bump .35s ease-out; }
.stack.full { border-color: #ffd44d; box-shadow: 0 0 18px #ffd44d88; animation: spinPulse 1.2s ease-in-out infinite; }
.card.pick { width: 640px; }
.pick-cards { display: flex; gap: 14px; }
.pick-card { --pc1: #38d68a; --pc2: #0a4a2c; width: 180px; 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; }
.pick-card.gold { --pc1: #ffb347; --pc2: #8a3a05; } .pick-card.red { --pc1: #ff4e5f; --pc2: #6b0716; }
.pick-card b { font-family: var(--display); font-size: 54px; line-height: .95; }
.pick-card span { font-size: 11px; letter-spacing: 2.5px; font-weight: 700; }
.pick-card .sym { width: 96px; height: 90px; }
.pick-card em { font-style: normal; font-family: var(--display); font-size: 30px; color: #ffe9a6; }
.pick-card small { font-size: 10px; letter-spacing: 2px; font-weight: 700; opacity: .9; }
.pick-card:hover { transform: translateY(-4px); filter: brightness(1.12); }
.pick-card:disabled { filter: brightness(.6); transform: none; }
.pick-scale { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #c9d6ea; }
.pick-scale i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #38d68a, #ffb347, #ff4e5f); }
.pick-trail { display: flex; gap: 3px; margin-bottom: 4px; }
.pick-trail i { width: 12px; height: 12px; border-radius: 3px; background: #1c1236; border: 1px solid #5c4a8a; }
.pick-trail i.stage { background: #c4471d; }
.pick-trail i.on { background: #ffd44d; }
.summary-safes .chip { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 22px; color: #dbe5f5; }
.portrait .trail { left: 12px; top: 148px; width: 696px; height: 70px; padding: 6px; gap: 3px; }
.portrait .slot.stage b { font-size: 15px; } .portrait .slot.stage small { font-size: 6px; } .portrait .slot.stage em { font-size: 13px; }
.portrait .hints { gap: 2px; }
.portrait .stack { display: none; }
.portrait .mini-pots { display: none !important; }
.portrait .meter.mult { flex: .8; }
.portrait .card.pick { width: 660px; }
.portrait .pick-card { width: 190px; }

/* ---------- Collector character: golden robber clutching the loot ---------- */
.collector-art { position: relative; display: inline-block; width: 92%; height: 92%; flex-shrink: 0; }
.collector-art::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, #ffd44d55, transparent 62%); }
.collector-art .sym { position: absolute; width: auto; height: auto; }
.collector-art .sym[data-id="robber"] { left: 0; top: 0; width: 84%; height: 84%; filter: sepia(.6) saturate(1.8) hue-rotate(-8deg) brightness(1.12) drop-shadow(0 4px 4px #0008); }
.collector-art .sym[data-id="bag"] { right: -4%; bottom: -3%; width: 62%; height: 62%; filter: drop-shadow(0 0 10px #ffd44d) drop-shadow(0 4px 4px #0008); }
.cell .collector-art { width: 92%; height: 92%; }
.cell[data-id="collector"] .tag.collect { bottom: 4px; }
.slot .collector-art { width: 80%; height: 80%; }
.slot .collector-art .sym { filter: grayscale(1) brightness(.45) contrast(1.2); }
.slot.lit .collector-art .sym[data-id="robber"] { filter: sepia(.6) saturate(1.8) hue-rotate(-8deg) brightness(1.12); }
.slot.lit .collector-art .sym[data-id="bag"] { filter: drop-shadow(0 0 6px #ffd44d); }
.tier-row .collector-art { width: 96px; height: 84px; }
.pick-card .collector-art { width: 96px; height: 90px; }
.summary-safes .collector-art { width: 46px; height: 40px; }
.buy-art .collector-art { width: 110px; height: 100px; }
.stage-flyer .collector-art { width: 100%; height: 100%; }
.cell.collector-hit .collector-art .sym[data-id="bag"] { animation: bagShake .5s ease-in-out infinite alternate; }
@keyframes bagShake { to { transform: rotate(-12deg) scale(1.1); } }

/* ---------- bigger Bonus Buy ---------- */
.buy-btn { height: 88px; font-size: 34px; }
.buy-btn .sym { width: 64px; height: 64px; }
.card.dialog.buy { width: 800px; max-height: 690px; }
.card.dialog.buy .dialog-body { max-height: 600px; gap: 14px; }
.card.dialog.buy .buy-art .sym { width: 140px; height: 124px; }
.card.dialog.buy .seg button { height: 50px; font-size: 19px; }
.card.dialog.buy .buy-tiers { gap: 12px; }
.card.dialog.buy .buy-tiers button { padding: 18px 6px 16px; gap: 8px; border-radius: 14px; }
.card.dialog.buy .buy-tiers span { font-size: 14px; letter-spacing: 2px; }
.card.dialog.buy .buy-tiers b { font-size: 44px; }
.card.dialog.buy .buy-tiers small { font-size: 12px; letter-spacing: 1px; }
.card.dialog.buy .buy-tiers .sym { width: 74px; height: 66px; }
.card.dialog.buy .purchase b { font-size: 30px; }
.card.dialog.buy .cta { height: 64px; font-size: 25px; min-width: 340px; }
.portrait .buy-btn { height: 96px; font-size: 24px; }
.portrait .card.dialog.buy { width: 660px; max-height: 1000px; }
.portrait .card.dialog.buy .dialog-body { max-height: 860px; }
.portrait .card.dialog.buy .buy-tiers { grid-template-columns: 1fr 1fr; }

.mult-pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-size: 64px; letter-spacing: 2px; color: #fff; text-shadow: 0 4px 0 #8a1d62, 0 0 24px #ff7ad9, 0 10px 20px #000; z-index: 9; pointer-events: none; animation: multPop 1.4s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes multPop { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 70% { transform: translate(-50%, -70%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -110%) scale(.9); opacity: 0; } }
.meter.mult.up { border-color: #ff7ad9; box-shadow: 0 0 22px #ff7ad988, 0 6px 14px #000a; }
.meter.mult.up b { color: #ffd6f6; text-shadow: 0 0 16px #ff7ad9, 0 2px 0 #5a1a44; }

.collect-sum { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 24px; letter-spacing: 1px; color: #fff3cf; padding: 3px 12px; border-radius: 6px; background: linear-gradient(180deg, #2a1f10f2, #05080ff2); border: 2px solid #ffd44d; box-shadow: 0 4px 12px #000, 0 0 14px #ffd44d66; text-shadow: 0 2px 0 #000; white-space: nowrap; z-index: 9; pointer-events: none; }
.collect-sum.tick { animation: sumTick .3s ease-out; }
@keyframes sumTick { 40% { transform: translateX(-50%) scale(1.25); filter: brightness(1.6); } }
.collect-sum.boost { color: #fff; border-color: #ff7ad9; background: linear-gradient(180deg, #8b2fb0, #3a0f5a); box-shadow: 0 0 26px #ff7ad9, 0 4px 12px #000; animation: sumBoost .7s cubic-bezier(.2, 1.6, .4, 1); font-size: 28px; }
@keyframes sumBoost { 0% { transform: translateX(-50%) scale(.6) translateY(20px); } 50% { transform: translateX(-50%) scale(1.5) translateY(-8px); } 100% { transform: translateX(-50%) scale(1); } }

.astats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.astat { background: #071329; border: 1px solid #1f2f4f; border-radius: 8px; padding: 8px 10px; }
.astat span { display: block; font-size: 10px; letter-spacing: 2px; color: #8ea3c4; font-weight: 700; }
.astat b { display: block; font-family: var(--display); font-size: 24px; color: #eef2fa; font-variant-numeric: tabular-nums; font-weight: 400; }
.astat.good b { color: #52e39c; } .astat.warn b { color: #f7d36a; } .astat.bad b { color: #ff5c7a; }
.arow { display: flex; gap: 10px; justify-content: center; }
.arow .cta { min-width: 0; padding: 0 22px; height: 48px; font-size: 18px; }

/* ---------- symbol reactions ---------- */
.cell.hit[data-id="cop"]::after { content: ''; position: absolute; inset: 6%; border-radius: 12px; pointer-events: none; background: radial-gradient(circle at 30% 20%, #3d8bff66, transparent 55%), radial-gradient(circle at 70% 20%, #ff3b5c66, transparent 55%); animation: copLights .25s steps(2) infinite; mix-blend-mode: screen; }
@keyframes copLights { to { background: radial-gradient(circle at 30% 20%, #ff3b5c66, transparent 55%), radial-gradient(circle at 70% 20%, #3d8bff66, transparent 55%); } }
.cell.hit[data-id="car"] .sym { animation: carRev .5s ease-in-out infinite; }
@keyframes carRev { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-5px) rotate(-2deg); } 50% { transform: translateX(4px) rotate(1.5deg); } 75% { transform: translateX(-2px); } }
.cell.hit[data-id="car"]::after { content: ''; position: absolute; left: 4%; bottom: 8%; width: 30%; height: 22%; border-radius: 50%; background: radial-gradient(circle, #ffffff88, transparent 70%); animation: smoke .8s ease-out infinite; pointer-events: none; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.4); opacity: .9; } 100% { transform: translate(-18px, -22px) scale(1.6); opacity: 0; } }
.cell.hit[data-id="robber"] .sym, .cell.hit[data-id="wild"] .sym { animation: hop .55s cubic-bezier(.3, 1.4, .5, 1) infinite alternate; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-10px) scale(1.08) rotate(-3deg); filter: brightness(1.25) drop-shadow(0 0 14px #ffd86a); } }
.cell.hit[data-id="boss"] .sym { animation: chuckle .35s ease-in-out infinite alternate; }
@keyframes chuckle { 0% { transform: scale(1) rotate(-2deg); } 100% { transform: scale(1.08) rotate(2deg); filter: brightness(1.2) drop-shadow(0 0 12px #ffd86a); } }
.cell.hit[data-id="cash"] .sym, .cell.hit[data-id="cashv"] .sym { animation: cashFan .6s ease-in-out infinite alternate; }
@keyframes cashFan { 100% { transform: scale(1.1) rotate(4deg); filter: brightness(1.3) drop-shadow(0 0 16px #7dffb0); } }
.cell.hit[data-id="a"] .sym::after { animation: acePulse .6s ease-in-out infinite alternate; }
@keyframes acePulse { to { transform: skewX(-4deg) scale(1.12); filter: drop-shadow(0 0 14px #ff5a6e) drop-shadow(0 4px 0 #5a0b18); } }
.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 #ff5c7a88); } }
.cell[data-id="bar"] .sym { animation: barGlint 3s ease-in-out infinite; }
@keyframes barGlint { 0%, 80%, 100% { filter: drop-shadow(0 0 12px #ffd35b99); } 90% { filter: drop-shadow(0 0 24px #fff3c4) brightness(1.3); } }
.reel.spinning .cell .sym { animation: none !important; }
/* spotlight sweeps across the reels during a bonus */
#stage.inside .glass::after, #stage.heist .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%); } }
/* jackpot run badge */
.jackpot-badge { position: absolute; left: 50%; top: 96px; 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; }

.pass-input { width: 100%; max-width: 320px; align-self: center; padding: 14px 16px; border-radius: 10px; border: 1px solid #5c6f8f66; background: #070c1a; color: #eef2fa; 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: #ff5c7a; }

.overlay.jackpot { --glow: #ffd44d; background: radial-gradient(ellipse at center, #4a3208dd, #020615f2 75%); z-index: 47; cursor: pointer; }
.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; }
.overlay.jackpot .pot-amount { font-size: 96px; }
.kicker.dim { opacity: .75; margin-top: 10px; }
.portrait .jackpot-title { font-size: 128px; }
