:root{--ink:#101b39;--cream:#fff9ef;--orange:#ff950d;--green:#138c49;--red:#d74445;--mint:#b2f1db;--font:'Baloo 2','Nunito',sans-serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--cream);font-family:var(--font);font-weight:700}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--ink)}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #7255ec;outline-offset:4px}button{transition:transform .16s,box-shadow .16s,background .16s}button:not(:disabled):active{transform:translateY(3px)!important;box-shadow:none!important}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.shell{max-width:1840px;padding:12px 20px 10px;margin:0 auto}.topbar{display:flex;align-items:center;gap:20px;min-height:74px;margin-bottom:10px}.brand{display:flex;align-items:center;color:inherit;text-decoration:none;white-space:nowrap;gap:8px}.brand-hero{width:68px;height:64px;overflow:hidden;transform:rotate(-8deg)}.wordmark{font-family:var(--font);font-size:clamp(29px,3.8vw,62px);font-weight:800;line-height:1;letter-spacing:-1.8px;-webkit-text-stroke:2px var(--ink);paint-order:stroke fill;text-shadow:0 5px 0 var(--ink)}.wordmark span:first-child{color:#ffb033}.wordmark span:last-child{color:#65e4ef}.tagline{font-size:clamp(13px,1.5vw,23px);font-weight:800;line-height:1.1;margin:0;transform:rotate(-2deg);white-space:nowrap}.tagline span{display:block;height:4px;background:var(--orange);border-radius:90%;margin-top:7px;transform:rotate(1deg)}.top-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.network{border:2px solid #bcb6a7;border-radius:18px;background:#fffef9;padding:8px 13px;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;white-space:nowrap}.network.live{border-color:#009789;background:#eafff6}.network.demo{border-color:#bd8ce0;background:#f5e9ff}.dot{width:10px;height:10px;border-radius:50%;background:#e8a832;box-shadow:0 0 0 3px #e8a83217}.live .dot{background:#20c961}.demo .dot{background:#aa63ef}.iconbutton{height:47px;min-width:45px;padding:7px;border:2px solid var(--ink);border-radius:14px;background:#fffdf7;box-shadow:0 3px 0 #c6bfae;display:flex;align-items:center;justify-content:center;gap:4px;font-size:28px;line-height:1}.iconbutton svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.iconbutton small{font:800 8px 'Nunito',sans-serif}.game-grid{display:grid;grid-template-columns:minmax(0,1fr) clamp(250px,24vw,355px);gap:12px;align-items:stretch}.arena{position:relative;height:clamp(405px,calc(100dvh - 230px),730px);min-width:0;border:3px solid var(--ink);border-radius:24px;overflow:hidden;background:#44d0ed;box-shadow:0 3px 0 #c8c1af;touch-action:none}#game{display:block;width:100%;height:100%;touch-action:none}.hud{position:absolute;inset:17px 18px auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:12px;pointer-events:none}.market,.score-card,.timer-card{background:#fffdf5;border:2px solid var(--ink);box-shadow:inset 0 0 0 4px #fff,0 3px 0 #151d3426;border-radius:23px}.market{display:flex;align-items:center;gap:8px;justify-self:start;padding:9px 12px;transform:rotate(-1deg)}.coin-mark{font:900 27px 'Nunito',sans-serif;color:#fff;background:#ffa215;border:2px solid #ffcc5c;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;text-shadow:0 2px 0 #dd7713}.price-label{font-size:clamp(13px,1.6vw,24px);line-height:1.1;white-space:nowrap;font-weight:800}.price-label #price{color:#086c70;margin-left:4px}.market-meta{display:flex;gap:7px;margin-top:3px;font-family:'Nunito',sans-serif;font-size:8px;color:#445871;font-weight:800}#trend{white-space:nowrap}#wind{white-space:nowrap}.score-card{width:156px;background:#fff1cf;border:3px solid #e48209;padding:3px 20px 8px;text-align:center;border-radius:30px;outline:2px solid var(--ink);transform:rotate(-1deg)}.score-card>span{display:block;font-size:22px;line-height:1.15;font-weight:800}.score-card strong{display:block;font-family:'Nunito',sans-serif;font-size:55px;line-height:1.06;font-weight:1000;letter-spacing:-2px}.timer-card{justify-self:end;display:flex;align-items:center;gap:8px;padding:8px 12px;position:relative;overflow:hidden;transform:rotate(1deg)}.timer-card strong{font-family:'Nunito',sans-serif;font-size:clamp(23px,2.7vw,38px);font-weight:1000;letter-spacing:-1px}.timer-card:after{content:'';position:absolute;right:0;top:6px;bottom:6px;width:6px;background:#8adea0;border-radius:9px}.timer-card.urgent:after{background:#ff856a}.timer-card.urgent strong{color:#c43730}.clock-icon{width:31px;height:35px;border:3px solid #e87015;border-radius:50%;background:#fff;position:relative;box-shadow:0 1px 0 var(--ink)}.clock-icon:before{content:'';position:absolute;width:9px;height:4px;left:8px;top:-7px;background:var(--ink);border-radius:4px}.clock-icon:after{content:'';position:absolute;left:12px;top:5px;width:2px;height:11px;background:var(--ink);transform-origin:bottom;transform:rotate(-25deg)}.clock-icon i{position:absolute;left:12px;top:15px;width:9px;height:2px;background:var(--ink);transform:rotate(20deg);transform-origin:left}.effect-rack{position:absolute;top:111px;left:50%;transform:translateX(-50%);display:flex;gap:5px;flex-wrap:wrap;justify-content:center;max-width:90%;pointer-events:none}.effect-pill{padding:3px 12px;border:2px solid #283d63;border-radius:14px;background:#c6edff;box-shadow:inset 0 0 0 2px #ffffff8a,0 2px 0 #24344822;font-weight:800;font-size:13px;white-space:nowrap}.effect-pill.small{background:#f6d6ec}.effect-pill.magnet{background:#e2d3ff}.arena-bottom{position:absolute;bottom:12px;left:17px;right:17px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.controls-hint{display:flex;align-items:center;gap:5px;font-size:12px;color:#fff;background:#172341e8;padding:4px 9px 4px 4px;border-radius:11px}.controls-hint kbd{background:#fffdf5;border:2px solid var(--ink);color:var(--ink);font:900 21px 'Nunito',sans-serif;width:31px;height:31px;line-height:27px;text-align:center;border-radius:8px}.controls-hint span{padding-left:3px}.grey-chip{display:flex;align-items:center;gap:9px;background:#fffef3;border:2px solid var(--ink);border-radius:14px;padding:7px 13px;box-shadow:inset 0 0 0 3px #d6dae8;font-size:15px;white-space:nowrap}.mini{height:20px;width:8px;background:#38c66a;border:1.5px solid #174c2f;display:inline-block;border-radius:3px;position:relative;flex-shrink:0}.mini:before,.mini:after{content:'';position:absolute;left:2px;width:1.5px;height:5px;background:#25334b}.mini:before{top:-6px}.mini:after{bottom:-6px}.mini.red{background:#ff7472;border-color:#8a3338}.mini.gray{background:#b7c5d8;border-color:#455570}.leaderboard{border:2px solid var(--ink);border-radius:25px;background:linear-gradient(120deg,#fffdf8,#faf5ee);padding:15px 14px 9px;display:flex;flex-direction:column;min-width:0;box-shadow:0 3px 0 #c8c1af}.board-title{display:flex;align-items:center;justify-content:center;gap:9px;min-height:56px;margin-bottom:7px}.trophy-art{width:54px;height:54px;overflow:hidden;transform:rotate(-8deg)}.board-title h2{font-family:'Nunito',sans-serif;font-weight:1000;font-size:clamp(30px,3.1vw,45px);letter-spacing:-1.6px;line-height:1;margin:0}.board-tabs{display:flex;border-radius:16px;background:#eeeae4;padding:3px;gap:4px;margin-bottom:8px}.board-tabs button{border:0;background:transparent;flex:1;padding:6px 3px;font-size:17px;font-weight:800;border-radius:13px}.board-tabs [aria-pressed=true]{background:linear-gradient(#ffa817,#ff9005);color:#fff;box-shadow:inset 0 0 0 2px #ffc870,0 2px 0 #dd6e0a;text-shadow:0 1px 0 #c56d10}.leaderboard ol{list-style:none;margin:0;padding:0;flex:1;display:grid;grid-template-rows:repeat(10,minmax(25px,1fr));min-height:270px}.leaderboard li{display:grid;grid-template-columns:21px 30px minmax(0,1fr) auto;align-items:center;gap:6px;padding:2px 5px;font-size:clamp(12px,1.17vw,17px);border-bottom:1px solid #e9e3da;border-radius:4px}.leaderboard li:last-child{border-bottom:0}.leaderboard li.mine{background:#a5efda;border-radius:13px;border-bottom-color:transparent}.leaderboard li.empty{color:#b1aa9e;font-size:13px}.leaderboard .rank{font-family:'Nunito',sans-serif;text-align:center;font-weight:900;font-size:13px}.leaderboard .username{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leaderboard li b{font-family:'Nunito',sans-serif;font-weight:1000;font-size:15px}.avatar{display:grid;place-items:center;border:1px solid #29466644;width:28px;height:28px;background:#dff3ff;border-radius:50%;font:18px sans-serif;flex-shrink:0}.your-row{display:flex;align-items:center;gap:8px;border-radius:15px;background:#b4f0dd;padding:9px 10px;margin-top:10px;font-size:13px}.your-row>span:nth-child(2){flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.your-row strong{font:1000 18px 'Nunito',sans-serif}.your-row b{font-weight:800}.leaderboard #boardStatus{text-align:center;font-size:9px;color:#817b6f;display:block;padding-top:6px;line-height:1.3}.leaderboard li.board-empty{display:block;grid-column:1/-1;grid-row:1/-1;text-align:center;align-content:center;color:#938d80;font-size:14px;line-height:1.5;border:0}.bottom-row{display:grid;grid-template-columns:1.2fr 1.2fr 1.12fr .7fr .95fr;gap:11px;margin-top:13px;align-items:stretch}.power-card{border:2px solid #78b7ed;background:#edf8ff;border-radius:18px;display:flex;align-items:center;gap:6px;padding:8px 10px;min-width:0;box-shadow:inset 0 0 0 2px #ffffffa1}.power-art{width:73px;height:73px;overflow:hidden;flex-shrink:0;filter:drop-shadow(0 2px 0 #ffffff)}.power-card>div{flex:1;min-width:0}.power-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:7px}.power-heading h3{margin:0;font-size:24px;font-weight:800;line-height:1}.power-heading>span{background:#79b4fb;color:#fff;border-radius:10px;white-space:nowrap;font-size:12px;padding:3px 6px;line-height:1.4}.power-card p{margin:0;font-size:clamp(9px,.9vw,14px);line-height:1.2;white-space:nowrap}.power-card.ant{background:#fff0f5;border-color:#db90b0}.ant .power-heading>span{background:#ba8be8}.power-card.magnet{background:#f3efff;border-color:#a393ee}.magnet .power-heading>span{background:#a18beb}.scoring-key{display:flex;flex-direction:column;justify-content:center;gap:6px;border:2px solid #ded4c5;background:#fffcf4;border-radius:18px;padding:10px 13px;font-size:14px}.scoring-key>span{display:flex;gap:8px;align-items:center;white-space:nowrap}.scoring-key .mini{height:15px;width:7px}.scoring-key b{margin-left:auto}.scoring-key span:first-child b{color:#137c40}.scoring-key span:nth-child(2) b{color:#ce303a}.quick-actions{display:flex;flex-direction:column;gap:9px}.primary,.secondary{border:2px solid var(--ink);border-radius:18px;padding:9px 16px;font-weight:800;font-size:20px;line-height:1.2;min-height:44px;box-shadow:0 3px 0 #9f601c,inset 0 0 0 2px #ffe09c}.primary{background:linear-gradient(#ffae19,#ff8d06);color:#fff;text-shadow:0 1px 0 #ba6004}.primary:not(:disabled):hover{background:linear-gradient(#ffbf40,#ffa014);transform:translateY(-1px)}.secondary{background:linear-gradient(#ecfff7,#b3f2df);box-shadow:0 3px 0 #5a9e92,inset 0 0 0 2px #fff;color:#154454}.secondary:not(:disabled):hover{background:#d4ffed;transform:translateY(-1px)}.overlay{position:absolute;inset:0;z-index:4;display:flex;justify-content:flex-end;align-items:center;padding:20px 6%;background:linear-gradient(90deg,transparent 15%,#44b9df15 100%)}.intro{width:345px;max-width:100%;background:#fffaf0f5;border:2px solid var(--ink);border-radius:26px;padding:23px 24px 15px;box-shadow:0 6px 0 #18264033,inset 0 0 0 4px #fff;transform:rotate(1deg);text-align:center;position:relative}.intro-eyebrow{font-size:10px;letter-spacing:1px;color:#906138;line-height:1.25;margin-bottom:8px}.intro h1{font-family:var(--font);font-weight:800;font-size:34px;line-height:1.02;letter-spacing:-.7px;margin:0 0 10px}.intro h1 span{color:#ec8309}.intro p{font-size:12px;font-weight:600;line-height:1.45;margin:0 0 13px;color:#657080}#usernameWrap{text-align:left}#usernameWrap label{font-size:12px;font-weight:800;display:block;margin-bottom:4px}#username{width:100%;border:2px solid #bbc1c9;border-radius:11px;background:#fff;padding:8px 12px;outline:0;font-family:'Nunito',sans-serif;font-size:14px;color:var(--ink)}#username:focus{border-color:#f49c19;box-shadow:0 0 0 3px #ffb83525}#nameError{display:block;min-height:15px;font-size:10px;color:#bb323d}.intro .primary{width:100%;font-size:16px;min-height:42px}.intro .primary>span{float:right}.demo{background:none;border:0;text-decoration:underline;text-underline-offset:3px;font-size:12px;color:#5b6780;margin:9px 0 3px;padding:3px}.control-hint{display:block;font-size:9px;color:#8c93a0;margin-top:5px}#shareActions{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin-top:9px}#shareActions button{background:#dbf8ec;border:1px solid #429e85;border-radius:8px;font-size:10px;padding:5px 7px}#rankStatus{font-size:10px;line-height:1.35;color:#277c61;margin:5px 0}.result-overlay{justify-content:center;background:#d1f7ff44;backdrop-filter:blur(2px)}.result-overlay .intro{width:405px;transform:rotate(-.5deg);padding:20px 24px 12px}.result-overlay h1{font-size:27px}.result-overlay h1 span{font:1000 39px 'Nunito',sans-serif}.result-overlay p{margin-bottom:9px}.result-overlay #usernameWrap{display:none}.toast{display:none;position:absolute;top:135px;left:50%;transform:translateX(-50%);z-index:6;max-width:90%;padding:8px 15px;border:2px solid var(--ink);border-radius:13px;background:#fff8e7;box-shadow:0 3px 0 #14213c22;font-size:12px;text-align:center}.touch-controls{display:none}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:9px;font-size:10px;color:#8a877e}footer button{border:0;background:transparent;padding:0;color:#6c706e;font-size:11px}footer button span{display:inline-grid;place-items:center;background:#eee8dc;border-radius:50%;width:17px;height:17px;margin-left:3px}.personal-best b{font-family:'Nunito',sans-serif;margin-left:5px}.personal-best small{font-size:9px}.details{border:2px solid #ddd5c7;border-radius:20px;padding:18px 24px;background:#fffdf8;margin:10px 0;font-family:'Nunito',sans-serif;font-size:12px;line-height:1.7;font-weight:600}.details h2{font-family:var(--font);margin:0 0 12px;font-size:20px}.details p{margin:0 0 12px}.details p:last-child{margin:0}#copyLink{width:100%;background:#fff;border:1px solid #a2b7ad;padding:6px;border-radius:7px;font-size:10px}.scene-ready .intro{transition:transform .3s}.scene-ready .intro:hover{transform:rotate(0deg)}
@media(min-width:1600px){.power-art{width:89px;height:89px}.power-heading h3{font-size:30px}.power-heading>span{font-size:16px}.bottom-row{gap:14px}.power-card{padding:9px 12px}.scoring-key{font-size:18px}.quick-actions button{font-size:25px;flex:1}.topbar{margin-bottom:15px}.leaderboard li b{font-size:20px}.leaderboard li{gap:8px}.avatar{width:32px;height:32px}.leaderboard li{grid-template-columns:24px 34px minmax(0,1fr) auto}.your-row{font-size:17px}.your-row strong{font-size:22px}.hud{inset:22px 23px auto}.score-card{width:180px}.score-card strong{font-size:65px}.timer-card{padding:12px 17px}.market{padding:12px 15px}.effect-rack{top:126px}.grey-chip{font-size:20px}.controls-hint{font-size:16px}}
@media(max-width:1150px){.tagline{display:none}.topbar{min-height:65px}.brand-hero{width:55px;height:55px}.network{font-size:11px}.game-grid{grid-template-columns:minmax(0,1fr) 245px}.leaderboard{padding:10px}.hud{inset:12px 10px auto;gap:6px}.market{padding:7px 8px;gap:5px}.market .coin-mark{width:28px;height:28px;font-size:21px}.price-label{font-size:15px}.market-meta{display:none}.score-card{width:115px;padding:3px 10px 5px;border-radius:22px}.score-card strong{font-size:42px}.score-card>span{font-size:17px}.timer-card strong{font-size:26px}.timer-card{padding:7px 10px}.clock-icon{width:25px;height:28px;border-width:2px}.clock-icon:after{left:10px;top:4px;height:9px}.clock-icon i{left:10px;top:12px}.clock-icon:before{left:6px}.effect-rack{top:84px}.effect-pill{font-size:11px}.bottom-row{grid-template-columns:1fr 1fr 1fr;gap:9px}.scoring-key{flex-direction:row;gap:20px;grid-column:1/3;font-size:13px}.scoring-key>span{gap:9px}.scoring-key b{margin-left:0}.quick-actions{flex-direction:row;gap:7px}.quick-actions button{flex:1;font-size:13px;padding:7px}.power-card p{font-size:10px}.power-art{width:56px;height:60px}.power-heading h3{font-size:23px}.arena{height:clamp(430px,calc(100dvh - 265px),680px)}.intro{width:290px;padding:16px 19px 11px}.intro h1{font-size:29px}.intro p{font-size:11px}.overlay{padding:14px 4%}.controls-hint span{display:none}.grey-chip{font-size:12px;padding:7px 10px}.leaderboard ol{min-height:270px}.leaderboard li{font-size:12px;gap:4px}.board-title h2{font-size:32px}.board-tabs button{font-size:15px}}
@media(max-width:760px){.shell{padding:10px 10px 12px}.topbar{gap:7px;min-height:55px;margin-bottom:10px}.brand{gap:3px}.brand-hero{width:40px;height:43px}.wordmark{font-size:30px;-webkit-text-stroke:1.5px;text-shadow:0 3px 0 var(--ink);letter-spacing:-1px}.top-actions{gap:6px}.iconbutton{min-width:35px;height:35px;border-radius:10px;font-size:21px;padding:5px}.iconbutton svg{width:20px;height:20px}.iconbutton small{display:none}.network{padding:4px 7px;font-size:8px;border-radius:10px;gap:4px}.dot{width:6px;height:6px}.game-grid{grid-template-columns:minmax(0,1fr);gap:13px}.arena{height:clamp(440px,65dvh,630px);border-radius:20px;border-width:2px}.hud{inset:12px 9px auto;gap:6px}.market{border-radius:14px;padding:8px 7px;max-width:119px;box-shadow:inset 0 0 0 2px #fff,0 2px 0 #151d3426}.market .coin-mark{display:none}.price-label{font-size:12px;white-space:normal;line-height:1.2}.price-label #price{display:block;margin:0;font-size:14px}.score-card{width:96px;border-radius:20px;padding:4px 7px}.score-card strong{font-size:35px}.score-card>span{font-size:14px}.timer-card{border-radius:15px;padding:9px 8px;gap:4px}.timer-card strong{font-size:22px}.clock-icon{width:22px;height:24px;display:none}.effect-rack{top:83px;width:100%;max-width:95%;gap:4px}.effect-pill{font-size:10px;padding:3px 8px;border-width:1.5px}.arena-bottom{left:9px;right:9px;bottom:9px}.controls-hint{background:#18213bcc;padding:3px;gap:3px}.controls-hint kbd{height:26px;width:27px;font-size:18px;line-height:22px}.grey-chip{font-size:11px;padding:6px 9px;gap:6px;border-radius:11px}.grey-chip .mini{height:16px}.overlay{align-items:flex-start;justify-content:center;padding:118px 20px 10px;background:#67c8e715}.intro{width:300px;max-width:100%;padding:14px 18px 9px;background:#fffaf0f7;border-radius:23px}.intro h1{font-size:29px;line-height:1}.intro p{font-size:11px;margin-bottom:8px}.intro-eyebrow{font-size:8px;margin-bottom:5px}.intro #username{font-size:13px;padding:7px 10px}.intro #usernameWrap label{font-size:11px}.intro .primary{font-size:14px;min-height:38px;padding:8px 10px}.intro .demo{margin:6px 0 0;font-size:11px}.control-hint{font-size:8px}.result-overlay{align-items:center;padding:35px 18px}.result-overlay .intro{padding:17px 19px 12px;width:320px}.result-overlay h1{font-size:25px}.result-overlay h1 span{font-size:35px}.toast{top:101px;font-size:10px;width:max-content;max-width:90%;padding:6px 9px}.leaderboard{padding:12px 13px;border-radius:20px}.board-title{min-height:35px;justify-content:flex-start;gap:8px;margin-bottom:8px}.board-title h2{font-size:31px}.trophy-art{height:39px;width:43px}.board-tabs{margin-bottom:7px}.board-tabs button{padding:5px;font-size:14px}.leaderboard ol{grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,35px);grid-auto-flow:column;min-height:175px;column-gap:10px}.leaderboard li{font-size:11px;grid-template-columns:16px 22px minmax(0,1fr) auto;gap:4px;padding:3px 1px}.avatar{width:22px;height:22px;font-size:14px}.leaderboard .rank{font-size:10px}.leaderboard li b{font-size:11px}.leaderboard li.board-empty{grid-row:1/6;grid-column:1/3}.your-row{font-size:12px;padding:8px 10px;margin-top:7px}.your-row strong{font-size:16px}.leaderboard #boardStatus{font-size:8px}.bottom-row{grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:12px}.power-card{display:flex;flex-direction:column;gap:1px;padding:7px 4px;border-radius:14px;text-align:center}.power-art{width:58px;height:55px}.power-card>div{width:100%}.power-heading{justify-content:center;gap:3px;margin-bottom:5px;flex-wrap:wrap}.power-heading h3{font-size:19px}.power-heading>span{font-size:9px;padding:2px 4px;border-radius:6px}.power-card p{white-space:normal;font-size:9px;line-height:1.25;min-height:23px}.scoring-key{grid-column:1/4;padding:8px;gap:20px;font-size:12px;border-radius:13px}.quick-actions{grid-column:1/4;gap:9px}.quick-actions button{font-size:16px;min-height:43px;border-radius:14px}.touch-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:11px 0 4px;touch-action:none}.touch-controls button{width:68px;height:44px;font:900 25px 'Nunito',sans-serif;border:2px solid var(--ink);border-radius:12px;background:#fffaf0;box-shadow:0 3px 0 #d0c7b7;touch-action:none;user-select:none}.touch-controls span{font-size:10px;color:#858274}.touch-controls{order:0}footer{font-size:9px;gap:8px;padding-top:9px}.personal-best{display:none}.details{padding:15px;font-size:11px}.details h2{font-size:19px}}
@media(max-width:390px){.wordmark{font-size:26px}.brand-hero{width:32px}.network{font-size:7px}.top-actions{gap:4px}.iconbutton{width:32px;min-width:32px;height:32px}.arena{height:490px}.power-heading{display:block}.power-heading>span{display:inline-block;margin-top:3px}.controls-hint{display:none}}
@media(prefers-reduced-motion:reduce){button,.scene-ready .intro{transition:none!important}}

/* Approved full-canvas layout. */
.shell{max-width:1920px;margin:0 auto;padding:8px 16px 9px}.game-grid{grid-template-columns:minmax(0,1fr) minmax(250px,22%);gap:12px;align-items:stretch}.arena{height:clamp(470px,calc(100dvh - 188px),1050px);border:4px solid var(--ink);border-radius:25px;box-shadow:none}.arena-hud{position:absolute;z-index:2;top:12px;left:50%;transform:translateX(-50%);display:flex;align-items:stretch;justify-content:center;gap:12px;width:max-content;max-width:94%;pointer-events:none}.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{border:3px solid var(--ink);border-radius:23px;background:linear-gradient(#fffefa,#fff9e8);box-shadow:inset 0 0 0 3px white,0 3px 0 #10213b24;transform:none;outline:0;min-height:65px;margin:0;padding:8px 14px}.arena-hud .market{gap:9px}.arena-hud .coin-mark{width:45px;height:45px;font-size:34px}.arena-hud .price-label{font-size:clamp(16px,1.75vw,28px);white-space:nowrap;line-height:1.1}.arena-hud #price{color:var(--ink);margin-left:3px}.arena-hud .network{padding:0;margin-top:4px;background:none;border:0;font-size:12px;line-height:1;gap:6px}.arena-hud .network.live{color:#00a754}.arena-hud .network.demo{color:#9654c7}.arena-hud .dot{width:10px;height:10px;box-shadow:none}.arena-hud .score-card{display:flex;align-items:center;justify-content:center;gap:10px;width:165px;background:linear-gradient(#fffdf3,#fff0c7);box-shadow:inset 0 -4px 0 #ffc557,inset 0 0 0 3px #fff,0 3px 0 #10213b24}.hud-trophy{width:40px;height:43px;flex:none}.arena-hud .score-card span,.arena-hud .timer-card div>span{display:block;font-size:15px;color:#73747d;line-height:1;font-weight:800;text-align:center}.arena-hud .score-card strong,.arena-hud .timer-card strong{display:block;font-family:'Nunito',sans-serif;font-size:34px;font-weight:1000;line-height:1.1;letter-spacing:-1px}.arena-hud .timer-card{display:flex;align-items:center;justify-content:center;gap:12px;width:178px}.arena-hud .clock-icon{display:block;width:37px;height:39px;border-color:#19b9ed;box-shadow:0 0 0 2px var(--ink);transform:rotate(-12deg)}.arena-hud .clock-icon:before{display:none}.arena-hud .clock-icon:after{left:15px;top:6px;height:12px}.arena-hud .clock-icon i{left:15px;top:16px;width:10px}.arena-hud .timer-card.urgent{background:#ffe5de;color:#ca3543}.effect-rack{top:94px;max-width:95%}.effect-pill{font-size:12px}.toast{top:128px}.leaderboard{border:4px solid var(--ink);border-radius:23px;padding:13px 11px 15px;box-shadow:none;min-width:0;background:linear-gradient(#fffef8,#fffbed)}.board-title{margin:0 0 9px;min-height:52px;gap:8px}.board-title h2{font-size:clamp(30px,3vw,48px);line-height:1}.trophy-art{width:49px;height:49px}.board-tabs{background:#f4f0e8;border:2px solid #dcd7cc;border-radius:14px;margin-bottom:10px;padding:0;overflow:hidden;gap:0}.board-tabs button{font-size:17px;padding:8px 4px;border:2px solid transparent;border-radius:12px;box-shadow:none}.board-tabs button[aria-pressed=true]{background:#b7ffdd;border-color:#10b47c;color:var(--ink);box-shadow:none}.leaderboard ol{display:flex;flex-direction:column;gap:4px;min-height:0;flex:0 1 auto;margin:0;padding:0}.leaderboard li{display:grid;grid-template-columns:25px 32px minmax(0,1fr) auto;gap:5px;align-items:center;flex:1;min-height:43px;padding:5px 7px;border:1.5px solid #e9e3d5;border-radius:15px;background:#fffdf48c;font-size:14px}.leaderboard .rank{display:grid;place-items:center;font-family:'Nunito',sans-serif;font-size:12px;font-weight:900;color:#606b7c;background:#e9e9e3;border:1px solid #c7c9bf;border-radius:50%;width:24px;height:24px}.leaderboard .avatar{width:31px;height:31px;font-size:21px;border:1px solid #c2c7b6}.leaderboard .username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard li b{font-size:15px;font-family:'Nunito',sans-serif;font-weight:1000}.leaderboard li.mine{background:#abffd5;border-color:#44d299}.leaderboard li.empty{color:#aaa99d}.leaderboard li.empty .username{font-size:11px}.leaderboard #boardStatus{font-size:11px;line-height:1.4;margin:12px 2px 0;color:#777a80;text-align:center}.bottom-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,22%);grid-template-rows:auto auto;gap:7px 12px;margin-top:10px;align-items:stretch}.power-row{grid-column:1;grid-row:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.power-card{border:3px solid;border-radius:20px;display:flex;flex-direction:row;text-align:left;padding:8px 9px;gap:8px;min-height:105px;box-shadow:inset 0 0 0 3px #ffffff70}.whale{border-color:#1594ff;background:linear-gradient(120deg,#f1ffff,#d4f0ff)}.ant{border-color:#ff8411;background:linear-gradient(120deg,#fff5df,#fff0c0)}.magnet{border-color:#9445fb;background:linear-gradient(120deg,#f7eeff,#e9dcff)}.power-art{width:86px;height:86px;flex:0 0 32%;max-width:108px}.power-card>div{min-width:0;flex:1}.power-heading{display:flex;align-items:center;justify-content:space-between;gap:3px;flex-wrap:nowrap;margin-bottom:4px}.power-heading h3{font-size:24px;line-height:1.1;margin:0}.power-heading>span{font-size:13px;border-radius:20px;padding:3px 7px;line-height:1.3;color:#fff;background:#079efe;white-space:nowrap}.ant .power-heading>span{background:#ff8514}.magnet .power-heading>span{background:#9947f7}.power-card p{font-size:12px;line-height:1.45;margin:0;white-space:normal;min-height:0;font-family:'Nunito',sans-serif;font-weight:800}.quick-actions{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:9px;justify-content:flex-start}.quick-actions button{flex:0 0 auto;width:100%;min-height:54px;font-size:25px;border:3px solid var(--ink);border-radius:18px;box-shadow:inset 0 -3px 0 #c15e0b;background:linear-gradient(#ffac25,#ff860b);padding:8px}.quick-actions .secondary{background:linear-gradient(#c6ffe7,#7bffd0);box-shadow:inset 0 -3px 0 #33c798}.utility-row{grid-column:1;grid-row:2;display:grid;grid-template-columns:52px 52px minmax(0,1.5fr) minmax(0,1fr);gap:7px;align-items:stretch}.utility-row .iconbutton{height:45px;min-width:0;border:2px solid #7d8391;border-radius:12px;box-shadow:none;background:#fffdf7;padding:3px;display:flex;flex-direction:column;gap:0}.utility-row .iconbutton svg{width:24px;height:23px}.utility-row .iconbutton small{display:block;color:#0ab45b;font-size:10px;line-height:1}.help-button>span{display:grid;place-items:center;border-radius:50%;width:25px;height:25px;background:var(--ink);color:#fff;font:900 20px 'Nunito',sans-serif}.scoring-key{display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;gap:7px;grid-column:auto;border:2px solid #ded8ca;background:#fffdf4;border-radius:13px;padding:5px 10px;font-size:12px;white-space:nowrap}.scoring-key>span{display:flex;align-items:center;gap:4px}.scoring-key b{margin:0;color:var(--ink)}.scoring-key .mini{height:23px;width:9px}.move-card{display:flex;align-items:center;justify-content:center;gap:6px;border:2px solid #ded8ca;background:#fffdf4;border-radius:13px;padding:4px 8px;white-space:nowrap}.move-card button{display:grid;place-items:center;width:27px;height:29px;border:2px solid var(--ink);border-radius:7px;background:#fff;font:900 20px 'Nunito',sans-serif;padding:0;touch-action:none;user-select:none}.move-card span{font-size:12px;color:#626c83}.overlay,.result-overlay{align-items:center;justify-content:center;padding:20px;background:#d1f7ff44;backdrop-filter:blur(2px)}.overlay .intro,.result-overlay .intro{width:405px;max-width:100%;padding:20px 24px 12px;transform:none}.scene-ready .intro:hover{transform:none}.help-backdrop{position:fixed;inset:0;z-index:20;background:#14203966;backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}.help-backdrop .details{position:relative;max-width:650px;max-height:85dvh;overflow:auto;margin:0;padding:26px;border:3px solid var(--ink);box-shadow:0 8px 30px #101b3922;font-size:13px}.help-backdrop h2{padding-right:24px}.close-help{position:absolute;right:12px;top:9px;border:0;background:none;font-size:28px;line-height:1;padding:4px}#pause{display:none!important}
@media(min-width:1600px){.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{min-height:78px;padding:10px 18px}.arena-hud .score-card{width:200px}.arena-hud .timer-card{width:215px}.arena-hud .score-card strong,.arena-hud .timer-card strong{font-size:39px}.effect-rack{top:105px}.leaderboard li{min-height:50px;font-size:17px}.leaderboard li b{font-size:18px}.leaderboard .username{font-size:17px}.leaderboard li.empty .username{font-size:13px}.power-heading h3{font-size:29px}.power-card p{font-size:15px}.scoring-key,.move-card span{font-size:15px}.utility-row{grid-template-columns:65px 65px minmax(0,1.5fr) minmax(0,1fr)}}
@media(max-width:1100px){.shell{padding:8px}.game-grid,.bottom-row{grid-template-columns:minmax(0,1fr) 235px;gap:9px}.arena-hud{gap:8px;top:10px}.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{min-height:58px;padding:7px 10px;border-radius:19px}.arena-hud .coin-mark{width:33px;height:33px;font-size:26px}.arena-hud .price-label{font-size:16px}.arena-hud .score-card{width:125px;gap:5px}.hud-trophy{width:28px;height:33px}.arena-hud .timer-card{width:135px;gap:8px}.arena-hud .score-card strong,.arena-hud .timer-card strong{font-size:27px}.arena-hud .score-card span,.arena-hud .timer-card div>span{font-size:12px}.arena-hud .clock-icon{width:28px;height:30px}.arena-hud .clock-icon:after{left:11px;top:4px;height:10px}.arena-hud .clock-icon i{left:11px;top:13px;width:8px}.arena-hud .network{font-size:9px}.power-art{width:60px;height:65px;flex-basis:26%}.power-card{padding:8px 5px;gap:4px;min-height:97px}.power-heading h3{font-size:19px}.power-heading>span{font-size:10px;padding:3px 5px}.power-card p{font-size:10px}.utility-row{grid-template-columns:40px 40px minmax(0,1.6fr) minmax(0,1fr);gap:5px}.scoring-key{font-size:10px;padding:5px;gap:4px}.move-card{gap:3px;padding:4px}.move-card span{font-size:9px}.move-card button{width:23px}.leaderboard li{font-size:12px;grid-template-columns:22px 27px minmax(0,1fr) auto;gap:4px;padding:5px}.leaderboard li b{font-size:13px}.leaderboard .avatar{width:26px;height:26px;font-size:18px}.leaderboard .rank{width:22px;height:22px}.board-tabs button{font-size:14px}.quick-actions button{font-size:21px}}
@media(max-width:760px){.game-grid{display:flex;flex-direction:column}.arena{height:clamp(490px,76dvh,780px);border-width:3px;border-radius:20px}.arena-hud{max-width:96%;gap:5px;top:8px;width:96%}.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{min-height:53px;padding:5px 7px;border-width:2px;border-radius:15px}.arena-hud .market{flex:1.4;gap:3px}.arena-hud .coin-mark{display:none}.arena-hud .price-label{font-size:12px;white-space:nowrap}.arena-hud #price{display:inline;font-size:12px;margin-left:2px}.arena-hud .network{font-size:8px;gap:4px}.arena-hud .dot{width:7px;height:7px}.arena-hud .score-card{flex:1;width:auto;gap:5px}.arena-hud .timer-card{flex:1;width:auto;gap:5px}.hud-trophy{width:25px;height:28px}.arena-hud .clock-icon{display:none}.arena-hud .score-card strong,.arena-hud .timer-card strong{font-size:23px}.arena-hud .score-card span,.arena-hud .timer-card div>span{font-size:10px}.effect-rack{top:70px}.effect-pill{font-size:10px}.toast{top:99px}.leaderboard{order:2;padding:12px;border-width:3px}.board-title{justify-content:center;min-height:40px}.board-title h2{font-size:32px}.trophy-art{width:40px;height:40px}.leaderboard ol{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,40px);grid-auto-flow:column;gap:4px 7px}.leaderboard li{min-height:0;grid-template-columns:19px 23px minmax(0,1fr) auto;font-size:10px;gap:3px;padding:4px;border-radius:10px}.leaderboard li b{font-size:11px}.leaderboard .rank{height:19px;width:19px;font-size:10px}.leaderboard .avatar{height:23px;width:23px;font-size:15px}.leaderboard li.empty .username{font-size:9px}.leaderboard #boardStatus{font-size:10px;margin-top:8px}.bottom-row{display:flex;flex-direction:column;gap:7px;margin-top:9px}.power-row{gap:6px}.power-card{flex-direction:column;text-align:center;padding:6px 4px;min-height:120px;gap:1px;border-width:2px;border-radius:15px}.power-art{width:60px;height:53px;flex:none}.power-card>div{width:100%}.power-heading{justify-content:center;gap:5px}.power-heading h3{font-size:18px}.power-heading>span{font-size:9px}.power-card p{font-size:9px;line-height:1.3}.utility-row{grid-template-columns:39px 39px minmax(0,1fr);gap:5px}.utility-row .iconbutton{height:43px}.scoring-key{font-size:10px;gap:4px;padding:4px;min-height:43px}.scoring-key .mini{width:7px;height:18px}.scoring-key>span{gap:3px}.move-card{grid-column:1/4;min-height:43px;gap:8px}.move-card span{font-size:12px}.move-card button{width:45px;height:31px}.quick-actions{flex-direction:row;gap:8px;order:3}.quick-actions button{flex:1;min-width:0;min-height:45px;font-size:19px}.overlay,.result-overlay{padding:70px 15px 15px;align-items:center}.overlay .intro,.result-overlay .intro{width:320px;padding:17px 19px 12px}}

/* One 1000 × 625 world on every screen; only its display scale changes. */
.arena{height:auto;min-height:0;aspect-ratio:8/5;align-self:start}
.mobile-controls{display:none}
.power-card.ant{border-color:#ff8411;background:linear-gradient(120deg,#fff5df,#fff0c0)}
.power-card.magnet{border-color:#9445fb;background:linear-gradient(120deg,#f7eeff,#e9dcff)}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.shell{display:flex;flex-direction:column;padding:8px;gap:9px}
.game-grid,.bottom-row{display:contents}
.arena{order:0;width:100%;height:auto;min-height:0;aspect-ratio:8/5;border-width:3px}
.mobile-controls{order:1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;touch-action:none;user-select:none;-webkit-user-select:none}
.mobile-controls button{min-height:58px;border:3px solid var(--ink);border-radius:18px;background:linear-gradient(#27c3ff,#008afa);color:white;box-shadow:inset 0 0 0 2px #ffffff66,0 3px 0 #14203925;font-size:26px;font-weight:800;touch-action:none;-webkit-touch-callout:none}
.mobile-controls #mobileRight{background:linear-gradient(#ffb63e,#ff8011)}
.mobile-controls small{font-size:12px;color:#626c83}
.power-row{order:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.utility-row{order:3;grid-template-columns:40px 40px minmax(0,1fr)}
.move-card{display:none}
.leaderboard{order:4;width:100%}
.quick-actions{order:5;display:flex;flex-direction:row}
.quick-actions button{flex:1;min-width:0}
.overlay,.result-overlay{position:fixed;inset:0;z-index:10;padding:15px;align-items:center;justify-content:center}
.overlay .intro,.result-overlay .intro{max-height:calc(100dvh - 30px);overflow:auto;width:360px}
.arena-hud{top:5px;gap:4px;width:96%;max-width:96%}
.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{min-height:42px;border-width:2px;border-radius:12px;padding:4px 6px}
.arena-hud .market{max-width:none;flex:1.4}
.arena-hud .score-card,.arena-hud .timer-card{width:auto;flex:1;gap:4px}
.arena-hud .coin-mark,.arena-hud .clock-icon{display:none}
.arena-hud .price-label,.arena-hud #price{font-size:12px;display:inline;white-space:nowrap}
.arena-hud .network{font-size:8px;margin-top:3px}
.arena-hud .score-card strong,.arena-hud .timer-card strong{font-size:21px}
.arena-hud .score-card span,.arena-hud .timer-card div>span{font-size:9px}
.hud-trophy{width:23px;height:25px}
.effect-rack{top:55px}.effect-pill{font-size:9px;padding:2px 6px}.toast{top:80px}
}
@media(hover:none) and (pointer:coarse) and (orientation:landscape){
.shell{max-width:calc((100dvh - 90px)*1.6 + 16px);margin:auto}
.mobile-controls button{min-height:48px}
}
/* Keep the drawing surface ratio exact, excluding the arena border. */
.arena{aspect-ratio:auto}
#game{height:auto;aspect-ratio:8/5}

/* Square mobile arena and compact HUD. */
.utility-row{grid-template-columns:45px 45px 45px minmax(0,1.5fr) minmax(0,1fr)}

:fullscreen{background:var(--cream);overflow:auto}
.expanded-game{position:fixed;inset:0;overflow:auto;background:var(--cream);z-index:25}
@media(max-width:760px),(hover:none) and (pointer:coarse){
#game{aspect-ratio:1/1}
.arena-hud{width:91%;max-width:91%;top:6px;gap:4px}
.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{min-height:35px;padding:3px 5px;border-radius:11px}
.arena-hud .price-label,.arena-hud #price{font-size:10px}
.arena-hud .network{font-size:7px;margin-top:2px;gap:3px}
.arena-hud .dot{width:5px;height:5px}
.arena-hud .score-card strong,.arena-hud .timer-card strong{font-size:18px;letter-spacing:-.5px}
.arena-hud .score-card span,.arena-hud .timer-card div>span{font-size:8px}
.hud-trophy{width:19px;height:21px}
.effect-rack{top:48px}.toast{top:73px}
.utility-row{grid-template-columns:38px 38px 38px minmax(0,1fr);gap:4px}
.scoring-key{font-size:9px;padding:4px 3px;gap:3px}
.scoring-key .mini{width:6px;height:15px}
.scoring-key>span{gap:2px}
}
@media(hover:none) and (pointer:coarse) and (orientation:landscape){
.shell{max-width:calc(100dvh - 74px);margin:auto}
.mobile-controls{gap:7px}.mobile-controls small{font-size:10px}
.mobile-controls button{min-height:46px;font-size:20px}
}

/* Mobile uses the same icon cards, with balanced smaller proportions. */
.orientation-block{display:none}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.shell{gap:8px;max-width:560px;margin:auto}
.arena{container-type:inline-size;aspect-ratio:auto}
.arena-hud{display:grid;grid-template-columns:1.45fr 1fr 1.1fr;width:94%;max-width:94%;gap:1.4cqw;top:2cqw}
.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{width:auto;min-width:0;min-height:11.7cqw;padding:1cqw 1.2cqw;gap:1.3cqw;border-radius:3.5cqw;border-width:2px;justify-content:center}
.arena-hud .market{max-width:none}
.arena-hud .coin-mark{display:grid;flex:none;width:6.7cqw;height:6.7cqw;font-size:5cqw;border-width:1.5px}
.arena-hud .price-label,.arena-hud #price{font-size:2.8cqw;white-space:nowrap;display:inline;line-height:1.2;margin-left:0}
.arena-hud .network{font-size:2cqw;margin-top:.8cqw;gap:.8cqw;line-height:1}
.arena-hud .dot{width:1.4cqw;height:1.4cqw}
.arena-hud .score-card strong,.arena-hud .timer-card strong{font-size:5.8cqw;line-height:1.1;letter-spacing:-.4px}
.arena-hud .score-card span,.arena-hud .timer-card div>span{font-size:2.4cqw;line-height:1.1}
.hud-trophy{width:6.3cqw;height:6.8cqw;flex:none}
.arena-hud .clock-icon{display:block;flex:none;width:6cqw;height:6cqw;border:2px solid #19b9ed;box-shadow:0 0 0 1.5px var(--ink);transform:rotate(-12deg)}
.arena-hud .clock-icon:after{left:44%;top:16%;height:36%;width:1.5px}
.arena-hud .clock-icon i{left:44%;top:51%;width:32%;height:1.5px}
.arena-hud .timer-card:after{display:none}
.effect-rack{top:16cqw}.toast{top:23cqw}
.power-row{gap:8px}
.power-card{min-height:116px;padding:8px 5px;gap:5px;justify-content:flex-start;border-radius:15px}
.power-art{width:48px;height:45px;max-width:none;flex:none}
.power-card>div{flex:0 0 auto;width:100%}
.power-heading{gap:5px;margin:0 0 6px;align-items:center}
.power-heading h3{font-size:16px;line-height:1.1}
.power-heading>span{font-size:9px;padding:2px 5px;line-height:1.2}
.power-card p{font-size:9px;line-height:1.4;min-height:26px}
.mobile-controls{gap:8px}
.mobile-controls button{font-size:24px;min-height:54px}
.mobile-controls small{font-size:11px}
.utility-row{gap:5px}
}
@media(hover:none) and (pointer:coarse) and (orientation:landscape){
.orientation-block{display:flex;position:fixed;inset:0;z-index:100;align-items:center;justify-content:center;flex-direction:column;background:var(--cream);text-align:center;padding:20px}
.orientation-block svg{width:66px;height:66px;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;margin-bottom:12px}
.orientation-block h2{font-size:28px;margin:0 0 6px;line-height:1.2}
.orientation-block p{font-size:16px;margin:0}
.orientation-block small{font-size:11px;margin-top:8px;color:#69748a}
.shell{visibility:hidden;pointer-events:none;max-width:560px}
}

/* Footer follows the exact three power-up column boundaries. */
.utility-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.utility-main{grid-column:1/3;display:grid;grid-template-columns:45px 45px 45px minmax(0,1fr);gap:7px;min-width:0}
.move-card{grid-column:3;min-width:0}
.version-badge{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;margin-top:auto;color:var(--ink);font-size:18px;line-height:1.1}
.version-badge svg{width:36px;height:34px;flex:none}
.version-badge b{color:#778295;font-size:13px;font-weight:800;white-space:nowrap}
@media(min-width:1600px){.utility-main{grid-template-columns:60px 60px 60px minmax(0,1fr);gap:7px}.version-badge{font-size:22px}.version-badge svg{width:43px;height:39px}.version-badge b{font-size:15px}}
@media(max-width:1100px){.utility-main{grid-template-columns:38px 38px 38px minmax(0,1fr);gap:5px}.version-badge{font-size:16px}.version-badge b{font-size:12px}}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.utility-main{display:contents}
.utility-row{grid-template-columns:38px 38px 38px minmax(0,1fr);gap:5px}
.version-badge{display:none}
}

/* Consistent cream HUD with the score card's yellow lower edge. */
.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{background:linear-gradient(#fffdf3,#fff0c7);box-shadow:inset 0 -4px 0 #ffc557,inset 0 0 0 3px #fff,0 3px 0 #10213b24}
.arena-hud .timer-card:after{display:none}
.arena-hud #price.price-up{color:#138c49}
.arena-hud #price.price-down{color:#d74445}
.leaderboard li:last-child{border-bottom:1.5px solid #e9e3d5}
.leaderboard li.mine:last-child{border-bottom-color:#44d299}

/* Actions fill the item row; version mark fills the footer row. */
.quick-actions{display:contents}
.action-buttons{grid-column:2;grid-row:1;display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:9px;min-height:0}
.action-buttons button{width:100%;height:100%;min-height:0;padding:6px 8px;font-size:22px;border:3px solid var(--ink);border-radius:18px;line-height:1.15}
.version-badge{grid-column:2;grid-row:2;margin:0;align-self:stretch}
.arena-hud{gap:9px}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.shell{gap:9px}
.power-row,.utility-row,.mobile-controls,.arena-hud{gap:9px}
.action-buttons{order:5;display:flex;gap:9px;min-height:45px}
.action-buttons button{flex:1;min-width:0;min-height:45px;font-size:18px}
.version-badge{order:6;display:flex;justify-content:center;min-height:42px;font-size:18px;margin:3px 0}
.version-badge svg{width:38px;height:36px}
.version-badge b{font-size:13px}
}

/* Twenty ranks scroll within the existing leaderboard panel. */
.leaderboard{contain:size;min-height:0;overflow:hidden}
.board-title,.leaderboard #boardStatus{flex-shrink:0}
.board-title h2{font-size:clamp(21px,1.8vw,32px);letter-spacing:-.8px}
.leaderboard ol{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;gap:4px;padding:0 3px 2px 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bac4cb transparent}
.leaderboard li{flex:0 0 auto}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.leaderboard{contain:none;height:auto}
.board-title h2{font-size:28px}
.leaderboard ol{display:flex;max-height:340px;min-height:0;flex:0 0 auto}
.leaderboard li{min-height:40px;grid-template-columns:25px 30px minmax(0,1fr) auto;font-size:13px;padding:5px 7px;gap:6px}
.leaderboard li b{font-size:13px}
.leaderboard .avatar{width:28px;height:28px;font-size:18px}
.leaderboard .rank{width:23px;height:23px;font-size:11px}
}

/* Compact mobile HUD with equal visible gutters and clean candle assets. */
.scoring-key .candle-icon{display:block;width:18px;height:30px;object-fit:contain;flex:0 0 auto}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.arena-hud .market,.arena-hud .score-card,.arena-hud .timer-card{justify-self:stretch;width:100%;max-width:none}
.arena-hud .score-card div>span,.arena-hud .timer-card div>span,.arena-hud .btc-label{display:none}
.scoring-key .candle-icon{width:14px;height:26px}
.power-card.magnet p{font-size:9px;line-height:1.4}
}

/* Illustrated Bitcoin icon and a legible single-line mobile price. */
.arena-hud .coin-mark{object-fit:contain;background:none;border:0;border-radius:0;box-shadow:none;text-shadow:none;flex-shrink:0}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.arena-hud .market{gap:1.2cqw;padding:1cqw 1.3cqw}
.arena-hud .market>div{min-width:0}
.arena-hud .market .coin-mark{display:block;width:7.6cqw;height:7.6cqw;border:0}
.arena-hud .price-label,.arena-hud #price{font-size:3.7cqw;font-weight:900;line-height:1.15;letter-spacing:-.06cqw;margin:0}
.arena-hud .market .network{display:none}
}

/* Value-only HUD with room for responsive prices and large scores. */
.arena-hud .score-card div>span,.arena-hud .timer-card div>span{display:none}
.arena-hud .market>div,.arena-hud .score-card>div,.arena-hud .timer-card>div{min-width:0;flex:1}
.arena-hud .price-label{display:block;max-width:100%;text-align:center}
.arena-hud .score-card strong,.arena-hud .timer-card strong{max-width:100%;white-space:nowrap;letter-spacing:0}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.arena-hud .price-label,.arena-hud #price{font-size:4.5cqw}
}

/* Reserve the original BTC card width independently of its fitted value. */
.arena-hud .market>div{display:grid;flex:0 1 auto}
.arena-hud .market>div:before{content:"BTC $88,888.88";visibility:hidden;pointer-events:none;grid-area:1/1;font-size:clamp(16px,1.75vw,28px);font-weight:800;line-height:1.1;white-space:nowrap}
.arena-hud .market .price-label{grid-area:1/1;contain:inline-size;width:100%;min-width:0}
.arena-hud .market .network{grid-row:2}
@media(max-width:1100px){.arena-hud .market>div:before{font-size:16px}}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.arena-hud .market>div{display:block;flex:1}
.arena-hud .market>div:before{display:none}
}

/* Two equal panels occupy the original community sidebar footprint. */
.community-panels{display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:12px;min-width:0;min-height:0;contain:size;align-self:stretch}
.community-panels .leaderboard{height:100%;min-height:0;contain:size;order:initial;padding:12px 11px 9px}
.community-panels .board-title{min-height:43px;gap:7px;flex-shrink:0}
.community-panels .board-title h2{font-size:clamp(20px,1.65vw,29px);line-height:1.1;white-space:nowrap}
.community-panels .trophy-art,.recent-icon{width:36px;height:36px;flex:0 0 36px}
.recent-icon{stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.community-panels ol{flex:1;max-height:none;min-height:0;margin:7px 0 0;overflow-y:auto}
.community-panels small{font-size:10px;text-align:center;flex-shrink:0;margin-top:7px;color:#77766e}
.recent-players li{grid-template-columns:30px minmax(0,1fr) auto;min-height:46px}
.recent-player-info{min-width:0;display:flex;flex-direction:column;line-height:1.2}
.recent-player-info time{font:700 10px 'Nunito',sans-serif;color:#7c8490;margin-top:3px}
.recent-players li b{color:#ee8816}
@media(max-width:760px),(hover:none) and (pointer:coarse){
.community-panels{order:4;width:100%;height:448px;flex:0 0 448px;gap:9px;contain:none}
.community-panels .leaderboard{contain:size;border-width:3px}
.community-panels .board-title h2{font-size:25px}
.community-panels .recent-players li{grid-template-columns:30px minmax(0,1fr) auto}
}

.result-number{display:block;max-width:100%;white-space:nowrap;line-height:1.1}
.community-panels{grid-template-rows:minmax(0,17fr) minmax(0,3fr)}
.community-panels .recent-players{padding:4px 8px}
.community-panels .recent-players .board-title{min-height:22px;gap:5px}
.community-panels .recent-players .board-title h2{font-size:16px;letter-spacing:-.3px}
.community-panels .recent-icon{width:22px;height:22px;flex-basis:22px}
.community-panels .recent-players ol{margin-top:3px;gap:3px}
.community-panels .recent-players li{min-height:30px;padding:3px 5px;grid-template-columns:24px minmax(0,1fr) auto;gap:5px}
.community-panels .recent-players .avatar{width:23px;height:23px;font-size:16px}
.community-panels .recent-players .username,.community-panels .recent-players li b{font-size:12px}
.community-panels .recent-player-info time{font-size:9px;margin-top:1px}
.community-panels #recentStatus{display:none}

/* Three full recent rows; the leaderboard uses the remaining sidebar space. */
.community-panels{--community-row:43px;grid-template-rows:minmax(0,1fr) auto}
.community-panels li{height:var(--community-row);min-height:var(--community-row);max-height:var(--community-row)}
.community-panels .recent-players{height:auto;contain:none;padding:12px 11px 9px}
.community-panels .recent-players .board-title{min-height:43px;gap:7px}
.community-panels .recent-players .board-title h2{font-size:clamp(20px,1.65vw,29px);letter-spacing:-.8px}
.community-panels .recent-icon{width:36px;height:36px;flex-basis:36px}
.community-panels .recent-players ol{flex:none;height:calc(var(--community-row)*3 + 10px);margin:7px 0 0;padding:0 3px 2px 0;gap:4px}
.community-panels .recent-players li{padding:5px 7px;grid-template-columns:32px minmax(0,1fr) auto;gap:5px;font-size:14px}
.community-panels .recent-players .avatar{width:32px;height:32px;font-size:21px}
.community-panels .recent-players .username{font-size:inherit}
.community-panels .recent-players li b{font-size:inherit}
.community-panels .recent-player-info time{font-size:10px;margin-top:2px}
@media(min-width:1600px){.community-panels{--community-row:50px}.community-panels .recent-players li{font-size:17px}}
@media(max-width:1100px){.community-panels .recent-players li{font-size:12px;grid-template-columns:27px minmax(0,1fr) auto;padding:5px}.community-panels .recent-players .avatar{width:26px;height:26px;font-size:18px}}
@media(max-width:760px),(hover:none) and (pointer:coarse){.community-panels{--community-row:40px}.community-panels .recent-players .board-title h2{font-size:25px}.community-panels .recent-players li{font-size:13px;padding:5px 7px;grid-template-columns:30px minmax(0,1fr) auto;gap:6px}.community-panels .recent-players .avatar{width:28px;height:28px;font-size:18px}}
/* A cheerful result postcard built from the game's existing mascot and candle art. */
.result-overlay .intro{background:linear-gradient(145deg,#effcff 0%,#fffdf1 45%,#fff0cf 100%);border:3px solid var(--ink);border-radius:29px;box-shadow:0 7px 0 #e8a42d,0 15px 35px #14203933,inset 0 0 0 4px #fff;padding:16px 23px 14px;overflow:hidden}
.result-art{display:flex;align-items:center;justify-content:center;gap:20px;height:85px;margin:0 auto 8px}
.result-art svg{width:100px;height:85px;filter:drop-shadow(0 4px 0 #ed9b2430);transform:rotate(-5deg)}
.result-spark{color:#ffb52d;text-shadow:2px 2px 0 #f18d14;font-size:33px;line-height:1}
.spark-left{transform:rotate(-15deg)}.spark-right{color:#a777ed;transform:rotate(12deg);text-shadow:2px 2px 0 #7552a6}
.result-overlay .intro h1{font-size:25px;line-height:1.08;margin-bottom:12px}
.result-overlay .result-number{font-family:'Nunito',sans-serif;font-weight:1000;font-size:64px;color:#ee8b10;margin:10px auto 0;padding:7px 8px 0;background:#fff7d9;border:2px solid #efc762;border-bottom:0;border-radius:20px 20px 0 0;text-shadow:0 3px 0 #fff;line-height:1.12}
.result-points{display:block;font-size:18px;color:var(--ink);letter-spacing:1px;background:#fff7d9;padding:0 8px 7px;border:2px solid #efc762;border-top:0;border-radius:0 0 20px 20px;box-shadow:0 3px 0 #eeb34433}
.result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 8px}
.result-stats>span{display:flex;justify-content:center;align-items:center;gap:8px;background:#fffdf8;border:1.5px solid #ded8c5;border-radius:12px;padding:5px;min-width:0}
.result-stats img{width:17px;height:30px;object-fit:contain;transform:rotate(12deg)}
.result-stats b{font:900 18px 'Nunito',sans-serif;color:var(--ink);min-width:0}
.result-summary{display:block;font-size:11px;line-height:1.4;color:#667082}
.result-overlay #usernameWrap{margin-top:8px}
.result-overlay #usernameWrap label{font-size:10px}
.result-overlay #username{background:#fffffa;border-radius:12px}
.result-overlay #start{border:2px solid var(--ink);border-radius:15px;background:linear-gradient(#ffbd45,#ff930d);box-shadow:inset 0 -3px 0 #e57813,0 3px 0 #dab974;font-size:17px;min-height:43px;margin-top:3px}
.result-overlay #shareActions{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:11px}
.result-overlay #shareActions button{background:#caffeb;border:1.5px solid #268d78;border-radius:10px;padding:5px 8px;font-size:10px;box-shadow:0 2px 0 #8fcfbd}
.result-overlay #rankStatus{font-size:10px;margin:9px 0 5px}
.result-overlay .control-hint{display:none}
@media(max-width:760px),(hover:none) and (pointer:coarse){.result-overlay .intro{width:360px;max-height:calc(100dvh - 28px);overflow-y:auto;padding:14px 18px 12px}.result-art{height:72px;margin-bottom:6px}.result-art svg{height:72px;width:85px}.result-overlay .intro h1{font-size:23px}.result-overlay .result-number{font-size:58px}.result-overlay #shareActions button{font-size:9px;padding:5px 7px}}

.community-panels #recentStatus:not([hidden]){display:block;color:#a84927}

/* Keep the recent panel fixed at three full rows, including placeholders. */
.community-panels .recent-players{height:calc(var(--community-row)*3 + 98px);min-height:calc(var(--community-row)*3 + 98px);max-height:calc(var(--community-row)*3 + 98px);overflow:hidden}
.community-panels .recent-players ol{min-height:calc(var(--community-row)*3 + 10px);max-height:calc(var(--community-row)*3 + 10px);overflow-y:auto;overscroll-behavior:contain}

.community-panels li b.score-positive{color:#101b39}
.community-panels li b.score-negative{color:#d74445}
