:root{--bg:#16151F;--panel:#22202F;--panel2:#2D2B40;--line:#3A3852;--accent:#FFB020;--accent-dark:#B57A0C;--info:#8FD3FF;--danger:#E5383B;--ghost:#D9CCFF;--ink:#fff;--muted:#B8B6CC}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
#app{height:100%}
body{background:var(--bg);color:var(--ink);font-family:'Atkinson Hyperlegible',system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
h1,h2{font-family:'Fredoka',sans-serif;margin:0}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
small{color:var(--muted)}
kbd{background:var(--line);border-radius:6px;padding:2px 8px;font-family:'Fredoka',sans-serif;font-weight:700;font-size:.85em}
.muted{color:var(--muted)}
.error{color:#ff8a8c;font-weight:700;margin:4px 0}
.boot,.center-page{display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;height:100%;color:var(--muted)}
#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;background:var(--danger);padding:10px 16px;z-index:10}
#blazor-error-ui a{color:#fff;font-weight:700}

.btn{background:var(--accent);color:#1C1B29;border:0;border-radius:18px;padding:14px 28px;font-family:'Fredoka',sans-serif;font-weight:700;font-size:22px;box-shadow:0 6px 0 var(--accent-dark);text-decoration:none;display:inline-block;text-align:center}
.btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 3px 0 var(--accent-dark)}
.btn.big{min-height:60px;font-size:26px}
.btn.alt{background:var(--info);box-shadow:0 6px 0 #4A8DB5}
.btn.ghost{background:transparent;color:var(--ink);border:2px solid var(--line);box-shadow:none;font-size:18px}
.btn.wide{width:100%}
.btn:disabled{opacity:.45;cursor:not-allowed}
.link{background:none;border:0;color:var(--accent);font-weight:700;font-size:15px}
:focus-visible{outline:3px solid var(--info);outline-offset:2px}

/* ---------- big-screen stage (1920x1080) ---------- */
.stage-wrap{position:fixed;inset:0;overflow:hidden;background:#0F0E16}
.stage{position:absolute;left:50%;top:50%;width:1920px;height:1080px;background:#1C1B29;overflow:hidden;transform-origin:center}
.center-msg{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;font-size:32px}
.center-msg h1{font-size:64px}
.grass{background-color:#6DB65B;background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 120px,rgba(0,0,0,.03) 120px 240px)}
.btn.outline{background:rgba(28,27,41,.6);color:#fff;border:3px solid #fff;box-shadow:none}
.btn.outline.soft{border-color:rgba(255,255,255,.5)}
.btn.huge{min-height:92px;border-radius:24px;font-size:36px;box-shadow:0 8px 0 var(--accent-dark)}

.launch{position:relative;height:100%}
.crowd-bg span{position:absolute;animation:wander 9s ease-in-out infinite alternate}
@keyframes wander{from{transform:translateX(-30px)}to{transform:translateX(40px)}}
.launch-dim{position:absolute;inset:0;background:rgba(20,19,32,.55)}
.launch-top{position:absolute;top:40px;right:48px}
.launch-chip{display:inline-block;font-size:22px;font-weight:700;text-decoration:none;color:var(--accent);padding:12px 20px;border-radius:999px;background:rgba(28,27,41,.85)}
.launch-card{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;text-align:center}
.launch-card h1{font-size:150px;line-height:.95;letter-spacing:-2px}
.launch-tag{font-size:38px;color:#E8E6F4;margin:0}
.launch-buttons{display:flex;gap:24px;margin-top:24px}
.launch-buttons .btn{height:96px;padding:0 52px;border-radius:28px;font-size:38px}
.launch-buttons .btn:first-child{font-size:40px;box-shadow:0 8px 0 var(--accent-dark)}
.launch-foot{position:absolute;left:0;right:0;bottom:44px;margin:0;text-align:center;font-size:26px;color:#E8E6F4}
.howto{position:absolute;inset:0;background:rgba(15,14,22,.8);display:flex;align-items:center;justify-content:center;z-index:5}
.howto-card{width:1100px;background:#24223A;border-radius:32px;padding:48px 56px;display:flex;flex-direction:column;gap:24px}
.howto-card h2{font-size:56px}
.howto-card ol{margin:0;padding-left:40px;display:flex;flex-direction:column;gap:16px;font-size:30px;line-height:1.35;color:#E0DDEE}
.howto-card b{color:#fff}
.howto-card .btn{align-self:flex-start;padding:0 48px}

.setup{height:100%;display:flex;flex-direction:column}
.setup-head{height:110px;flex:none;padding:0 48px;display:flex;align-items:center;justify-content:space-between}
.setup-title{display:flex;align-items:baseline;gap:24px}
.setup-title h1{font-size:44px}
.setup-title span,.setup-acct{font-size:20px;color:#C9C7DA}
.setup-acct{display:flex;gap:18px;align-items:center}
.setup-acct a{color:var(--accent);font-weight:700;text-decoration:none}
.setup-acct a.setup-back{color:#C9C7DA;font-weight:400;text-decoration:underline}
.setup-body{flex:1;min-height:0;padding:0 48px 40px;display:flex;gap:32px}
.setup-grid{flex:1;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-content:start}
.scard{padding:22px 24px;border-radius:20px;background:#24223A;display:flex;flex-direction:column;gap:14px}
.scard.span2{grid-column:span 2}
.scard h2{font-weight:600;font-size:26px}
.scard p{margin:0;font-size:17px;line-height:1.4;color:#C9C7DA}
.scard-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.choice2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.choice3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.choice{padding:14px 16px;border-radius:14px;border:2px solid #3A3852;background:#1C1B29;text-align:left;display:flex;flex-direction:column;gap:4px}
.choice b{font-size:20px}.choice span{font-size:16px;color:#C9C7DA}
.choice.on,.mini.on,.mapcard.on{border:3px solid var(--accent);background:#3A2E12}
.choice.on span{color:#E0DDEE}
.mini{height:52px;padding:0 16px;border-radius:12px;border:2px solid #3A3852;background:#1C1B29;font-size:20px}
.minis{display:flex;gap:8px}.minis .mini{height:48px;font-size:18px}
.mini.on{font-weight:700}
.stepper{display:flex;align-items:center;gap:12px}
.stepper button{width:48px;height:48px;border-radius:12px;border:2px solid #3A3852;background:#1C1B29;font-size:28px;font-weight:700}
.stepper button:disabled{opacity:.4}
.stepper span{font-family:'Fredoka',sans-serif;font-weight:700;font-size:34px;width:44px;text-align:center}
.maps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.mapcard{padding:10px;border-radius:16px;border:2px solid #3A3852;background:#1C1B29;display:flex;flex-direction:column;gap:10px;text-align:left}
.mapname{font-weight:700;font-size:20px;padding:0 4px}
.thumb{height:110px;border-radius:10px;position:relative;overflow:hidden;display:block}
.thumb i{position:absolute;display:block}
.thumb.sheep-paddock{background:#6DB65B}
.thumb.sheep-paddock i:first-child{right:30px;bottom:16px;width:80px;height:54px;border-radius:50%;background:#5AB4E0}
.thumb.sheep-paddock i:last-child{left:24px;top:16px;width:36px;height:36px;border-radius:50%;background:#3E8A3A}
.thumb.beach-day{background:#F1D9A4}
.thumb.beach-day i:first-child{left:0;right:0;bottom:0;height:40px;background:#5AB4E0}
.thumb.beach-day i:last-child{left:60px;top:20px;width:44px;height:44px;border-radius:50%;background:#E5383B}
.thumb.christmas-market{background:#2E4A6B}
.thumb.christmas-market i:first-child{left:30px;top:30px;width:60px;height:50px;border-radius:8px;background:#B8433A}
.thumb.christmas-market i:last-child{right:40px;top:24px;width:40px;height:60px;border-radius:8px 8px 0 0;background:#3E8A3A}
.toggles{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;align-content:center;padding:18px 24px}
.toggles>div{display:flex;align-items:center;justify-content:space-between;font-size:18px}
.always{font-size:15px;font-weight:700;color:#C9C7DA;padding:4px 10px;border-radius:999px;background:#1C1B29}
.switch{width:52px;height:30px;flex:none;border:0;border-radius:999px;background:#3A3852;position:relative;padding:0}
.switch i{position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#C9C7DA;transition:left .15s}
.switch.on{background:var(--accent)}.switch.on i{left:25px;background:#1C1B29}
.switch.big{width:64px;height:36px}.switch.big i{width:28px;height:28px;left:4px;top:4px}.switch.big.on i{left:32px}
.summary{flex:0 0 520px;padding:32px;border-radius:24px;background:#24223A;display:flex;flex-direction:column;gap:22px}
.summary h2{font-size:34px}
.summary dl{display:flex;flex-direction:column;gap:14px;font-size:21px;margin:0}
.summary dl div{display:flex;justify-content:space-between}
.summary dt{color:#C9C7DA}.summary dd{margin:0;font-weight:700}
.plan-note{padding:16px 18px;border-radius:14px;background:#1C1B29;font-size:18px;line-height:1.4;color:#C9C7DA}
.plan-note a{color:var(--accent);font-weight:700}

.lobby-screen{height:100%;display:flex;flex-direction:column}
.lobby{flex:1;min-height:0;padding:48px;display:flex;gap:40px}
.lobby-left{flex:0 0 760px;padding:44px;border-radius:32px;background:#24223A;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;text-align:center}
.lobby-left h1{font-size:48px;line-height:1.1}
.lobby-qr{display:flex;align-items:center;gap:36px}
.qr{padding:18px;border-radius:20px;background:#fff;line-height:0}
.qr svg{width:300px;height:300px;display:block}
.lobby-url{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;max-width:300px}
.lobby-url span{font-size:24px;color:#C9C7DA}
.lobby-url b{font-family:'Fredoka',sans-serif;font-size:40px;overflow-wrap:anywhere;line-height:1.15}
.lobby-url b.long{font-size:26px}
.code-tiles{display:flex;gap:16px}
.code-tiles span{width:120px;height:140px;border-radius:20px;background:var(--accent);color:#1C1B29;font-family:'Fredoka',sans-serif;font-weight:700;font-size:96px;display:flex;align-items:center;justify-content:center}
.lobby-note{margin:0;font-size:22px;color:#C9C7DA}
.lobby-right{flex:1;min-width:0;display:flex;flex-direction:column;gap:24px}
.lobby-count{display:flex;align-items:baseline;justify-content:space-between}
.lobby-count h2{font-size:56px}.lobby-count h2 span{font-size:32px;color:#C9C7DA}
.lobby-count>span{font-size:20px;color:#C9C7DA}
.chips{flex:1;display:flex;flex-wrap:wrap;align-content:flex-start;gap:14px;overflow:hidden}
.chip{height:56px;padding:0 22px;border-radius:999px;border:2px solid #3A3852;background:#24223A;font-family:'Fredoka',sans-serif;font-weight:600;font-size:26px;animation:pop .35s ease-out}
.chip.new{border:3px solid var(--info);background:#1E3A4C}
.chip:hover{border-color:var(--danger)}
@keyframes pop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
.lobby-bar{display:flex;align-items:center;gap:24px;padding:22px 28px;border-radius:24px;background:#24223A}
.lobby-sum{flex:1;display:flex;flex-direction:column;gap:4px}
.lobby-sum b{font-size:22px}.lobby-sum a{font-size:20px;color:var(--accent);text-decoration:none}
.lockrow{display:flex;align-items:center;gap:12px;font-size:20px}
.lockrow .switch{width:60px;height:34px}.lockrow .switch i{width:26px;height:26px;left:4px;top:4px}.lockrow .switch.on i{left:30px}
.btn.start{height:84px;padding:0 52px;border-radius:22px;font-size:34px;box-shadow:0 7px 0 var(--accent-dark)}

.arena-screen{display:flex;flex-direction:column;height:100%}
.arena-head{height:120px;flex:none;padding:0 48px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.ah-left{width:520px;display:flex;flex-direction:column;gap:4px}
.ah-title{font-family:'Fredoka',sans-serif;font-weight:700;font-size:44px;line-height:1}
.ah-sub{font-size:22px;color:#C9C7DA}
.ah-mid{display:flex;align-items:center;gap:24px}
.pill{font-family:'Fredoka',sans-serif;font-weight:600;font-size:26px;letter-spacing:3px;padding:10px 22px;border-radius:999px;background:#2E2C44;color:var(--info)}
.pill.find{background:var(--accent);color:#1C1B29}.pill.shrink{background:var(--danger);color:#fff}.pill.reveal,.pill.scores{color:var(--ghost)}
.timer{font-family:'Fredoka',sans-serif;font-weight:700;font-size:84px;line-height:1;font-variant-numeric:tabular-nums}
.ah-right{width:520px;display:flex;align-items:center;justify-content:flex-end;gap:28px}
.ah-stat{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.ah-stat b{font-family:'Fredoka',sans-serif;font-weight:700;font-size:44px;line-height:1}
.ah-stat b span{font-size:26px;color:#C9C7DA}
.ah-stat small{font-size:20px;color:#C9C7DA}
.ah-stat b.code{font-size:40px;letter-spacing:4px;color:var(--accent)}
.ah-div{width:2px;height:64px;background:#3A3852}
.arena-wrap{position:relative;width:1920px;flex:1;min-height:0;overflow:hidden}
.arena-wrap canvas{height:100%!important;width:100%!important;object-fit:contain}
.banner{position:absolute;top:24px;left:50%;transform:translateX(-50%);background:var(--accent);color:#1C1B29;border-radius:20px;padding:12px 36px;font-family:'Fredoka',sans-serif;font-weight:700;font-size:40px;white-space:nowrap}
.feed{position:absolute;left:40px;bottom:40px;width:520px;margin:0;padding:22px 26px;list-style:none;display:flex;flex-direction:column;gap:14px;border-radius:22px;background:rgba(28,27,41,.92)}
.feed li{display:flex;align-items:center;gap:14px;font-size:24px}
.feed li i{width:14px;height:14px;border-radius:50%;flex:none;background:var(--accent)}
.feed li.bot i{background:var(--danger)}.feed li.found i{background:var(--info)}.feed li.ghost i{background:var(--ghost)}
.feed li.checkpoint{color:#C9C7DA}
.shrinkbox{position:absolute;right:40px;bottom:40px;display:flex;align-items:center;gap:14px;padding:16px 26px;border-radius:999px;background:rgba(28,27,41,.92);font-family:'Fredoka',sans-serif;font-weight:600;font-size:28px}
.shrinkbox.hot{background:rgba(229,56,59,.92)}
.scores-panel{position:absolute;right:60px;top:60px;width:560px;background:rgba(28,27,41,.94);border-radius:28px;padding:28px 36px}
.scores-panel h2{font-size:44px;margin-bottom:12px}
.scores-panel ol{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.scores-panel li{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;font-size:28px;padding:8px 6px;border-bottom:1px solid #3A3852}
.scores-panel li span{font-family:'Fredoka',sans-serif;font-weight:700;color:#C9C7DA}
.scores-panel em{font-style:normal;color:#C9C7DA;font-variant-numeric:tabular-nums}

.podium-screen{height:100%;display:flex;flex-direction:column;position:relative}
.confetti span{position:absolute;width:14px;height:26px;border-radius:3px;opacity:.55}
.podium-head{height:130px;flex:none;padding:0 56px;display:flex;align-items:center;justify-content:space-between;position:relative}
.podium-head h1{font-size:60px;line-height:1}
.podium-head p{margin:4px 0 0;font-size:22px;color:#C9C7DA}
.podium-buttons{display:flex;gap:16px}
.podium-buttons .btn{height:72px;padding:0 36px;border-radius:20px;font-size:28px}
.podium-buttons .btn.outline{border-color:#3A3852;background:transparent;font-weight:600;font-size:26px}
.podium-main{flex:1;min-height:0;padding:0 56px 32px;display:flex;gap:48px;position:relative}
.podium-left{flex:1;display:flex;flex-direction:column;gap:28px}
.blocks{flex:1;display:flex;align-items:flex-end;justify-content:center;gap:24px}
.pcol{width:300px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.pcol.p1{width:320px}
.pcol b{font-family:'Fredoka',sans-serif;font-size:40px;line-height:1.05}
.pcol.p1 b{font-size:52px}
.pcol .ppts{font-size:24px;color:#C9C7DA}
.crown{font-size:56px;color:var(--accent);line-height:1}
.pblock{width:100%;border-radius:20px 20px 0 0;background:#C9D3E0;color:#1C1B29;display:flex;justify-content:center;padding-top:18px;font-family:'Fredoka',sans-serif;font-weight:700;font-size:88px}
.p1 .pblock{background:var(--accent);font-size:110px}.p3 .pblock{background:#E0A070;font-size:80px}
.awards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.award{padding:18px 22px;border-radius:18px;background:#24223A;display:flex;flex-direction:column;gap:4px}
.award small{font-size:18px;letter-spacing:1px;color:var(--info)}
.award b{font-size:24px}
.board{flex:0 0 520px;padding:28px 30px;border-radius:24px;background:#24223A;display:flex;flex-direction:column;gap:6px}
.board h2{font-size:30px;margin-bottom:10px}
.board-row{display:flex;align-items:center;gap:18px;padding:12px 6px;border-bottom:1px solid #3A3852;font-size:24px}
.board-row span{width:36px;font-family:'Fredoka',sans-serif;font-weight:700;color:#C9C7DA}
.board-row b{flex:1}.board-row em{font-style:normal;color:#C9C7DA;font-variant-numeric:tabular-nums}
.board-note{margin:0;padding-top:10px;font-size:18px;color:#C9C7DA}
.stage .adslot{width:100%!important;height:90px!important;flex:none;margin:0;border:0;border-radius:0;background:#12111C;flex-direction:row;gap:28px;padding:0 48px}
.stage .adslot .adlabel{position:static;font-size:16px;letter-spacing:2px;white-space:nowrap}
.stage .adslot>span:last-child,.stage .adslot ins{margin:0 auto;width:728px;height:90px;border:2px dashed #5A5872;background:#1E1D2A;display:flex;align-items:center;justify-content:center;font-size:22px;color:#C9C7DA}
.stage .adslot ins{border:0}

/* ---------- phone + desktop controllers ---------- */
.join-page{min-height:100%;min-height:100dvh;max-width:480px;margin:0 auto;padding:24px 20px 28px;display:flex;flex-direction:column;gap:18px}
.brand{display:flex;align-items:center;gap:10px;font-family:'Fredoka',sans-serif;font-weight:700;font-size:26px}
.brand-link{margin-left:auto;font-family:'Atkinson Hyperlegible',sans-serif;font-size:14px;font-weight:700;color:var(--accent);text-decoration:none}
.card{background:var(--panel);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:14px}
.card.center{align-items:center;text-align:center}
.card h1{font-size:28px}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.card>label{font-size:15px;font-weight:700;color:var(--muted)}
.field small{font-size:13px}
.card input{height:56px;border-radius:14px;border:2px solid var(--line);background:var(--bg);padding:0 16px;font-size:20px;width:100%}
.card input.code-input{height:64px;border-color:var(--accent);font-family:'Fredoka',sans-serif;font-weight:700;font-size:36px;letter-spacing:14px;text-transform:uppercase}
.card .btn{margin-top:4px}
.or{display:flex;align-items:center;gap:12px;color:#8E8CA6;font-size:14px}
.or::before,.or::after{content:'';flex:1;height:1px;background:var(--line)}
.publics{display:flex;flex-direction:column;gap:10px}
.publics>small{font-size:13px;line-height:1.4}
.publics-head{display:flex;justify-content:space-between;align-items:center}
.publics h2{font-size:20px;font-weight:600}
.pubgame{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:14px 16px;border-radius:16px;background:var(--panel);border:2px solid var(--line)}
.pubgame.ao{border-style:dashed;border-color:#7A6BB8}
.pubgame span{display:flex;flex-direction:column;gap:2px}
.pubgame b{font-size:17px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pubgame small{font-size:14px}
.pubgame em{font-style:normal;font-family:'Fredoka',sans-serif;font-weight:700;font-size:16px;color:var(--accent)}
.tag{background:var(--ghost);color:#1C1B29;border-radius:6px;padding:2px 7px;font-size:11px;letter-spacing:1px;font-style:normal}
.btn.practice{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;font-family:'Atkinson Hyperlegible',sans-serif;font-size:16px;padding:0 16px}
.link.center{align-self:center}
.center{text-align:center}

.topline{display:flex;align-items:center;justify-content:space-between}
.topline .link{padding:10px 0}
.topline span{font-size:14px;color:var(--muted)}
.youre-in{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:8px 0}
.youre-in h1{font-size:34px;line-height:1.1}
.youre-in p{margin:0;font-size:16px;line-height:1.4;color:var(--muted);max-width:300px}
.rowcard{flex-direction:row;align-items:center;justify-content:space-between;padding:18px}
.rowcard b{font-family:'Fredoka',sans-serif;font-size:22px}
.crowdcard{gap:12px;padding:18px}
.crowd-top{display:flex;align-items:baseline;justify-content:space-between}
.crowd-top b{font-family:'Fredoka',sans-serif;font-size:22px}
.crowd-top small{font-size:15px}
.crowdbar{height:12px;border-radius:999px;background:var(--line);overflow:hidden;display:flex}
.crowdbar i{display:block;height:100%}.crowdbar .r,.crowd-key .r{background:var(--info)}.crowdbar .s,.crowd-key .s{background:var(--ghost)}
.crowd-key{display:flex;gap:18px;font-size:15px}
.crowd-key span{display:flex;align-items:center;gap:8px}.crowd-key i{width:12px;height:12px;border-radius:50%;display:block}
.crowdcard>small{font-size:13px;line-height:1.4}
.howsteps{display:flex;flex-direction:column;gap:10px}
.howsteps h2{font-size:18px;font-weight:600;color:var(--muted)}
.howsteps div{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;background:#1E1D2A;font-size:15px;line-height:1.35}
.howsteps span{width:32px;height:32px;flex:none;border-radius:50%;background:var(--info);color:#1C1B29;display:flex;align-items:center;justify-content:center;font-family:'Fredoka',sans-serif;font-weight:700}

.results{gap:16px}
.res-head{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding-top:6px}
.res-head small{font-size:15px;letter-spacing:2px}
.res-head h1{font-size:52px;line-height:1}
.res-head p{margin:0;font-family:'Fredoka',sans-serif;font-weight:600;font-size:22px;color:var(--accent)}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.tiles div{background:var(--panel);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.tiles b{font-family:'Fredoka',sans-serif;font-size:30px}.tiles small{font-size:14px}
.foundby{padding:14px 16px;border-radius:16px;background:#1E2F3D;border:2px solid var(--info);font-size:15px;line-height:1.4}
.top3{display:flex;flex-direction:column;gap:8px}
.top3 h2{font-size:18px;font-weight:600;color:var(--muted)}
.top3 div{display:flex;align-items:center;gap:12px;font-size:16px}
.top3 b{flex:1}.top3 em{font-style:normal;color:var(--muted)}
.medal{width:28px;height:28px;border-radius:50%;color:#1C1B29;display:flex;align-items:center;justify-content:center;font-family:'Fredoka',sans-serif;font-weight:700;background:var(--accent)}
.medal.m2{background:#C9D3E0}.medal.m3{background:#E0A070}
.staying{margin:0;padding:16px;border-radius:18px;background:var(--panel);text-align:center;font-weight:700}

.paywall{gap:20px;padding-top:20px}
.roundbtn{width:44px;height:44px;border-radius:50%;background:var(--panel);display:flex;align-items:center;justify-content:center;color:#fff}
.pw-hero{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.pw-hero h1{font-size:34px;line-height:1.1}.pw-hero p{margin:0;font-size:17px;color:var(--muted)}
.pw-perks{display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:18px;background:var(--panel)}
.pw-perks div{display:flex;align-items:flex-start;gap:12px;font-size:16px;line-height:1.35}
.pw-perks svg{flex:none;margin-top:1px}
.pw-perks p{margin:0;font-size:14px;line-height:1.4;color:var(--muted);padding-top:12px;border-top:1px solid var(--line)}
.plans{display:flex;flex-direction:column;gap:10px}
.plan{width:100%;min-height:68px;padding:12px 18px;border-radius:16px;border:2px solid var(--line);background:var(--panel);display:flex;align-items:center;justify-content:space-between;text-align:left}
.plan.on{border:3px solid var(--accent);background:#3A2E12}
.plan span{display:flex;flex-direction:column;gap:2px}
.plan b,.plan em{font-family:'Fredoka',sans-serif;font-weight:700;font-size:20px;font-style:normal}
.plan small{font-size:14px}
.pw-foot{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.pw-foot small{font-size:13px}
.pw-foot small a{color:var(--accent)}
.pw-links{display:flex;gap:20px;font-size:14px}.pw-links a{color:var(--accent)}

.controller{height:100%;min-height:100dvh;max-width:480px;margin:0 auto;padding:max(24px,env(safe-area-inset-top)) 20px max(28px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px;user-select:none;-webkit-user-select:none;touch-action:none}
.mehead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.me-id{display:flex;align-items:center;gap:12px}
.me-id div{display:flex;flex-direction:column;gap:2px}
.me-id small{font-size:14px}
.me-id b{font-family:'Fredoka',sans-serif;font-size:24px;line-height:1}
.me-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.prem{font-family:'Fredoka',sans-serif;font-weight:700;font-size:13px;letter-spacing:1px;padding:6px 10px;border-radius:999px;background:var(--accent);color:#1C1B29}
.pts{font-family:'Fredoka',sans-serif;font-weight:700;font-size:20px;padding:8px 14px;border-radius:999px;background:#2A2840}
.statusbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:16px;background:var(--panel);font-size:16px;color:var(--muted)}
.statusbar b{font-family:'Fredoka',sans-serif;font-size:26px;color:#fff;font-variant-numeric:tabular-nums}
.statusbar.pill-style{gap:18px;padding:10px 18px;border-radius:999px}.statusbar.pill-style b{font-size:24px}
.phase{font-family:'Fredoka',sans-serif;font-weight:600;letter-spacing:2px;color:var(--info)}
.eventcard{padding:16px 18px;border-radius:20px;background:var(--accent);color:#1C1B29;display:flex;flex-direction:column;gap:10px;animation:shake .4s}
.eventcard b{font-family:'Fredoka',sans-serif;font-size:26px;line-height:1.1}
.eventcard span{font-size:16px;font-weight:700}
.evbar{height:10px;border-radius:999px;background:rgba(28,27,41,.2);overflow:hidden}.evbar i{display:block;height:100%;border-radius:999px;background:#1C1B29}
@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.note{border-radius:14px;padding:10px 14px;font-weight:700;font-size:15px}
.note.ghost{background:rgba(217,204,255,.16);border:2px dashed #7A6BB8;color:var(--ghost)}
.note.seeker{background:rgba(255,176,32,.16);border:2px solid var(--accent);color:var(--accent)}
.note.shield{background:rgba(143,211,255,.16);border:2px solid var(--info);color:var(--info)}
.cps{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:16px}
.cps.boxed{padding:16px 20px;border-radius:16px;background:var(--panel)}
.cps b{color:#fff}.dots{display:flex;gap:8px}
.dots i{width:22px;height:22px;border-radius:50%;border:2px solid #5A5872}.dots i.on{background:var(--accent);border-color:var(--accent)}
.tip{margin:0;font-size:15px;line-height:1.4;color:var(--muted)}
.spacer{flex:1}
.adbar{display:flex;flex-direction:column;gap:4px;width:100%}
.adbar-head{display:flex;align-items:center;justify-content:space-between}
.adbar-head span{font-size:11px;letter-spacing:1px;color:#8E8CA6}
.adbar-head a{font-size:13px;font-weight:700;color:var(--accent);text-decoration:none;padding:4px 0}
.adslot{align-self:center;max-width:100%;border:2px dashed #5A5872;border-radius:10px;background:#1E1D2A;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);font-size:14px;position:relative;margin-bottom:16px}
.adslot.bare{margin:0;width:100%!important;height:64px!important}
.adbar .adslot.bare ins{max-width:100%}
.adlabel{position:absolute;top:-16px;left:0;font-size:11px;letter-spacing:1px;color:#8E8CA6}
.emotes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.emotes button{height:72px;border-radius:18px;border:2px solid var(--line);background:var(--panel);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:15px}
.emotes button.live{border:3px solid var(--accent);background:#3A2E12;font-weight:700}.emotes button.live svg{color:var(--accent)}
.emotes.small{gap:8px}.emotes.small button{height:52px;border-radius:14px;flex-direction:row;gap:6px;font-size:14px}
.sticks{display:flex;justify-content:space-between;align-items:center;gap:16px}
.joystick{flex:none;border-radius:50%;background:var(--panel);border:3px solid var(--line);position:relative;touch-action:none;display:flex;align-items:center;justify-content:center}
.joystick::before{content:'';position:absolute;inset:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 176' fill='none' stroke='%235A5872' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M82 20l6-7 6 7M82 156l6 7 6-7M20 82l-7 6 7 6M156 82l7 6-7 6'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
.knob{width:64px;height:64px;border-radius:50%;background:var(--info);box-shadow:0 6px 0 #4F8FB8;pointer-events:none}
.tagbtn{flex:none;border-radius:50%;border:0;background:var(--danger);color:#fff;font-family:'Fredoka',sans-serif;font-weight:700;font-size:30px;line-height:1;box-shadow:0 8px 0 #9E1F22;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.tagbtn small{color:#fff;font-size:15px;font-family:'Atkinson Hyperlegible',sans-serif}
.tagbtn:disabled{opacity:.4;box-shadow:none}

.desk-ctrl{min-height:100dvh;max-width:1120px;margin:0 auto;padding:32px 24px;display:flex;flex-direction:column;gap:24px;user-select:none}
.desk-ctrl .me-id b{font-size:26px}
.desk-cols{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
.desk-info{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:18px}
.desk-info .eventcard b{font-size:30px}.desk-info .eventcard span{font-size:17px}
.desk-info .cps{font-size:17px}.desk-info .tip{font-size:16px;line-height:1.45}
.deskpanel{flex:1 1 520px;min-width:0;padding:24px;border-radius:24px;background:#1E1D2A;border:2px solid #2E2C44;display:flex;flex-wrap:wrap;gap:28px;align-items:center;justify-content:space-around}
.wasd{display:flex;flex-direction:column;align-items:center;gap:10px}.wasd small{font-size:14px}
.pad{display:grid;grid-template-columns:repeat(3,64px);gap:8px}
.key{width:64px;height:64px;border-radius:14px;border:2px solid var(--line);background:#2A2840;box-shadow:0 5px 0 #0E0D16;font-family:'Fredoka',sans-serif;font-weight:700;font-size:24px;touch-action:none}
.key.down{transform:translateY(4px);box-shadow:0 1px 0 #0E0D16;background:#3A3852}
.deskemotes{display:flex;flex-direction:column;gap:10px}
.deskemotes button{height:56px;padding:0 18px;border-radius:14px;border:2px solid var(--line);background:var(--panel);display:flex;align-items:center;gap:12px;font-size:16px}
.deskemotes kbd{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0;font-size:16px}
.deskemotes button.live{border:3px solid var(--accent);background:#3A2E12;font-weight:700}.deskemotes button.live kbd{background:var(--accent);color:#1C1B29}
.tagkey{width:200px;height:84px;border:0;border-radius:18px;background:var(--danger);box-shadow:0 7px 0 #9E1F22;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#fff}
.tagkey span{font-family:'Fredoka',sans-serif;font-weight:700;font-size:30px;line-height:1}.tagkey small{color:#fff;font-size:13px;letter-spacing:1px}
.tagkey:disabled{opacity:.4;box-shadow:none}
.desk-ctrl .adslot.bare,.desk-view .adslot.bare{height:90px!important}
.desk-view .dv-side .adslot.bare{height:250px!important;width:300px!important;max-width:100%}

.desk-view{min-height:100dvh;max-width:1480px;margin:0 auto;padding:20px 24px 28px;display:flex;flex-direction:column;gap:18px;user-select:none}
.dv-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.dv-head>div:first-child{display:flex;align-items:baseline;gap:14px}
.dv-head>div:first-child b{font-family:'Fredoka',sans-serif;font-size:1.6rem}
.dv-head span{color:var(--muted)}
.dv-right{display:flex;align-items:center;gap:24px}.dv-right strong{color:#fff;font-size:1.3rem}
.dv-time{font-family:'Fredoka',sans-serif;font-size:2.2rem;font-variant-numeric:tabular-nums}
.dv-cols{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.dv-arena{flex:999 1 640px;min-width:0;border-radius:20px;overflow:hidden}
.dv-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:14px}
.dv-side .eventcard b{font-size:1.4rem}
.keyhelp{padding:16px 18px;border-radius:16px;background:var(--panel);display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;font-size:.95rem}
.keyhelp span{display:flex;align-items:center;gap:8px}
.keyhelp kbd{padding:4px 8px}.keyhelp kbd.red{background:var(--danger)}.keyhelp kbd.gold{background:var(--accent);color:#1C1B29}

.controller.viewer{padding:0 0 18px;gap:12px;max-width:480px}
.vhead{height:60px;padding:12px 16px 0;display:flex;align-items:center;justify-content:space-between}
.vhead>div{display:flex;flex-direction:column;gap:2px}
.vhead b{font-family:'Fredoka',sans-serif;font-size:18px;line-height:1}.vhead small{font-size:13px}
.vhead .vright{align-items:flex-end}
.vtime{font-size:30px!important;font-variant-numeric:tabular-nums}
.vview{position:relative;flex:none}
.vview canvas{border-radius:0!important}
.vevent{position:absolute;left:12px;top:12px;right:112px;padding:10px 12px;border-radius:14px;background:var(--accent);color:#1C1B29;display:flex;flex-direction:column;gap:6px}
.vevent b{font-family:'Fredoka',sans-serif;font-size:17px;line-height:1.1}.vevent .evbar{height:6px}
.vminimap{position:absolute;right:12px;top:12px;width:92px;height:auto;border:2px solid rgba(255,255,255,.6);border-radius:8px}
.vpad{padding:0 16px;display:flex;flex-direction:column;gap:10px}
.vpad .cps{font-size:15px}.vpad .dots i{width:16px;height:16px}
.vpad .sticks{padding:0 6px}

@media (prefers-reduced-motion:reduce){.crowd-bg span,.chip,.eventcard{animation:none}}
.minimap{display:flex;align-items:center;gap:14px}.minimap>div{flex:1;display:flex;flex-direction:column;gap:4px}.minimap small{font-size:11px;letter-spacing:1px;color:#8E8CA6}.minimap span{font-size:14px;line-height:1.35;color:var(--muted)}.minimap svg{width:210px;max-width:55%;height:auto;border-radius:10px;flex:none}
.dv-side .dots{gap:6px}.dv-side .dots i{width:16px;height:16px}.cps span:first-child{white-space:nowrap}
