
:root{--bg:#0b0e14;--line:#2a303b;--text:#f1eee5;--muted:#9097a4;--accent:#f4b34e}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px Barlow,Arial,sans-serif}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;font:700 13px Barlow,sans-serif;letter-spacing:.7px;color:inherit}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,h3{font-family:'Barlow Condensed',Impact,sans-serif;margin:0;font-weight:800;line-height:.95}p{line-height:1.5}em{font-style:normal;color:var(--accent)}.top{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 5%;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;font-family:'Barlow Condensed',Impact,sans-serif;font-size:29px;font-weight:900;line-height:1}.brand small{display:block;font:600 8px Barlow,sans-serif;letter-spacing:2.5px;margin-top:7px;color:var(--muted)}.brand-icon{font-size:30px;background:var(--accent);color:#0b0e14;padding:9px 7px;transform:skew(-9deg);letter-spacing:-4px}.top nav{display:flex;height:100%;gap:30px}.tab{border:0;background:none;position:relative;color:var(--muted);font-size:11px;letter-spacing:1.4px}.tab.active{color:var(--text)}.tab.active:after{content:'';height:3px;position:absolute;background:var(--accent);bottom:0;left:0;right:0}.tab span{background:#262d37;border-radius:4px;padding:2px 5px;margin-left:8px}.top-right{display:flex;align-items:center;gap:10px}.alpha{font-size:9px;letter-spacing:1.4px;border:1px solid #624a25;color:#dfb570;padding:7px 9px}.icon-btn{background:none;border:1px solid var(--line);border-radius:50%;height:31px;width:31px}.icon-btn.on{color:var(--accent);border-color:var(--accent)}main{max-width:1320px;padding:35px 40px;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--accent);font-weight:700;margin:0 0 12px}.intro h1{font-size:52px}.muted{color:var(--muted);margin:12px 0 0}.connection{font-size:11px;color:#9cabb4;border:1px solid var(--line);padding:8px 12px;border-radius:30px}.connection:before{content:' ';display:inline-block;background:#67d6b0;width:5px;height:5px;border-radius:50%;margin-right:8px}.lobby-grid{display:grid;grid-template-columns:44% 1fr;gap:32px}.showcase{background:radial-gradient(ellipse at 50% 35%,#30303a 0,#1b1e28 43%,#121722 80%);border:1px solid var(--line);min-height:610px;position:relative;overflow:hidden}.hero-number{position:absolute;right:18px;top:5px;font:900 160px 'Barlow Condensed',Impact;opacity:.045}.hero-tag{position:absolute;top:23px;left:25px;font-size:9px;letter-spacing:2px;color:var(--accent);border-left:2px solid var(--accent);padding-left:9px}.hero-orbit{position:absolute;width:340px;height:340px;border:1px solid #c3995433;border-radius:50%;left:50%;top:70px;transform:translateX(-50%)}.showcase>canvas{position:absolute;width:100%;height:auto;top:5px;left:0;z-index:1}.hero-info{position:absolute;bottom:0;width:100%;padding:65px 30px 26px;background:linear-gradient(transparent,#121722 31%);z-index:2}.hero-info h2{font-size:68px;margin:5px 0 8px}.hero-info p{font-size:12px;color:#a4adbb;max-width:330px;margin:0 0 17px}.stats{display:flex;gap:24px}.stat{flex:1}.stat span{font-size:8px;letter-spacing:1px;color:#9da4af}.stat b{font:700 22px 'Barlow Condensed',sans-serif;float:right}.stat i{display:block;background:#303744;height:3px;margin:9px 0}.stat i:after{content:'';display:block;width:var(--value);height:100%;background:var(--accent)}.text-btn{border:0;background:none;font-size:10px;letter-spacing:1px;padding:13px 0 0;color:var(--accent)}.section-heading{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.7px;font-weight:600;color:#b2b7c2;margin:0 0 14px}.section-heading span+span{color:#727c8c;font-size:9px}.roster{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.fighter-card{height:174px;position:relative;background:linear-gradient(145deg,#252c38,#141923);border:1px solid var(--line);overflow:hidden;cursor:pointer;transition:background .2s,border .2s}.fighter-card.selected{border-color:#c4964b}.fighter-card.focused{background:radial-gradient(ellipse at 50% 30%,#5f4b35,#191c24)}.fighter-card canvas{position:absolute;width:165px;height:165px;left:50%;top:0;transform:translateX(-50%);pointer-events:none}.card-bottom{position:absolute;bottom:0;left:0;right:0;padding:20px 12px 11px;background:linear-gradient(transparent,#10151eea 38%);pointer-events:none}.card-bottom strong{font:800 23px 'Barlow Condensed',sans-serif;display:block}.card-bottom small{font-size:8px;letter-spacing:1px;color:#9fa9b8}.pick-btn{position:absolute;right:8px;top:8px;width:25px;height:25px;background:#111722c9;border:1px solid #465265;font-size:19px;line-height:19px;z-index:3}.selected .pick-btn{background:var(--accent);border-color:var(--accent);color:#10151e}.selection-tip{color:#748091;font-size:10px;margin:12px 0 24px}.loadout{padding:21px 0 0;border-top:1px solid var(--line)}#team-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:17px}.team-slot{display:flex;align-items:center;gap:7px;border:1px solid var(--line);height:58px;background:#111720;padding:5px;cursor:pointer}.team-slot canvas{width:44px;height:48px}.team-slot strong{display:block;font-size:10px}.team-slot small{font-size:8px;color:var(--accent);display:block;margin-top:4px}.primary{border:0;background:var(--accent);color:#191713;padding:18px 22px;width:100%;font-size:13px;letter-spacing:1.5px}.primary:hover:not(:disabled){background:#ffd288}.tiny{font-size:10px;color:#788597;margin:10px 0;line-height:1.5}.center{text-align:center}footer{max-width:1240px;margin:5px auto 0;padding:25px 0;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:8px;letter-spacing:1.8px;color:#677080;gap:20px}footer b{color:var(--accent);margin:0 9px}footer a{color:#a0a8b5}.back{border:1px solid var(--line);background:#141923;padding:12px 16px;font-size:10px}.locker-layout{display:grid;grid-template-columns:34% 1fr;gap:30px}.locker-preview{background:radial-gradient(ellipse at center,#303542,#131924 70%);position:relative;border:1px solid var(--line);align-self:start;text-align:center;padding:20px}.locker-preview canvas{width:100%}.locker-preview select{width:100%;padding:12px;background:#111721;border:1px solid var(--line);color:var(--text);font-weight:bold}.equipped-label{color:#8590a0;font-size:9px;letter-spacing:2px}.equipped-label strong{display:block;color:var(--accent);font-size:21px;margin:8px}.glove-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.glove-card{background:radial-gradient(ellipse at 50% 25%,var(--glow),#131923 75%);border:1px solid var(--line);padding:15px;min-height:160px;text-align:left;position:relative}.glove-card.equipped{border-color:var(--accent)}.glove-card canvas{width:100%;height:72px;object-fit:contain}.glove-card strong{display:block;font:700 21px 'Barlow Condensed',sans-serif}.glove-card small{display:block;font:400 9px Barlow,sans-serif;line-height:1.6;color:#a1acb9;margin:5px 0}.equip-mark{font-size:8px;color:var(--accent);position:absolute;right:8px;top:8px;letter-spacing:1px}.future-note{margin-top:17px;border:1px dashed #394354;padding:16px}.future-note span{font-size:9px;letter-spacing:2px;color:#c3a877}.future-note p{font-size:11px;color:var(--muted);margin-bottom:0}.match-heading{display:flex;align-items:center;justify-content:space-between;text-align:center;margin-bottom:22px}.match-heading h2{font-size:36px}.match-heading .eyebrow{font-size:8px;margin-bottom:6px}.round{font-size:10px;letter-spacing:2px;color:var(--accent)}.battle-layout{display:grid;grid-template-columns:115px 1fr 115px;gap:14px;align-items:center}.arena-wrap{position:relative;border:1px solid #52493e;box-shadow:0 15px 70px #0007}#arena{display:block;width:100%;touch-action:none;background:#172234}.hud-unit{border:1px solid var(--line);background:#131923;margin:10px 0;padding:9px;width:100%;text-align:left;position:relative}.hud-unit.active{border-color:var(--accent)}.hud-unit.dead{opacity:.3}.hud-unit canvas{width:100%;height:80px;object-fit:contain}.hud-unit strong{font:700 17px 'Barlow Condensed',sans-serif;display:block}.hpbar{height:4px;background:#373541;margin:6px 0 4px;overflow:hidden}.hpbar i{display:block;height:100%;background:#70cab7}.enemy .hpbar i{background:#f17e70}.hud-unit small{font-size:8px;color:#9ea9b6}.battle-controls{display:flex;align-items:center;gap:22px;margin-top:23px;padding:20px;background:#121923;border:1px solid var(--line)}.instruction{min-width:150px}.instruction b{display:block;font-size:12px;letter-spacing:1px;color:var(--accent)}.instruction span{font-size:10px;color:#9ba6b6;display:block;margin-top:6px}.power-label{display:flex;align-items:center;gap:10px;font-size:9px;color:#9faabd;flex:1}input[type=range]{accent-color:var(--accent);width:100%;min-width:70px}.power-label b{color:var(--text);min-width:30px}.compact{width:150px;padding:15px;font-size:11px}.special{border:1px solid #64517d;background:#251f35;padding:14px;font-size:10px;white-space:nowrap}.special span{color:#bf9de3;margin-left:6px}.special.armed{border-color:var(--accent);color:var(--accent)}#battle-toast{position:absolute;top:10px;left:50%;transform:translateX(-50%);font:800 24px 'Barlow Condensed',sans-serif;text-shadow:0 2px 10px #000;color:var(--accent);pointer-events:none}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);transition:transform .2s;background:#e9c688;color:#1a1713;padding:13px 23px;z-index:20;box-shadow:0 6px 30px #0007;max-width:90%;font-size:12px}#toast.show{transform:translateX(-50%) translateY(0)}dialog{background:#161e2a;color:var(--text);border:1px solid #66512d;width:min(480px,92%);padding:35px;box-shadow:0 30px 120px #000b}dialog::backdrop{background:#05080dc9;backdrop-filter:blur(8px)}dialog h2{font-size:46px;margin:15px 0 24px}dialog li,dialog p{color:#a4aebc;font-size:12px;line-height:1.7}dialog li{margin:12px 0}dialog ol{padding-left:20px}.close{float:right;background:none;border:0;font-size:25px}.setting{display:flex;align-items:center;gap:10px;margin:22px 0;font-size:12px}#result-dialog{text-align:center}#result-dialog .back{margin-top:14px;width:100%}[hidden]{display:none!important}
@media(max-width:1000px){.top{padding:0 24px}.alpha{display:none}main{padding:27px 24px}.lobby-grid{gap:20px;grid-template-columns:40% 1fr}.showcase{min-height:580px}.hero-info{padding:45px 20px 24px}.hero-info h2{font-size:55px}.stats{gap:10px}.roster{gap:8px}.fighter-card{height:160px}.fighter-card canvas{width:153px;height:153px}.battle-layout{grid-template-columns:85px 1fr 85px;gap:8px}.battle-controls{gap:12px;padding:13px}.instruction{min-width:100px}.hud-unit canvas{height:60px}footer{margin:0 24px}.locker-layout{grid-template-columns:32% 1fr;gap:18px}.glove-card{padding:10px}}
@media(max-width:700px){.top{height:74px;padding:0 16px;gap:10px}.brand{font-size:24px;gap:8px}.brand small{font-size:6px;letter-spacing:1.5px}.brand-icon{font-size:24px;padding:8px 5px}.top nav{gap:12px}.tab{font-size:8px;letter-spacing:.5px}.tab span{display:none}.top-right{gap:6px}.icon-btn{width:26px;height:26px}.intro{margin-bottom:20px;align-items:flex-start}.intro h1{font-size:39px}.intro .eyebrow{font-size:8px;letter-spacing:1.5px}.muted{font-size:11px;margin-top:9px}.connection{font-size:8px;padding:6px 8px;margin-top:2px}.lobby-grid{grid-template-columns:1fr;gap:22px}main{padding:23px 16px}.showcase{min-height:310px;height:310px}.showcase>canvas{height:320px;width:320px;left:auto;right:-10px;top:-12px}.hero-info{width:58%;height:100%;padding:62px 0 16px 19px;background:linear-gradient(90deg,#121722,#121722dd 67%,transparent)}.hero-info h2{font-size:62px}.hero-info p{font-size:10px;max-width:150px;margin-bottom:12px}.hero-info .eyebrow{font-size:8px}.hero-tag{top:18px;left:19px;font-size:8px}.hero-orbit{width:220px;height:220px;left:auto;right:-70px;top:42px}.hero-number{font-size:135px}.stats{max-width:175px;gap:14px}.stat b{font-size:18px}.stat span{font-size:7px}.text-btn{font-size:8px;padding-top:4px}.roster{gap:10px}.fighter-card{height:159px}.roster-panel .selection-tip{margin-bottom:18px}.loadout{padding-top:17px}footer{margin:0 16px;font-size:7px;padding:22px 0;letter-spacing:.5px}footer>span:nth-child(2){display:none}.locker-layout{grid-template-columns:1fr}.locker-preview{height:290px;padding:16px}.locker-preview canvas{height:255px;width:255px;position:absolute;right:0;top:25px}.locker-preview select{width:45%;position:absolute;left:16px;top:22px;font-size:12px;z-index:2}.equipped-label{position:absolute;left:15px;top:100px;width:42%;font-size:8px}.equipped-label strong{font-size:19px}.locker-preview>.tiny{position:absolute;left:16px;bottom:30px;width:35%;font-size:9px}.glove-grid{gap:9px}.glove-card{min-height:154px;padding:12px 9px}.glove-card strong{font-size:21px}.glove-card small{font-size:8px}.glove-card canvas{height:62px}.intro .back{font-size:8px;padding:8px}.match-heading h2{font-size:29px}.match-heading .back{font-size:8px;padding:9px}.round{font-size:8px}.battle-layout{display:flex;flex-wrap:wrap;gap:8px}.arena-wrap{order:2;width:100%}.side-hud{order:1;display:flex;gap:6px;width:calc(50% - 4px)}.side-hud.enemy{order:1}.hud-unit{padding:5px;margin:0;width:33.3%;min-width:0}.hud-unit canvas{height:46px}.hud-unit strong{font-size:12px}.hud-unit small{font-size:7px}.hpbar{height:3px;margin:4px 0}.battle-controls{flex-wrap:wrap;gap:12px;padding:12px;margin-top:12px}.instruction{flex:1}.instruction span{font-size:9px}.power-label{flex:none;width:55%}.special{flex:1;padding:12px}.compact{flex:1;width:auto;padding:13px}.match-heading{margin-bottom:15px}#battle-toast{font-size:19px}.tiny.center{font-size:9px;line-height:1.7}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Playtest 02: a portrait club and direct-manipulation arena. */
body{background:radial-gradient(ellipse at 50% 0,#243348,#0b101b 70%);padding-bottom:88px}button{border-radius:9px}.top{height:75px;background:#0b101bd9}.top nav{gap:20px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(620px,100%);height:76px;padding:6px 9px max(6px,env(safe-area-inset-bottom));display:flex;z-index:12;background:linear-gradient(#253346,#111a29);border:1px solid #4b586e;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -6px 30px #0007}.bottom-nav button{flex:1;background:none;border:0;font-size:24px;color:#8c9bb3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.bottom-nav small{font-size:8px;letter-spacing:1px}.bottom-nav button.active{color:#ffe0a0;background:linear-gradient(#a26b3340,#ffb84413);border-top:2px solid #f4b34e}.primary{background:linear-gradient(#ffd879,#edaa38);border:1px solid #ffe9a7;border-bottom:5px solid #9c6028;box-shadow:0 6px 16px #0004;border-radius:12px;font-weight:900}.fighter-card{border-radius:12px;border-width:2px}.fighter-card.selected{box-shadow:inset 0 0 14px #dba74320}.glove-card{border-radius:12px}.in-fight .top,.in-fight .bottom-nav,.in-fight footer{display:none}.in-fight{padding:0}#home{max-width:650px;padding:18px 24px 20px}.club-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.club-bar>div{display:flex;align-items:center;gap:10px;flex:1}.club-bar b{font:800 18px 'Barlow Condensed',Impact}.club-bar small{font:600 7px Barlow,Arial;letter-spacing:1.8px;display:block;margin-top:3px;color:#a6b3c8}.rank-shield{background:linear-gradient(#73869e,#253249);border:2px solid #b8c4d9;clip-path:polygon(0 0,100% 0,92% 80%,50% 100%,8% 80%);padding:9px 14px;font:900 22px 'Barlow Condensed',Impact}.currency{background:#172334;border:1px solid #4c586b;border-radius:20px;padding:9px 13px;color:#f7ce75;font-size:14px;min-width:70px}.club-stage{position:relative;height:395px;border:1px solid #4c5c70;border-radius:20px;overflow:hidden;background:linear-gradient(#08142840,#0a142380),var(--arena-art);background-size:cover;background-position:center;box-shadow:inset 0 0 65px #050b14}.club-stage:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 65%,#121d30);pointer-events:none}.stage-title{position:absolute;left:24px;top:23px;z-index:1}.stage-title h1{font-size:42px;text-shadow:0 3px 8px #0009}.stage-title .eyebrow{margin-bottom:7px;font-size:9px}.club-stage #crew{width:100%;height:auto;position:absolute;left:0;bottom:8px;pointer-events:none}.side-badge{position:absolute;left:15px;top:162px;z-index:3;background:linear-gradient(#466482,#253349);border:2px solid #8b9cac;border-bottom-width:4px;width:64px;height:62px;font-size:24px;box-shadow:0 3px 10px #0006}.side-badge small{display:block;font-size:7px;margin-top:3px;letter-spacing:.5px}.side-badge.right{right:15px;left:auto;top:35px}.home-crew{position:absolute;bottom:15px;left:11%;right:11%;display:flex;gap:8px;z-index:3}.home-crew button{flex:1;min-width:0;background:#0b1527cc;border:1px solid #7c8578;padding:8px 3px}.home-crew b{display:block;font:800 17px 'Barlow Condensed',Impact}.home-crew small{font-size:7px;font-weight:400;color:#edce94;display:block;margin-top:3px}.arena-select{margin:13px 0 10px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;width:100%;background:#1b2b41;border:1px solid #526379;font-size:11px;letter-spacing:1px}.arena-select small{font-size:7px;color:#a9b4c4}.battle-button{font:900 32px 'Barlow Condensed',Impact;letter-spacing:2px;padding:13px}.battle-button span{display:block;font:700 8px Barlow,Arial;letter-spacing:2px;margin-top:5px}.home-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:17px}.home-shortcuts>button{border:1px solid #526077;border-bottom:4px solid #111d2e;background:linear-gradient(#2c3c53,#1b293c);padding:13px 6px;font-size:22px;color:#f2c66e}.home-shortcuts b,.home-shortcuts small{display:block}.home-shortcuts b{font:800 13px 'Barlow Condensed',Impact;color:#e9f0f7;margin:7px 0 4px}.home-shortcuts small{font:400 8px Barlow,Arial;color:#9eacc1}.showcase{border-radius:18px}.loadout{border-radius:12px}#fight{padding:12px 16px;max-width:660px;height:100dvh;display:flex;flex-direction:column;gap:8px}.match-heading{flex:none;margin:0;min-height:43px}.match-heading h2{font-size:24px}.match-heading .back{padding:10px;font-size:8px}.match-heading .eyebrow{font-size:7px}.battle-layout{flex:1;min-height:0;display:flex;flex-direction:column;gap:5px;align-items:center;position:relative}.arena-wrap{order:2;flex:1;min-height:0;width:auto;max-width:100%;aspect-ratio:630/1000;border:0;border-radius:12px;overflow:hidden;box-shadow:0 4px 26px #0007}#arena{height:100%;width:100%;object-fit:contain;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}#arena.pulling{cursor:grabbing}.side-hud,.side-hud.enemy{display:flex;flex:none;width:min(100%,340px);gap:6px;margin:0}.side-hud{order:3}.side-hud.enemy{order:1}.hud-unit{display:flex;align-items:center;flex:1;width:33%;min-width:0;margin:0;padding:3px 5px;height:39px;border-radius:7px}.hud-unit canvas{width:33px;height:33px;flex:none}.hud-unit>div{flex:1;min-width:0}.hud-unit strong{font-size:12px}.hud-unit small{font-size:7px}.hpbar{margin:3px 0;height:3px}.hud-unit:disabled{opacity:1}.hud-unit.dead{opacity:.3}.gesture-coach{flex:none;text-align:center;padding:5px 0 2px}.gesture-coach>b{display:none}.gesture-coach>span{display:block;font-size:11px;color:#c5dfeb;font-weight:600}.gesture-coach #charge-hint{font-size:8px;color:#93a6bd;margin-top:4px;font-weight:400}.pull-meter{height:5px;background:#283b4e;border-radius:10px;overflow:hidden;max-width:230px;margin:6px auto}.pull-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#6be0ce,#ffe087,#fb8844)}#battle-toast{top:15px;font-size:25px}.result-stars{font-size:37px;color:#f8ce76;text-shadow:0 4px #9d632a}.match-rewards{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:20px 0}.match-rewards strong{background:#26364c;padding:13px;border:1px solid #5f6d83;border-radius:8px;color:#ffd57c;font-size:13px}.match-rewards small{display:block;width:100%;font-size:9px;color:#92a5ba}#journey,#shop{max-width:750px}.road-stop{width:100%;display:flex;align-items:center;gap:20px;padding:20px;margin:12px 0;background:linear-gradient(120deg,#283b50,#172236);border:1px solid #50627c;text-align:left;position:relative}.road-stop.ready{border-color:#eac270}.road-stop h2{font-size:25px;margin-top:5px}.road-stop p{font-size:10px;color:#b6c0cf;margin-bottom:0}.road-stop small{color:#ddbc75;font-size:9px}.road-stop>b{margin-left:auto;font-size:10px;color:#f3cf84}.road-badge{font:900 27px 'Barlow Condensed',Impact;display:grid;place-items:center;width:52px;height:59px;border:2px solid #b69b72;border-radius:9px;color:#ffe0a4;flex:none}.arena-card .mini-ring{display:grid;place-items:center;height:110px;background:var(--arena-tint);border:6px double #d4c7b4;border-radius:7px;margin:5px;font:900 23px 'Barlow Condensed',Impact;color:white}.mission-card{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;width:100%;background:#24364c;border:1px solid #526981;padding:16px;margin:10px 0;text-align:left}.mission-card b{width:100%;font-size:13px}.mission-card small{font-size:10px}.mission-card span{font-size:9px;color:#f5c775}footer{padding-bottom:20px}
@media(min-width:900px){#home{max-width:680px}.club-stage{height:425px}#fight{max-width:630px}.arena-wrap{max-height:calc(100dvh - 210px)}.in-fight{background:radial-gradient(ellipse at center,#3b4656,#080d17)}}
@media(max-width:700px){.top{height:57px;padding:0 13px}.brand{font-size:21px}.brand small{display:none}.brand-icon{font-size:22px;padding:5px}.top nav{gap:12px}.tab{font-size:8px}.top-right{gap:4px}.top-right #sound{display:none}#home{padding:12px 13px}.club-stage{height:340px}.stage-title h1{font-size:34px}.stage-title{top:20px;left:18px}.club-stage #crew{width:115%;max-width:none;left:-7.5%;bottom:28px}.side-badge{top:125px;width:51px;height:54px;font-size:20px;left:9px}.side-badge.right{right:9px;top:30px}.home-shortcuts{margin-top:11px;gap:7px}.home-shortcuts>button{padding:9px 4px}.home-shortcuts b{font-size:12px}.currency{min-width:57px;padding:8px 10px;font-size:12px}.club-bar b{font-size:16px}.arena-select{font-size:9px}.battle-button{font-size:28px;padding:10px}.bottom-nav{height:70px}.bottom-nav button{font-size:21px}.bottom-nav small{font-size:7px}.home-crew{left:7%;right:7%;gap:5px}.home-crew b{font-size:15px}.home-crew small{font-size:6px}#fight{padding:8px 9px max(6px,env(safe-area-inset-bottom));gap:4px}.match-heading{min-height:38px}.match-heading h2{font-size:23px}.arena-wrap{order:2;max-height:calc(100dvh - 202px);width:auto}.side-hud.enemy{order:1}.side-hud{order:3}.hud-unit canvas{height:31px}.gesture-coach>span{font-size:10px}.gesture-coach #charge-hint{font-size:7px}.road-stop{padding:13px;gap:12px}.road-stop h2{font-size:21px}.arena-card .mini-ring{height:95px;font-size:17px;margin:3px}.intro h1{font-size:37px}.connection{display:none}}
@media(max-height:600px) and (orientation:landscape){#fight{height:auto;min-height:100dvh;max-width:700px}.battle-layout{min-height:450px}.arena-wrap{height:400px;max-height:none;flex:none}.gesture-coach{padding-bottom:12px}}

#fight .arena-wrap{flex:none;height:min(calc(100dvh - 208px),calc((100vw - 20px)/0.63));width:auto;max-height:none;aspect-ratio:630/1000}#fight #arena{object-fit:fill}.club-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(#05101bba,transparent 65%);pointer-events:none}.stage-title{pointer-events:none}.stage-title h1{color:#fff5da}.stage-title h1 em{color:#ffd276}@media(max-height:600px) and (orientation:landscape){#fight .arena-wrap{height:400px;width:252px}}

/* Lock the document as well as the canvas: iOS otherwise rubber-bands the page. */
html.fight-locked{height:100%;overflow:hidden;overscroll-behavior:none}
html.fight-locked body{position:fixed;left:0;right:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;padding:0}
html.fight-locked #fight{position:fixed;top:0;left:50%;transform:translateX(-50%);width:100%;height:var(--fight-height,100dvh);min-height:0;overflow:hidden;touch-action:none;overscroll-behavior:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html.fight-locked .battle-layout{min-height:0}
html.fight-locked #fight .arena-wrap{height:min(max(80px,calc(var(--fight-height,100dvh) - 208px)),calc((100vw - 20px)/0.63));width:auto;flex:none;aspect-ratio:630/1000}
html.fight-locked #arena{touch-action:none;overscroll-behavior:none}
html.fight-locked dialog{touch-action:pan-y;max-height:85dvh;overflow-y:auto}
/* Championship club: dedicated environment, readable overlays, layered lighting. */
:root{--accent:#ffcb69}body{background:radial-gradient(ellipse at 50% 15%,#22374b,#080e18 72%)}.top{border-bottom-color:#c79a4b30;background:#080f1dd9}.brand-icon{background:linear-gradient(#ffe7a4,#d99831)}#home{max-width:720px;padding-top:20px}.club-bar{padding:0 4px 5px}.club-bar .rank-shield{background:linear-gradient(#d1ae67,#80582e);border-color:#f7d398;color:#fff1cf}.club-bar b{font-size:21px;letter-spacing:.6px}.currency{background:linear-gradient(#283b4f,#132033);border-color:#718296;box-shadow:inset 0 1px #ffffff25}.club-stage{height:495px;border:1px solid #9b814e;border-radius:24px;background-position:center 56%;box-shadow:0 22px 65px #0008,inset 0 0 70px #00162955}.club-stage:before{z-index:0;background:linear-gradient(#061425dd,transparent 43%,transparent 75%,#071322aa)}.club-stage:after{background:linear-gradient(transparent 75%,#101e31)}.stage-title{top:24px;left:25px;right:25px;text-align:center;z-index:3}.stage-title .eyebrow{color:#9dc8d5;font-size:9px;letter-spacing:3px;margin-bottom:11px}.stage-title h1{font-size:49px;color:#f5f3e9;text-shadow:0 3px 0 #132231,0 5px 20px #0008}.stage-title h1 em{color:#ffd073}.season-label{display:inline-block;margin-top:12px;font-size:7px;font-weight:700;letter-spacing:2.5px;border:1px solid #9f834870;padding:6px 12px;color:#dbc38b;background:#121d3090;border-radius:20px}.club-stage #crew{bottom:10px;width:100%;left:0;z-index:2}.side-badge{top:180px;left:13px;width:58px;height:59px;background:linear-gradient(#36596e,#142d44);border-color:#73999e;color:#f5d492;z-index:4;box-shadow:0 4px 0 #092137,0 6px 18px #0006}.side-badge.right{top:180px;right:13px}.home-crew{left:8%;right:8%;bottom:20px;z-index:5;gap:10px}.home-crew button{background:linear-gradient(#18364aef,#0c1d30f2);border:1px solid #9eb2b55c;border-bottom:3px solid #c89b50;padding:10px 5px;box-shadow:0 7px 16px #0004}.home-crew b{font-size:18px}.home-crew em{font:700 8px Barlow,Arial;color:#f3cf86;display:inline-block;margin-left:3px}.home-crew small{color:#9dd5da;font-size:8px}.light-beam{position:absolute;top:-70px;width:140px;height:540px;z-index:1;pointer-events:none;background:linear-gradient(#ffe3a529,transparent);filter:blur(9px);transform-origin:top center;clip-path:polygon(42% 0,58% 0,100% 100%,0 100%);animation:spotlight 9s ease-in-out infinite alternate}.beam-a{left:13%;transform:rotate(-18deg)}.beam-b{right:10%;animation-delay:-4s;transform:rotate(20deg)}@keyframes spotlight{from{opacity:.45;transform:rotate(-17deg)}to{opacity:.9;transform:rotate(19deg)}}.battle-button{font-size:29px;padding:15px;background:linear-gradient(#ffe29c,#ffbd51 55%,#eea93e);box-shadow:0 6px 0 #765022,0 12px 28px #d99b2930;border-bottom-width:2px;margin-bottom:6px}.battle-button span{letter-spacing:1.2px;color:#61491f;font-size:9px}.arena-select{margin:17px 0 13px;background:linear-gradient(110deg,#142537,#243e52);border-color:#71919370}.battle-options{display:flex;gap:10px;margin-top:12px}.battle-options button{flex:1;font-size:9px;letter-spacing:1px;padding:11px 5px;border:1px solid #3d5b72;background:#152538;color:#b2d8dd}.battle-options button:first-child{color:#e9c77e;border-color:#8d714b}.home-shortcuts>button{border:1px solid #56728a;background:linear-gradient(140deg,#274559,#13263c);border-bottom:4px solid #0b192a;border-radius:14px}.home-shortcuts>button b{letter-spacing:1px;font-size:14px}.fighter-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}.upgrade-btn{border:1px solid #f5d48b;background:linear-gradient(#e8c275,#b58b42);color:#1b2130;padding:11px;font-size:10px}.fighter-actions .text-btn{padding:6px 0}.hero-info #upgrade-summary{font-size:9px;margin:8px 0 0;color:#e3c583;letter-spacing:.3px}.level-tag{font:800 8px Barlow,Arial;display:inline-block;background:#cda45a;color:#1b2430;padding:3px;border-radius:4px;vertical-align:middle}.upgrade-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.upgrade-stats>div{padding:14px;background:#253b50;border:1px solid #668698;border-radius:10px}.upgrade-stats small{display:block;color:#9dbecd;font-size:9px;margin-bottom:6px}.upgrade-stats b{color:#f4d491;font-size:19px}#upgrade-portrait{display:block;width:180px;height:180px;margin:-15px auto -8px}.stage-opponents{display:flex;justify-content:center;gap:5px}.stage-opponents canvas{width:30%;height:auto}#train-first{margin-top:12px;width:100%}#campaign{max-width:750px}.campaign-heading{padding:23px 0;text-align:center}.campaign-heading h1{font-size:47px}.campaign-heading>p{color:#99b5c7;font-size:12px}#campaign-progress{display:flex;justify-content:space-between;max-width:480px;margin:20px auto 0;padding:14px 18px;background:#1a3043;border:1px solid #557188;border-radius:12px;font-size:12px;color:#f4d188}#campaign-list{position:relative;display:flex;flex-direction:column;gap:15px;padding:10px 15px}#campaign-list:before{content:'';position:absolute;left:50%;top:0;bottom:20px;border-left:4px dashed #5a7793;opacity:.5}.campaign-node{position:relative;display:flex;align-items:center;text-align:left;gap:16px;padding:18px;background:linear-gradient(120deg,#384b5d,#1b2a3e);border:1px solid #8c866e;border-bottom:4px solid #111d2e;border-radius:17px;width:92%;box-shadow:0 10px 20px #0004}.campaign-node:nth-child(even){align-self:flex-end}.campaign-node.current{outline:2px solid #f9ce79;outline-offset:3px}.campaign-node.cleared{border-color:#73b39d}.campaign-node.boss{background:linear-gradient(120deg,#5b2943,#25213d);border-color:#dc8e79}.campaign-node.district-1:not(.boss){background:linear-gradient(120deg,#255976,#173247)}.campaign-node.district-2:not(.boss){background:linear-gradient(120deg,#51376b,#24223c)}.campaign-node:disabled{opacity:.48}.campaign-node .stage-number{width:52px;height:62px;display:grid;place-items:center;background:#0b1c30a0;border:2px solid #bca774;border-radius:10px;font:900 30px 'Barlow Condensed',Impact;flex:none;color:#ffe6a5}.campaign-node small{font-size:8px;letter-spacing:1px;color:#d2bb8a}.campaign-node h2{font-size:28px;margin:5px 0}.campaign-node p{font-size:10px;color:#a2bdca;margin:4px 0}.campaign-node>strong{margin-left:auto;font-size:9px;color:#f8d899;white-space:nowrap}.stage-stars{font-size:18px;color:#ffd978;letter-spacing:3px}#next-stage{margin-bottom:12px}.fight-options{display:flex;align-items:center;gap:8px}.fight-options #fight-sound{flex:none;width:28px;height:28px}#fight-sound.on{color:#ffd47a;border-color:#ffd47a}.top-right #sound{display:inline-block!important}.top-right #sound.on{color:#ffd57e}dialog{border-radius:19px;background:radial-gradient(ellipse at top,#2b4055,#121f32);border-color:#b49b68}.bottom-nav{background:linear-gradient(#263f53,#102133);border-color:#57748a}.bottom-nav button.active{background:linear-gradient(#bc945433,#ffe6a509)}
@media(max-width:700px){#home{padding:14px 12px 20px}.club-bar b{font-size:17px}.club-bar small{font-size:6px;letter-spacing:1px}.club-stage{height:390px;border-radius:18px}.stage-title{top:18px;left:15px;right:15px}.stage-title h1{font-size:35px}.stage-title .eyebrow{font-size:7px;letter-spacing:1.8px}.season-label{font-size:6px;padding:5px 8px;margin-top:8px}.club-stage #crew{width:116%;left:-8%;bottom:12px}.side-badge,.side-badge.right{top:135px;width:44px;height:48px;font-size:19px;border-width:1px}.side-badge{left:8px}.side-badge.right{right:8px}.side-badge small{font-size:6px}.home-crew{left:4%;right:4%;bottom:15px;gap:6px}.home-crew b{font-size:14px}.home-crew small{font-size:6px}.home-crew em{font-size:6px;margin-left:2px}.home-crew button{padding:8px 2px}.battle-button{font-size:25px;padding:14px 6px}.battle-button span{font-size:8px}.home-shortcuts>button b{font-size:12px;letter-spacing:.6px}.fighter-actions{flex-direction:column;align-items:flex-start;gap:5px}.upgrade-btn{font-size:8px;padding:8px}.hero-info #upgrade-summary{font-size:8px;max-width:155px}.hero-info{padding-top:50px}.hero-info p{margin-bottom:8px}.hero-info h2{font-size:52px}.showcase{height:340px;min-height:340px}.campaign-heading h1{font-size:36px}.campaign-heading>p{font-size:11px}.campaign-node{padding:13px 10px;gap:10px;width:96%}.campaign-node h2{font-size:23px}.campaign-node .stage-number{width:39px;height:52px;font-size:25px}.campaign-node small{font-size:6px}.campaign-node>strong{font-size:7px}#campaign-list{padding:6px 2px}.top nav{gap:9px}.top{gap:7px}.brand-icon{font-size:19px}.top-right .icon-btn{width:25px;height:25px}.level-tag{font-size:6px}.card-bottom strong{font-size:21px}.fight-options{gap:5px}}
@media(prefers-reduced-motion:reduce){.light-beam{animation:none}}
/* Atelier collection, arena audiences and chest store */
body.in-fight{background-image:linear-gradient(#080d1999,#080d19bb),var(--battle-scene);background-position:center;background-size:cover;background-attachment:fixed}
#arena-caption{font-size:10px;letter-spacing:.13em;color:#e6cf9b}.glove-card canvas{height:150px;object-fit:contain}.glove-card small{display:block}.glove-card .equip-mark{font-size:10px}#locker-status{color:#deb975}
.store-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px 0}.store-heading h1{max-width:750px}.store-heading p{color:#a6adbb}.store-wallet{flex:none;border:1px solid #c7a65c66;border-radius:16px;background:linear-gradient(135deg,#342b20,#181b23);padding:22px 30px;display:grid;text-align:center;gap:8px}.store-wallet small{font-size:10px;letter-spacing:2px;color:#cfb77e}.store-wallet b{font-size:34px;color:#f4d998}.store-wallet span{font-size:10px;letter-spacing:3px}
.chest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.chest-card{border:1px solid color-mix(in srgb,var(--chest-accent) 35%,transparent);border-radius:20px;overflow:hidden;background:linear-gradient(150deg,#212433,#11151e);position:relative}.chest-art{position:relative;background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--chest-accent) 28%,transparent),transparent 67%)}.chest-art img{display:block;width:100%;height:250px;object-fit:contain;filter:drop-shadow(0 14px 22px #0008)}.chest-index{position:absolute;top:18px;left:22px;font-size:11px;color:var(--chest-accent);letter-spacing:3px}.chest-copy{padding:12px 24px 24px}.chest-copy .eyebrow{color:var(--chest-accent);font-size:9px}.chest-copy h2{font-size:28px;line-height:1.05;margin:10px 0}.chest-copy p{color:var(--chest-accent);font-size:13px}.chest-copy small{display:block;color:#9aa4b7;font-size:11px;margin-bottom:20px}.chest-copy .primary{width:100%;padding:14px 8px;font-size:12px}.chest-copy .primary:disabled{opacity:.45}.odds-link{display:block;border:0;background:none;color:#c8ceda;font-size:10px;letter-spacing:1px;padding:17px 0 0;width:100%}.store-note{font-size:12px;line-height:1.8;color:#a3adbc;max-width:730px;margin:24px 0}#store-locker{margin-bottom:30px}.recent-finds{display:flex;gap:12px;flex-wrap:wrap}.recent-finds>span{border:1px solid #ffffff15;background:#171d28;border-radius:12px;display:grid;grid-template-columns:48px auto;padding:10px;align-items:center;gap:2px 10px}.recent-finds img{width:48px;height:56px;object-fit:contain;grid-row:span 2}.recent-finds b{font-size:13px}.recent-finds small{font-size:10px;color:#a7b1c2}.dialog-chest{width:220px;height:170px;object-fit:contain;margin:auto;display:block}.drop-rates{border:1px solid #ffffff18;border-radius:12px;overflow:hidden}.drop-rates>div{display:flex;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #ffffff10;font-size:13px}.drop-rates small{display:block;color:#a6afbd;font-size:10px}.drop-rates b{color:#e0c38a}.drop-rates+p{margin:14px 0}.dialog-chest.opening{animation:chest-open .18s ease-in-out infinite alternate}#reward-glove{display:block;width:100%;max-width:340px;height:auto;margin:auto;filter:drop-shadow(0 0 30px #b8915e55)}.reward-rarity{font-weight:800}.arena-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.arena-gallery figure{margin:0}.arena-gallery img{width:100%;height:155px;object-fit:cover;border-radius:10px}.arena-gallery figcaption{font-size:9px;margin:7px 0;color:#decb9e}@keyframes chest-open{from{transform:rotate(-4deg) scale(.96)}to{transform:rotate(4deg) scale(1.04)}}
@media(max-width:700px){.store-heading{align-items:flex-start;padding:18px 0;gap:10px}.store-heading h1{font-size:37px}.store-heading p:not(.eyebrow){font-size:12px;max-width:210px}.store-wallet{padding:15px 12px;border-radius:12px}.store-wallet small{font-size:8px;letter-spacing:1px}.store-wallet b{font-size:26px}.chest-grid{grid-template-columns:1fr;gap:16px}.chest-card{display:grid;grid-template-columns:43% 57%;align-items:center;min-height:245px}.chest-art img{height:210px}.chest-copy{padding:20px 14px 20px 0}.chest-copy h2{font-size:24px}.chest-copy .eyebrow{font-size:8px;letter-spacing:1px}.chest-copy small{margin-bottom:12px}.chest-copy p{font-size:11px}.arena-gallery{grid-template-columns:repeat(2,1fr)}.glove-card canvas{height:110px}}
@media(prefers-reduced-motion:reduce){.dialog-chest.opening{animation:none}}
#name-dialog{max-width:460px;width:calc(100% - 36px);border:1px solid #c9ac70;border-radius:24px;padding:34px;background:radial-gradient(ellipse at 100% 0,#3b3441,#131c2b 65%)}#name-dialog::backdrop{background:#050b15dc;backdrop-filter:blur(8px)}#name-dialog h2{font-size:42px;line-height:1.05;margin:18px 0;color:#f4d691}#name-dialog p{font-size:13px;color:#abb8ca;line-height:1.65}#name-dialog label{display:block;font-size:11px;letter-spacing:1.3px;color:#dbc795;margin:20px 0 9px}#player-name{display:block;width:100%;box-sizing:border-box;font:700 20px Arial;padding:16px;border-radius:10px;border:1px solid #65758b;background:#0c1421;color:#fff;outline:none}#player-name:focus{border-color:#efce8c;box-shadow:0 0 0 3px #efce8c22}#name-dialog .name-audio{display:flex;align-items:center;gap:10px;letter-spacing:0;font-size:13px;color:#c5d1df}#name-error{color:#ffa491!important;min-height:15px;margin:5px 0}#name-dialog .primary{width:100%;margin-top:14px}#leader-profile{display:flex;align-items:center;gap:24px;padding:28px;border-radius:20px;background:linear-gradient(120deg,#293a4e,#192433);border:1px solid #b9a57766;margin:8px 0 32px}#leader-profile h2{font-size:32px;margin:4px 0;overflow-wrap:anywhere}#leader-profile p{font-size:12px;color:#aabbd0}.rank-medal{display:grid;place-items:center;width:70px;height:85px;flex:none;color:#664e26;background:linear-gradient(130deg,#fff0b9,#b18b40);font:900 35px Impact;clip-path:polygon(0 0,100% 0,92% 80%,50% 100%,8% 80%)}.rank-total{margin-left:auto;display:grid;text-align:right}.rank-total b{font-size:36px;color:#efd18c}.rank-total small{font-size:9px;letter-spacing:2px;color:#b3c0d0}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:28px 0 14px}.board-heading h2{font-size:22px}.board-heading>span{font-size:9px;letter-spacing:1px;color:#d6be89}.leader-row{display:flex;align-items:center;gap:20px;padding:20px;background:#182434;border:1px solid #35465c;border-radius:12px;margin-bottom:9px}.leader-row>div{flex:1;min-width:0}.leader-row strong{overflow-wrap:anywhere}.leader-row small{display:block;font-size:10px;color:#9eafc4;margin-top:6px}.leader-row>b:last-child{color:#ecd090;text-align:right}.rank-position{color:#8c9fb4;font-size:20px}.board-empty{padding:30px;border:1px dashed #556174;border-radius:14px;color:#a6b5c7;line-height:1.8}.player-chip{font-size:12px;color:#e3c997}
@media(max-width:600px){#leader-profile{padding:18px;gap:12px}.rank-medal{width:45px;height:60px;font-size:26px}#leader-profile h2{font-size:23px}.rank-total b{font-size:25px}.rank-total small{font-size:8px;letter-spacing:1px}.leader-row{gap:12px;padding:16px}.board-heading h2{font-size:19px}#name-dialog{padding:25px}#name-dialog h2{font-size:37px}}
.card-locked{filter:saturate(.35)}.card-locked canvas{opacity:.5}.card-locked .card-bottom small{color:#deb876}.card-progress{height:12px;background:#0b1422;border-radius:8px;overflow:hidden}.card-progress span{height:100%;display:block;background:linear-gradient(90deg,#66beb7,#b3ec94)}.card-rewards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:52vh;overflow:auto}.reward-card{background:linear-gradient(150deg,#2a3d55,#101c2b);border:2px solid #c8a764;border-radius:14px;padding:8px;text-align:center;animation:card-reveal .4s ease both}.reward-card canvas{width:100%;height:auto}.reward-card b{font-size:14px;display:block;color:#f2dba2}.reward-card small{font-size:10px;display:block;line-height:1.6;margin-top:5px}.coin-reward{font-size:25px!important;font-weight:900;color:#f4d37e!important;text-align:center}.tap-chest{width:100%;background:radial-gradient(ellipse,#95734255,transparent 70%);border:0;color:#efd398;padding:10px;cursor:pointer}.tap-chest b{display:block;letter-spacing:3px}.tap-chest img{width:260px;height:230px}.chest-burst{animation:chest-burst .65s ease both}.result-stars{display:flex;justify-content:center;gap:18px;font-size:56px}.result-stars .empty{color:#354250}.result-stars .earned{color:#f2ce6b;animation:star-pop .5s both;animation-delay:var(--star-delay)}#tutorial-chest,#pending-chest{background:linear-gradient(#dcba7d,#a87940);margin-bottom:12px}.arena-wrap{position:relative}#turn-cards{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);width:94%;z-index:5;background:#101e30f0;border:1px solid #bda46e;border-radius:18px;padding:14px;box-shadow:0 15px 60px #000a;text-align:center;transition:top .25s,bottom .25s,transform .25s}#turn-card-title{font-size:10px;letter-spacing:1.5px;color:#f3d899;margin:0 0 9px}#turn-card-list{display:flex;justify-content:center;gap:9px}.turn-card{flex:1;max-width:130px;min-width:0;border:2px solid #66839f;border-radius:12px;padding:0 3px 7px;background:linear-gradient(#345475,#142439);color:#fff;position:relative}.turn-card canvas{width:100%;max-height:125px;object-fit:contain}.turn-card b{display:block;font-size:13px}.turn-card small{display:block;font-size:8px;margin:4px 0;color:#d3dce5}.turn-card i{display:block;height:5px;background:linear-gradient(to right,#ef824a var(--rage),#243248 var(--rage));border-radius:5px}.turn-card:disabled{filter:grayscale(1);opacity:.4}.turn-card.picked{border-color:#f4d483;box-shadow:0 0 12px #eec76855}.turn-card.raging{border-color:#fb864e}.turn-card.raging:not(:disabled){box-shadow:0 0 18px #f9754155}#turn-cards.docked{top:auto;bottom:7px;transform:translateX(-50%);padding:5px;width:78%;border-color:#53677f;background:#101e30dc;box-shadow:none}#turn-cards.docked #turn-card-title{font-size:7px;margin:0 0 3px}#turn-cards.docked .turn-card{max-width:88px;padding:2px;border-radius:7px;display:grid;grid-template-columns:35px 1fr;align-items:center}#turn-cards.docked .turn-card canvas{height:38px}#turn-cards.docked .turn-card b{font-size:8px}#turn-cards.docked .turn-card small{font-size:6px}#match-timer{font:900 22px Arial;color:#f0d48d;white-space:nowrap}#match-timer.overtime{color:#ff9471}#star-score{font-size:11px;color:#f2d28b;white-space:nowrap}.fight-options{flex-wrap:wrap;justify-content:flex-end;gap:7px}.fight-options .round{font-size:8px}#fight .match-heading{gap:6px}#fight .side-hud{pointer-events:none}#fight .gesture-coach{font-size:10px}
@keyframes card-reveal{from{transform:translateY(30px) rotateY(75deg);opacity:0}to{transform:none;opacity:1}}@keyframes star-pop{0%{transform:scale(0) rotate(-25deg)}70%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes chest-burst{0%{transform:rotate(-4deg)}40%{transform:rotate(5deg) scale(1.05)}70%{filter:brightness(2)}100%{transform:scale(1.15);opacity:0}}
@media(max-width:600px){.card-rewards{grid-template-columns:repeat(2,minmax(0,1fr))}.turn-card b{font-size:11px}.turn-card canvas{max-height:105px}#fight .match-heading h2{font-size:18px}.match-heading .back{font-size:9px}#arena-caption{font-size:7px}#match-timer{font-size:18px}}
@media(prefers-reduced-motion:reduce){.reward-card,.result-stars .earned,.chest-burst{animation:none}#turn-cards{transition:none}}
/* A single hinged chest. The lid and body are independent native layers. */
.single-chest{--wood-a:#ac6634;--wood-b:#563122;--metal:#e3ba68;--metal-dark:#795331;position:relative;width:250px;height:215px;margin:auto;perspective:550px;isolation:isolate;filter:drop-shadow(0 12px 12px #0007)}
.chest-theme-1{--wood-a:#688cae;--wood-b:#253b62;--metal:#d5e6f3;--metal-dark:#667890}
.chest-theme-2{--wood-a:#805688;--wood-b:#35213f;--metal:#ffe1a0;--metal-dark:#b9813d}
.chest-ground{position:absolute;left:26px;bottom:16px;width:205px;height:25px;border-radius:50%;background:#0008;filter:blur(8px)}
.chest-shell{position:absolute;left:25px;top:103px;width:200px;height:91px;border:4px solid var(--metal-dark);border-top:7px solid var(--metal);border-bottom:8px solid var(--metal-dark);border-radius:5px 5px 20px 20px;background:repeating-linear-gradient(0deg,transparent 0 26px,#170c0b55 27px 29px),linear-gradient(110deg,var(--wood-a),var(--wood-b));box-shadow:inset 0 3px 7px #fff4,inset -15px -6px 20px #0004;z-index:4}
.chest-inside{position:absolute;left:28px;top:88px;width:194px;height:38px;background:radial-gradient(ellipse,#ffd887 0,#5c3d25 40%,#140d0c 78%);border:5px solid var(--metal-dark);border-radius:50% 50% 15% 15%;z-index:2}
.chest-lid{position:absolute;left:21px;top:64px;width:208px;height:58px;border:4px solid var(--metal-dark);border-top:5px solid var(--metal);border-radius:40px 40px 7px 7px;background:repeating-linear-gradient(0deg,transparent 0 18px,#22100e44 19px 21px),linear-gradient(150deg,var(--wood-a),var(--wood-b));box-shadow:inset 0 6px 8px #fff3,0 4px 3px #0005;transform-origin:50% 6%;transition:transform .65s cubic-bezier(.2,.8,.2,1);z-index:5;backface-visibility:visible}
.metal-strap{position:absolute;top:-3px;bottom:-4px;width:21px;background:linear-gradient(90deg,var(--metal-dark),var(--metal) 35%,var(--metal) 60%,var(--metal-dark));border:1px solid var(--metal-dark);box-shadow:1px 0 2px #0005}.strap-left{left:23px}.strap-right{right:23px}
.chest-emblem{position:absolute;left:50%;top:22px;transform:translateX(-50%);border:3px solid var(--metal-dark);border-radius:12px;background:linear-gradient(130deg,#fff0b5,var(--metal));color:var(--wood-b);width:49px;height:43px;display:grid;place-items:center;font:900 24px Impact;box-shadow:0 3px 3px #0005}
.chest-lock{position:absolute;left:calc(50% - 13px);bottom:-20px;width:26px;height:32px;background:linear-gradient(110deg,#fff0b4,var(--metal),var(--metal-dark));border:2px solid var(--metal-dark);border-radius:5px}.chest-lock:after{content:'';position:absolute;width:5px;height:10px;left:9px;top:11px;border-radius:50% 50% 0 0;background:#46301c}
.chest-bolt{position:absolute;width:6px;height:6px;background:#fff0b2;box-shadow:1px 1px 0 #392114;border-radius:50%}.bolt-a{left:5px;top:8px}.bolt-b{right:5px;top:8px}.bolt-c{left:5px;bottom:8px}.bolt-d{right:5px;bottom:8px}
.chest-aura{position:absolute;inset:45px -15px -10px;background:radial-gradient(ellipse,#f6cf8044,transparent 65%);z-index:-1}
.single-chest.is-open .chest-lid{transform:rotateX(-112deg) translateZ(8px)}.single-chest.is-open .chest-inside{box-shadow:0 -10px 35px #ffdc84cc}
.loot-scene{height:340px;position:relative;overflow:visible}.tap-single-chest{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:270px;border:0;background:none;padding:0;color:#eed098;cursor:pointer}.tap-single-chest:disabled{opacity:1;cursor:default}.tap-single-chest .single-chest{margin:auto}.tap-label{display:block;font-size:11px;letter-spacing:3px;height:20px}.loot-rays{position:absolute;inset:20px 0 50px;opacity:0;background:conic-gradient(from 10deg,transparent 0deg,#ffeaba22 15deg,transparent 30deg,#ffeaba22 45deg,transparent 60deg,#ffeaba22 75deg,transparent 90deg,#ffeaba22 105deg,transparent 120deg,#ffeaba22 135deg,transparent 150deg,#ffeaba22 165deg,transparent 180deg,#ffeaba22 195deg,transparent 210deg,#ffeaba22 225deg,transparent 240deg,#ffeaba22 255deg,transparent 270deg,#ffeaba22 285deg,transparent 300deg,#ffeaba22 315deg,transparent 330deg,#ffeaba22 345deg,transparent 360deg);border-radius:50%;filter:blur(3px);transition:opacity .5s}
.flying-fighter-card{position:absolute;left:calc(50% - 55px);top:147px;width:110px;height:147px;border-radius:12px;border:3px solid #f4dc92;background:linear-gradient(#537b9c,#14263e);opacity:0;z-index:6;transform:scale(.2);box-shadow:0 0 25px #ffdd8366;pointer-events:none}.flying-fighter-card canvas{width:100%;height:115px;object-fit:contain}.flying-fighter-card b{display:block;font-size:11px;color:#ffe6a4;text-align:center}
.loot-scene.is-open .flying-fighter-card{animation:card-from-chest .9s .35s cubic-bezier(.15,.8,.2,1.1) forwards}.loot-scene.is-open .loot-rays{opacity:1}
.coin-shower{position:absolute;left:50%;top:225px;z-index:7;pointer-events:none}.coin-shower i{position:absolute;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;border:2px solid #fff0a2;background:linear-gradient(125deg,#ffdf75,#b98522);color:#8c6018;font-size:11px;opacity:0;box-shadow:0 2px 5px #0005}.loot-scene.is-open .coin-shower i{animation:coin-out 1s calc(.5s + var(--coin-i)*.06s) both}
.loot-coin-counter{position:absolute;bottom:8px;right:2px;z-index:8;font-size:20px;font-weight:900;color:#ffe194;background:#111d2bec;border:1px solid #c1a26a;border-radius:9px;padding:7px 10px;opacity:0}.loot-scene.is-open .loot-coin-counter{opacity:1;transition:opacity .3s .65s}
#revealed-rewards .card-rewards{max-height:35vh;margin:18px 0}#revealed-rewards>.primary{width:100%}.chest-art .single-chest{transform:scale(.95);transform-origin:center}
@keyframes card-from-chest{0%{opacity:0;transform:translateY(35px) scale(.2) rotateY(80deg)}25%{opacity:1}100%{opacity:1;transform:translateY(-142px) scale(1) rotateY(0)}}
@keyframes coin-out{0%{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}60%{opacity:1;transform:translate(var(--coin-x),-90px) rotate(220deg)}100%{opacity:0;transform:translate(calc(var(--coin-x)*1.3),40px) rotate(420deg)}}
@media(max-width:700px){.chest-art .single-chest{margin-left:50%;transform:translateX(-50%) scale(.62)}.chest-art{overflow:hidden}.loot-coin-counter{font-size:17px}.loot-scene{height:330px}}
@media(prefers-reduced-motion:reduce){.chest-lid{transition:none}.loot-scene.is-open .flying-fighter-card{animation:none;opacity:1;transform:translateY(-142px)}.loot-scene.is-open .coin-shower i{animation:none}.loot-scene.is-open .loot-coin-counter{transition:none}.loot-rays{transition:none}}
/* Ring Riot 8: illustrated hinged chests and sculpted navigation. */
.art-chest{position:relative;width:250px;height:215px;margin:10px auto 0;perspective:800px;filter:drop-shadow(0 18px 14px #0007);isolation:isolate}.art-chest img{position:absolute;object-fit:fill;pointer-events:none;width:90%;left:5%;max-width:none}.art-chest-base{height:128px;bottom:9px;z-index:3}.art-chest-lid{height:99px;bottom:115px;z-index:4;transform-origin:50% 16%;transition:transform .75s cubic-bezier(.22,.8,.2,1),filter .75s}.art-chest .chest-magic{position:absolute;left:20%;right:20%;height:75px;bottom:105px;border-radius:50%;background:#ffe6a9;filter:blur(20px);opacity:0;transition:opacity .4s}.is-open .art-chest-lid{transform:translateY(-19px) rotateX(-115deg);filter:brightness(1.35)}.is-open .chest-magic{opacity:1}.chest-art .art-chest{transform:scale(1.12)}.tap-single-chest .art-chest{margin-top:25px}.tap-single-chest{overflow:visible}.is-open .art-chest{animation:chest-settle .7s ease-out}.loot-scene{min-height:365px;overflow:visible}.loot-rays{background:conic-gradient(from 0deg,transparent 0 9deg,#fbd78040 10deg 18deg,transparent 19deg 36deg);filter:blur(2px)}.flying-fighter-card{z-index:7;border:3px solid #ffd478;box-shadow:0 0 35px #fbc96666,0 18px 25px #0009}.is-open .flying-fighter-card{animation:premium-card-rise 1.1s cubic-bezier(.18,.75,.23,1) forwards}.loot-coin-counter{z-index:10}.is-open .coin-shower i{animation-duration:1.25s}.tap-label{letter-spacing:.2em;color:#ffe1a0;text-shadow:0 2px 5px #000}.chest-card{border:1px solid #a4844c66;background:radial-gradient(ellipse at 30% 20%,#334052,#101b2a 65%);box-shadow:inset 0 1px #ffffff18,0 12px 24px #0004}.drop-rates div:has(small){border-bottom:1px solid #ffffff0b}
.bottom-nav{overflow:visible;background:linear-gradient(#344c62,#14283b 55%,#0a192a);border:1px solid #6d8b9e;border-bottom:0;border-radius:25px 25px 0 0;box-shadow:0 -8px 30px #0007,inset 0 3px 1px #9bb0ba33;padding-top:9px;padding-bottom:max(9px,env(safe-area-inset-bottom));gap:4px}.bottom-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;min-height:72px;border-radius:16px;border:1px solid transparent;transition:transform .2s,box-shadow .2s;background:none}.bottom-nav button .nav-art{display:block;height:43px;width:55px;transition:transform .2s;filter:drop-shadow(0 4px 2px #0009)}.nav-art img{height:100%;width:100%;object-fit:contain}.bottom-nav button small{font-size:9px;letter-spacing:.08em;color:#b4c6d5;padding:4px 0}.bottom-nav button.active{transform:translateY(-12px);background:linear-gradient(#907347,#24394b 65%);border-color:#efd18a;box-shadow:0 7px 0 #081623,0 10px 12px #0006,inset 0 2px #fff6}.bottom-nav button.active .nav-art{transform:scale(1.18) translateY(-3px)}.bottom-nav button.active small{color:#ffe8b5}.bottom-nav button.active:after{content:'';position:absolute;bottom:-5px;width:22px;height:3px;border-radius:5px;background:#ffdc8d;box-shadow:0 0 8px #ffcd71}.mythic-card{border-color:#ff8ab5!important;background:radial-gradient(at 50% 10%,#813d77,#172334 75%)!important;box-shadow:inset 0 1px #ffceeb66,0 0 15px #ff78be17}.fighter-ability{margin:12px 0;padding:14px;border:1px solid #dcb96a55;border-radius:12px;background:linear-gradient(110deg,#8e673522,#102438)}.fighter-ability b{font-size:14px;color:#f4d494;letter-spacing:.08em}.fighter-ability p{font-size:12px;line-height:1.5;margin:7px 0;color:#c1d0dc}.fighter-ability small{font-size:9px;color:#91b9c9}.turn-card.raging{box-shadow:0 0 20px #ffbe5955}.turn-card small{white-space:normal}.turn-card b{font-size:13px}#battle-toast{max-width:85%;font-size:14px;text-align:center;background:#112234cc;border-radius:12px;padding:6px 12px;pointer-events:none}#battle-toast:empty{display:none}
@keyframes chest-settle{0%,100%{transform:translateY(0)}15%{transform:translateY(4px) rotate(-3deg)}30%{transform:translateY(-5px) rotate(3deg)}50%{transform:translateY(1px)}}@keyframes premium-card-rise{0%{opacity:0;transform:translate(-50%,70px) scale(.25) rotate(-15deg)}35%{opacity:1}75%{transform:translate(-50%,-105px) scale(1.07) rotate(4deg)}100%{opacity:1;transform:translate(-50%,-90px) scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.art-chest-lid{transition:none}.is-open .art-chest{animation:none}.is-open .flying-fighter-card{animation:none;opacity:1;transform:translate(-50%,-90px)}}
.art-chest-lid{transform-origin:50% 100%;z-index:2}.is-open .art-chest-lid{transform:translateY(-22px) rotateX(38deg);filter:brightness(1.2)}

/* V9 atlas lobby */
html,body{max-width:100%;overflow-x:hidden}body[data-page="home"]{background:#093c9b var(--club-blue) center top/cover fixed}body[data-page="home"]>.top,body[data-page="home"]>footer{display:none}main[hidden]{display:none!important}
#home.atlas-lobby{width:100%;max-width:540px;min-height:100svh;margin:0 auto;padding:12px 14px calc(102px + env(safe-area-inset-bottom));color:#fff6c8;display:flex;flex-direction:column;gap:9px}
#home .club-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;padding:9px 7px;margin:0;border:2px solid #073075;border-radius:15px;background:linear-gradient(#2868d6,#174dba);box-shadow:inset 0 2px #85bbff77,0 4px 0 #052c79}.player-plaque{min-width:0;display:flex;gap:6px;align-items:center}.player-plaque .rank-shield{width:38px;height:46px;min-width:38px;font-size:25px;background:linear-gradient(#ffe569,#c98920);clip-path:polygon(50% 0,100% 20%,100% 78%,50% 100%,0 78%,0 20%);display:grid;place-items:center;color:#422604}.player-plaque b{display:block;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px #153975}.player-plaque small{display:block;font-size:6px;letter-spacing:.1em;color:#bedbff;margin-top:5px}#home .currency{border:1px solid #6099e3;background:#123f8d;padding:9px 7px;min-width:49px;font-size:13px;border-radius:10px;color:#ffdc70;white-space:nowrap}#home .currency span{font-size:13px}
.atlas-season{display:flex;align-items:center;gap:10px;min-height:58px;background:linear-gradient(100deg,#063b91,#226bde,#113c96);border:2px solid #67a3f1;border-radius:13px;padding:7px 12px;box-shadow:0 3px 0 #072775,inset 0 2px #b7deff33}.season-medal{font-size:36px;color:#ffe364;text-shadow:0 3px #bd861b}.atlas-season>div{flex:1;min-width:0}.atlas-season small{display:block;font-size:7px;letter-spacing:.19em;color:#acd6ff}.atlas-season b{display:block;font-size:12px;margin:3px 0;color:#ffe59a}.atlas-season>strong{font-size:13px;white-space:nowrap}.season-progress{height:7px;background:#062d74;border-radius:6px;overflow:hidden}.season-progress i{display:block;width:0;height:100%;background:repeating-linear-gradient(90deg,#6fe9ff 0 4px,#37b8fa 4px 7px)}
#home .atlas-stage{position:relative;display:flex;align-items:center;justify-content:center;height:auto;min-height:0;padding:5px 0;margin:0;background:none!important;border:0;box-shadow:none;border-radius:0;overflow:visible}.atlas-book{position:relative;display:block;width:calc(100% - 74px);aspect-ratio:1.12;max-width:390px;border:0;background:none;padding:0;color:#815127;filter:drop-shadow(0 10px 6px #071d7377);isolation:isolate}.atlas-book .book-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:0}.book-left,.book-right{position:absolute;z-index:1;pointer-events:none}.book-left{left:15%;top:27%;width:32%;height:45%;transform:rotate(-5deg)}.book-left img{width:100%;height:65%;object-fit:cover;border:2px solid #b88b46;border-radius:3px}.book-left small{display:block;font-size:7px;color:#a07739;letter-spacing:.07em;line-height:1.5;margin-top:6px}.book-right{left:54%;top:30%;width:29%;height:42%;display:flex;flex-direction:column;justify-content:center;gap:8px;transform:rotate(4deg)}.book-right small{font-size:10px;letter-spacing:.08em;color:#a57635}.book-right b{font:900 clamp(12px,3.8vw,20px)/1.05 Impact,Arial,sans-serif;color:#7e481c}.book-right span{color:#b87711;font-size:17px;white-space:nowrap}.atlas-side{position:absolute;top:14%;bottom:8%;display:flex;flex-direction:column;justify-content:space-around;width:44px;z-index:2}.atlas-side.left{left:0}.atlas-side.right{right:0}.atlas-side .side-badge{position:static!important;width:44px;height:55px;border:2px solid #4b99eb;border-radius:50% 50% 10px 10px;background:linear-gradient(#2c8be0,#1649a4);font-size:25px;padding:4px 0;box-shadow:inset 0 3px #78c9ff55,0 4px 0 #082a76;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.atlas-side .side-badge small{font-size:6px;letter-spacing:0;color:#e3efff;line-height:1.2}
#home .arena-select{padding:7px 10px;border:1px solid #72acdf77;border-radius:9px;background:#174d9c99;font-size:8px;min-height:29px}#home .arena-select span{font-size:8px;letter-spacing:.09em}#home .arena-select small{font-size:7px}.atlas-trophy-track{position:relative;height:27px;border:2px solid #d58b36;border-radius:15px;background:#683e29;box-shadow:inset 0 2px 4px #2e1f31,0 3px #092b6b;overflow:hidden;margin:0 12px}.atlas-trophy-track i{display:block;height:100%;width:0;background:linear-gradient(#ffc35a,#e88622)}.atlas-trophy-track span{position:absolute;inset:0;display:grid;place-items:center;font-size:14px;font-weight:900;text-shadow:0 2px #5c3624}
#home .battle-button{width:calc(100% - 64px);align-self:center;margin:4px 0 7px;min-height:78px;border:3px solid #c5ee53;border-radius:19px;background:linear-gradient(#b8e535,#8ac400 65%,#679600);color:#fffee5;font:900 36px/1 Impact,Arial,sans-serif;text-shadow:0 3px #699716;box-shadow:inset 0 4px #f0ff9699,0 8px 0 #365a02,0 12px 0 #2095b1,0 16px 15px #06195599;padding:10px 8px}.battle-button span{display:block;font:800 8px/1.4 Arial,sans-serif;letter-spacing:.12em;margin-top:6px;color:#f0ffc3}#home .battle-options{display:flex;justify-content:center;gap:9px;margin:4px 0 0}#home .battle-options button{background:#14499a;border:1px solid #69a4ed77;padding:8px 10px;border-radius:9px;font-size:8px;min-height:30px;color:#d6eaff}#home #pending-chest{font-size:11px;padding:10px;margin:0;border-radius:11px}.chest-vault{margin-top:8px}.vault-heading{display:flex;justify-content:space-between;align-items:center;margin:0 1px 8px}.vault-heading b{font-size:10px;letter-spacing:.1em}.vault-heading small{font-size:6px;color:#c2deff}#chest-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.chest-slot{position:relative;min-width:0;min-height:120px;padding:7px 3px 5px;border:1px solid #78aff26b;border-radius:12px;background:linear-gradient(#183c85bb,#0b2264ee);box-shadow:inset 0 2px #4b7cb633,0 4px 0 #092150;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px}.chest-slot .slot-tier{font-size:6px;color:#a9d0ff}.slot-chest{width:100%;height:auto;aspect-ratio:1.15;position:relative;z-index:1}.slot-chest:after{content:'';position:absolute;bottom:0;left:2%;right:2%;height:12px;background:linear-gradient(#ce683a,#771f3a);border-bottom:2px solid #e9b250;clip-path:polygon(10% 0,90% 0,100% 60%,50% 100%,0 60%);z-index:-1}.chest-slot b{font-size:10px;white-space:nowrap;color:#ffe68b}.chest-slot small{font-size:6px;color:#a9c7ee}.chest-slot.empty{border-style:dashed;opacity:.75;justify-content:center}.empty-slot-mark{font-size:35px;color:#5790d3;font-weight:400}.chest-slot.empty b{font-size:7px;color:#95bcec}.chest-slot.ready{border-color:#a8f350;box-shadow:0 0 13px #adff4944,inset 0 0 17px #a1f73722}.chest-slot.ready b{color:#beff6e}.chest-slot.unlocking{border-color:#f4cb70}.unlock-clock{display:block;font:900 36px Arial;color:#ffdc81;margin:12px;text-align:center}.won-chest{color:#afefff!important}


/* Scoped art geometry */
.chest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chest-card{display:grid;grid-template-columns:minmax(0,43%) minmax(0,57%);align-items:center;min-width:0;min-height:228px;padding:12px;overflow:hidden}.chest-card .chest-art{width:100%;height:190px;min-width:0;display:flex;align-items:center;justify-content:center;overflow:visible;background:none}.chest-card .chest-art .art-chest,.slot-chest .art-chest{position:relative;width:100%;max-width:220px;height:auto;aspect-ratio:250/215;margin:0;transform:none;flex:none}.chest-card .art-chest img,.slot-chest .art-chest img{position:absolute;display:block;min-width:0;max-width:none;object-fit:fill;margin:0;transform:none}.chest-card .art-chest .art-chest-base,.slot-chest .art-chest .art-chest-base{width:90%;height:60%;left:5%;bottom:4%;z-index:3}.chest-card .art-chest .art-chest-lid,.slot-chest .art-chest .art-chest-lid{width:90%;height:46%;left:5%;bottom:53.5%;z-index:2}.chest-duration{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);padding:4px 10px;border:1px solid #d5b77577;background:#071729cc;border-radius:8px;color:#ffe7b2;font-weight:900;font-size:12px;white-space:nowrap}.chest-copy{min-width:0;padding:13px 0 13px 12px}.chest-copy h2{font-size:clamp(18px,3.6vw,29px);overflow-wrap:break-word}.chest-copy .eyebrow{font-size:8px;letter-spacing:.08em}.chest-copy p{font-size:11px;line-height:1.5}.chest-copy .primary{font-size:11px;padding:12px 3px}.chest-copy .odds-link{font-size:8px;letter-spacing:.04em}.tier-card-3{border-color:#ff99dd77;background:radial-gradient(ellipse at 20% 30%,#70428c,#172037 70%)}
/* Hex cards */
.fighter-card{clip-path:polygon(50% 0,98% 13%,98% 87%,50% 100%,2% 87%,2% 13%);border:0!important;border-radius:0!important;padding:10px 6px 23px;background:linear-gradient(145deg,#efd485,#815528 20%,#264c75 22%,#102845 76%,#aa7334 79%,#f4d788)!important;isolation:isolate;min-height:0}.fighter-card:before{content:'';position:absolute;inset:4px;clip-path:inherit;background:linear-gradient(#2e7195,#182e55);z-index:-1}.fighter-card.selected:before{background:radial-gradient(at 50% 25%,#386eaf,#172441 75%)}.fighter-card.mythic-card:before{background:#623c86}.fighter-card .card-bottom{background:none;border:0;padding:0 2px 4px;text-align:center}.fighter-card .card-bottom strong{font-size:20px}.fighter-card .card-bottom small{font-size:8px;line-height:1.4}.fighter-card .pick-btn{top:19px;right:9px;width:26px;height:26px;font-size:18px;z-index:2}.fighter-card canvas{display:block;width:100%;height:auto;max-height:175px;object-fit:contain}.fighter-card.card-locked{filter:saturate(.48)}
#turn-cards{background:none!important;border:0!important;box-shadow:none!important;width:94%;top:32%;padding:3px;overflow:visible}#turn-card-title{font-size:10px;text-shadow:0 2px 5px #000;background:#102748bb;padding:5px;border-radius:7px;display:inline-block}#turn-card-list{gap:7px;align-items:center}.turn-card{clip-path:polygon(50% 0,97% 14%,97% 86%,50% 100%,3% 86%,3% 14%);border:0!important;border-radius:0!important;background:linear-gradient(#ffe785,#e89946 40%,#d95c40 65%,#ffe39b)!important;position:relative;padding:8px 5px 18px;max-width:115px;isolation:isolate;overflow:visible}.turn-card:before{content:'';position:absolute;inset:4px;clip-path:inherit;background:linear-gradient(#267f9e,#123957);z-index:-1}.turn-card canvas{height:auto;max-height:130px;width:100%}.turn-card b{font-size:11px}.turn-card small{font-size:7px;line-height:1.4}.turn-card i{width:72%;margin:auto}.turn-card:disabled{opacity:.5;filter:grayscale(.7)}.turn-card:disabled:after{content:'×';position:absolute;left:15%;right:15%;top:15%;font:bold 70px Arial;color:#ff4e40;text-shadow:0 2px #601a21;pointer-events:none}.turn-card.raging:before{background:linear-gradient(#714875,#c5542b)}#turn-cards.docked{width:80%;bottom:8px;top:auto;padding:0;transform:translateX(-50%)}#turn-cards.docked #turn-card-title{display:none}#turn-cards.docked .turn-card{display:block;max-width:68px;padding:3px 4px 11px}#turn-cards.docked .turn-card canvas{width:100%;height:49px}#turn-cards.docked .turn-card b{font-size:6px}#turn-cards.docked .turn-card small{font-size:5px;margin:1px 0}#turn-cards.docked .turn-card:disabled:after{font-size:40px;top:0}
/* Single centered viewport cell */
html.fight-locked #fight{position:fixed!important;inset:0!important;left:0!important;transform:none!important;margin:0!important;width:100%!important;max-width:none!important;min-height:0!important;height:var(--fight-height,100dvh)!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;gap:4px;padding:calc(6px + env(safe-area-inset-top)) 8px calc(6px + env(safe-area-inset-bottom))!important;background:radial-gradient(ellipse,#183757,#070d20 80%);overflow:hidden!important}#fight .match-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;margin:0;padding:0 3px;min-height:47px;text-align:center;width:100%;max-width:900px;justify-self:center}#fight .match-heading .back{padding:6px;font-size:8px}#fight .match-heading h2{font-size:clamp(15px,3vw,22px);line-height:1.1}#fight .fight-options{display:flex;gap:5px;flex-wrap:wrap;max-width:116px;justify-content:flex-end}#fight #round{display:none}#fight #arena-caption{font-size:6px;letter-spacing:.1em}#fight #match-timer{font-size:17px}#fight #star-score{font-size:8px}#fight .battle-layout{display:flex!important;flex:initial!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:0!important;width:100%!important;height:100%!important;min-height:0!important;min-width:0!important;padding:0!important;margin:0!important;overflow:hidden}#fight .side-hud{display:none!important}html.fight-locked #fight .arena-wrap{position:relative!important;order:initial!important;flex:none!important;width:var(--arena-width,315px)!important;height:var(--arena-height,500px)!important;max-width:none!important;max-height:none!important;min-height:0!important;aspect-ratio:630/1000;margin:0!important;padding:0!important;align-self:center!important;border-radius:18px;border:0;overflow:hidden;box-shadow:0 0 24px #0009}#fight #arena{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;margin:0;padding:0;touch-action:none}#fight .gesture-coach{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:center;gap:2px 5px;min-height:38px;width:100%;max-width:630px;justify-self:center;margin:0;padding:2px 4px;font-size:8px}#fight .gesture-coach #selected-name{font-size:8px}#fight .gesture-coach #gesture-hint{font-size:8px;white-space:normal}#fight .gesture-coach .pull-meter{height:4px;width:95%;grid-column:1/-1}#fight #charge-hint{font-size:7px;line-height:1.2;grid-column:1/-1;white-space:normal}
@media(max-width:700px){.chest-grid{grid-template-columns:1fr}.chest-card{min-height:205px;padding:9px}.chest-card .chest-art{height:172px}.chest-copy h2{font-size:22px}#roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.fighter-card .card-bottom strong{font-size:15px}.fighter-card .card-bottom small{font-size:6px}.fighter-card .pick-btn{width:21px;height:21px;font-size:14px;top:15px;right:7px}.fighter-card{padding:12px 4px 20px}.fighter-card .level-tag{display:block;font-size:7px}.chest-duration{font-size:10px}}
@media(max-width:360px){#home.atlas-lobby{padding-left:9px;padding-right:9px}.player-plaque b{font-size:11px}#home .currency{padding:7px 5px;min-width:42px;font-size:11px}.book-right b{font-size:11px}.atlas-side .side-badge{width:39px}.chest-slot{min-height:108px}.slot-tier{font-size:5px!important}.vault-heading small{font-size:5px}.turn-card b{font-size:9px}}
@media(max-height:520px) and (orientation:landscape){#fight .match-heading{min-height:36px}#fight .gesture-coach{min-height:27px}#fight #charge-hint{display:none}#turn-cards.docked .turn-card canvas{height:30px}#turn-cards .turn-card canvas{max-height:65px}}
@media(prefers-reduced-motion:reduce){.chest-slot,.turn-card,.atlas-book{animation:none!important;transition:none!important}}


.flying-fighter-card,.reward-card{clip-path:polygon(50% 0,98% 13%,98% 87%,50% 100%,2% 87%,2% 13%)}.reward-card{padding:20px 10px 24px}.flying-fighter-card{padding:12px 10px 20px}

/* V10: six relic sockets and signature heroes */
#lobby .showcase{overflow:hidden;background:radial-gradient(ellipse at 50% 28%,#247ed0 0,#163e7b 42%,#101c36 85%);border:1px solid #b1caff66}
#lobby .hero-orbit{display:none}#lobby .hero-number{opacity:.1;pointer-events:none}
.item-stage{position:relative;display:grid;grid-template-columns:74px minmax(0,1fr) 74px;align-items:center;min-height:340px;padding:38px 16px 0;isolation:isolate}
.item-center{position:relative;min-width:0;display:grid;place-items:center}
.item-center:before{content:"";position:absolute;inset:15% 7%;transform:rotate(45deg);border:2px solid #cce9ff66;background:linear-gradient(130deg,#9bd9ff70,#1b6bd444);box-shadow:0 0 38px #7cd2ff38;z-index:-1}
.item-center:after{content:"";position:absolute;bottom:1%;left:4%;right:4%;height:26px;border-radius:50%;background:linear-gradient(#dcc291,#604025);border:3px solid #e9d2a6;box-shadow:0 8px 0 #402f28;z-index:-1}
#lobby .showcase .item-stage canvas{position:relative;inset:auto;display:block;width:100%!important;height:auto!important;max-width:380px;aspect-ratio:1;z-index:1;margin:0;pointer-events:none}
.item-side{display:flex;flex-direction:column;align-items:center;gap:26px;z-index:3}
.relic-slot{display:flex;flex-direction:column;align-items:center;gap:13px;width:74px}.relic-slot small{font:700 8px Arial,sans-serif;letter-spacing:.5px;color:#dcf0ff;text-align:center}
.relic-diamond{width:48px;height:48px;padding:5px;transform:rotate(45deg);border:2px solid #f6d879;border-radius:9px;background:linear-gradient(135deg,#b6ecff,#42a4df 56%,#1761b3);box-shadow:inset 3px 3px 0 #ffffff60,0 5px 0 #155694,0 7px 14px #020e3780;cursor:pointer;transition:filter .15s,scale .15s}
.relic-diamond:hover,.relic-diamond:focus-visible{filter:brightness(1.25);scale:1.06;outline:2px solid white;outline-offset:4px}
.relic-diamond.filled{background:radial-gradient(circle,#203e66,var(--relic));border-color:#ffe7a1}
.relic-diamond>span{display:grid;place-items:center;width:100%;height:100%;transform:rotate(-45deg);font-size:28px;line-height:1;color:#e7faff}
.relic-diamond svg{width:48px;height:48px;filter:drop-shadow(0 2px 3px #0009)}
#item-left .relic-slot:nth-child(2){transform:translateX(-9px)}#item-right .relic-slot:nth-child(2){transform:translateX(9px)}
#lobby .hero-info{position:relative;padding:24px;z-index:4}.hero-ability{font-size:12px;line-height:1.65;color:#bee9ff;margin:12px 0}
#hero-trial{margin-top:10px;width:100%;font-size:13px;min-height:46px;background:linear-gradient(#9fddff,#4388d9);color:#102448;border-color:#c2edff;box-shadow:0 5px 0 #244773}
.relic-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.relic-card{min-width:0;padding:18px 12px;border-radius:17px;border:1px solid var(--relic);background:radial-gradient(ellipse at top,#315576,#111e31);text-align:center;box-shadow:inset 0 0 28px #020d2280}
.relic-card h3{font-size:18px;margin:8px 0;color:#fff2c4}.relic-card small{color:var(--relic);font-size:10px;letter-spacing:2px}.relic-card p{font-size:11px;min-height:28px;color:#dceeff}
.relic-card .primary{font-size:10px;min-height:42px;padding:8px;letter-spacing:.5px;width:100%;white-space:normal}
.relic-icon{margin:5px auto 12px;display:grid;place-items:center;width:86px;height:86px;border-radius:22px;background:radial-gradient(#faf0d329,#ffffff00);filter:drop-shadow(0 0 12px var(--relic))}.relic-icon svg{width:72px;height:72px}
.hero-no-gloves{grid-column:1/-1;border:1px solid #e6cb83;border-radius:18px;padding:28px;background:#142e48}.hero-no-gloves p{line-height:1.7}
.hpbar{height:4px!important}
@media(max-width:480px){.item-stage{grid-template-columns:56px minmax(0,1fr) 56px;min-height:270px;padding:36px 12px 0}.relic-slot{width:56px;gap:11px}.item-side{gap:20px}.relic-diamond{width:40px;height:40px}.relic-diamond svg{width:40px;height:40px}.relic-slot small{font-size:7px;letter-spacing:0}#lobby .hero-info{padding:18px}.relic-options{gap:8px}.relic-card{padding:14px 8px}.relic-card h3{font-size:15px}}
/* Championship */
#fight .battle-layout{display:flex!important;align-items:center!important;justify-content:center!important;min-height:0;width:100%;position:relative;overflow:visible!important;gap:0!important}#fight .arena-wrap{width:var(--arena-width)!important;height:var(--arena-height)!important;max-width:100%!important;max-height:100%!important;flex:none!important;margin:auto!important;overflow:visible!important;aspect-ratio:800/1260!important;background:none!important;box-shadow:none!important;border:0!important}#fight #arena{width:100%!important;height:100%!important;aspect-ratio:800/1260!important;object-fit:contain;display:block;border:0;touch-action:none}#fight .side-hud{display:none!important}#fight #turn-cards.docked{bottom:0!important}#fight .gesture-coach{flex:none;font-size:11px;min-height:65px;padding:8px 14px}#fight .match-heading{flex:none}#fight .match-heading h2{font-size:22px}#fight .round{font-size:10px}
body[data-page=home]{background:radial-gradient(ellipse at 50% 20%,#224d79 0,#12273f 45%,#09141f 100%);background-attachment:fixed}#home.atlas-lobby{max-width:740px;margin:auto;padding:18px 20px 120px;background:none!important}.club-bar{gap:8px}.player-plaque{border:1px solid #8d7953!important;background:linear-gradient(130deg,#284258,#122639)!important;box-shadow:inset 0 1px #f4d48d55,0 6px 14px #0003!important}.player-plaque .rank-shield{background:#d4ad62;color:#1b3146;clip-path:polygon(50% 0,100% 20%,90% 75%,50% 100%,10% 75%,0 20%);padding:8px}.rank-shield svg{width:28px;height:28px}.club-bar .currency{font-size:14px!important;border-radius:12px!important;background:#152d43!important;box-shadow:inset 0 1px #d3bb8544!important}.atlas-season{background:linear-gradient(90deg,#203d57,#142b40)!important;border:1px solid #a38a584d!important;border-radius:14px!important;margin:12px 0!important;box-shadow:none!important}.season-medal{color:#f4cf83!important;font:900 27px Georgia!important;background:none!important;box-shadow:none!important}.atlas-season small{color:#b8cee1!important}.atlas-season b{color:#fbe3b1!important}.season-progress{background:#091e31!important}.season-progress i{background:linear-gradient(90deg,#e1a945,#ffe3a3)!important}
.captain-scene{height:275px;position:relative;border:1px solid #58768d;border-radius:24px 24px 8px 8px;overflow:hidden;background:radial-gradient(ellipse at 65% 30%,#456b80,#162d45 65%);box-shadow:inset 0 0 45px #020b17aa,0 15px 40px #0005}.captain-scene:before{content:'';position:absolute;inset:-60px;background:repeating-conic-gradient(from 5deg at 65% 0,#d3edff0d 0deg 8deg,transparent 8deg 30deg);pointer-events:none}.captain-heading{position:absolute;top:25px;left:22px;z-index:2}.captain-heading small{color:#bbcddd;font-size:8px;letter-spacing:2px}.captain-heading h2{font-size:36px;line-height:1.06;color:#fff2ce;margin:10px 0}.captain-heading>b{font:700 9px Arial;letter-spacing:2px;color:#f2c66e}.captain-scene canvas{position:absolute;right:-10%;bottom:-10px;width:90%;height:100%;object-fit:contain}.ring-ropes{position:absolute;bottom:15px;left:0;right:0;height:35px;border-top:2px solid #a69681;border-bottom:3px solid #a69681;box-shadow:0 10px 0 #12263a;opacity:.45;pointer-events:none}
#home .atlas-stage{min-height:250px!important;height:250px!important;margin:8px 0 0!important;overflow:visible!important;border:1px solid #8d795366!important;border-radius:8px 8px 20px 20px!important;background:linear-gradient(#122a40,#0f2436)!important;box-shadow:0 14px 26px #0003!important}#home .atlas-book{width:72%!important;max-width:460px!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;height:230px!important}#home .atlas-side{top:12px!important;bottom:12px!important;justify-content:space-around!important;width:60px!important}.atlas-side.left{left:8px!important}.atlas-side.right{right:8px!important}#home .side-badge{background:linear-gradient(#30495d,#142d43)!important;border:1px solid #a68d5b77!important;border-radius:12px!important;box-shadow:inset 0 1px #ffffff22,0 3px 0 #061421!important;width:52px!important;height:58px!important;padding:7px 4px!important;color:#d9bb7e!important;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.side-badge svg{width:24px;height:24px}.side-badge small{font:700 7px Arial!important;letter-spacing:.6px!important;color:#d8e4ed!important}.book-right b{font-size:20px!important;line-height:1.1}.book-right small,.book-right span,.book-left small{font-size:8px!important}.book-right{padding:0 9px!important}.chapter-prize{font:700 10px/1.5 Arial;text-align:center;color:#e3c899;padding:13px 5px;letter-spacing:.5px}.atlas-trophy-track{margin:8px 0 14px!important;height:24px!important;background:#091e30!important;border:1px solid #506882!important;box-shadow:none!important}.atlas-trophy-track span{font:700 10px Arial!important;letter-spacing:1px}.atlas-trophy-track i{background:linear-gradient(90deg,#547d98,#bca16c)!important}
#home .battle-button{background:linear-gradient(#ffd883,#d59d42)!important;color:#192735!important;min-height:76px!important;margin:0!important;border-radius:16px!important;border:1px solid #ffe9ad!important;box-shadow:inset 0 2px #fff2c0,0 6px 0 #825926,0 10px 22px #0004!important;font-size:32px!important}#home .battle-button span{font-size:10px!important;letter-spacing:2px!important}.cup-button{margin:17px 0 8px;width:100%;display:flex;align-items:center;justify-content:space-between;padding:18px;border:1px solid #c7a46c;border-radius:15px;background:linear-gradient(130deg,#552842,#222b49);color:#ffe4b5;box-shadow:inset 0 1px #ffc86b55,0 5px 0 #101b30;cursor:pointer}.cup-button>span{font-weight:900;font-size:23px}.cup-button small{display:block;font:700 8px Arial;letter-spacing:2px;margin-top:4px}.cup-button>b{max-width:48%;font:700 9px/1.5 Arial;text-align:right;color:#d2e4ee}
#home .chest-vault{padding:18px 10px!important;border:1px solid #5f7185!important;background:#102638!important;border-radius:18px!important}.chest-slot{background:linear-gradient(#294155,#132a3b)!important;border:1px solid #72879966!important;box-shadow:inset 0 1px #d6e3ef22!important}.chest-slot.ready{border-color:#efc77c!important}.slot-tier{font-size:8px!important}.vault-heading{font-size:12px!important}.vault-heading small{font-size:8px!important}.arena-select{display:none!important}.battle-options button{border:0!important;background:transparent!important;color:#a7bfd0!important;font-size:10px!important}
.bottom-nav{background:linear-gradient(#2b4358,#112638)!important;border:1px solid #678095!important;box-shadow:0 -4px 30px #0005,inset 0 1px #d9e2e855!important;border-radius:22px 22px 0 0!important;min-height:74px!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important}.bottom-nav .nav-art{width:32px!important;height:32px!important;filter:none!important;display:block;margin:auto}.nav-art svg{width:100%;height:100%}.bottom-nav button{color:#849bad!important;background:none!important;border:0!important;padding:7px!important}.bottom-nav button.active{color:#ffe3a0!important;background:linear-gradient(#e7c78722,#e7c78705)!important;box-shadow:inset 0 3px #e5ba69!important;border-radius:10px!important}.bottom-nav small{font-size:8px!important;letter-spacing:1px!important;margin-top:5px!important}.chapter-tabs{display:flex;gap:8px;overflow:auto;margin:20px 0}.chapter-tabs button{padding:12px 16px;border:1px solid #6c8498;border-radius:10px;color:#d7e5ef;background:#203b53}.chapter-tabs button.active{background:#d5ad65;color:#152538}.league-row{display:flex;justify-content:space-between;border-bottom:1px solid #435d75;padding:16px}.league-row.current{background:#d8b86622;color:#f2cf8a}.challenge-rewards{border:1px solid #91744b;border-radius:15px;background:#182e43;padding:10px 18px}.challenge-rewards p{font-size:12px}#friend-code{width:100%;padding:16px;border-radius:12px;font:700 20px monospace;background:#0d2235;color:#f4d693;border:1px solid #a38c5d;margin-bottom:16px}
@media(min-width:760px){.captain-scene{height:330px}.captain-heading h2{font-size:48px}.captain-scene canvas{width:80%}#home .atlas-stage{height:300px!important}#home .atlas-book{height:280px!important}.atlas-side.left{left:30px!important}.atlas-side.right{right:30px!important}}@media(max-width:380px){#home.atlas-lobby{padding-left:10px;padding-right:10px}.captain-heading h2{font-size:29px}.captain-scene{height:245px}#home .atlas-stage{height:230px!important}.book-right b{font-size:16px!important}.cup-button>span{font-size:21px}}
html{background:#09141f!important;min-height:100%}body{min-height:100vh}#home .atlas-book{position:absolute!important}.book-right b{font-size:16px!important}.book-right{gap:5px!important;padding:0!important}.book-right span{white-space:normal!important;font-size:8px!important}.book-left small{font-size:6px!important}
/* One correctly assembled chest. The lid overlaps the open cavity until clicked. */
.art-chest{width:250px;height:215px;overflow:visible!important;transform-style:preserve-3d}
.art-chest img{width:90%!important;left:5%!important;height:auto!important;object-fit:contain!important}
.art-chest-base{bottom:4%!important;z-index:3!important}
.art-chest-lid{bottom:37%!important;z-index:4!important;transform:translateZ(1px);transform-origin:50% 18%!important;transition:transform .85s cubic-bezier(.15,.7,.2,1),filter .8s!important}
.art-chest:not(.is-open) .chest-magic{opacity:0!important}
.is-open.art-chest .art-chest-lid,.is-open .art-chest .art-chest-lid{transform:translateY(-16%) rotateX(-108deg)!important;filter:brightness(1.16)!important}
.chest-art{overflow:visible!important;display:flex!important;align-items:center!important;justify-content:center!important}
.chest-art .art-chest{transform:none!important;width:min(100%,250px)!important;aspect-ratio:250/215;height:auto!important;margin:auto!important}
.chest-slot.ready .art-chest-lid{transform:translateZ(1px)!important}.chest-slot.ready{box-shadow:inset 0 0 12px #ffc96a55}
.rarity-filters{display:flex;gap:6px;overflow-x:auto;padding:8px 0 14px}.rarity-filters button{white-space:nowrap;padding:10px;border-radius:8px;border:1px solid #4a6579;background:#172f42;color:#c6d7e6;font-size:11px}.rarity-filters button.active{background:#e8c98b;color:#152538;border-color:#fce6b3}
.fighter-card[data-rarity]{border-color:var(--rarity)!important}.fighter-card[hidden]{display:none!important}
/* V13 Champions Club: one scene, one primary action, a compact reward vault. */
html.home-locked,html.home-locked body{height:var(--app-height,100dvh)!important;min-height:0!important;overflow:hidden!important;overscroll-behavior:none}
body[data-page=home]{background:radial-gradient(ellipse at 50% 20%,#263d50,#09121e 78%)!important}body[data-page=home]>.top,body[data-page=home]>footer{display:none!important}
#home.rr-club:not([hidden]){position:fixed!important;inset:0!important;display:grid!important;grid-template-rows:54px minmax(90px,1fr) 98px 60px 124px;gap:10px;width:min(100%,600px)!important;max-width:600px!important;height:var(--app-height,100dvh)!important;min-height:0!important;margin:auto!important;padding:12px 14px calc(86px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;overflow:hidden!important;background:none!important}
#home.rr-club>*{min-width:0;min-height:0;margin:0!important}#home .rr-compat{display:none!important}
.rr-profile{display:flex;align-items:center;gap:8px;padding:0 1px}
#home .rr-profile .player-plaque{flex:1;display:flex;align-items:center;gap:10px;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;min-width:0}
#home .rr-profile .rank-shield{width:40px!important;height:44px!important;min-width:40px;display:grid;place-items:center;background:linear-gradient(145deg,#ffe3a2,#967044)!important;border:0!important;clip-path:polygon(50% 0,98% 24%,90% 76%,50% 100%,10% 76%,2% 24%);color:#243344!important;padding:9px!important;box-sizing:border-box}
#home .rr-profile .rank-shield svg{width:24px;height:24px}
#home .rr-profile #atlas-player{font:800 20px/1.1 Arial,sans-serif!important;color:#fbf0d5!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#home .rr-profile #career-caption{display:block;font:700 8px/1.3 Arial,sans-serif!important;letter-spacing:1.7px;color:#a8b6c5!important;margin-top:6px}
#home .rr-profile .currency{min-width:54px;height:35px!important;border:1px solid #7390a03b!important;border-radius:10px!important;background:#182737!important;box-shadow:inset 0 1px #e6edf51a!important;font:800 14px Arial!important;color:#f8d68b!important;padding:7px 10px!important;white-space:nowrap}
.rr-scene{position:relative;isolation:isolate;overflow:hidden;border-radius:22px;border:1px solid #a9916259;background-image:linear-gradient(180deg,#0a172eb3,transparent 45%,#111d27 99%),var(--club-room);background-size:cover;background-position:center 62%;box-shadow:inset 0 1px #f5dda630,0 14px 30px #0004}
.rr-scene:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#07142455,transparent 30% 70%,#07142455);z-index:1}
.rr-scene-head{position:absolute;top:17px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;z-index:5;pointer-events:none}
.rr-kicker{color:#d6b774;font:800 8px Arial;letter-spacing:3px}.rr-scene-head h1{font:800 clamp(16px,3vw,22px)/1.2 Arial,sans-serif!important;letter-spacing:.3px;margin:5px 0 0!important;color:#f8eed7!important}
.rr-league{font:700 9px Arial;letter-spacing:1px;border:1px solid #d3b8796b;padding:7px;border-radius:20px;color:#f6d79b;background:#172636b3}
.rr-tools{position:absolute;right:10px;top:82px;z-index:7;display:flex;flex-direction:column;gap:9px}
#home .rr-tool{width:38px;height:38px;min-height:0;padding:8px;border-radius:12px;border:1px solid #dfca9233;background:linear-gradient(145deg,#304353ed,#122332ed);box-shadow:inset 0 1px #fff2,0 3px 8px #0004;color:#f3d69d;display:grid;place-items:center}
.rr-tool svg{width:23px;height:23px}.rr-tool span{display:none}
.rr-stage-light{position:absolute;left:17%;right:17%;top:14%;bottom:10%;background:radial-gradient(ellipse at 50% 30%,#fae9b22e,transparent 70%);pointer-events:none}
.rr-podium{position:absolute;left:9%;right:9%;bottom:57px;height:27px;transform:perspective(200px) rotateX(26deg);border-radius:50%;border:1px solid #bdab7f79;background:linear-gradient(#3d4f5c,#102437);box-shadow:0 8px 0 #0a1724,0 10px 0 #95784850,0 17px 21px #0008;z-index:2}
#home #club-captain{position:absolute!important;left:50%!important;bottom:50px!important;transform:translateX(-50%)!important;width:100%!important;height:calc(100% - 106px)!important;max-height:400px!important;object-fit:contain!important;object-position:center bottom!important;z-index:3;pointer-events:none}
.rr-team-labels{position:absolute;left:11%;right:11%;bottom:32px;display:flex;justify-content:space-around;gap:5px;z-index:6}
.rr-team-labels button{border:0;background:linear-gradient(#122333dd,#10202eaa);border-top:1px solid #debc6e66;border-radius:5px;padding:5px 4px;flex:1;max-width:110px;color:#f7e7bf;line-height:1}
.rr-team-labels b{font:800 10px Arial;display:block;letter-spacing:.7px}.rr-team-labels span{font:700 7px Arial;color:#a2bdc8;display:block;margin-top:3px}
#home .rr-edit{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);border:0;background:none;color:#c6d4dd;font:800 8px Arial;letter-spacing:1.5px;padding:4px 14px;z-index:6}.rr-edit span{color:#e9cd94}
.rr-route{position:relative;border-radius:15px;background:linear-gradient(125deg,#263949,#172535);border:1px solid #abc2cb2e;box-shadow:inset 0 1px #e8f6ff0f;overflow:hidden}
#home .rr-route-button{display:flex!important;align-items:center;gap:12px;width:100%!important;height:71px!important;border:0!important;border-radius:0!important;background:none!important;color:#f0e5cd;padding:9px 12px!important;position:static!important;transform:none!important;box-shadow:none!important;text-align:left}
.rr-route-thumb{width:68px;height:49px;flex:none;border-radius:8px;overflow:hidden;border:1px solid #c5a77377;transform:rotate(-3deg);box-shadow:0 3px 5px #0005}
#home #book-arena{width:100%!important;height:100%!important;object-fit:cover!important;display:block;border:0!important;position:static!important;transform:none!important}
.rr-route-copy{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.rr-route-copy #book-stage{font:800 8px Arial;color:#a9becb;letter-spacing:1.8px}.rr-route-copy #book-title{font:800 16px/1 Arial;color:#f9e5b7;letter-spacing:.5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.rr-route-copy #book-stars{font:700 8px Arial;color:#a9becb;letter-spacing:1px}.rr-route-arrow{font:300 30px Arial;color:#e0c594}
.rr-route-track{height:3px;position:absolute;bottom:24px;left:12px;right:12px;background:#081523;border-radius:4px;overflow:hidden}.rr-route-track i{display:block;height:100%;background:linear-gradient(90deg,#ca9e51,#ffe2a6);border-radius:4px;transition:width .4s}
#home .rr-route #chapter-prize{display:block!important;position:absolute;bottom:0;left:0;right:0;height:22px;padding:5px 12px!important;margin:0!important;box-sizing:border-box;border:0!important;background:none!important;box-shadow:none!important;font:700 8px/12px Arial!important;letter-spacing:.5px!important;color:#afbfcc!important;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rr-actions{display:grid;grid-template-columns:1.45fr 1fr;gap:10px;padding-bottom:4px}
#home .rr-battle{width:100%!important;min-height:0!important;height:56px!important;padding:7px!important;margin:0!important;border:1px solid #ffe5ac!important;border-radius:13px!important;background:linear-gradient(#ffdda0,#deb66b 65%,#c79343)!important;box-shadow:inset 0 2px #fff6,0 4px 0 #775329,0 7px 10px #0003!important;color:#182532!important;font:900 26px/1 Arial!important;letter-spacing:1.5px!important;text-shadow:0 1px #fff5!important}
#home .rr-battle #campaign-cta{display:block!important;font:800 8px/1 Arial!important;letter-spacing:2px!important;color:#5c482c!important;margin-top:5px!important}
#home .rr-cup{height:56px!important;min-height:0!important;padding:8px!important;margin:0!important;border-radius:13px!important;border:1px solid #b494d26b!important;background:linear-gradient(125deg,#534168,#24293f)!important;box-shadow:inset 0 1px #f5d8ff22,0 4px #131b2c!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;text-align:center}
#home .rr-cup>span{font:900 17px/1 Arial!important;letter-spacing:.8px;color:#f3e3ff}.rr-cup small{display:none!important}#home .rr-cup #challenge-state{font:700 6px Arial!important;letter-spacing:.2px;color:#c8bada!important;max-width:100%;overflow:hidden;white-space:nowrap}
.rr-vault{border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:0!important;height:124px!important;position:relative}
.rr-vault .vault-heading{height:20px;display:flex;justify-content:space-between;align-items:center;margin:0 2px 6px!important}.rr-vault .vault-heading b{font:800 10px Arial!important;letter-spacing:1.5px;color:#d9e5ea}.rr-vault .vault-heading small{font:700 6px Arial!important;letter-spacing:.5px;color:#839cab}
#home .rr-vault #chest-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;height:94px}
#home .rr-vault .chest-slot{height:94px!important;min-height:0!important;padding:4px!important;border:1px solid #71899530!important;border-radius:12px!important;background:linear-gradient(155deg,#223543,#101f2d)!important;box-shadow:inset 0 1px #ffffff12!important;overflow:hidden;position:relative}
#home .rr-vault .chest-slot.empty{border-style:dashed!important;background:linear-gradient(#1b2c38aa,#10202ccc)!important;color:#708492!important}
#home .rr-vault .empty-slot-mark{display:block!important;height:46px!important;margin:0 auto 4px!important;line-height:1!important;font-size:0!important;opacity:.5}.empty-slot-mark svg{width:50px;height:46px}
#home .rr-vault .chest-slot>b{font:700 8px Arial!important;letter-spacing:1px;display:block}#home .rr-vault .chest-slot>small{display:block;font:700 6px Arial!important;margin-top:3px!important;letter-spacing:.3px;color:#75919e}
#home .rr-vault .slot-tier{font:700 6px Arial!important;letter-spacing:.7px}#home .rr-vault .slot-chest{height:51px!important;margin:0!important;display:grid;place-items:center}#home .rr-vault .slot-chest .art-chest{width:75px!important;height:65px!important;margin:0!important;transform:scale(.83)!important}#home .rr-vault .slot-state{font:800 9px Arial!important;letter-spacing:.5px}#home .rr-vault .slot-hint{font:700 6px Arial!important}
#home .rr-reward-rail{position:absolute;left:25px;right:25px;bottom:calc(220px + env(safe-area-inset-bottom));z-index:10;display:flex;flex-direction:column;gap:5px;pointer-events:none}.rr-reward-rail>button:not([hidden]){pointer-events:auto;min-height:36px!important;padding:7px!important;font:800 11px Arial!important;border-radius:9px!important;box-shadow:0 4px 20px #0009!important}
body[data-page=home] .bottom-nav{position:fixed!important;bottom:0!important;left:50%!important;transform:translateX(-50%)!important;width:min(100%,600px)!important;max-width:600px!important;min-height:70px!important;padding:7px 8px calc(8px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;border-radius:20px 20px 0 0!important;border:1px solid #8dabb833!important;background:linear-gradient(#233644,#101d2b)!important;box-shadow:0 -4px 20px #0004!important;z-index:30}
body[data-page=home] .bottom-nav button{padding:5px!important;border-radius:10px!important}body[data-page=home] .bottom-nav .nav-art{width:25px!important;height:25px!important}body[data-page=home] .bottom-nav small{font:700 7px Arial!important;letter-spacing:.6px!important;margin-top:5px!important}body[data-page=home] .bottom-nav button.active{box-shadow:none!important;border:1px solid #d5b16e55!important;background:linear-gradient(#d2b27522,#d2b27508)!important}
@media(max-height:700px) and (max-width:739px){#home.rr-club:not([hidden]){grid-template-rows:43px minmax(90px,1fr) 83px 52px 99px;gap:7px;padding:6px 10px 76px!important}.rr-scene-head{top:10px;left:12px;right:12px}.rr-scene-head h1{font-size:14px!important;margin-top:3px!important}.rr-kicker{font-size:6px}.rr-tools{top:60px;gap:5px;right:7px}#home .rr-tool{width:28px;height:28px;padding:5px;border-radius:8px}.rr-tool svg{width:18px;height:18px}#home #club-captain{bottom:40px!important;height:calc(100% - 80px)!important}.rr-podium{bottom:45px}.rr-team-labels{bottom:26px}.rr-team-labels b{font-size:8px}.rr-team-labels span{font-size:6px}.rr-edit{font-size:6px!important;bottom:4px!important}.rr-route-thumb{height:40px;width:57px}#home .rr-route-button{height:57px!important;padding:7px 10px!important}.rr-route-copy{gap:3px}.rr-route-copy #book-title{font-size:13px}.rr-route-copy #book-stars,.rr-route-copy #book-stage{font-size:7px}#home .rr-battle,#home .rr-cup{height:48px!important}#home .rr-battle{font-size:23px!important}.rr-vault{height:99px!important}.rr-vault .vault-heading{height:16px;margin-bottom:3px!important}#home .rr-vault #chest-dock,#home .rr-vault .chest-slot{height:78px!important}#home .rr-vault .empty-slot-mark{height:35px!important;margin-bottom:2px!important}.empty-slot-mark svg{height:35px}#home .rr-vault .slot-chest{height:36px!important}#home .rr-vault .slot-chest .art-chest{transform:scale(.65)!important}#home .rr-reward-rail{bottom:183px}}
@media(min-width:740px) and (max-height:650px){#home.rr-club:not([hidden]){max-width:1000px!important;width:min(100%,1000px)!important;grid-template-columns:1.1fr 1fr;grid-template-rows:42px 84px 55px minmax(85px,1fr);gap:8px 16px;padding:7px 16px 76px!important}.rr-profile{grid-column:1/3}.rr-scene{grid-column:1;grid-row:2/5}.rr-route{grid-column:2;grid-row:2}.rr-actions{grid-column:2;grid-row:3}.rr-vault{grid-column:2;grid-row:4;height:auto!important}#home .rr-route-button{height:58px!important}.rr-route-thumb{height:41px}.rr-scene-head{top:10px}.rr-scene-head h1{font-size:16px!important}.rr-tools{top:65px}#home #club-captain{height:calc(100% - 90px)!important;bottom:40px!important}.rr-team-labels{bottom:24px}.rr-podium{bottom:43px}.rr-edit{bottom:3px!important}#home .rr-vault #chest-dock,#home .rr-vault .chest-slot{height:77px!important}.rr-vault .vault-heading{height:14px;margin-bottom:3px!important}#home .rr-vault .empty-slot-mark{height:32px!important}.empty-slot-mark svg{height:34px}#home .rr-vault .slot-chest{height:35px!important}#home .rr-reward-rail{left:55%;bottom:175px}}
@media(max-height:600px) and (max-width:739px){#home.rr-club:not([hidden]){grid-template-rows:40px minmax(90px,1fr) 75px 48px 91px;gap:5px;padding-top:5px!important}.rr-kicker{display:none}.rr-scene-head{top:9px}.rr-scene-head h1{font-size:12px!important}.rr-league{font-size:7px;padding:5px}#home #club-captain{bottom:35px!important;height:calc(100% - 66px)!important}.rr-tools{top:42px;gap:4px}.rr-podium{bottom:37px}.rr-team-labels{bottom:20px}.rr-team-labels button{padding:3px}.rr-team-labels span{margin-top:2px}#home .rr-route-button{height:51px!important}.rr-route-copy #book-title{font-size:12px}.rr-route-thumb{height:35px}.rr-vault{height:91px!important}#home .rr-vault #chest-dock,#home .rr-vault .chest-slot{height:71px!important}#home .rr-vault .empty-slot-mark{height:31px!important}.empty-slot-mark svg{height:31px}#home .rr-vault .slot-chest{height:31px!important}.rr-vault .vault-heading b{font-size:8px!important}.rr-vault .vault-heading small{font-size:5px!important}#home .rr-battle,#home .rr-cup{height:44px!important}#home .rr-profile #atlas-player{font-size:16px!important}#home .rr-profile .rank-shield{width:34px!important;min-width:34px;height:38px!important}#home .rr-profile .currency{min-width:47px;padding:5px 7px!important;font-size:12px!important}}

/* V16: explicit three-slot main team, touch-sized swap picker. */
.main-deck{border:1px solid #8d774d;border-radius:20px;padding:16px;background:linear-gradient(135deg,#254859,#112332 65%);box-shadow:0 10px 30px #0005;margin-bottom:24px}
.deck-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.deck-heading small{color:#e6c98b;font-size:10px;letter-spacing:2px}.deck-heading h2{font-size:28px;margin-top:4px}.deck-heading>span{color:#b4cad4;font-size:12px;text-align:right}
#main-deck-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.main-deck-slot{position:relative;min-width:0;min-height:190px;padding:0 8px 12px;overflow:hidden;border:1px solid var(--rarity,#71818e);border-radius:14px;background:radial-gradient(ellipse at 50% 30%,#49616b,#152839 72%);box-shadow:inset 0 -5px #071824}
.main-deck-slot canvas{display:block;width:100%;height:135px;object-fit:contain;margin:0 auto}.main-deck-slot b,.main-deck-slot small,.main-deck-slot em{display:block}.main-deck-slot b{font-size:17px}.main-deck-slot small{font-size:10px;color:#b9ccd6;margin-top:4px}.main-deck-slot em{font-size:10px;color:#ffdb91;margin-top:8px;letter-spacing:1px}.deck-empty{display:block;font-size:55px;margin:35px 0;color:#b5c5ca}
.deck-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:58dvh;overflow:auto;padding:5px;overscroll-behavior:contain}
.deck-choice{min-width:0;padding:6px 3px 12px;border:1px solid #455c6c;border-radius:12px;background:#183044}.deck-choice.current{border:2px solid #f7cb6a;background:#35454c}.deck-choice canvas{width:100%;height:105px;object-fit:contain}.deck-choice b,.deck-choice small{display:block}.deck-choice b{font-size:12px}.deck-choice small{font-size:9px;margin-top:5px;color:#bacbd4}
@media(max-width:600px){.main-deck{padding:12px;margin-bottom:18px}.deck-heading h2{font-size:23px}.deck-heading>span{font-size:10px;max-width:130px}#main-deck-slots{gap:7px}.main-deck-slot{min-height:157px;padding:0 3px 10px}.main-deck-slot canvas{height:98px}.main-deck-slot b{font-size:13px}.main-deck-slot small{font-size:8px}.main-deck-slot em{font-size:8px}.deck-choice canvas{height:90px}}
/* V21 character studio uses a fixed viewport and the actual combat geometry. */
#character-studio{padding:18px;box-sizing:border-box;width:min(96vw,850px);height:min(94dvh,850px);max-height:94dvh;overflow:hidden;background:radial-gradient(ellipse at 50% 33%,#294553,#101d2b 70%);border:1px solid #ab925e;border-radius:22px;color:#f2ead5;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:10px}
#character-studio[open]{display:grid}#character-studio::backdrop{background:#030a13dd}.studio21-header{display:flex;align-items:center;justify-content:space-between}.studio21-header small{font-size:10px;letter-spacing:2px;color:#b3c7cd}.studio21-header h2{margin:2px 0;font-size:30px}.studio21-header button{width:40px;height:40px;border-radius:50%;font-size:25px}.studio21-stage{position:relative;min-height:0;border-radius:14px;overflow:hidden;border:1px solid #a68b462c;background:radial-gradient(ellipse at center,#39566533,transparent)}#studio21-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.studio21-reference{position:absolute;right:6px;top:8px;width:24%;max-width:130px;pointer-events:none;display:grid;justify-items:center;background:linear-gradient(#152a3999,#10213233);border:1px solid #a1b8c522;border-radius:9px}.studio21-reference canvas{width:100%;height:auto}.studio21-reference small{font-size:8px;letter-spacing:1px;padding-bottom:6px;color:#bdced1}.studio21-hint{position:absolute;bottom:8px;left:0;right:0;pointer-events:none;text-align:center;font-size:9px;letter-spacing:1px;color:#b6c7c9}.studio21-controls{display:grid;grid-template-columns:44px 1fr 44px;gap:8px}.studio21-controls select{background:#163141;border:1px solid #597383;border-radius:9px;color:#f1e7cc;font-size:16px;font-weight:bold;text-align:center;padding:10px}.studio21-controls button,.studio21-tools button,.studio21-header button{border:1px solid #637d8a;background:linear-gradient(#2a4658,#142b3c);color:#f4ddb0;font-weight:bold;cursor:pointer;min-height:40px}.studio21-controls button{font-size:26px;border-radius:9px}.studio21-tools{display:flex;gap:6px}.studio21-tools button{flex:1;font-size:10px;padding:8px 3px;border-radius:8px}.studio21-tools #studio21-attack{background:linear-gradient(#f2cf7a,#b48a37);color:#182530;border-color:#f4d98c}#studio21-caption{font-size:11px;text-align:center;margin:0;color:#acbec6}#inspect-3d21{min-height:38px}@media(max-height:650px){#character-studio{padding:10px;gap:5px}.studio21-header h2{font-size:24px}.studio21-controls select{padding:6px}.studio21-reference{max-width:80px}.studio21-hint{display:none}}

/* V22 — championship lobby: bounded composition, real art and a legible hierarchy. */
body[data-page=home]{background:radial-gradient(ellipse at 50% 12%,#245277 0,#102c46 42%,#071625 85%)}
#home.rr-club:not([hidden]){grid-template-rows:54px minmax(120px,1fr) 104px 66px 119px;gap:10px;padding:12px 14px calc(92px + env(safe-area-inset-bottom))!important;max-width:620px!important;width:min(100%,620px)!important;background:radial-gradient(ellipse at 50% 20%,#3579a21d,transparent 60%)}
#home .rr-profile{padding:2px 0;gap:8px;border:0!important;background:none!important;box-shadow:none!important}
#home .rr-profile .rank-shield{filter:drop-shadow(0 3px 0 #6f5026) drop-shadow(0 4px 8px #010c18);background:linear-gradient(140deg,#ffebad,#bc8a3c)!important}
#home .rr-profile #atlas-player{font-size:22px!important;letter-spacing:.3px}
#home .rr-profile #career-caption{font:700 8px Arial!important;letter-spacing:1.1px!important;color:#a8c3d9!important}
#home .rr-profile .currency{border:1px solid #6f96ad7d!important;background:linear-gradient(#203c54,#0f273e)!important;border-radius:13px!important;box-shadow:inset 0 1px #fff2,0 3px #071422!important;min-width:52px;padding:9px!important;font-size:16px!important}
#home .rr-scene{border-radius:20px;border:1px solid #c7a76c88;background-image:linear-gradient(180deg,#06172ae8 0%,#071a3350 28%,#14284018 65%,#071826ed 100%),var(--club-room);background-position:center 39%;box-shadow:inset 0 0 0 3px #264c612e,inset 0 1px #ffdea884,0 8px 20px #020d1955}
#home .rr-scene:before{content:'';position:absolute;inset:3px;border:1px solid #dcbd7440;border-radius:17px;z-index:4;pointer-events:none;clip-path:polygon(0 0,25% 0,25% 1%,1% 1%,1% 20%,0 20%,0 100%,20% 100%,20% 99%,1% 99%,1% 80%,0 80%,100% 80%,99% 80%,99% 99%,80% 99%,80% 100%,100% 100%,100% 0,80% 0,80% 1%,99% 1%,99% 20%,100% 20%)}
#home .rr-scene-head{top:17px;left:17px;right:14px;align-items:flex-start}.rr-scene-head h1 em{font-style:normal;color:#f6d28a}
#home .rr-scene-head h1{font:900 clamp(23px,5.8vw,31px)/.99 Arial,sans-serif!important;letter-spacing:-.8px;margin-top:7px!important;text-shadow:0 3px #08121dc9}
#home .rr-kicker{font:700 7px Arial;letter-spacing:2.3px;color:#b7cbde}
#home .rr-league{margin-top:3px;border:1px solid #b6985ba1;border-radius:7px;background:linear-gradient(145deg,#a27c333b,#172c46c9);font:800 9px Arial;padding:7px 8px;white-space:nowrap;box-shadow:inset 0 1px #ffe8a71c}
#home .rr-tools{right:10px;top:77px;gap:6px}#home .rr-tool{width:42px;height:42px;border-radius:10px;padding:5px 2px;gap:2px;background:linear-gradient(145deg,#38586eea,#142c43f2);border:1px solid #d4c0875c;box-shadow:inset 0 1px #f5e1ab44,0 3px #081526a8;color:#f4d7a0}
#home .rr-tool svg{width:20px;height:20px}#home .rr-tool span{display:block;font:700 6px Arial;text-transform:uppercase;letter-spacing:.4px}
#home .rr-stage-light{inset:12% 10% 11%;background:radial-gradient(ellipse at 50% 5%,#d4e9fb36,transparent 55%),radial-gradient(ellipse at 50% 95%,#dcad554d,transparent 55%)}
#home #club-captain{bottom:44px!important;height:calc(100% - 108px)!important;max-height:470px!important;width:100%!important;filter:drop-shadow(0 5px 5px #00142599)}
#home .rr-podium{left:7%;right:7%;bottom:52px;height:25px;border:1px solid #e2c0829c;background:linear-gradient(#4c6579,#142d46);box-shadow:0 5px 0 #081a2a,0 8px 0 #ac8643aa,0 17px 15px #0009}
#home .rr-team-labels{bottom:28px;left:6%;right:6%;gap:6px}#home .rr-team-labels button{padding:5px 4px;border:1px solid #b8986066;border-bottom:2px solid #947340;border-radius:6px;background:linear-gradient(#26475ee8,#142b43f0);box-shadow:inset 0 1px #ffffff17;min-height:32px;max-width:130px}#home .rr-team-labels b{font-size:10px;letter-spacing:.5px}#home .rr-team-labels span{font-size:7px;color:#c1d4df}
#home .rr-edit{bottom:4px!important;min-height:23px;font-size:8px!important;padding:4px 25px!important;letter-spacing:1.2px!important;color:#d4dce0!important}
#home .rr-route{border-radius:14px;background:linear-gradient(115deg,#284860,#182e45);border:1px solid #60859b8c;box-shadow:inset 0 1px #bdd9ed26,0 3px #071827}
#home .rr-route-button{height:75px!important;padding:9px 12px!important;gap:13px!important}.rr-route-thumb{width:71px;height:55px;transform:rotate(-3deg);border:2px solid #c5a568;box-shadow:3px 3px 0 #6e5a30,0 6px 9px #0005;border-radius:7px}
#home .rr-route-copy #book-stage{font-size:8px;letter-spacing:1.7px;color:#9fc7de}#home .rr-route-copy #book-title{font-size:19px;letter-spacing:.2px;color:#ffe4a4;text-shadow:0 2px #061626}#home .rr-route-copy #book-stars{font-size:9px;letter-spacing:.5px;color:#dae8ef}
#home .rr-route-track{bottom:25px;height:4px;left:13px;right:13px;background:#071728;box-shadow:0 1px #7499ad33}#home .rr-route-track i{background:linear-gradient(90deg,#b68b3c,#ffeab3);box-shadow:0 0 7px #edc88555}
#home .rr-route #chapter-prize{font-size:8px!important;letter-spacing:.3px!important;color:#bbcbd4!important;height:23px;padding:5px 13px!important}
#home .rr-actions{grid-template-columns:1.55fr 1fr;gap:10px}#home .rr-battle{height:61px!important;border-radius:12px!important;font-size:27px!important;background:linear-gradient(165deg,#fff0ae 0%,#f5c664 42%,#d99a37 90%)!important;box-shadow:inset 0 2px #fff8,inset 0 -3px #b07529,0 4px 0 #644324,0 8px 12px #0005!important}
#home .rr-battle #campaign-cta{font-size:9px!important;letter-spacing:1.6px!important}#home .rr-cup{height:61px!important;background:radial-gradient(ellipse at 30% 0,#9767a655,transparent 65%),linear-gradient(140deg,#594369,#22263d)!important;border-color:#caa4d38c!important;box-shadow:inset 0 1px #e7c4ed33,inset 0 -2px #302039,0 4px #111628!important}
#home .rr-cup>span{font-size:18px!important;letter-spacing:.6px}#home .rr-cup #challenge-state{font-size:7px!important;letter-spacing:.05px}
#home .rr-vault{height:119px!important}.rr-vault .vault-heading{height:19px;margin-bottom:6px!important}.rr-vault .vault-heading b{font-size:10px!important;letter-spacing:1.4px!important;color:#e8dab8!important}.rr-vault .vault-heading small{font-size:6px!important;letter-spacing:.2px!important;color:#91b1c7!important}
#home .rr-vault #chest-dock,#home .rr-vault .chest-slot{height:91px!important}#home .rr-vault .chest-slot{border-radius:11px!important;border:1px solid #6f8f9c88!important;background:radial-gradient(ellipse at 50% 30%,#49607066,transparent 70%),linear-gradient(155deg,#203d53,#12273b)!important;box-shadow:inset 0 1px #afc3c930,inset 0 -3px #091a29,0 3px 5px #010c1644!important}
#home .rr-vault .chest-slot.empty{border:1px solid #6e91a94d!important;background:linear-gradient(#193750aa,#0b2336bb)!important;box-shadow:inset 0 1px #9abdce22,inset 0 0 20px #0716265e!important}#home .rr-vault .empty-slot-mark{opacity:.7;height:43px!important;margin:0 auto 3px!important;color:#91b3c7}#home .rr-vault .empty-slot-mark svg{height:43px;width:45px}
#home .rr-vault .chest-slot>b{font-size:8px!important;letter-spacing:.8px;color:#aac6d8}#home .rr-vault .chest-slot>small{font-size:6px!important;color:#7398af}#home .rr-vault .slot-state{font-size:10px!important}#home .rr-vault .slot-hint{font-size:7px!important}#home .rr-vault .slot-tier{font-size:7px!important}
body[data-page=home] .bottom-nav{width:min(100%,620px)!important;max-width:620px!important;min-height:78px!important;border-radius:18px 18px 0 0!important;border:1px solid #9eb8c957!important;border-top:2px solid #b4b3a75e!important;background:linear-gradient(#294a60,#122b41)!important;box-shadow:inset 0 1px #b4cede2b,0 -5px 18px #031422aa!important;padding:7px 7px calc(8px + env(safe-area-inset-bottom))!important}
body[data-page=home] .bottom-nav button{position:relative;min-height:58px!important;border:1px solid transparent!important;border-radius:10px!important;background:linear-gradient(#7590a00a,#00122717)!important;box-shadow:none!important;color:#a4bece!important}body[data-page=home] .bottom-nav .nav-art{width:29px!important;height:29px!important;filter:drop-shadow(0 2px 0 #081a28)}body[data-page=home] .bottom-nav small{font-size:8px!important;letter-spacing:.8px!important;color:inherit!important}
body[data-page=home] .bottom-nav button.active{color:#ffe4a7!important;border:1px solid #ddb666ad!important;border-top:2px solid #ffe3a1!important;background:radial-gradient(ellipse at 50% 0,#ebce8866,transparent 95%),linear-gradient(#49606b,#263d4d)!important;box-shadow:inset 0 -3px #c09b5088,0 0 15px #efcc7b14!important}body[data-page=home] .bottom-nav button.active:after{content:'';position:absolute;bottom:2px;left:35%;right:35%;height:2px;background:#ffe5a3;border-radius:3px;box-shadow:0 0 8px #ecc878}
@media(max-height:730px) and (max-width:739px){#home.rr-club:not([hidden]){grid-template-rows:45px minmax(116px,1fr) 87px 57px 99px;gap:7px;padding:7px 11px calc(85px + env(safe-area-inset-bottom))!important}#home .rr-scene-head{top:11px;left:13px}#home .rr-scene-head h1{font-size:22px!important}#home .rr-kicker{font-size:6px;letter-spacing:1.8px}#home .rr-tools{top:68px;right:7px;gap:4px}#home .rr-tool{width:34px;height:32px;padding:3px}#home .rr-tool span{display:none}#home .rr-tool svg{height:20px;width:20px}#home #club-captain{height:calc(100% - 90px)!important;bottom:34px!important}#home .rr-podium{bottom:40px}#home .rr-team-labels{bottom:24px}#home .rr-team-labels button{min-height:26px;padding:3px}#home .rr-team-labels b{font-size:9px}#home .rr-edit{font-size:7px!important;min-height:20px;bottom:2px!important}#home .rr-route-button{height:61px!important;padding:7px 10px!important}.rr-route-thumb{height:43px;width:58px}#home .rr-route-copy #book-title{font-size:16px}#home .rr-route-copy #book-stars{font-size:8px}#home .rr-route #chapter-prize{font-size:7px!important;height:23px;padding-left:10px!important}#home .rr-battle,#home .rr-cup{height:52px!important}#home .rr-battle{font-size:24px!important}#home .rr-vault{height:99px!important}#home .rr-vault .vault-heading{height:16px;margin-bottom:4px!important}#home .rr-vault #chest-dock,#home .rr-vault .chest-slot{height:76px!important}#home .rr-vault .empty-slot-mark,#home .rr-vault .empty-slot-mark svg{height:32px!important}#home .rr-vault .slot-chest{height:35px!important}#home .rr-vault .slot-chest .art-chest{transform:scale(.63)!important}body[data-page=home] .bottom-nav{min-height:71px!important}body[data-page=home] .bottom-nav button{min-height:51px!important}body[data-page=home] .bottom-nav .nav-art{height:25px!important;width:25px!important}}
@media(min-width:900px) and (min-height:651px){#home.rr-club:not([hidden]){width:min(100%,1080px)!important;max-width:1080px!important;height:min(var(--app-height,100dvh),900px);top:50%;bottom:auto;transform:translateY(-50%);grid-template-columns:1.15fr 1fr;grid-template-rows:65px minmax(160px,1fr) 86px minmax(145px,.8fr);gap:18px 24px;padding:24px 26px 118px!important}.rr-profile{grid-column:1/3}.rr-scene{grid-column:1;grid-row:2/5}.rr-route{grid-column:2;grid-row:2}.rr-actions{grid-column:2;grid-row:3}.rr-vault{grid-column:2;grid-row:4}#home .rr-scene-head{top:24px;left:22px}#home .rr-scene-head h1{font-size:33px!important}#home .rr-kicker{font-size:8px}#home .rr-tools{top:105px;right:13px;gap:10px}#home .rr-tool{height:48px;width:48px}#home #club-captain{height:calc(100% - 143px)!important;bottom:55px!important}#home .rr-team-labels{bottom:34px}#home .rr-team-labels button{min-height:40px}#home .rr-team-labels b{font-size:12px}#home .rr-team-labels span{font-size:9px}#home .rr-edit{font-size:10px!important;bottom:8px!important}#home .rr-podium{bottom:62px}#home .rr-route-button{height:calc(100% - 50px)!important;gap:18px!important;padding:18px!important}.rr-route-thumb{width:104px;height:104px;transform:rotate(-4deg)}#home .rr-route-copy #book-stage{font-size:11px}#home .rr-route-copy #book-title{font-size:25px;white-space:normal;line-height:1.12}#home .rr-route-copy #book-stars{font-size:12px}#home .rr-route-track{left:18px;right:18px;bottom:40px;height:6px}#home .rr-route #chapter-prize{height:34px;padding:9px 18px!important;font-size:10px!important}#home .rr-battle,#home .rr-cup{height:80px!important}#home .rr-battle{font-size:34px!important}#home .rr-battle #campaign-cta{font-size:10px!important}#home .rr-cup>span{font-size:23px!important}#home .rr-cup #challenge-state{font-size:8px!important}#home .rr-vault{height:100%!important}#home .rr-vault .vault-heading{height:28px;margin-bottom:10px!important}#home .rr-vault .vault-heading b{font-size:13px!important}#home .rr-vault .vault-heading small{font-size:7px!important}#home .rr-vault #chest-dock,#home .rr-vault .chest-slot{height:calc(100% - 38px)!important;max-height:190px}#home .rr-vault .empty-slot-mark{height:68px!important;margin:13px auto 8px!important}#home .rr-vault .empty-slot-mark svg{width:65px;height:65px!important}#home .rr-vault .slot-chest{height:90px!important}#home .rr-vault .slot-chest .art-chest{transform:scale(1)!important}#home .rr-vault .slot-tier{font-size:10px!important}#home .rr-vault .chest-slot>b{font-size:10px!important}#home .rr-vault .chest-slot>small{font-size:7px!important}body[data-page=home] .bottom-nav{width:650px!important;max-width:650px!important;bottom:12px!important;border-radius:18px!important}#home .rr-reward-rail{left:55%;bottom:125px}}
@media(min-width:740px) and (max-height:650px){#home.rr-club:not([hidden]){max-width:1050px!important;width:min(100%,1050px)!important;grid-template-columns:1.1fr 1fr;grid-template-rows:42px 84px 55px minmax(78px,1fr);padding:7px 15px 73px!important;gap:7px 15px}#home .rr-scene-head{top:10px;left:12px}#home .rr-scene-head h1{font-size:20px!important}#home .rr-kicker{font-size:6px}#home .rr-tools{top:65px;gap:4px;right:7px}#home .rr-tool{height:30px;width:32px}#home .rr-tool span{display:none}#home #club-captain{height:calc(100% - 80px)!important;bottom:30px!important}#home .rr-podium{bottom:36px}#home .rr-team-labels{bottom:20px}#home .rr-team-labels button{min-height:24px;padding:3px}#home .rr-team-labels b{font-size:8px}#home .rr-edit{bottom:0!important;min-height:18px;font-size:6px!important}#home .rr-route-button{height:58px!important}.rr-route-thumb{width:57px;height:42px}#home .rr-route-copy #book-title{font-size:15px}#home .rr-battle,#home .rr-cup{height:50px!important}#home .rr-battle{font-size:23px!important}#home .rr-vault{height:auto!important}#home .rr-vault .vault-heading{height:16px;margin-bottom:3px!important}#home .rr-vault #chest-dock,#home .rr-vault .chest-slot{height:72px!important}#home .rr-vault .empty-slot-mark,#home .rr-vault .empty-slot-mark svg{height:29px!important}#home .rr-vault .slot-chest{height:31px!important}body[data-page=home] .bottom-nav{width:min(100%,650px)!important;min-height:63px!important;padding:4px 7px!important}body[data-page=home] .bottom-nav button{min-height:52px!important}body[data-page=home] .bottom-nav .nav-art{width:24px!important;height:24px!important}}
@media(prefers-reduced-motion:reduce){#home *{scroll-behavior:auto;animation:none!important}}

@media(min-width:740px) and (max-height:650px){#home.rr-club:not([hidden]){padding-bottom:84px!important}body[data-page=home] .bottom-nav{max-width:650px!important}}
@media(min-width:900px) and (min-height:651px){#home.rr-club:not([hidden]){top:0!important;bottom:auto!important;transform:none!important}body[data-page=home] .bottom-nav{max-width:650px!important}}

/* V23 — readable team ability and sculpted relics. */
.turn-heading23{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0 9px 5px;min-height:37px}.turn-heading23 #turn-card-title{flex:1;min-width:0;padding:0!important;font-size:10px!important;line-height:1.3;letter-spacing:.5px}.golden-switch23{flex:0 0 auto;border:1px solid #d5a941;border-radius:9px;padding:8px 9px;background:linear-gradient(#e4c275,#9e6b25);color:#231b0c;font-size:9px;font-weight:900;letter-spacing:.35px;box-shadow:inset 0 1px #fff6ba99,0 2px 0 #503811;touch-action:manipulation;min-height:34px}.golden-switch23:disabled{background:#172e42;color:#9caab5;border-color:#526170;box-shadow:none;opacity:.85}.golden-switch23.armed{background:linear-gradient(#fff2b5,#e9b947);box-shadow:0 0 18px #f7c44980,inset 0 1px white}.golden-armed23 .turn-card:not(:disabled){border-color:#ecc871;filter:drop-shadow(0 0 6px #ffbf3c66)}.golden-armed23 #turn-card-title{color:#ffe09a}.golden-armed23 .turn-card.picked{box-shadow:0 0 18px #faca6355}
.relic-art23{display:block;object-fit:contain;width:100%;height:100%;filter:drop-shadow(0 3px 4px #0008);user-select:none}.relic-icon{background:radial-gradient(ellipse,#adcfef1a,transparent 70%);filter:none}.relic-icon .relic-art23{width:88px;height:88px;max-width:none;filter:drop-shadow(0 6px 7px #0007)}.relic-diamond .relic-art23{width:66px;height:66px;max-width:none;transform:rotate(-45deg);padding:3px}.relic-diamond{overflow:visible!important;background:linear-gradient(135deg,#385c78,#102337 65%,#29445e)!important;border:1.5px solid #ccaf67!important;box-shadow:inset 0 0 0 2px #1b3448,inset 0 0 18px #081522,0 5px 12px #0007!important}.relic-card{background:radial-gradient(ellipse at 50% 18%,#304959,#101e2e 75%)!important;box-shadow:inset 0 1px #e5d29b33,0 6px 16px #0005!important}.relic-slot small{text-shadow:0 2px 3px #000c}.relic-slot:focus-visible{outline:2px solid #fff1be;outline-offset:5px}
@media(max-width:480px){.relic-diamond .relic-art23{width:52px;height:52px;padding:3px}.turn-heading23{padding:0 4px 4px;gap:5px}.turn-heading23 #turn-card-title{font-size:8px!important}.golden-switch23{font-size:8px;padding:6px 7px}.relic-icon .relic-art23{width:80px;height:80px}}
.relic-diamond>span .relic-art23{transform:none}

#studio23-golden{color:#ffda7b;border-color:#b59450;background:linear-gradient(#513e22,#28333b)}.studio21-tools{grid-template-columns:repeat(2,minmax(0,1fr))}

/* V25: tangible treasure and illustrated inventory, with one continuous chest. */
.slot-chest:after{display:none!important;content:none!important}
.chest25{--treasure-filter:none;isolation:isolate;perspective:650px}
.chest25.tier-1{--treasure-filter:hue-rotate(155deg) saturate(.8)}
.chest25.tier-2{--treasure-filter:hue-rotate(320deg) saturate(1.1)}
.chest25.tier-3{--treasure-filter:hue-rotate(240deg) saturate(1.25)}
.chest25-body,.chest25-lid{position:absolute;inset:0;filter:var(--treasure-filter);pointer-events:none}
.chest25-body{clip-path:inset(44% 0 0 0);z-index:3}
.chest25-lid{clip-path:inset(0 0 56% 0);z-index:4;transform-origin:50% 43%;transition:transform .85s cubic-bezier(.2,.75,.25,1),filter .85s}
.art-chest.chest25 img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;max-width:none!important;transform:none!important}
.chest25-cavity{position:absolute;left:19%;right:17%;top:37%;height:20%;background:radial-gradient(ellipse,#fff7bb,#ecb24e 35%,#382111 72%);border:3px solid #d9a447;border-radius:50%;z-index:2;opacity:0;transition:opacity .3s}
.is-open .chest25-lid{transform:translateY(-14%) rotateX(-65deg) rotate(-6deg)}
.is-open .chest25-cavity{opacity:1}.is-open .chest25 .chest-magic{opacity:1!important}
body .bottom-nav .nav-art,body[data-page=home] .bottom-nav .nav-art{width:47px!important;height:40px!important;display:block;position:relative;filter:drop-shadow(0 4px 2px #030b16aa)!important;transition:transform .22s ease}
.bottom-nav .nav-art img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}
body .bottom-nav button,body[data-page=home] .bottom-nav button{padding:2px 3px!important;background:radial-gradient(ellipse at 50% 66%,#64788830,transparent 70%)!important;border:0!important;position:relative}
body .bottom-nav button.active,body[data-page=home] .bottom-nav button.active{background:radial-gradient(ellipse at 50% 58%,#ebbf5750,transparent 73%)!important;box-shadow:inset 0 -3px #eac579!important;border-radius:12px!important}
.bottom-nav button.active .nav-art{transform:translateY(-4px) scale(1.12)}
.bottom-nav button:active .nav-art{transform:translateY(2px) scale(.94)}
body .bottom-nav small,body[data-page=home] .bottom-nav small{margin-top:3px!important;font-size:8px!important;letter-spacing:.6px!important;text-shadow:0 2px #07101d}
body .bottom-nav,body[data-page=home] .bottom-nav{background:linear-gradient(180deg,#526071 0,#28384b 5%,#142236 65%,#0b1728)!important;border-top:2px solid #bba575!important;box-shadow:inset 0 2px #e6d8ab33,0 -5px 20px #0007!important}
@media(max-height:730px){body .bottom-nav .nav-art,body[data-page=home] .bottom-nav .nav-art{width:39px!important;height:32px!important}}
@media(prefers-reduced-motion:reduce){.chest25-lid,.bottom-nav .nav-art{transition:none!important}}

/* V26 edge-to-edge arena presentation. Browser chrome is intentionally outside game control. */
html.fight-locked #fight{padding:0!important;gap:0!important;background:linear-gradient(#07142670,#06101c44),var(--stadium26) center/cover no-repeat!important;grid-template-rows:44px minmax(0,1fr) 30px!important}
#fight .match-heading{min-height:44px!important;padding:3px 10px!important;background:linear-gradient(#06111fee,#07192bbb)!important;max-width:none!important}
#fight .match-heading h2{font-size:16px!important;white-space:nowrap!important}#fight #arena-caption{font-size:5px!important}
#fight .gesture-coach{min-height:30px!important;height:30px!important;padding:2px 10px!important;background:#071322d9;max-width:none!important;font-size:7px!important}
#fight #charge-hint{display:none!important}#fight .gesture-coach #gesture-hint,#fight .gesture-coach #selected-name{font-size:7px!important}
html.fight-locked #fight .arena-wrap{border-radius:0!important;overflow:visible!important}
#fight .battle-layout{overflow:hidden!important}
#fight #turn-cards.docked .turn-card{max-width:54px!important;padding-bottom:8px!important}
#fight #turn-cards.docked .turn-card canvas{height:37px!important}
#fight #turn-cards.docked{bottom:0!important}
@media(orientation:landscape) and (max-height:500px){html.fight-locked #fight{grid-template-rows:35px minmax(0,1fr) 22px!important}#fight .match-heading{min-height:35px!important}#fight .gesture-coach{height:22px!important;min-height:22px!important}#fight #turn-cards.docked .turn-card canvas{height:23px!important}}

/* V28 selection stays on the apron, away from the fighters. */
#fight #turn-cards{top:auto!important;bottom:0!important;transform:translateX(-50%)!important;width:86%!important;padding:0!important}
#fight #turn-cards .turn-card{max-width:65px!important;padding:3px 4px 9px!important}
#fight #turn-cards .turn-card canvas{height:42px!important;width:100%!important}
#fight #turn-cards .turn-card b{font-size:7px!important}#fight #turn-cards .turn-card small{font-size:5px!important}
#fight #turn-card-title{font-size:8px!important;margin:0 0 3px!important;padding:3px 7px!important}

/* Recruitment progress */
.recruit-progress{height:5px;background:#050c19;border:1px solid #425167;border-radius:8px;margin:3px 10px 9px;overflow:hidden}.recruit-progress span{display:block;height:100%;background:linear-gradient(90deg,#43a5ed,#a2e7ff)}.recruit-progress[hidden]{display:none!important}.fighter-card.card-locked .card-bottom small{color:#c6d5e6!important;font-size:10px}#hero-trial:disabled{opacity:.5;cursor:not-allowed}
