:root{
  --bg1:#05060a;
  --bg2:#0a0d14;
  --accent:#ffcc33;
  --gold:#f6c545;
  --gold-deep:#b9892a;
  --silver:#dfe3e8;
  --muted:#9aa6b2;
  --good:#3ad29f;
  --bad:#ff6b6b;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Arial;background:linear-gradient(180deg,var(--bg1),var(--bg2));color:#fff;min-height:100vh}
.hidden{display:none !important}

/* name gate */
.name-gate{position:fixed;inset:0;background:rgba(2,4,10,0.94);display:flex;align-items:center;justify-content:center;z-index:90}
.name-card{background:rgba(255,255,255,0.04);padding:28px;border-radius:14px;width:320px;text-align:center;box-shadow:0 10px 50px rgba(0,0,0,0.6)}
.name-card h2{margin:0 0 6px;color:var(--gold)}
.name-card p{color:var(--muted);margin:0 0 16px;font-size:14px}
.name-card input{width:100%;padding:10px;border-radius:8px;border:1px solid #ffffff22;background:#0b1320;color:#fff;margin-bottom:12px}

/* layout */
.app{display:flex;flex-direction:column;min-height:100vh}
.topbar{padding:8px 18px;display:flex;align-items:center;gap:16px}
.me-tag{color:var(--accent);font-size:13px;font-weight:600}
.btn-mute{margin-left:auto;background:transparent;font-size:18px;padding:4px 8px;border-radius:8px;cursor:pointer;border:1px solid #ffffff22;color:#fff}
.main{padding:14px 18px;display:grid;grid-template-columns:260px 1fr;gap:16px;flex:1}
/* during a match: no top chrome, pull the stage up */
.app.in-match .topbar{padding:4px 18px}
.app.in-match .main{padding:4px 12px 8px}
.panel{background:rgba(255,255,255,0.03);padding:14px;border-radius:12px;box-shadow:0 6px 30px rgba(0,0,0,0.5)}
.stage-panel{position:relative;min-height:420px}

/* full-width stage during a match */
.app.in-match .leaderboard{display:none}
.app.in-match .main{grid-template-columns:1fr}

/* leaderboard */
.leaderboard h2{margin:0 0 2px;font-size:16px;color:var(--gold)}
.leaderboard .lb-sub{color:var(--muted);font-size:11px;margin:0 0 10px}
.leaderboard-list{list-style:none;margin:0;padding:0;counter-reset:rank}
.leaderboard-list li{counter-increment:rank;display:flex;align-items:center;gap:6px;padding:6px 4px;border-bottom:1px solid #ffffff10;font-size:13px}
.leaderboard-list li::before{content:counter(rank) ".";color:var(--muted)}
.leaderboard-list .lb-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leaderboard-list .lb-nums{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25}
.leaderboard-list .amt{color:var(--accent);font-weight:700}
.leaderboard-list .best{color:var(--muted);font-size:11px}
.leaderboard-empty{color:var(--muted);font-size:13px}

/* banker */
.banker-panel{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.banker-avatar{font-size:40px;background:linear-gradient(180deg,#ffffff14,#0000);padding:10px;border-radius:10px}
.banker-text{color:#fff;font-size:15px}

/* lobby */
.audience{display:flex;flex-wrap:wrap;gap:8px;max-height:280px;overflow:auto;padding:6px 0}
.audience .member{background:linear-gradient(180deg,#0f1b2b,#07101a);padding:8px 12px;border-radius:8px;min-width:120px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
.audience .member.opted{outline:2px solid var(--good)}
.audience .member .badge{font-size:11px;color:var(--good)}
.audience .member.me{box-shadow:0 0 0 2px var(--accent) inset}
.lobby-countdown{margin-top:12px;text-align:center;font-weight:800;font-size:clamp(15px,2vw,20px);
  color:var(--gold);text-shadow:0 0 14px rgba(246,197,69,.5);
  padding:8px;border:1px solid #5a4615;border-radius:10px;background:linear-gradient(180deg,#221908,#0c0904)}
.lobby-controls{margin-top:14px;display:flex;gap:10px}

/* ===== CINEMATIC STAGE ===== */
.stage{position:relative;overflow:hidden;border-radius:12px;padding:12px 14px 16px;
  background:radial-gradient(120% 90% at 50% -10%, #1a1305 0%, #0b0d14 45%, #04050a 100%)}
#stage-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0;pointer-events:none}
body.stage3d-active #stage-canvas{pointer-events:auto}
body.stage3d-active .board{display:none}
body.stage3d-active .floor{background:none;box-shadow:none;padding:0;min-height:clamp(280px,52vh,460px)}
/* In 3D mode the 2D scaffolding is taken out of flow so podium/turn changes
   never reflow #stage and resize the canvas. Everything informational that
   stays visible is absolutely positioned over the canvas. */
body.stage3d-active #stage{min-height:clamp(420px,65vh,700px)}
body.stage3d-active .stage-grid{position:absolute;inset:46px 0 96px 0;pointer-events:none;z-index:1}
body.stage3d-active #audience-row{display:none}
body.stage3d-active .stage-overlay{pointer-events:auto}
/* Hide 2D chrome that overlaps the 3D wall */
body.stage3d-active .marquee,
body.stage3d-active .spotlights{display:none}
/* Keep the turn banner visible, but legible over the 3D scene */
body.stage3d-active .turn-banner{position:relative;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,10,16,.55),rgba(8,10,16,0));
  padding:6px 12px;border-radius:6px;display:inline-block;margin:6px auto}
/* Stage help — large/dramatic, anchored at the bottom of the stage so it
   never overlaps the cases and never reflows the layout. */
.stage-help{text-align:center;color:var(--gold);font-size:13px;line-height:1.35;margin:4px auto 6px;max-width:680px}
.stage-help:empty{display:none}
body.stage3d-active .stage-help{position:absolute;left:16px;right:16px;bottom:14px;
  z-index:3;pointer-events:none;
  font-size:clamp(17px,2.4vw,26px);font-weight:800;letter-spacing:.5px;
  color:var(--gold);
  text-shadow:0 0 18px rgba(246,197,69,.55),0 3px 6px rgba(0,0,0,.9);
  padding:14px 22px;border-radius:10px;max-width:none;
  background:linear-gradient(180deg,rgba(8,10,16,0),rgba(8,10,16,.7) 55%,rgba(8,10,16,.85))}
/* Pick countdown + round progress folded into the stage-help line, so hide
   the old in-flow round-info element completely. */
body.stage3d-active #round-info{display:none}
/* Money ladders — span the full available vertical band so they don't get
   clipped by the grid row height. Chips flex-grow so all 13 values
   distribute evenly along the full height. */
body.stage3d-active .ladder{position:absolute;top:0;bottom:0;
  width:clamp(108px,14vw,180px);
  padding:8px;gap:3px;pointer-events:none;
  z-index:2}
body.stage3d-active .ladder-left{left:8px}
body.stage3d-active .ladder-right{right:8px}
body.stage3d-active .ladder .chip{flex:1 1 0;min-height:0;
  display:flex;align-items:center;justify-content:center;
  font-size:clamp(11px,1.1vw,14px);padding:2px 4px;letter-spacing:0}

/* spotlight beams + fixtures */
.spotlights{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
/* row of glowing light cans across the top */
.spotlights::before{content:"";position:absolute;top:0;left:0;right:0;height:14px;
  background:radial-gradient(circle at 10% 50%, rgba(255,240,190,.95) 0 3px, transparent 5px),
             radial-gradient(circle at 26% 50%, rgba(180,220,255,.9) 0 3px, transparent 5px),
             radial-gradient(circle at 42% 50%, rgba(255,240,190,.95) 0 3px, transparent 5px),
             radial-gradient(circle at 58% 50%, rgba(255,240,190,.95) 0 3px, transparent 5px),
             radial-gradient(circle at 74% 50%, rgba(180,220,255,.9) 0 3px, transparent 5px),
             radial-gradient(circle at 90% 50%, rgba(255,240,190,.95) 0 3px, transparent 5px);
  filter:drop-shadow(0 0 6px rgba(255,230,160,.8))}
.beam{position:absolute;top:-6%;width:230px;height:150%;mix-blend-mode:screen;filter:blur(9px);
  background:linear-gradient(to bottom, rgba(255,238,185,.6), rgba(255,238,185,.12) 55%, rgba(255,238,185,0) 80%);
  clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);transform-origin:top center;will-change:transform}
.beam1{left:4%;--r:-16deg;animation:sway 7s ease-in-out infinite}
.beam2{left:28%;--r:-6deg;animation:sway 9s ease-in-out infinite reverse}
.beam3{right:28%;--r:6deg;animation:sway 8s ease-in-out infinite}
.beam4{right:4%;--r:16deg;animation:sway 6.5s ease-in-out infinite reverse}
@keyframes sway{0%,100%{transform:rotate(var(--r))}50%{transform:rotate(calc(var(--r) * .45)) translateX(16px)}}
.beam2{background:linear-gradient(to bottom, rgba(190,222,255,.5), rgba(190,222,255,.1) 55%, rgba(190,222,255,0) 80%)}
.beam3{background:linear-gradient(to bottom, rgba(190,222,255,.5), rgba(190,222,255,.1) 55%, rgba(190,222,255,0) 80%)}

.stage{transform:translateZ(0)}
.stage>*{position:relative;z-index:1}
.spotlights{z-index:0}

/* marquee logo */
.marquee{text-align:center;margin-bottom:2px}
.logo{display:inline-flex;flex-direction:column;align-items:center;gap:2px}
.logo-no,.logo-yes{font-weight:900;letter-spacing:1px;padding:3px 14px;border-radius:7px;background:#0a0a0a;
  font-size:clamp(15px,2.3vw,26px);line-height:1.1}
.logo-no{color:var(--gold);border:2px solid var(--gold-deep);
  text-shadow:0 2px 0 #6b4d10,0 0 10px rgba(246,197,69,.5);box-shadow:0 0 20px rgba(246,197,69,.18)}
.logo-yes{color:var(--silver);border:2px solid #8b9097;text-shadow:0 2px 0 #4d5158,0 0 8px rgba(223,227,232,.3)}
.logo-or{font-weight:900;color:#1a1206;background:linear-gradient(180deg,#ffe08a,#e0a52a);padding:1px 9px;border-radius:5px;font-size:11px;margin:-1px 0}

/* turn banner */
.turn-banner{text-align:center;font-weight:900;letter-spacing:2px;text-transform:uppercase;
  font-size:clamp(14px,2vw,24px);color:var(--accent);min-height:22px;margin:2px 0;
  text-shadow:0 0 18px rgba(255,204,51,.55)}
.turn-banner.animate{animation:bannerIn .55s cubic-bezier(.2,.9,.2,1)}
@keyframes bannerIn{0%{transform:scale(.7) translateY(-10px);opacity:0}60%{transform:scale(1.06);opacity:1}100%{transform:scale(1)}}

/* stage layout: ladder | player | board | player | ladder */
.stage-grid{display:grid;gap:14px;align-items:start;
  grid-template-columns:minmax(150px,230px) minmax(118px,152px) minmax(0,1fr) minmax(118px,152px) minmax(150px,230px);
  grid-template-areas:"ladL pA center pB ladR"}
.ladder-left{grid-area:ladL}
.ladder-right{grid-area:ladR}
#podium-0{grid-area:pA}
#podium-1{grid-area:pB}
.stage-center{grid-area:center}

/* money ladders */
.ladder{display:flex;flex-direction:column;gap:7px;padding:14px;border-radius:14px;
  background:linear-gradient(180deg,#251b09,#0c0904);border:2px solid #5a4615;
  box-shadow:0 0 30px rgba(246,197,69,.18), inset 0 0 0 1px #00000066}
.ladder .chip{font-size:19px;font-weight:800;text-align:center;padding:11px 6px;border-radius:7px;letter-spacing:.3px;
  background:linear-gradient(180deg,#4a3a12,#281f0a);color:#ffd766;border:1px solid #00000066;
  text-shadow:0 1px 0 #00000080;transition:opacity .3s,filter .3s}
.ladder .chip.high{color:#fff3c4;background:linear-gradient(180deg,#63501a,#34270b)}
.ladder .chip.dim{opacity:.22;text-decoration:line-through;filter:grayscale(.4)}

/* center: floor + briefcases */
.stage-center{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px}
.round-info{color:var(--muted);font-size:13px;text-align:center}
.floor{width:100%;padding:10px 8px 14px;border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.55));
  box-shadow:inset 0 -30px 40px -30px rgba(255,221,130,.15)}
/* board scales with viewport height so it never gets cut off on 1080p etc. */
.board{display:grid;grid-template-columns:repeat(6,1fr);gap:clamp(6px,0.8vw,12px);width:100%;
  max-width:min(900px, 74vh);margin:0 auto}

/* briefcase art from PNGs (assets/closed.png, assets/open.png) */
.case{position:relative;aspect-ratio:5/4;display:flex;align-items:center;justify-content:center;
  cursor:default;user-select:none;color:#fff;font-weight:800;
  background:center/contain no-repeat url("assets/closed.png");
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.55));transition:transform .12s, filter .12s}
.case .num{position:relative;z-index:1;background:rgba(18,26,40,.82);color:#fff;font-size:15px;font-weight:800;
  padding:3px 10px;border-radius:5px;box-shadow:0 1px 3px rgba(0,0,0,.6)}
.case.clickable{cursor:pointer;animation:caseReady 2.2s ease-in-out infinite}
@keyframes caseReady{0%,100%{filter:drop-shadow(0 5px 8px rgba(0,0,0,.55))}
  50%{filter:drop-shadow(0 5px 8px rgba(0,0,0,.55)) drop-shadow(0 0 9px rgba(255,204,51,.6))}}
.case.clickable:hover{transform:translateY(-7px) scale(1.09);animation:none;z-index:3;
  filter:drop-shadow(0 12px 16px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(255,204,51,1)) drop-shadow(0 0 32px rgba(255,204,51,.65))}

/* opened: the open-case art with the value shown on its card */
.case.opened{background-image:url("assets/open.png");filter:drop-shadow(0 5px 8px rgba(0,0,0,.5));animation:none}
.case.opened .num{display:none}
.case .val{display:none}
.case.opened .val{display:inline-flex;color:var(--gold);font-weight:900;
  font-size:clamp(9px,0.95vw,15px);letter-spacing:.2px;
  text-shadow:0 0 6px rgba(246,197,69,.8),0 1px 2px #000,0 0 2px #000}

/* opening: the chosen case while its reveal builds — closed and glowing */
.case.opening{animation:openingPulse 1.1s ease-in-out infinite}
@keyframes openingPulse{0%,100%{filter:drop-shadow(0 5px 8px rgba(0,0,0,.55)) drop-shadow(0 0 9px rgba(255,204,51,.5))}
  50%{filter:drop-shadow(0 7px 12px rgba(0,0,0,.6)) drop-shadow(0 0 24px rgba(255,204,51,1))}}

/* taken (moved to a podium): empty illuminated stand */
.case.taken{background:none;filter:none;border:1px dashed #ffffff26;border-radius:8px;animation:none}
.case.taken .num{background:transparent;color:#ffffff30;box-shadow:none}

/* flying case (pick) */
.flying-case{position:fixed;z-index:80;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:13px;pointer-events:none;
  background:center/contain no-repeat url("assets/closed.png");filter:drop-shadow(0 10px 18px rgba(0,0,0,.6))}

/* showcase reveal: closed.png that flips to open.png at the reveal */
.showcase-case{position:fixed;z-index:90;display:flex;align-items:center;justify-content:center;
  pointer-events:none;color:#fff;font-weight:900;
  background:center/contain no-repeat url("assets/closed.png");
  filter:drop-shadow(0 0 44px rgba(255,221,130,.55)) drop-shadow(0 14px 24px rgba(0,0,0,.7))}
.showcase-case .num{background:rgba(18,26,40,.85);color:#fff;padding:4px 14px;border-radius:6px;font-size:clamp(16px,3vw,32px)}
.showcase-case.revealed{background-image:url("assets/open.png")}
.showcase-case .val{display:none}
.showcase-case.revealed .num{display:none}
.showcase-case.revealed .val{display:inline-flex;color:var(--gold);font-weight:900;font-size:clamp(16px,2.6vw,30px);
  text-shadow:0 0 14px rgba(246,197,69,.85),0 2px 3px #000}

/* player podiums (flank the board) + silhouettes */
.podium{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:10px 8px 16px;border-radius:14px;transition:opacity .3s,transform .3s,filter .3s}
.podium .spotlight{position:absolute;left:50%;top:-8%;transform:translateX(-50%);
  width:130px;height:115%;pointer-events:none;opacity:.16;
  background:radial-gradient(50% 60% at 50% 16%, rgba(255,228,150,.95), rgba(255,228,150,0) 70%);transition:opacity .3s}
/* "mine": the viewer's own case — prominent on their side */
.podium.mine{background:radial-gradient(120% 80% at 50% 30%, rgba(246,197,69,.14), transparent 70%);
  box-shadow:inset 0 0 0 2px rgba(246,197,69,.45), 0 0 26px rgba(246,197,69,.25)}
.podium .pcase-label{display:none;font-size:11px;font-weight:900;letter-spacing:1.5px;color:var(--gold);
  text-shadow:0 0 10px rgba(246,197,69,.6)}
.podium.mine .pcase-label{display:block}
/* Uses public/assets/player.png when present (transparent PNG, black or white
   silhouette both read well on the dark stage); falls back to the inline SVG. */
.podium .figure{width:82px;height:128px;z-index:2;
  background:
    no-repeat center/contain url("assets/player.png"),
    no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 100'><circle cx='32' cy='13' r='9.5' fill='%23000'/><path d='M21 26 L43 26 L45 40 L40 62 L24 62 L19 40 Z' fill='%23000'/><path d='M22 60 L42 60 L44 80 L34 80 L32 70 L30 80 L20 80 Z' fill='%23000'/><path d='M20 80 L30 80 L27 99 L19 99 Z' fill='%23000'/><path d='M34 80 L44 80 L45 99 L37 99 Z' fill='%23000'/><path d='M22 28 L11 40 L10 49 L22 60 L25 52 L24 40 Z' fill='%23000'/><path d='M42 28 L53 40 L54 49 L42 60 L39 52 L40 40 Z' fill='%23000'/></svg>");
  filter:drop-shadow(0 0 7px rgba(190,210,255,.3))}
.podium .pname{font-weight:700;font-size:13px;text-align:center}
.podium .owned-slot{width:74px;height:58px;border-radius:8px;border:1px dashed #ffffff2e;
  display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;color:var(--muted)}
.podium .owned-slot.has-case{border:none;font-weight:900;color:var(--gold);
  text-shadow:0 0 10px rgba(246,197,69,.7),0 1px 2px #000;font-size:18px;
  background:center/contain no-repeat url("assets/closed.png");filter:drop-shadow(0 3px 6px rgba(0,0,0,.5))}
.podium .owned-slot .ov{font-size:11px;color:#fff;text-shadow:0 1px 2px #000}
/* the viewer's own case is enlarged + glowing */
.podium.mine .owned-slot.has-case{width:118px;height:92px;font-size:24px;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(246,197,69,.7))}
.podium .pstatus{font-size:11px;color:var(--muted);min-height:14px;text-align:center}
.podium::after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  width:110px;height:13px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),transparent)}
.podium.active{transform:translateY(-4px)}
.podium.active .spotlight{opacity:.9}
.podium.active .figure{filter:drop-shadow(0 0 16px rgba(255,221,130,.75))}
.podium.active .pname{color:var(--accent)}
.podium.dimmed{opacity:.45;filter:saturate(.6) brightness(.8)}

/* audience silhouettes */
.audience-row{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:3px;
  flex-wrap:wrap;min-height:42px;width:100%;padding-top:6px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.5));border-radius:8px}
.aud-figure{width:16px;height:28px;
  background:no-repeat bottom/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 100'><circle cx='32' cy='20' r='14' fill='%23000'/><path d='M6 100 C6 60 18 48 32 48 C46 48 58 60 58 100 Z' fill='%23000'/></svg>");
  filter:drop-shadow(0 0 3px rgba(150,170,220,.25))}
.audience-row.gasp .aud-figure{animation:gasp .6s ease}
@keyframes gasp{0%{transform:translateY(0)}40%{transform:translateY(-9px)}100%{transform:translateY(0)}}

/* ===== OVERLAYS (offer + final) — centered over the board, ladders stay visible ===== */
.stage-overlay{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;
  border-radius:12px;
  background:radial-gradient(circle at 50% 42%, rgba(18,10,38,.82), rgba(3,4,12,.92));
  backdrop-filter:blur(2px);animation:fadeIn .3s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.offer-inner{text-align:center;padding:20px;max-width:560px;width:94%}
.offer-call{color:var(--muted);font-size:15px;margin-bottom:8px;animation:wiggle 1s ease infinite}
/* while the phone rings, show only the calling line; reveal the deal after ~2s */
.stage-overlay.ringing .offer-label,
.stage-overlay.ringing #offer-amount,
.stage-overlay.ringing .offer-actions,
.stage-overlay.ringing #offer-status{display:none}
.stage-overlay.ringing .offer-call{font-size:clamp(20px,3.4vw,34px);color:#fff;font-weight:800;margin:0}
@keyframes wiggle{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
.offer-label{letter-spacing:5px;color:#fff;font-weight:700;font-size:clamp(14px,2vw,20px);opacity:.85}
.offer-amount{font-size:clamp(48px,12vw,140px);font-weight:900;color:var(--accent);
  text-shadow:0 0 40px rgba(255,204,51,.6);margin:6px 0 22px;animation:amountPop .6s cubic-bezier(.2,.9,.2,1)}
@keyframes amountPop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1)}}
.final-q{font-size:clamp(20px,3.4vw,34px);font-weight:800;color:#fff;margin:10px 0 24px;text-shadow:0 0 24px rgba(255,204,51,.4)}
.offer-actions{display:flex;gap:16px;justify-content:center}
.offer-actions button{padding:16px 28px;font-size:18px;border-radius:12px}
#btn-nodeal,#btn-swap{background:#15161a;color:var(--accent);border:1px solid #ffffff22}
.offer-status{color:var(--muted);margin-top:18px;font-size:14px}

/* results / win celebration */
#results-area{position:relative;text-align:center;padding:14px}
#results-area .winner{font-size:clamp(22px,4vw,40px);color:var(--accent);font-weight:900;margin-bottom:12px;
  text-shadow:0 0 30px rgba(255,204,51,.5);animation:amountPop .6s ease}
#results-area ul{color:var(--muted);list-style:none;padding:0}
.confetti-piece{position:fixed;top:-14px;width:9px;height:14px;z-index:85;border-radius:1px;animation:fall linear forwards}
@keyframes fall{to{transform:translateY(110vh) rotate(720deg);opacity:.9}}

button{background:var(--accent);border:0;padding:9px 14px;border-radius:8px;cursor:pointer;color:#000;font-weight:700}
button[disabled]{opacity:0.4;cursor:default}
.footer{padding:8px 18px;text-align:center;color:var(--muted);font-size:13px;letter-spacing:1px}
.footer strong{color:var(--gold);font-weight:800;text-shadow:0 0 12px rgba(246,197,69,.45)}
.footer .credit{margin-top:3px;font-size:11px;letter-spacing:.5px;color:#7e8794}
.footer .credit a{color:var(--gold);text-decoration:none}
.footer .credit a:hover{text-decoration:underline}
.footer .disclaimer{margin-top:4px;font-size:10px;letter-spacing:.3px;color:#6b7480;max-width:680px;margin-left:auto;margin-right:auto}

/* Medium widths: drop the 5-column layout — ladders top, players flank board */
@media (max-width:1180px){
  .stage-grid{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "ladL ladR"
      "pA   pB"
      "center center";}
  .ladder{flex-direction:row;flex-wrap:wrap;justify-content:center}
  .ladder .chip{flex:1 0 16%}
  .podium.mine .owned-slot.has-case{width:96px;height:74px}
  .board{max-width:min(760px, 96vw)}
}
@media (max-width:760px){
  .main{grid-template-columns:1fr}
  .stage-grid{grid-template-areas:"ladL ladR" "pA pB" "center center";gap:10px}
  .board{grid-template-columns:repeat(5,1fr);max-width:96vw}
  .podium .figure{width:60px;height:92px}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important;transition:none !important}
}
