@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#121624;--lime:#baff6a;--muted:#9ba2b8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f3f3ed;font-family:'DM Sans',sans-serif;overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:5px}button{touch-action:manipulation}canvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;top:30px;left:44px;right:44px;display:flex;justify-content:space-between;align-items:center;z-index:3}.brand{font-family:'Space Grotesk',sans-serif;font-size:34px;font-weight:700;letter-spacing:-2px;color:#f3f3ed;text-decoration:none;display:flex;align-items:center}.brand span{color:var(--lime)}.brand i{width:8px;height:8px;border-radius:50%;background:var(--lime);margin:8px 0 0 9px}.top-right{display:flex;gap:16px;align-items:center}.version{font-size:10px;letter-spacing:2px;color:var(--muted)}.top-right button{background:#ffffff06;border:1px solid #ffffff16;border-radius:9px;padding:9px 13px;color:#bac0d2;font-size:11px}#lobby{position:absolute;left:8%;top:50%;transform:translateY(-47%);width:365px;z-index:2}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--lime);display:flex;align-items:center;gap:9px}.eyebrow>span,.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime)}h1{font-family:'Space Grotesk',sans-serif;font-size:80px;letter-spacing:-6px;line-height:.98;margin:22px 0}h1 em{font-style:normal;color:var(--lime)}.intro{font-size:15px;line-height:1.7;color:#aab0c1;margin:0 0 23px}.play-card{padding:20px;border:1px solid #ffffff15;background:#1c2132ee;border-radius:17px;box-shadow:0 15px 60px #0002}.mode-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.mode-line strong{font-size:14px}.mode-line span{font-size:9px;color:var(--muted);letter-spacing:1px}label{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#979fb5}input{display:block;width:100%;padding:12px 14px;margin:7px 0 12px;border:1px solid #3b4154;background:#141827;border-radius:8px;color:white}.primary{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-radius:9px;background:var(--lime);color:#1c2812;padding:15px 18px;font-size:15px;font-weight:800;box-shadow:0 4px 0 #6c9c38;transition:transform .15s,filter .15s}.primary:hover{filter:brightness(1.08);transform:translateY(-2px)}.primary span{font-size:24px;line-height:20px}.match-info{margin-top:17px;display:flex;justify-content:space-between;font-size:10px;color:#959eb5}.match-info i{display:inline-block;width:5px;height:5px;background:var(--lime);border-radius:50%;margin-right:4px}.how{display:flex;justify-content:space-between;margin-top:23px;gap:12px}.how>div{display:flex;gap:8px;font-size:9px;line-height:1.6;color:#8993aa}.how b{color:#616e88;font-family:'Space Grotesk';font-size:12px}.how strong{font-weight:500;color:#c3c9d8}#preview-label{position:fixed;left:68%;bottom:16%;transform:translateX(-50%);font-size:10px;letter-spacing:2px;color:#bbc4db;white-space:nowrap}.live-dot{margin-right:7px}.preview-sub{display:block;text-align:center;letter-spacing:0;font-size:12px;color:#6d7c97;margin-top:11px}footer{position:fixed;bottom:24px;left:44px;right:44px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#65718a}footer span:last-child{letter-spacing:0}#controls{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:1px;color:#c8cddd;white-space:nowrap;display:none}#controls span{color:#718099;letter-spacing:0;margin-left:4px}#controls b{margin:0 12px}#hud{pointer-events:none}.hud-top{position:fixed;top:28px;left:50%;transform:translateX(-50%);display:flex;gap:44px;align-items:center}.stat small,.timer small{font-size:9px;letter-spacing:1.6px;color:#8e9bb2;display:block}.stat strong{display:block;font-family:'Space Grotesk';font-size:29px;margin-top:5px}.stat strong span{font-size:13px;color:#5b6882}.timer{text-align:center;padding:12px 27px;border:1px solid #ffffff12;border-radius:12px;background:#1b2233b0}.timer strong{font:600 28px 'Space Grotesk';font-variant-numeric:tabular-nums}.right{text-align:right}#alert{position:fixed;top:127px;left:50%;transform:translateX(-50%);padding:10px 18px;border-radius:20px;color:#ffcb8c;background:#452d25e8;font-size:11px;white-space:nowrap}#alert:empty{display:none}.bottom-hud{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);display:flex;gap:34px;align-items:center}.mass-box{width:145px}.mass-box small{font-size:9px;letter-spacing:1px;color:#a4afc3;display:block}.mass-box b{float:right;color:var(--lime)}.meter{height:5px;background:#ffffff15;border-radius:5px;overflow:hidden;margin-top:8px}.meter i{height:100%;display:block;background:var(--lime);border-radius:5px}.charge-box{width:155px}.charge-box>span{font-size:10px;letter-spacing:1px;font-weight:700}.charge-box small{display:block;text-align:center;margin-top:7px;font-size:8px;color:#79879e}#overlay{position:fixed;inset:0;display:grid;place-items:center;background:#0b1028a8;backdrop-filter:blur(9px);z-index:5}.result{width:350px;border:1px solid #ffffff20;background:#1d2436;padding:32px;border-radius:20px;text-align:center;box-shadow:0 20px 100px #0005}.result .eyebrow{justify-content:center}.result h2{font:700 63px 'Space Grotesk';letter-spacing:-4px;margin:15px 0 0;color:var(--lime)}.result p{font-size:13px;color:#aab6c9;line-height:1.7}#result-stats{display:flex;justify-content:space-around;margin:24px 0}#result-stats strong{font:600 24px 'Space Grotesk';display:block;color:white}#result-stats small{font-size:9px;color:#91a0b7}.secondary{color:#a6b1c5;background:none;border:0;margin-top:20px;font-size:12px}.hidden{display:none!important}#touch{position:fixed;inset:auto 0 25px;height:100px;pointer-events:none;z-index:4}#stick{position:absolute;left:30px;bottom:0;width:94px;height:94px;border-radius:50%;background:#ffffff0d;border:1px solid #ffffff30;pointer-events:auto;touch-action:none}#stick div{position:absolute;left:29px;top:29px;width:34px;height:34px;border-radius:50%;background:#baff6a99;pointer-events:none}#dash{position:absolute;right:30px;bottom:7px;width:80px;height:80px;border-radius:50%;border:1px solid #baff6a88;color:var(--lime);background:#273e29e8;font-size:30px;pointer-events:auto;touch-action:none}#dash small{display:block;font-size:8px;letter-spacing:1px}
@media(max-height:760px) and (min-width:761px){h1{font-size:64px;margin:15px 0}.intro{margin-bottom:14px}.how{margin-top:17px}#lobby{transform:translateY(-44%)}.play-card{padding:16px}.mode-line{margin-bottom:13px}}
@media(max-width:760px){header{left:22px;right:22px;top:18px}.brand{font-size:29px}.version{display:none}#lobby{left:24px;width:calc(100% - 48px);max-width:365px;top:49%;transform:translateY(-43%);background:linear-gradient(90deg,#121624ed,#121624a0);border-radius:20px}h1{font-size:62px;letter-spacing:-4px;margin:15px 0}.intro{font-size:13px;margin-bottom:17px}.how{margin-top:18px}#preview-label{display:none}footer{left:24px;right:24px;bottom:15px}footer span:first-child{display:none}footer span:last-child{font-size:9px}.hud-top{top:74px;gap:24px}.timer{padding:8px 18px}.timer strong{font-size:22px}.stat strong{font-size:23px}#alert{top:157px;font-size:9px}.bottom-hud{bottom:145px;gap:20px}.mass-box{width:110px}.charge-box{width:125px}#controls{display:none!important}.result{width:min(350px,90vw)}}
@media(max-height:650px) and (max-width:760px){#lobby{top:52%;transform:translateY(-45%)}h1{font-size:44px}.intro{display:none}.how{display:none}.eyebrow{font-size:8px}.play-card{padding:14px}footer{display:none}.bottom-hud{bottom:25px}.hud-top{top:10px}.hud-top small{font-size:7px}#alert{top:83px}}

/* Lobby choices and readable overlays on a pale arena. */
.mode-picker{display:flex;gap:8px;margin:0 0 16px}.mode-option{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:69px;border:1px solid #ffffff18;border-radius:9px;background:#11182788;color:#8c99ae;padding:5px;position:relative}.mode-option svg{width:40px;height:31px}.mode-option span{font-size:11px;font-weight:700}.mode-option small{font-size:8px;margin-top:2px;color:#8e99ad}.mode-option.selected{border-color:#baff6a80;background:#baff6a0c;color:var(--lime)}.mode-option:disabled{cursor:default}.primary{justify-content:center}.intro strong{color:#e5eadf;font-weight:600}.bottom-hud{padding:13px 17px;background:#172031eF;border:1px solid #ffffff20;border-radius:13px}.mode-line{margin-bottom:13px}
@media(max-width:760px){#lobby{top:98px;transform:none;background:#121624ed;padding:18px;border:1px solid #ffffff12;max-height:calc(100dvh - 130px);overflow:auto;scrollbar-width:thin}h1{font-size:48px;margin:13px 0}.intro{font-size:12px;line-height:1.65;margin-bottom:15px}.play-card{padding:15px}.how{font-size:8px;gap:7px}.how>div{font-size:8px;gap:4px}.how b{font-size:10px}.bottom-hud{bottom:64px}.hud-top{background:#172031ed;padding:8px 15px;border-radius:14px;top:72px;gap:20px}.timer{padding:5px 13px}.hud-top small{font-size:8px}#alert{top:160px}}
@media(pointer:coarse){.bottom-hud{bottom:142px}}
@media(max-height:650px) and (max-width:760px){#lobby{top:75px;max-height:calc(100dvh - 95px)}.intro{display:block}.how{display:flex}h1{font-size:39px}.hud-top{top:64px}}
#preview-label{bottom:7%}
@media(min-width:761px) and (max-height:800px){#lobby{top:88px;transform:none;max-height:calc(100dvh - 135px);overflow:auto;scrollbar-width:thin}h1{font-size:54px;margin:12px 0}.intro{font-size:13px;line-height:1.6;margin-bottom:13px}.mode-option{min-height:60px}.play-card{padding:14px}.how{margin-top:15px}footer span:first-child{visibility:hidden}}

.power-legend{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-top:16px;color:#d8c3fb}.power-legend span:first-child{color:#ffc15a}.power-legend span:nth-child(2){color:#55dbea}#phase{position:fixed;top:119px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:1px;color:#9fb0c8;background:#172031ed;padding:7px 12px;border-radius:12px;white-space:nowrap}#phase.sudden{background:#652c28;color:#ffd0ac;font-weight:700}#alert{top:153px}#power-status{position:fixed;bottom:162px;left:50%;transform:translateX(-50%);background:#20243ded;color:#f7dc9b;font-size:11px;padding:9px 15px;border:1px solid #e5b86377;border-radius:15px;white-space:nowrap}#power-status:empty{display:none}@media(max-width:760px){#phase{top:151px;font-size:8px}#alert{top:184px}#power-status{bottom:152px;font-size:9px}.power-legend{font-size:9px}}@media(pointer:coarse){#power-status{bottom:229px}}
/* Persistent profile and the victory moment. */
.account-card{width:100%;display:flex;align-items:center;gap:16px;text-align:left;padding:13px 14px;margin-top:12px;border:1px solid #ffffff20;border-radius:14px;background:#202636eF;color:#f5f5ef}.account-card:hover{border-color:#baff6a88}.account-avatar{display:grid;place-items:center;width:32px;height:32px;background:var(--lime);color:#15231b;border-radius:50%;font-size:27px}.account-metric{display:flex;flex-direction:column;gap:3px}.account-metric b{font-size:18px}.account-metric small{font-size:9px;color:#a9b3c8}.profile-label{margin-left:auto;font-size:10px;color:var(--lime)}
#profile-dialog{background:#1b2030;color:#f5f5ef;border:1px solid #ffffff24;border-radius:24px;width:min(510px,calc(100vw - 32px));max-height:88dvh;padding:30px;box-shadow:0 30px 100px #0008;overflow:auto}#profile-dialog::backdrop{background:#090d19ce;backdrop-filter:blur(8px)}#close-profile{position:absolute;right:15px;top:10px;border:0;background:none;color:#b8c2d5;font-size:29px}#profile-name{font-size:27px;margin:18px 0 8px;overflow-wrap:anywhere}#account-status{font-size:12px;color:#b4bfd2}#account-link{display:inline-block;color:var(--lime);font-size:12px;margin:4px 0 24px}.level-line{display:flex;justify-content:space-between;font-size:11px;margin-bottom:9px}.level-line strong{color:var(--lime)}#profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:22px}#profile-stats>div{background:#ffffff05;border:1px solid #ffffff0c;border-radius:12px;padding:14px 6px;text-align:center}#profile-stats strong,#profile-stats small{display:block}#profile-stats strong{font-size:24px}#profile-stats small{font-size:10px;color:#acb6ca;margin-top:6px}#profile-dialog h3{font-size:14px;margin-top:23px}#badges{display:flex;flex-wrap:wrap;gap:7px}#badges span{font-size:10px;color:#98a2b8;padding:8px 10px;border:1px dashed #6b738544;border-radius:20px}#badges .earned{color:#ffe1a0;background:#ffc15a15;border:1px solid #ffc15a55}#recent-matches{font-size:12px;color:#adb7ca}#recent-matches>div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ffffff0d;gap:10px}#recent-matches b{font-size:11px;color:var(--lime)}#recent-matches .recent-win strong{color:#ffd36e}.profile-note{font-size:10px;line-height:1.7;color:#929db3;margin:20px 0 0}
#confetti{position:fixed;inset:0;pointer-events:none;z-index:40;width:100%;height:100%}.result{max-height:92dvh;overflow:auto}#victory-podium{display:none}.result.victory{border:1px solid #ffcc6377;background:radial-gradient(ellipse at 50% 5%,#55502e 0%,#242638 50%,#1b2030 100%);box-shadow:0 0 110px #f7c35b30}.victory #victory-podium{display:flex;flex-direction:column;align-items:center;position:relative;height:142px;margin-top:-8px;animation:podium-in .65s cubic-bezier(.2,1.6,.4,1)}.crown{position:absolute;top:-9px;color:#ffcf65;font-size:53px;z-index:2;transform:rotate(-12deg);text-shadow:0 2px 15px #ffcf6577}.winner-ball{position:relative;width:74px;height:74px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#dfffaf,#baff6a 55%,#82bf3f);margin-top:35px;box-shadow:inset -4px -6px 0 #77b53b44,0 8px 0 #0002;display:flex;justify-content:center;gap:13px;padding-top:22px;z-index:1}.winner-ball i{background:#fff;width:13px;height:17px;border-radius:50%;position:relative}.winner-ball i:after{content:'';position:absolute;right:2px;bottom:3px;background:#172031;width:7px;height:9px;border-radius:50%}.winner-ball span{position:absolute;top:30px;font-size:32px;color:#253945}.podium-base{background:linear-gradient(#fff0bb,#d8a342);color:#543b12;font-weight:900;font-size:23px;line-height:38px;width:110px;border-radius:8px 8px 4px 4px;box-shadow:0 7px 0 #896224}.victory #result-title{color:#ffe09b;font-size:64px;margin:8px 0;letter-spacing:-3px;text-shadow:0 3px 25px #ffbb4330}.victory .eyebrow{color:#edcf94;font-size:9px;justify-content:center;margin-top:13px}#result-reward{background:#baff6a0a;border:1px solid #baff6a24;border-radius:10px;padding:12px;margin:0 0 16px;font-size:12px;color:#bcc9ac}#result-reward:empty{display:none}#result-reward strong,#result-reward small{display:block}#result-reward strong{color:var(--lime);font-size:17px}#result-reward small{font-size:10px;margin-top:6px;line-height:1.6}#retry-save{margin-bottom:10px}@keyframes podium-in{from{transform:translateY(24px) scale(.6);opacity:0}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){.victory #victory-podium{animation:none}}@media(max-width:400px){.account-card{gap:10px}.account-metric b{font-size:16px}#profile-dialog{padding:24px 18px}.result{padding:24px}.victory #result-title{font-size:52px}}@media(min-width:761px){#lobby{max-height:calc(100dvh - 140px);overflow:auto;scrollbar-width:thin}}
.profile-label{line-height:1.6}.profile-label b{color:#d6a077;font-size:12px}.rank-card{padding:17px;background:linear-gradient(120deg,#d6a07717,#ffffff03);border:1px solid #d6a07740;border-radius:14px;margin:0 0 23px}.rank-card .eyebrow{font-size:8px;letter-spacing:1.5px;color:#a9b4c7}.rank-title{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.rank-title strong{font-size:27px}.rank-title span{font-size:13px;color:#e4d3b9}#rank-progress{background:#d6a077}#rank-next{font-size:11px;color:#bfc6d4}.rank-card details{font-size:10px;color:#a4aec1;line-height:1.65}.rank-card summary{cursor:pointer;color:#d3bda4}.ranked-result{font-size:12px;font-weight:700;color:#e6ca8b;margin:10px 0}.ranked-result.loss{color:#ffacaa}#recent-matches>div{flex-wrap:wrap}
.xp-reward{margin:16px 0 8px;text-align:left}.xp-reward-line{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#d9e5cf;margin-bottom:8px}.xp-reward-line b{color:#baff6a;letter-spacing:.7px}.xp-reward-line span{font-variant-numeric:tabular-nums}.xp-track{height:14px;background:#0b1220;border:1px solid #baff6a25;border-radius:10px;overflow:hidden;box-shadow:inset 0 2px 5px #0006}.xp-track i{height:100%;display:block;position:relative;border-radius:8px;background:linear-gradient(90deg,#75c638,#baff6a 65%,#f1ffd3);box-shadow:0 0 16px #baff6a88}.xp-track i:after{content:'';position:absolute;right:0;top:0;width:3px;height:100%;background:#fff9}.xp-message{min-height:18px;margin-top:9px;text-align:center;font-size:10px;color:#a4b398}.xp-reward.level-up .xp-track{box-shadow:0 0 24px #f5d36e80;border-color:#ffe3a3}.xp-reward.level-up .xp-track i{background:linear-gradient(90deg,#ffbe50,#fff2be)}.xp-reward.level-up .xp-message{color:#ffe5a0;font-size:12px;font-weight:800;animation:xp-pop .4s ease-out}@keyframes xp-pop{from{transform:scale(.85)}to{transform:scale(1)}}#profile-progress{transition:width 1.1s cubic-bezier(.2,.8,.2,1)}@media(prefers-reduced-motion:reduce){#profile-progress{transition:none}.xp-reward.level-up .xp-message{animation:none}}
/* Player identity is part of the first impression. */
.hero-identity{display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:center;gap:12px;margin:17px 0 16px}.hero-identity h1{font-size:54px;letter-spacing:-3.6px;margin:0;line-height:1.02}.hero-rank{--rank-color:#d6a077;border:0;color:var(--rank-color);background:radial-gradient(ellipse,#d6a07713,transparent 70%);padding:0;display:flex;flex-direction:column;align-items:center;transition:transform .2s}.hero-rank:hover{transform:translateY(-3px)}.rank-emblem{display:block;width:100px;height:107px;filter:drop-shadow(0 5px 14px #0006)}.rank-emblem svg{display:block;width:100%;height:100%}.hero-rank-name{font-family:'Space Grotesk',sans-serif;text-transform:uppercase;font-weight:700;font-size:15px;letter-spacing:2px;margin-top:3px}.hero-rank-caption{font-size:7px;letter-spacing:1.7px;color:#8f9bb1;margin-top:4px}.hero-level{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #baff6a30;border-radius:13px;background:linear-gradient(105deg,#baff6a10,#172031e6);padding:12px;margin:0 0 18px;color:#edf3e6}.level-medallion{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:43px;height:48px;border-right:1px solid #baff6a33;padding-right:11px;color:var(--lime)}.level-medallion small{font-size:8px;letter-spacing:1.5px}.level-medallion b{font:700 27px 'Space Grotesk',sans-serif;line-height:1.15}.hero-progress{flex:1;min-width:0}.hero-progress-heading{display:flex;justify-content:space-between;align-items:center;gap:5px}.hero-progress-heading strong{font-size:11px;font-weight:600}.hero-progress-heading>span{font-size:8px;color:#bac6ad;white-space:nowrap;font-variant-numeric:tabular-nums}.hero-xp-track{display:block;background:#070d1899;height:6px;border-radius:5px;margin:9px 0 7px;overflow:hidden}.hero-xp-track i{display:block;height:100%;background:linear-gradient(90deg,#7dcd44,#d7ff99);box-shadow:0 0 10px #baff6a66;border-radius:5px;transition:width 1s ease-out}.hero-career{font-size:9px;color:#a3aec0;display:block;line-height:1.4}.hero-level:hover{border-color:#baff6a66}@media(max-width:760px){.hero-identity{grid-template-columns:minmax(0,1fr) 92px;gap:8px;margin-top:12px}.hero-identity h1{font-size:47px;letter-spacing:-3px}.rank-emblem{width:87px;height:93px}.hero-rank-name{font-size:13px}.hero-level{padding:10px;gap:10px}.hero-progress-heading{flex-wrap:wrap}.hero-progress-heading strong{font-size:10px}}@media(max-width:390px){.hero-identity{grid-template-columns:minmax(0,1fr) 74px}.hero-identity h1{font-size:36px;letter-spacing:-2.7px}.rank-emblem{width:74px;height:79px}.hero-rank-name{font-size:11px}.hero-career{font-size:8px}}@media(prefers-reduced-motion:reduce){.hero-rank,.hero-xp-track i{transition:none}}
@media(max-height:800px){.hero-identity{margin:10px 0 12px;grid-template-columns:minmax(0,1fr) 88px}.hero-identity h1{font-size:46px}.rank-emblem{width:76px;height:81px}.hero-rank-name{font-size:12px}.hero-rank-caption{font-size:6px;margin-top:2px}.hero-level{padding:9px 11px;margin-bottom:12px}.level-medallion{height:40px}.intro{font-size:12px;line-height:1.5;margin-bottom:12px}.mode-option{min-height:52px}.mode-picker{margin-bottom:10px}.mode-line{margin-bottom:10px}.play-card{padding:13px}input{padding:10px 12px}.primary{padding:12px 16px}}
@media(max-width:390px) and (max-height:800px){.hero-identity{grid-template-columns:minmax(0,1fr) 74px}.hero-identity h1{font-size:36px}.rank-emblem{width:70px;height:75px}}
#profile-rank-emblem svg{width:52px;height:58px}.ranked-result{display:flex;align-items:center;justify-content:center;gap:10px}.ranked-result svg{width:46px;height:50px}.ranked-result span{font:700 17px 'Space Grotesk',sans-serif}.charge-box.ready .meter i{animation:charge-ready 1.2s ease-in-out infinite}.charge-box.ready>span{color:var(--lime)}@keyframes charge-ready{0%,100%{opacity:1;filter:brightness(1.25)}50%{opacity:.45;filter:brightness(.9)}}@media(prefers-reduced-motion:reduce){.charge-box.ready .meter i{animation:none;box-shadow:0 0 10px #baff6a}}
/* Replay stays visible while the reward section grows. */
.result{display:grid;grid-template-rows:minmax(0,1fr) auto;max-height:calc(100dvh - 24px);overflow:hidden;padding:0}.result-content{min-height:0;overflow:auto;padding:25px 28px 12px;scrollbar-width:thin}.result-actions{padding:12px 28px 20px;background:#1b2030;border-top:1px solid #ffffff12}.victory .result-actions{background:#202333}.result-actions .secondary{margin-top:13px}.result-content #retry-save{margin-top:0}@media(max-height:800px){.victory #victory-podium{height:105px;transform:scale(.8);transform-origin:top center;margin-bottom:-12px}.victory #result-title{font-size:48px;margin:4px 0}.result .eyebrow{font-size:8px;margin-top:5px}.result p{font-size:11px;line-height:1.5;margin:8px 0}#result-stats{margin:14px 0}#result-reward{padding:10px;margin-bottom:0}.xp-reward{margin:10px 0 5px}.ranked-result{margin:5px 0}.ranked-result svg{width:32px;height:37px}.result-content{padding:20px 24px 10px}.result-actions{padding:10px 24px 15px}}@media(max-height:550px){.victory #victory-podium{display:none}.victory #result-title{font-size:38px}.result-content{padding-top:13px}.result-actions{padding:8px 20px 12px}}
.giant-icon{width:15px;height:15px;vertical-align:middle;margin-right:3px}.power-legend span{display:inline-flex;align-items:center}.mass-box #mass-next{text-align:right;margin-top:6px;font-size:8px;color:#889bb6}.mass-box .meter i{transition:width .15s ease-out}
/* Every screen has its own compact pane, with paging instead of scrolling. */
[hidden]{display:none!important}#lobby{overflow:hidden!important;top:76px;transform:none!important;max-height:calc(100dvh - 104px);width:365px}.hero-identity{margin:5px 0 10px}.hero-level{margin-bottom:9px}.wardrobe-menu>button{display:flex;align-items:center;gap:9px;width:100%;height:57px;background:#23283bec;border:1px solid #b7a0eb44;border-radius:12px;color:#f6f3fa;text-align:left;padding:4px 10px}.wardrobe-menu strong,.wardrobe-menu small{display:block}.wardrobe-menu strong{font-size:12px}.wardrobe-menu small{font-size:9px;color:#a4aec4;margin-top:4px}.wardrobe-menu b{margin-left:auto;color:#ffe091;font-size:13px}#menu-skin svg{width:49px;height:49px}.intro{font-size:11px;margin:10px 0;line-height:1.4}.intro #open-help{border:0;background:none;color:#a9b7d0;font-size:9px;padding:0;margin-left:8px;text-decoration:underline}.play-card{padding:12px}.mode-option{min-height:52px}.mode-picker{margin-bottom:10px}.match-info{margin-top:12px}.primary{padding:12px 15px}.mode-line{margin-bottom:10px}#footer{bottom:10px;font-size:8px}
#wardrobe-dialog,#help-dialog{background:#1b2030;color:#f5f5ef;border:1px solid #ffffff24;border-radius:23px;padding:23px;width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 24px);overflow:hidden;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#090d19ce;backdrop-filter:blur(8px)}.wardrobe-head{display:flex;align-items:center;gap:14px}.wardrobe-head h2{font:700 27px 'Space Grotesk',sans-serif;margin:8px 0 0}.wardrobe-head .eyebrow{font-size:8px}.wallet{margin-left:auto;color:#ffe091;font-size:17px;white-space:nowrap}#close-wardrobe,#close-help{border:0;background:none;color:#aebbd0;font-size:28px;padding:0}.skin-tabs,.profile-tabs{display:flex;gap:6px;margin:18px 0}.skin-tabs button,.profile-tabs button{flex:1;border:1px solid #ffffff18;background:#ffffff04;color:#a5b2c8;border-radius:9px;padding:10px 5px;font-size:11px}.skin-tabs button[aria-pressed=true],.profile-tabs button[aria-pressed=true]{color:var(--lime);background:#baff6a0b;border-color:#baff6a55}.wardrobe-body{display:grid;grid-template-columns:1fr 1.15fr;gap:22px;align-items:center}.skin-feature{text-align:center;background:radial-gradient(ellipse at center,#a39bca22,transparent 70%);padding:10px 0}.skin-feature svg{width:145px;height:145px}.skin-feature h3{font:700 22px 'Space Grotesk',sans-serif;margin:0 0 8px}.skin-feature p{font-size:11px;color:#b2bdd0;min-height:28px;margin:0 0 12px}.skin-feature .primary{font-size:12px}.skin-feature .primary:disabled{opacity:.5;cursor:default;transform:none}#skin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.skin-card{padding:5px 7px 10px;background:#ffffff04;color:#e1e7f2;border:1px solid #ffffff14;border-radius:12px;text-align:center}.skin-card svg{display:block;width:90px;height:90px;margin:auto}.skin-card strong,.skin-card small{display:block}.skin-card strong{font-size:11px}.skin-card small{font-size:9px;color:#a4b1c8;margin-top:5px}.skin-card.selected{border-color:var(--lime);background:#baff6a0a}.page-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:13px;font-size:10px;color:#a7b3c9}.page-controls button{background:#ffffff05;border:1px solid #ffffff18;color:#d1dcf0;border-radius:8px;font-size:10px;padding:7px 9px}.page-controls button:disabled{opacity:.3;cursor:default}#wardrobe-message{height:18px;color:var(--lime);font-size:11px;margin:13px 0 3px}.wardrobe-note{font-size:9px;color:#8d9bb2;line-height:1.5;margin-bottom:0}.coins-reward{color:#ffdc86;font-weight:700;font-size:11px;margin:6px 0}#profile-dialog{overflow:hidden;width:min(510px,calc(100vw - 28px));padding:24px;max-height:calc(100dvh - 24px)}#profile-name{margin:12px 0 5px;font-size:24px}#account-status{margin:6px 0;font-size:10px}#account-link{margin:3px 0 0;font-size:10px}.profile-tabs{margin:14px 0}.profile-tabs button{font-size:10px;padding:8px 3px}.profile-pane{min-height:290px}#profile-stats{margin-top:16px}#profile-dialog h3{margin-top:16px}.rank-rules{font-size:11px;line-height:1.6;color:#b1bbce}.rank-card{margin:0;padding:15px}.rank-card .rank-rules p{margin:9px 0}#recent-matches>div{padding:10px 0;flex-wrap:nowrap;font-size:11px}.winner-ball:has(svg){background:transparent;box-shadow:none;padding:0;width:84px;height:84px;margin-top:28px}.winner-ball>svg{width:100%;height:100%}.result-content{overflow:hidden}#help-dialog{max-width:460px}#close-help{float:right}#help-dialog h2{font:700 25px 'Space Grotesk',sans-serif;margin:16px 0}#help-dialog p{font-size:12px;line-height:1.65;color:#b3bed2}.help-powers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.help-powers p{padding:10px;background:#ffffff04;border-radius:10px;font-size:10px!important}.help-powers strong{color:#ffe092}
@media(max-width:760px){#lobby{top:72px;left:18px;width:calc(100% - 36px);max-width:365px;max-height:calc(100dvh - 89px);padding:13px}.hero-identity{margin:0 0 7px}.hero-identity h1{font-size:42px}.rank-emblem{width:70px;height:74px}.hero-level{padding:8px;margin-bottom:8px}.hero-progress-heading strong{font-size:9px}.wardrobe-menu>button{height:50px}.intro{font-size:10px;margin:8px 0}.play-card{padding:10px}.mode-option{min-height:44px}.mode-option svg{height:23px}.mode-line{margin-bottom:8px}.mode-picker{margin-bottom:8px}.mode-line strong{font-size:12px}.mode-line span{font-size:8px}input{padding:9px 12px;margin-bottom:9px}.match-info{font-size:8px;margin-top:10px}.wardrobe-body{gap:10px;grid-template-columns:1fr 1fr}.skin-feature svg{width:105px;height:105px}.skin-card svg{width:67px;height:67px}#wardrobe-dialog{padding:17px}.skin-feature h3{font-size:18px}.skin-feature p{font-size:10px}.skin-card strong{font-size:10px}.skin-tabs{margin:12px 0}.wardrobe-head h2{font-size:24px}.wallet{font-size:14px}#profile-dialog{padding:20px}.profile-pane{min-height:275px}#profile-stats strong{font-size:22px}.profile-tabs button{font-size:9px}.result-content{padding:15px 22px 8px}.result .victory-podium{max-height:85px}#footer{display:none}.wardrobe-note{font-size:8px}}
@media(max-height:650px){#lobby{top:67px}.hero-identity h1{font-size:35px}.rank-emblem{width:54px;height:58px}.hero-rank-caption{display:none}.hero-rank-name{font-size:10px}.hero-level{padding:6px;margin-bottom:6px}.level-medallion{height:34px}.level-medallion b{font-size:22px}.wardrobe-menu>button{height:43px}.wardrobe-menu #menu-skin svg{width:38px;height:38px}.intro{margin:6px 0}.mode-option{min-height:38px}.mode-picker{margin-bottom:6px}.mode-line{margin-bottom:6px}input{padding:7px 10px;margin-bottom:7px}.primary{padding:10px 12px;font-size:13px}.match-info{margin-top:9px}#profile-name{font-size:20px;margin:8px 0 3px}#profile-dialog .eyebrow{font-size:7px}.profile-pane{min-height:235px}#profile-stats>div{padding:10px 4px}#profile-stats{gap:6px}.rank-rules{font-size:10px}.rank-title{margin:7px 0}.rank-title strong{font-size:23px}.wardrobe-head h2{font-size:20px}.skin-feature svg{width:88px;height:88px}.skin-card svg{width:59px;height:59px}.skin-card{padding-bottom:7px}.skin-feature{padding:0}.skin-feature p{margin-bottom:7px}.skin-tabs button{padding:7px 3px}.page-controls{margin-top:9px}.wardrobe-note{margin-top:4px}#wardrobe-message{margin-top:9px}.victory #victory-podium{height:80px;transform:scale(.65);margin-bottom:-15px}.victory #result-title{font-size:39px}.result p{margin:5px 0}#result-stats{margin:10px 0}#result-reward strong{font-size:14px}.xp-reward{margin-top:7px}.ranked-result svg{width:24px;height:27px}.ranked-result span{font-size:14px}.result-actions .secondary{margin-top:8px}.coins-reward{font-size:10px}}
@media(max-height:450px) and (min-width:620px){#lobby{top:52px;width:540px;display:grid;grid-template-columns:1fr 1fr;gap:6px 15px;max-width:none;max-height:calc(100dvh - 65px)}.hero-identity,.hero-level,.wardrobe-menu,.intro{grid-column:1;margin:0}.play-card{grid-column:2;grid-row:1/5;align-self:center}.hero-identity h1{font-size:32px}#profile-dialog{padding:14px;max-width:650px}.profile-pane{min-height:160px}#profile-stats{grid-template-columns:repeat(6,1fr);margin-top:10px}.profile-tabs{margin:8px 0}.rank-rules{font-size:9px}.rank-card{padding:9px}.rank-title{margin:2px 0}.rank-card .meter,#rank-next{display:none}#profile-dialog h3{margin:8px 0}.rank-title strong{font-size:19px}#account-status{display:inline-block;margin-right:10px}.skin-feature svg{width:70px;height:70px}.skin-feature h3{font-size:16px}.wardrobe-body{grid-template-columns:1fr 2fr}#skin-grid{grid-template-columns:repeat(4,1fr)}.skin-card svg{width:54px;height:54px}.wardrobe-head h2{margin-top:3px}.skin-tabs{margin:8px 0}.wardrobe-note{font-size:8px}.result #victory-podium{display:none}.result-content{padding:10px 18px 6px}.result #result-title{font-size:30px}.result #result-description{display:none}#result-stats{margin:7px 0}.xp-message{margin-top:4px;min-height:13px}.ranked-result{margin:3px 0}.result-actions{padding:8px 18px}.coins-reward{margin:3px 0}#result-reward small{display:none}}
@media(max-width:760px){#lobby{max-height:calc(100dvh - 82px)}}
@media(max-height:650px){.victory #victory-podium{height:94px;transform:none!important;margin-bottom:0}.victory #victory-podium .crown{top:-3px;font-size:31px}.victory #victory-podium .winner-ball{position:absolute;top:19px;width:58px;height:58px;margin:0}.victory #victory-podium .podium-base{position:absolute;top:74px;width:82px;height:23px;font-size:18px;line-height:23px;box-shadow:0 4px 0 #896224}.victory #victory-podium .winner-ball:has(svg){padding:0}.result .eyebrow{margin-top:10px}}@media(max-height:450px){.victory #victory-podium{display:none!important}}
/* Reserve real space for the podium; child artwork never enlarges its box. */
.victory #victory-podium{height:150px;min-height:150px;margin:0 0 12px;transform:none;display:block;animation:podium-arrive .65s ease-out}
.victory #victory-podium .crown{top:0;left:50%;font-size:44px;line-height:1;transform:translateX(-50%) rotate(-12deg)}
.victory #victory-podium .winner-ball{position:absolute;top:29px;left:50%;transform:translateX(-50%);width:100px;height:100px;margin:0;padding:0;background:transparent;box-shadow:none;display:block}
.victory #victory-podium .winner-ball svg{display:block;width:100%;height:100%}
.victory #victory-podium .podium-base{position:absolute;top:117px;left:50%;transform:translateX(-50%);width:100px;height:29px;line-height:29px;font-size:22px}
.victory .result-content{display:flex;flex-direction:column;align-items:stretch;overflow:hidden}
.victory .result-content>*{flex-shrink:0}.victory .eyebrow{margin-top:0}
@keyframes podium-arrive{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}
/* The compact meters sit below the arena, never over its last tiles. */
.bottom-hud{bottom:43px;padding:10px 14px;gap:24px}.bottom-hud .charge-box small{display:none}.mass-box{width:125px}.charge-box{width:140px}
#power-status{bottom:104px}
@media(max-width:760px){.bottom-hud{bottom:25px;gap:18px}.mass-box{width:105px}.charge-box{width:125px}#power-status{bottom:88px}}
@media(pointer:coarse){.bottom-hud{bottom:140px}#power-status{bottom:198px}}
@media(max-height:800px){.victory #victory-podium{height:112px;min-height:112px;margin-bottom:10px}.victory #victory-podium .crown{font-size:34px}.victory #victory-podium .winner-ball{top:20px;width:78px;height:78px}.victory #victory-podium .podium-base{top:91px;width:82px;height:23px;line-height:23px;font-size:18px}}
@media(max-height:650px){.victory #victory-podium{height:86px;min-height:86px;margin-bottom:8px}.victory #victory-podium .crown{font-size:27px}.victory #victory-podium .winner-ball{top:16px;width:62px;height:62px}.victory #victory-podium .podium-base{top:69px;width:70px;height:20px;line-height:20px;font-size:16px}.victory .eyebrow{margin-top:0}}
@media(max-height:550px){.victory #victory-podium{display:none!important}}
@media(prefers-reduced-motion:reduce){.victory #victory-podium{animation:none}}
#party-dialog{background:#1b2030;color:#f5f5ef;border:1px solid #baff6a35;border-radius:23px;padding:24px;width:min(470px,calc(100vw - 28px));max-height:calc(100dvh - 24px);overflow:hidden;box-shadow:0 30px 100px #0008}#party-dialog h2{font:700 25px 'Space Grotesk',sans-serif;margin:14px 0 12px}#close-party{position:absolute;right:14px;top:9px;background:none;border:0;color:#b8c2d5;font-size:28px}#party-dialog p{font-size:12px;line-height:1.5;color:#aab7cc}#party-entry{margin-bottom:20px}.party-summary{display:flex;justify-content:space-between;align-items:center;gap:10px}.party-summary h3{font-size:14px;margin:5px 0 12px}.party-summary span{font-size:10px;color:#a7b797;white-space:nowrap}#party-members{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;min-height:95px}#party-members>div{background:#ffffff05;border:1px solid #ffffff0a;border-radius:12px;text-align:center;padding:3px;overflow:hidden}#party-members svg{display:block;width:60px;height:60px;margin:auto}#party-members strong,#party-members small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#party-members strong{font-size:10px}#party-members small{font-size:8px;color:#9caac0;margin:4px 0}#party-share{padding:10px 12px;border:1px dashed #baff6a40;border-radius:10px;margin:12px 0}#party-share>small{font-size:8px;letter-spacing:1.5px;color:#98a8b9}#party-share>div{display:flex;align-items:center;justify-content:space-between}#party-code{font:700 22px 'Space Grotesk',sans-serif;letter-spacing:3px;color:#baff6a}#party-copy,#party-join-form button{background:#baff6a10;color:#baff6a;border:1px solid #baff6a44;border-radius:8px;padding:8px 10px;font-size:11px}#party-join-form{margin:17px 0 0;padding-top:13px;border-top:1px solid #ffffff14}#party-join-form>div{display:flex;gap:8px;align-items:center}#party-join-form input{flex:1;min-width:0;margin:6px 0;font-size:14px;letter-spacing:2px;text-transform:uppercase}#party-join-form button{flex-shrink:0;padding:11px}#party-error{min-height:18px;margin:10px 0 3px;color:#ffd49b!important;font-size:11px!important}.party-note{display:block;color:#8190a8;font-size:9px}#party-launch:disabled{opacity:.65;cursor:default;transform:none}#party-leave,#party-cancel{margin-top:12px;font-size:10px;padding:0 6px}#network-info{position:fixed;top:143px;left:50%;transform:translateX(-50%);color:#a5e5d4;background:#172031dd;border:1px solid #6cd8b233;border-radius:10px;padding:5px 10px;font-size:9px;white-space:nowrap}.networked #phase{top:110px}.networked #alert{top:167px}.networked #pause{color:#f6b6a4}.mode-option{cursor:pointer}.mode-option:hover{border-color:#baff6a66}
@media(max-width:760px){#party-dialog{padding:18px}#party-dialog h2{font-size:22px}.networked #phase{top:149px}.networked #network-info{top:145px}.networked #phase:not(.hidden)~#alert{top:199px}.networked:has(#phase:not(.hidden)) #network-info{top:179px}#party-members svg{width:54px;height:54px}}
@media(max-height:650px){#party-dialog{padding:16px}#party-dialog h2{margin:11px 0 7px;font-size:21px}#party-members{min-height:82px}#party-members svg{width:46px;height:46px}#party-status{margin:8px 0}#party-share{margin:8px 0;padding:7px 10px}#party-join-form{margin-top:10px;padding-top:9px}#party-error{margin-top:6px}#party-dialog .eyebrow{font-size:7px}}
@media(max-height:450px) and (min-width:620px){#party-dialog{width:610px}#party-group{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}.party-summary,#party-members,#party-share{grid-column:1}#party-status,#party-launch,#party-cancel,#party-leave{grid-column:2}#party-status{grid-row:1/3}#party-launch{grid-row:3;align-self:center}#party-share{grid-row:3}#party-join-form{margin-top:6px}}

#leave-dialog{background:#1b2030;color:#f5f5ef;border:1px solid #ffffff25;border-radius:20px;padding:24px;width:min(350px,calc(100vw - 28px));text-align:center}#leave-dialog h2{font:700 23px 'Space Grotesk',sans-serif;margin:0 0 12px}#leave-dialog p{color:#aab7cc;font-size:12px;line-height:1.6;margin-bottom:20px}#leave-dialog .secondary{color:#f6b6a4}
.reward-coin{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:6px;border:1px solid #ffe6a0;border-radius:50%;background:linear-gradient(135deg,#ffe9a5,#cf8f22);color:#805313;font-size:11px;box-shadow:inset 0 0 0 2px #ffe4a85c;vertical-align:middle;position:relative}
.coin-count{display:inline-block;min-width:65px;font-variant-numeric:tabular-nums}
.coins-counting .reward-coin{animation:coin-glint 1s ease-in-out}
.coins-collected .coin-count{animation:coin-bounce .45s ease-out}
.coins-collected .reward-coin::after{content:'✦';position:absolute;right:-7px;top:-7px;color:#fff2c6;pointer-events:none;animation:coin-spark .65s ease-out both}
@keyframes coin-glint{0%{transform:translateY(3px) scale(.85);box-shadow:0 0 0 #ffd46c00}45%{transform:translateY(-2px) scale(1.08);box-shadow:0 0 14px #ffd46c70}100%{transform:none;box-shadow:0 0 0 #ffd46c00}}
@keyframes coin-bounce{0%,100%{transform:scale(1)}35%{transform:scale(1.12);color:#fff1bb}}
@keyframes coin-spark{0%{opacity:0;transform:scale(.3)}35%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translate(4px,-5px) scale(.5)}}
@media(prefers-reduced-motion:reduce){.coins-reward *{animation:none!important}.coins-collected .reward-coin::after{display:none}}
.shop-link{border:1px solid #ffd47a44;border-radius:8px;background:#ffd47a0c;color:#ffd47a;padding:7px;font-size:9px;white-space:nowrap}.wardrobe-head{flex-wrap:wrap;gap:8px}.wardrobe-head h2{margin-bottom:0}.shop-heading{display:flex;align-items:center;gap:12px}.shop-heading h2{font:700 24px 'Space Grotesk';margin:10px 0}.shop-heading .wallet{margin-left:auto;white-space:nowrap}#close-shop{border:0;background:none;color:#bdc6d5;font-size:27px}#shop-dialog{width:min(510px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px;overflow:hidden;border:1px solid #e8c68d55;border-radius:22px;background:#1c2232;color:#f4f4ec;box-shadow:0 25px 100px #0008}.shop-tabs{display:flex;gap:7px;margin:10px 0}.shop-tabs button{flex:1;border:1px solid #ffffff1c;background:#ffffff05;border-radius:8px;padding:9px 5px;color:#aab7ce;font-size:11px}.shop-tabs button[aria-pressed=true]{color:#ffdc89;border-color:#ffdc8960;background:#ffdc890a}#chest-reveal{height:188px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse,#edbb5a15,transparent 70%)}#chest-reveal h3{margin:12px 0 4px;font-size:16px}#chest-reveal p{margin:0;font-size:11px;color:#a9b6c9}.chest-art{position:relative;width:96px;height:80px;filter:drop-shadow(0 9px 14px #0005)}.chest-base{position:absolute;bottom:0;width:96px;height:54px;border:3px solid #dcb76c;background:linear-gradient(120deg,#5c4852,#282d49);border-radius:7px;text-align:center;padding-top:10px;color:#ffd577;font-size:27px}.chest-lid{position:absolute;top:0;width:96px;height:30px;border:3px solid #e8c888;background:linear-gradient(100deg,#d99d4f,#f8db95);border-radius:18px 18px 3px 3px;z-index:1}.opening .chest-art{animation:chest-shake .15s ease-in-out infinite alternate}.opening .loot-art{opacity:.4}#chest-odds{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:10px 0;text-align:center;font-size:10px}#chest-guarantee{font-size:11px;text-align:center;color:#dcc69e;margin:8px 0 13px}.shop-note{display:block;font-size:9px;line-height:1.5;color:#8e9eb6;margin:10px 0 0}#shop-message{min-height:17px;margin:10px 0 0;color:#ffdd9b;font-size:11px}#equip-loot{margin-top:8px}.loot-art svg{width:102px;height:102px}.revealed .loot-art{animation:loot-reveal .5s ease-out}.battle-banner{width:100%;border:1px solid #ffffff27;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:6px;color:#f7f2e6}.battle-banner strong{font-size:14px}.battle-banner span{font-size:11px;opacity:.8}#banner-preview{margin:12px 0}#banner-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.banner-card{border:1px solid #ffffff15;border-radius:10px;padding:5px;background:#ffffff02;color:#d5dfeb}.banner-card.selected{border-color:#ffdc89}.banner-card .battle-banner{padding:9px}.banner-card strong{font-size:11px}.banner-card small{display:block;font-size:9px;margin:5px 0}#banner-action{margin-top:12px}#shop-videos h3{font-size:19px;margin:17px 0 8px}#shop-videos p{font-size:12px;line-height:1.55;color:#a9b6c9}.video-offer{padding:10px 13px;border:1px solid #ffffff16;border-radius:10px;margin:10px 0}.video-offer strong{font-size:13px}.video-offer p{font-size:11px!important;margin-bottom:0}#shop-videos .primary:disabled{opacity:.5;cursor:default;transform:none}@keyframes chest-shake{from{transform:rotate(-4deg)}to{transform:rotate(4deg) translateY(-3px)}}@keyframes loot-reveal{from{transform:translateY(8px) scale(.85);opacity:0}to{transform:none;opacity:1}}@media(max-height:650px){#shop-dialog{padding:16px}.shop-heading h2{font-size:20px}.shop-heading .eyebrow{font-size:7px}.shop-tabs button{padding:7px;font-size:10px}#chest-reveal{height:155px}#chest-reveal h3{font-size:14px}.loot-art svg{width:87px;height:87px}.shop-note{font-size:8px}#shop-videos p{font-size:11px}.battle-banner{padding:10px}.banner-card .battle-banner{padding:6px}.wardrobe-head .wallet{font-size:12px}}@media(max-height:450px){#chest-reveal{height:85px;flex-direction:row;gap:12px}.chest-art{transform:scale(.7);flex-shrink:0}#chest-reveal h3{max-width:120px}#chest-reveal p{max-width:150px}.shop-heading h2{font-size:17px;margin:4px 0}#shop-message{margin-top:4px}.shop-note{margin-top:4px}#banner-preview{display:none}#banner-grid{grid-template-columns:repeat(4,1fr)}#shop-videos .video-offer{display:inline-block;width:48%;vertical-align:top;padding:8px}#shop-videos h3{margin:8px 0}#shop-videos p{margin:5px 0}.shop-tabs{margin:7px 0}#chest-guarantee{margin:5px 0}#chest-odds{margin:5px 0}.loot-art svg{height:75px;width:75px}}@media(prefers-reduced-motion:reduce){.opening .chest-art,.revealed .loot-art{animation:none}}
/* Storefront: a compact showroom with paginated personal collection. */
#shop-dialog.store-dialog{width:min(940px,calc(100vw - 24px));padding:22px 26px;border-color:#ffffff26;background:radial-gradient(ellipse at 80% 0,#33334f 0,transparent 65%),#171c2c;border-radius:22px;max-height:calc(100dvh - 24px)}
.store-header,.store-footer{position:static;inset:auto;transform:none;width:auto;max-width:none;margin:0;padding:0;z-index:auto;display:flex;align-items:center;gap:16px;background:none}.store-header h2{font:700 27px 'Space Grotesk',sans-serif;margin:3px 0 0;letter-spacing:-1px}.store-eyebrow{font-size:9px;letter-spacing:3px;color:#b5ff62;font-weight:800}.store-wallet{margin-left:auto;white-space:nowrap;color:#ffdb89;background:#ffda8910;border:1px solid #ffda8930;border-radius:24px;padding:10px 16px;font-size:16px}.store-nav{display:flex;gap:24px;border-bottom:1px solid #ffffff15;margin:14px 0 17px}.store-nav button{background:none;border:0;border-bottom:3px solid transparent;padding:10px 0;color:#929fb6;font-weight:700;font-size:13px}.store-nav button[aria-pressed=true]{color:#f6f6ec;border-color:#b5ff62}.store-section-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.store-section-label strong{font-size:12px;letter-spacing:2px}.store-section-label span{color:#96a3ba;font-size:11px}#featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.featured-item,.collection-item{position:relative;display:flex;flex-direction:column;align-items:flex-start;border:1px solid color-mix(in srgb,var(--item-color) 48%,transparent);border-bottom:3px solid var(--item-color);border-radius:13px;padding:14px;text-align:left;color:#fff;background:radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--item-color) 26%,transparent),transparent 80%),#22283c;overflow:hidden;transition:transform .15s,box-shadow .15s}.featured-item:hover,.collection-item:hover{transform:translateY(-3px);box-shadow:0 6px 24px color-mix(in srgb,var(--item-color) 20%,transparent)}.item-rarity{font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:var(--item-color);font-weight:800}.store-skin-art{align-self:center;display:grid;place-items:center;filter:drop-shadow(0 12px 13px #0004)}.store-skin-art svg{width:130px;height:130px}.featured-item strong{font:700 21px 'Space Grotesk';margin-top:2px}.item-price{font-size:11px;color:#d7deed;margin-top:5px}.store-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:15px}.store-shortcut{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;padding:13px 10px;border:1px solid #ffffff18;border-radius:11px;background:#ffffff04;color:#f2f4ff}.store-shortcut>span{font-size:23px;color:#c1cbe0}.store-shortcut strong,.store-shortcut small{display:block}.store-shortcut strong{font-size:11px;margin-bottom:5px}.store-shortcut small{font-size:7px;color:#9cabc5;letter-spacing:.4px}.store-shortcut.daily{background:#b5ff620a;border-color:#b5ff6235}.store-shortcut.daily>span,.store-shortcut.daily small{color:#b5ff62}.store-shortcut:hover{background:#ffffff0d}.store-footer{justify-content:space-between;min-height:28px;margin-top:8px;gap:8px}.store-footer small{font-size:8px;color:#7e8ca4;white-space:nowrap}#shop-message{margin:0;font-size:11px;min-height:14px}.collection-controls{display:flex;gap:8px;margin-bottom:12px;align-items:center}.collection-types{display:flex;gap:5px;margin-right:auto}.collection-types button,.collection-controls select,.collection-pagination button,.chest-choice button,.store-back{border:1px solid #ffffff20;border-radius:7px;background:#232b3e;color:#afbdd3;padding:8px;font-size:11px}.collection-types button[aria-pressed=true],.chest-choice button[aria-pressed=true]{border-color:#b5ff6266;color:#b5ff62;background:#b5ff620a}#collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;min-height:295px}.collection-item{padding:10px}.collection-item .store-skin-art svg{width:78px;height:78px}.collection-item strong{font-size:12px}.collection-item .item-price{font-size:9px}.collection-pagination{display:flex;justify-content:center;gap:20px;align-items:center;margin-top:10px;font-size:10px;color:#9aabc6}.collection-pagination button:disabled{opacity:.3}.collection-empty{grid-column:1/-1;align-self:center;text-align:center;color:#a4b1c9;font-size:13px}.player-banner-preview{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:95px;padding:12px;text-shadow:0 2px 8px #000;margin:10px 0;color:white}.player-banner-preview b{font:800 18px 'Space Grotesk'}.player-banner-preview strong{font-size:14px;margin:3px 0}.player-banner-preview span{font-size:6px;letter-spacing:1px}.store-back{margin-bottom:12px}.item-detail{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;min-height:290px}#detail-art{display:grid;place-items:center;min-height:280px;border-radius:18px;background:radial-gradient(ellipse,color-mix(in srgb,var(--item-color) 26%,transparent),#ffffff03 75%);border:1px solid color-mix(in srgb,var(--item-color) 30%,transparent)}#detail-art svg{width:220px;height:220px}#detail-art .player-banner-preview{width:88%;min-height:160px}#detail-rarity{color:var(--item-color);font-size:10px;text-transform:uppercase;letter-spacing:2px}#detail-name{font:700 36px 'Space Grotesk';margin:10px 0}#detail-description{font-size:13px;color:#a8b6cf;line-height:1.6}#detail-condition{font-size:12px;color:#d1dbec;margin:20px 0}#shop-dialog .primary{font-size:13px;padding:13px;width:100%}#shop-dialog button:disabled{cursor:default;opacity:.5}#store-chests{max-width:520px;margin:auto}.chest-choice{display:flex;gap:8px}.chest-choice button{flex:1}#shop-dialog #chest-reveal{height:180px}#shop-dialog .store-note{display:block;text-align:center;font-size:9px;line-height:1.5;color:#99a9c1;margin:8px 0 0}#equip-loot{width:100%;padding:8px}.video-presentation{text-align:center;max-width:450px;margin:auto;padding:12px 0 25px}.video-symbol{font-size:54px;color:#ffda89}.video-presentation h3{font-size:23px}.video-presentation p{font-size:12px;color:#a4b3cc;line-height:1.6}.video-presentation small{display:block;color:#8393ac;font-size:10px;margin-top:12px}#hero-level{border-color:var(--banner-accent,#a9b8ce);box-shadow:0 0 22px color-mix(in srgb,var(--banner-accent,#a9b8ce) 14%,transparent),inset 0 0 40px #11182730;text-shadow:0 2px 5px #0009}
@media(max-width:600px),(max-height:650px){#shop-dialog.store-dialog{padding:15px 17px}.store-header h2{font-size:21px}.store-eyebrow{font-size:7px}.store-wallet{font-size:12px;padding:8px 10px}.store-nav{margin:10px 0 12px;gap:22px}.store-nav button{font-size:11px;padding:8px 0}.store-section-label{margin-bottom:9px}.store-section-label strong{font-size:10px}.store-section-label span{font-size:9px}.featured-item{padding:10px}.featured-item strong{font-size:16px}.store-skin-art svg{width:95px;height:95px}.store-shortcuts{grid-template-columns:repeat(2,1fr);gap:7px;margin-top:10px}.store-shortcut{padding:10px}.store-shortcut strong{font-size:10px;margin-bottom:3px}.store-shortcut small{font-size:7px}#collection-grid{grid-template-columns:repeat(2,1fr);min-height:275px}.collection-controls{flex-wrap:wrap}.collection-types{width:100%}.collection-controls select{flex:1}.collection-item .store-skin-art svg{width:65px;height:65px}.collection-item{padding:8px}.collection-item .item-rarity{font-size:8px}.store-footer{margin-top:6px}.store-footer small{font-size:7px}.item-detail{min-height:240px;gap:18px}#detail-art{min-height:220px}#detail-art svg{width:170px;height:170px}#detail-name{font-size:26px}#shop-dialog #chest-reveal{height:150px}#chest-guarantee{font-size:10px;margin:8px 0}#chest-odds{font-size:9px}}
@media(max-width:600px){.store-header{gap:8px}.store-header h2{font-size:18px;letter-spacing:-.5px}.store-section-label span{display:none}.featured-item{padding:8px}.featured-item strong{font-size:12px}.featured-item .store-skin-art svg{width:75px;height:90px}.item-rarity{font-size:7px;letter-spacing:.6px}.item-price{font-size:9px}#featured-grid{gap:7px}.item-detail{grid-template-columns:1fr;gap:12px;min-height:0}#detail-art{min-height:125px}#detail-art svg{width:120px;height:120px}#detail-art .player-banner-preview{min-height:115px;margin:4px}#detail-name{margin:5px 0;font-size:25px}#detail-description{font-size:11px;line-height:1.4;margin:8px 0}#detail-condition{margin:10px 0;font-size:11px}.store-footer{align-items:flex-start;flex-direction:column;gap:3px}.store-header #close-shop{font-size:23px}.store-wallet{padding:7px}.player-banner-preview{min-height:65px;padding:7px;margin:5px 0}.player-banner-preview b{font-size:14px}.player-banner-preview strong{font-size:11px}}
@media(max-height:480px){#shop-dialog.store-dialog{padding:10px 17px}.store-header h2{font-size:17px}.store-nav{margin:5px 0 8px}.featured-item .store-skin-art svg{width:65px;height:65px}.store-shortcuts{grid-template-columns:repeat(4,1fr);margin-top:8px}.store-shortcut{padding:7px}.store-shortcut>span{display:none}.store-section-label{display:none}#collection-grid{grid-template-columns:repeat(4,1fr);min-height:125px}.collection-types{width:auto}.collection-item .store-skin-art svg{width:60px;height:60px}.item-detail{grid-template-columns:1fr 1fr;gap:15px}#detail-art{min-height:130px}#detail-art svg{width:125px;height:125px}#detail-name{font-size:21px}#detail-description{font-size:10px}#detail-condition{margin:8px 0}.store-back{margin-bottom:5px}#shop-dialog #chest-reveal{height:90px}#shop-dialog .store-note{font-size:8px;margin-top:4px}#shop-dialog .primary{padding:9px}.store-footer{flex-direction:row}#chest-odds{margin:6px 0}.video-presentation{padding:0}.video-symbol{display:none}.video-presentation h3{margin:7px 0}}
@media(prefers-reduced-motion:reduce){.featured-item,.collection-item{transition:none}}
@media(max-width:600px) and (max-height:650px){#collection-grid{min-height:235px;gap:7px}.collection-item .store-skin-art svg{width:55px;height:55px}.collection-item .player-banner-preview{min-height:55px;padding:5px;margin:3px 0}.collection-controls{gap:6px;margin-bottom:8px}.collection-types button,.collection-controls select{font-size:10px;padding:6px}.store-footer{min-height:18px}.collection-pagination{margin-top:7px}.collection-item{padding:7px}}
/* One chest, one invitation: the daily opening is simply the first free one. */
.store-shortcuts.chest-offers{grid-template-columns:1.6fr 1fr;gap:12px;margin-top:14px}.chest-offer,.video-offer-card{position:relative;display:flex;align-items:center;gap:17px;padding:18px;border-radius:15px;text-align:left;color:#fff;overflow:hidden;min-height:115px}.chest-offer{border:1px solid #f7d68290;background:radial-gradient(ellipse at 10% 0,#f2c46445,transparent 70%),linear-gradient(125deg,#51432e,#2d283a);box-shadow:inset 0 1px #fff4,0 4px 18px #0003}.chest-offer:hover{border-color:#ffe7a1;background-color:#574631}.chest-offer>span:nth-child(2){position:relative;z-index:1}.chest-offer strong{display:block;font:700 22px 'Space Grotesk';margin:5px 0}.chest-offer small{color:#e7cb8d;font-size:7px;letter-spacing:1.3px}.chest-offer em{display:inline-block;color:#ffe9a9;font-size:10px;font-style:normal;background:#ffda7920;padding:5px 8px;border-radius:5px}.offer-arrow{margin-left:auto;font-size:35px;color:#f9d883}.mini-chest{position:relative;width:65px;height:58px;flex-shrink:0;transform:rotate(-9deg);filter:drop-shadow(0 6px 7px #0006)}.mini-chest b{position:absolute;bottom:0;left:0;width:65px;height:39px;background:linear-gradient(100deg,#9a6031,#553431);border:3px solid #f5d083;border-radius:4px;color:#ffdf84;font-size:21px;text-align:center}.mini-chest i{position:absolute;top:0;left:0;width:65px;height:22px;border:3px solid #ffe7a4;border-radius:12px 12px 2px 2px;background:linear-gradient(120deg,#ffe2a1,#c88d43);z-index:1}.video-offer-card{border:1px solid #a695ff70;background:radial-gradient(ellipse at 0 0,#b297ff4d,transparent 75%),linear-gradient(130deg,#343260,#24273e)}.video-offer-card strong{display:block;font:700 22px 'Space Grotesk';color:#ffdf92}.video-offer-card small{display:block;font-size:11px;color:#e1dafa;margin-top:4px}.video-offer-card em{display:block;font-size:8px;letter-spacing:.4px;color:#b8b0d7;font-style:normal;margin-top:8px}.coin-orbit{position:relative;flex-shrink:0;display:grid;place-items:center;width:52px;height:52px;background:linear-gradient(135deg,#ffe39a,#bd812d);border:3px solid #ffdf88;border-radius:50%;font-size:28px;color:#7c501d;box-shadow:0 4px 0 #77512f,0 0 30px #fdd88925;transform:rotate(-12deg)}.coin-orbit i{position:absolute;right:-10px;bottom:-6px;font-style:normal;font-size:15px;border-radius:50%;background:#7a64c2;color:white;border:2px solid #cbb2ff;width:26px;height:26px;text-align:center;padding-left:2px}.banner-swatch{align-self:stretch;width:100%;height:85px;border-radius:9px;box-shadow:inset 0 0 0 1px #ffffff25;margin:5px 0 10px}.collection-item{justify-content:center;align-items:stretch}.collection-item>.store-skin-art{align-self:center}.collection-item strong{margin:5px 0 0}.collection-controls{margin-bottom:12px}.collection-types{width:auto}.equipped-check{position:absolute;right:8px;top:7px;display:grid;place-items:center;background:#15272ddd;color:#baff6a;width:20px;height:20px;border-radius:50%;font-size:12px}#detail-art .banner-swatch{height:150px;width:85%;align-self:auto;margin:0}#store-chests{max-width:600px}.chest-stage-heading{text-align:center}.chest-stage-heading span{font-size:8px;letter-spacing:2px;color:#ffdd96}.chest-stage-heading h3{font:700 23px 'Space Grotesk';margin:7px 0 0}#shop-dialog #chest-reveal.chest-stage{position:relative;isolation:isolate;overflow:hidden;height:245px;background:none;gap:0}.chest-stage .chest-art{width:122px;height:100px;z-index:2;animation:chest-hover 3s ease-in-out infinite}.chest-stage .chest-base{width:122px;height:70px;border:4px solid #e4b968;background:linear-gradient(115deg,#846048,#302c43);padding-top:18px;box-shadow:inset 12px 0 #402e3644,inset -12px 0 #211b3a44}.chest-stage .chest-lid{width:122px;height:38px;border:4px solid #f3d28b;background:linear-gradient(120deg,#fff0b5,#c68c43);transform-origin:50% 100%;box-shadow:0 2px 5px #0004}.chest-seam{position:absolute;z-index:3;top:34px;left:4px;width:114px;height:3px;background:#fff4b9;box-shadow:0 0 14px #ffda83;opacity:.35}.chest-aura{position:absolute;width:250px;height:220px;background:radial-gradient(ellipse,#ffcc7040,transparent 68%);z-index:-1}.chest-whisper{margin-top:28px!important;font-size:11px!important;color:#aebbd4!important}.chest-stage.opening .chest-art{animation:chest-anticipation 1.9s ease-in forwards}.chest-stage.opening .chest-seam{animation:seam-light 1.9s ease-in forwards}.chest-stage.opening .chest-aura{animation:aura-build 1.9s ease-in forwards}.chest-stage.opening .chest-whisper{opacity:0}.chest-stage.burst .chest-lid{animation:lid-explode .42s ease-in forwards}.chest-stage.burst .chest-base{animation:base-explode .42s ease-in forwards}.chest-stage.burst .chest-aura{background:radial-gradient(ellipse,var(--loot-color),transparent 65%);animation:chest-flash .42s ease-out both}.chest-stage.burst .chest-seam,.chest-stage.burst .chest-whisper{display:none}.chest-stage.revealed .loot-art{position:relative;z-index:2;animation:treasure-arrival .7s cubic-bezier(.2,.8,.2,1.2) both}.chest-stage.revealed .store-skin-art svg{width:112px;height:112px}.chest-stage.revealed .banner-swatch{width:210px;height:90px;margin:8px 0 15px}.loot-copy{position:relative;z-index:2}.loot-rarity{font-size:9px;letter-spacing:3px;text-transform:uppercase;color:var(--loot-color)}#chest-reveal .loot-copy h3{font:700 23px 'Space Grotesk';margin:5px 0}#chest-reveal .loot-copy p{font-size:10px;color:#b7c5dc}.loot-rays{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse,color-mix(in srgb,var(--loot-color) 20%,transparent),transparent 65%);animation:loot-glow 1s ease-out both}.chest-stage[data-rarity=epic] .loot-rays,.chest-stage[data-rarity=legendary] .loot-rays{inset:-90px;background:repeating-conic-gradient(from 0deg,transparent 0 16deg,color-mix(in srgb,var(--loot-color) 20%,transparent) 17deg 21deg,transparent 22deg 36deg);mask-image:radial-gradient(ellipse,#000,transparent 67%);animation:ray-turn 18s linear infinite}.chest-stage[data-rarity=legendary] .loot-art{filter:drop-shadow(0 0 24px #ffd67488)}.chest-stage[data-rarity=legendary] .loot-copy h3{font-size:28px;color:#ffe49c}.loot-spark{position:absolute;top:42%;left:50%;height:5px;width:5px;background:var(--loot-color);border-radius:1px;box-shadow:0 0 9px var(--loot-color);pointer-events:none;animation:loot-particle 1.3s ease-out var(--delay) both}.chest-stage[data-rarity=legendary] .loot-spark{height:7px;width:7px}.chest-stage[data-rarity=common] .loot-spark{height:3px;width:3px}
@keyframes chest-hover{50%{transform:translateY(-7px)}}@keyframes chest-anticipation{0%{transform:scale(1)}35%{transform:scale(1.03) rotate(-2deg)}55%{transform:scale(1.06) rotate(3deg)}70%{transform:scale(1.1) rotate(-4deg)}80%{transform:scale(1.13) rotate(4deg)}88%{transform:scale(1.15) rotate(-5deg)}94%{transform:scale(1.17) rotate(5deg)}100%{transform:scale(1.2)}}@keyframes seam-light{to{opacity:1;box-shadow:0 0 24px 8px #fff1af}}@keyframes aura-build{to{transform:scale(1.6);opacity:1}}@keyframes lid-explode{to{transform:translate(-15px,-110px) rotate(-25deg);opacity:0}}@keyframes base-explode{to{transform:translateY(50px) scale(1.15);opacity:0}}@keyframes chest-flash{0%{opacity:0;transform:scale(.3)}45%{opacity:.9}100%{opacity:0;transform:scale(2)}}@keyframes treasure-arrival{0%{opacity:0;transform:translateY(22px) scale(.35)}70%{opacity:1;transform:translateY(-6px) scale(1.08)}100%{opacity:1;transform:none}}@keyframes loot-particle{0%{opacity:0;transform:rotate(var(--angle)) translateX(15px)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--travel)) rotate(120deg)}}@keyframes loot-glow{from{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes ray-turn{to{transform:rotate(360deg)}}
@media(max-width:600px),(max-height:650px){.store-shortcuts.chest-offers{gap:8px}.chest-offer,.video-offer-card{padding:13px 11px;gap:10px;min-height:100px}.chest-offer strong{font-size:18px}.chest-offer small{font-size:6px;letter-spacing:.6px}.chest-offer em{font-size:8px;padding:4px 5px}.mini-chest{transform:rotate(-9deg) scale(.75);width:49px;margin-right:0}.video-offer-card strong{font-size:18px}.video-offer-card small{font-size:9px}.video-offer-card em{font-size:7px}.coin-orbit{width:38px;height:38px;font-size:22px}.offer-arrow{display:none}.banner-swatch{height:72px}.chest-stage-heading h3{font-size:20px}#shop-dialog #chest-reveal.chest-stage{height:225px}}
@media(max-width:600px){.store-shortcuts.chest-offers{grid-template-columns:1fr}.chest-offer{min-height:86px;padding:10px 18px;gap:20px}.mini-chest{transform:rotate(-9deg) scale(.85);width:60px}.chest-offer strong{font-size:20px}.video-offer-card{min-height:64px;padding:10px 20px;gap:18px}.video-offer-card>span:last-child{display:grid;grid-template-columns:1fr auto;gap:0 16px;align-items:center;flex:1}.video-offer-card strong{font-size:19px}.video-offer-card small{grid-column:1;margin-top:0}.video-offer-card em{grid-row:1/3;grid-column:2;margin:0}.coin-orbit{width:33px;height:33px;font-size:19px}.coin-orbit i{width:20px;height:20px;font-size:10px;right:-6px}.chest-offer small{font-size:7px}.chest-offer em{font-size:9px}.collection-item .banner-swatch{height:70px}.chest-stage-heading span{font-size:7px}#detail-art .banner-swatch{height:105px;width:90%}#shop-dialog #chest-reveal.chest-stage{height:220px}}
@media(max-width:600px) and (max-height:650px){.chest-offer{min-height:74px;padding:8px 12px}.chest-offer strong{font-size:18px;margin:3px 0}.chest-offer small{font-size:6px}.video-offer-card{min-height:59px}.store-shortcuts.chest-offers{margin-top:8px;gap:6px}#shop-dialog #chest-reveal.chest-stage{height:195px}.chest-stage.revealed .store-skin-art svg{width:95px;height:95px}.chest-stage.revealed .banner-swatch{height:75px}.chest-stage .chest-art{transform:scale(.85)}.chest-whisper{margin-top:14px!important}.collection-item .banner-swatch{height:60px}}
@media(max-height:480px){.store-shortcuts.chest-offers{grid-template-columns:1.6fr 1fr}.chest-offer,.video-offer-card{min-height:66px;padding:8px}.chest-offer strong{font-size:16px}.mini-chest{transform:scale(.65);width:45px}.video-offer-card strong{font-size:16px}#shop-dialog #chest-reveal.chest-stage{height:125px;flex-direction:row;gap:18px}.chest-stage-heading h3{font-size:17px;margin:4px 0}.chest-stage .chest-whisper{max-width:140px}.chest-stage.revealed .loot-art svg{width:80px;height:80px}.chest-stage.revealed .banner-swatch{width:140px;height:70px}.chest-stage.revealed .loot-copy{max-width:200px}#chest-reveal .loot-copy h3{font-size:20px}.chest-stage .chest-art{scale:.7}.chest-stage.revealed .loot-copy p{max-width:none}}
@media(prefers-reduced-motion:reduce){.chest-stage *{animation:none!important;transition:none!important}.loot-spark{display:none}.chest-stage.burst .chest-aura{opacity:0}}
.chest-stage.revealed .banner-swatch{align-self:center}.collection-lock{position:absolute;right:8px;top:7px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#161e30bb;color:#c4cee0}.collection-lock svg{width:14px;height:14px}
/* Touch-only play layout: use the space freed by the integrated charge gauge. */
body.touch-device{--touch-safe-bottom:env(safe-area-inset-bottom,0px)}
.touch-device #touch{bottom:calc(22px + env(safe-area-inset-bottom,0px));height:100px}.touch-device #stick{left:max(20px,env(safe-area-inset-left,0px));background:#1b263dcc;border:1px solid #c0d7ff38;box-shadow:inset 0 0 25px #ffffff05}.touch-device .bottom-hud{bottom:calc(43px + env(safe-area-inset-bottom,0px));padding:8px 10px;background:#172031a8;border:0;border-radius:10px}.touch-device .mass-box{width:88px}.touch-device .mass-box small{font-size:8px}.touch-device .bottom-hud .charge-box{display:none}.touch-device #controls{display:none!important}.touch-device #power-status{bottom:calc(126px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);white-space:normal;text-align:center;font-size:9px;padding:6px 9px}.touch-device #phase,.touch-device.networked #phase{top:124px;font-size:8px;padding:5px 9px}.touch-device #alert{top:126px;font-size:9px;padding:6px 9px}.touch-device #dash{right:max(20px,env(safe-area-inset-right,0px));bottom:0;width:96px;height:96px;padding:0;border:0;background:transparent;color:#a1b1c7;box-shadow:none;isolation:isolate;-webkit-tap-highlight-color:transparent;user-select:none;transition:transform .12s}.touch-device #dash:active{transform:scale(.93)}.dash-ring{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:3.5;transform:rotate(-90deg);pointer-events:none}.dash-track{stroke:#53647f66}.dash-progress{stroke:#baff6a;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--charge-progress,100));transition:stroke-dashoffset .08s linear}.dash-face{position:absolute;inset:9px;border-radius:50%;background:linear-gradient(150deg,#2d394b,#192434);box-shadow:inset 0 1px 0 #ffffff30,0 4px 12px #0005;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;pointer-events:none}.dash-icon{width:33px;height:33px}.touch-device #dash small{font-size:9px;letter-spacing:1px;line-height:12px;font-weight:800}.touch-device #dash.ready{color:#1d3217}.ready .dash-face{background:linear-gradient(145deg,#dcffad,#a2e957);box-shadow:inset 0 2px 0 #efffd5,0 4px 0 #537a32,0 0 24px #baff6a26}.ready .dash-progress{filter:drop-shadow(0 0 3px #baff6a);animation:mobile-charge-ready 1.8s ease-in-out infinite}@keyframes mobile-charge-ready{50%{opacity:.5}}
@media(max-height:480px){.touch-device .hud-top{top:12px}.touch-device #touch{bottom:calc(12px + env(safe-area-inset-bottom,0px))}.touch-device #dash{width:80px;height:80px}.touch-device #stick{width:80px;height:80px}.touch-device #stick div{left:22px;top:22px}.touch-device .bottom-hud{bottom:calc(20px + env(safe-area-inset-bottom,0px))}.touch-device #phase,.touch-device.networked #phase{top:75px}.touch-device #power-status{bottom:90px}}
@media(prefers-reduced-motion:reduce){.touch-device #dash,.dash-progress{transition:none}.ready .dash-progress{animation:none}}
#basics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;min-height:295px}.featured-item .banner-swatch{height:120px;margin:5px 0}.store-nav{gap:24px}#shop-refresh{font-variant-numeric:tabular-nums;color:#b4c1d7;font-size:9px}.store-section-label:has(#shop-refresh){flex-wrap:wrap;gap:5px}
@media(max-width:600px),(max-height:650px){#basics-grid{grid-template-columns:repeat(2,1fr);min-height:250px}.featured-item .banner-swatch{height:85px}}
@media(max-width:600px){.store-nav{justify-content:space-between;gap:8px}.store-nav button{font-size:10px}.store-section-label #shop-refresh{display:inline;font-size:8px}.store-section-label:has(#shop-refresh) strong{font-size:9px}.featured-item .banner-swatch{height:80px;margin:5px 0 10px}.featured-item strong{overflow-wrap:anywhere}#basics-grid{min-height:235px}}
@media(max-height:480px){#basics-grid{grid-template-columns:repeat(4,1fr);min-height:125px}.featured-item .banner-swatch{height:55px}}

/* Sparse collections keep the same card size as a full page. */
#collection-grid{align-content:start;grid-auto-rows:144px}
@media(max-width:600px),(max-height:650px){#collection-grid{grid-auto-rows:135px}}
@media(max-width:600px) and (max-height:650px){#collection-grid{grid-auto-rows:116px}}
@media(max-height:480px){#collection-grid{grid-auto-rows:130px}}
