*{box-sizing:border-box} :root{font-family:"Trebuchet MS",Arial,sans-serif;color:#fff;--ink:#2c2051;--purple:#7458bf;--gold:#ffd45b;--blue:#58cdee;--stroke:2px solid #392657}body{margin:0;background:#211c42;overflow:hidden}body:before{content:"";position:fixed;inset:-30px;background:linear-gradient(90deg,#17172ae8,#37236c7a,#18182be8),url("./assets__arenas.png") center/cover;filter:blur(8px);z-index:-2}body:after{content:"";position:fixed;inset:0;background:radial-gradient(ellipse at center,transparent 22%,#16192acc 90%);z-index:-1}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{color:inherit}button:disabled{cursor:default;filter:saturate(.4);opacity:.65}button:focus-visible,canvas:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b2ffff;outline-offset:3px}button:active:not(:disabled){transform:translateY(2px)}button,input,select{border:0}h1,h2,h3,p{margin:0}h1,h2,h3,b,strong{font-weight:900}h1{font-size:28px}h2{font-size:22px}h3{font-size:17px}p{line-height:1.5;font-size:15px}small{font-size:12px}button{font-weight:900}.game-shell{height:100dvh;max-height:1100px;width:min(100%,510px);margin:auto;position:relative;display:flex;flex-direction:column;background:radial-gradient(ellipse at 45% 15%,#9271d2 0,#6b51b1 48%,#4b3990 100%);isolation:isolate;box-shadow:0 0 80px #09091aa1;border-inline:2px solid #a992d52e;overflow:hidden}.game-shell:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.17;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 110'%3E%3Cpath d='M40 4 59 15V37L40 48 21 37V15Z M99 65 116 75V95L99 105 82 95V75Z' fill='%233a256e'/%3E%3C/svg%3E");background-size:120px 110px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 9px;gap:12px;flex:none;z-index:2}.profile{background:none;display:flex;gap:10px;align-items:center;text-align:start;padding:0}.profile b{font-size:17px;text-shadow:0 2px #30214f}.profile small{display:flex;align-items:center;gap:5px;color:#ffe598;font-weight:900;margin-top:4px}.profile em{font-size:12px;font-style:normal;background:#49327e;padding:3px 7px;border-radius:7px;color:#e9dfff;margin-inline-start:5px}.avatar{width:48px;height:48px;border-radius:14px;background:linear-gradient(#65d9f9,#397ab8);border:var(--stroke);box-shadow:inset 0 3px #b8f5ff,0 3px #432363;display:grid;place-items:center;font-size:28px;font-weight:900;color:#f0fcff;text-shadow:2px 3px #1d4f7f;flex:none;transform:rotate(-4deg)}.avatar.red{background:linear-gradient(#ffb270,#e45672);box-shadow:inset 0 3px #ffdbad,0 3px #803c66}.settings-btn{border-radius:50%;width:40px;height:40px;background:#4e3989;border:1px solid #ba9ce0;color:#e9e4ff;font-size:27px;box-shadow:0 3px #422d73}.wallet{display:flex;gap:10px;padding:6px 18px 10px;flex:none;position:relative;z-index:2}.wallet>button{flex:1;min-width:0;position:relative;display:flex;gap:8px;align-items:center;background:#3524528a;height:32px;border-radius:18px;border:1px solid #ac92d789;padding:0 8px 0 0}.wallet b{flex:1;text-align:end;font-size:15px;line-height:1}.wallet-plus{color:#bbef98;font-size:17px}.coin{font-style:normal;display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center;font-size:18px;vertical-align:middle;line-height:1;font-weight:900;flex:none;border-radius:50%;border:2px solid #997227;background:linear-gradient(140deg,#fff7a0,#ffce36 60%,#e8a91e);box-shadow:inset 0 0 0 2px #ffe873,0 2px #44305c;color:#ffea8d;text-shadow:1px 1px #b88425}.coin.gems{background:linear-gradient(135deg,#b8fff6,#56e3e5 45%,#0e9bac);border-radius:6px;border-color:#147c92;box-shadow:inset 0 0 0 2px #8bf5ee,0 2px #44305c;color:#d5fff9;text-shadow:1px 1px #1785ac;transform:rotate(10deg)}.coin.cores,.coin.energy{background:linear-gradient(#bf8cff,#776af1);border-color:#624ca3;box-shadow:inset 0 0 0 2px #d9b1ff,0 2px #44305c;color:#f6efff}.coin.trophy{color:#fff0a4;font-size:17px}.wallet .coin{width:33px;height:33px;font-size:26px;margin:-3px 0 -3px -1px}.bottom-nav{height:78px;display:flex;align-items:stretch;gap:3px;padding:5px 7px 0;flex:none;background:linear-gradient(transparent,#35215c 24%);z-index:3;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{flex:1;border-radius:18px 18px 0 0;position:relative;background:linear-gradient(#c4adf4,#9c7bd5);border:2px solid #44305f;border-bottom:0;color:#392856;box-shadow:inset 0 4px #f2dcff,0 -2px #b694e1;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;padding:2px 0 5px;gap:2px}.bottom-nav button>span{font-size:30px;color:#7041a6;line-height:1.1;text-shadow:0 2px #f0dbff}.bottom-nav b{font-size:12px}.bottom-nav .active{background:linear-gradient(#ffe6a0,#e8b559);box-shadow:inset 0 4px #fff8da,0 -2px #b694e1;transform:translateY(-4px);padding-bottom:1px}.bottom-nav .active>span{color:#96621a;text-shadow:0 2px #fff0b2}.bottom-nav .main-tab{margin-top:-11px;border-radius:20px 20px 0 0}.bottom-nav .main-tab>span{font-size:38px}.notification{background:#ff627d;min-width:17px;height:17px;position:absolute;inset-inline-end:6px;top:3px;border:2px solid #573571;border-radius:50%;font-style:normal;font-size:11px;line-height:13px;color:#fff}.notification:empty{min-width:12px;height:12px}.lobby{flex:1;min-height:0;display:flex;flex-direction:column}.lobby-scene{position:relative;flex:1;min-height:140px;overflow:hidden;margin-top:-8px}.lobby-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(#7a5bc066,transparent 20%,transparent 70%,#7252b4);pointer-events:none}.lobby-scene>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 60%;transform:scale(1.02)}.brand{position:absolute;z-index:1;top:7px;width:100%;text-align:center;transform:rotate(-3deg);filter:drop-shadow(0 4px #342044);line-height:.83}.brand span{display:block;font-size:66px;letter-spacing:-4px;color:#ffe276;-webkit-text-stroke:2px #5c3456;text-shadow:0 5px #e9a73d,2px -2px #ffffcc}.brand b{display:block;font-size:23px;letter-spacing:4px;color:#fff0c3;-webkit-text-stroke:1px #4e315c;margin-top:6px}.arena-badge{position:absolute;left:50%;transform:translateX(-50%);bottom:3px;z-index:2;background:linear-gradient(#ae84df,#855abd);border:2px solid #4a296c;border-radius:12px;box-shadow:inset 0 2px #dbb5ff,0 3px #503075;white-space:nowrap;font-weight:900;font-size:17px;padding:8px 17px;color:#fff5df;text-shadow:0 2px #513476}.arena-badge span{color:#ffdf86;margin-inline-end:8px}.help-float{position:absolute;z-index:2;top:24px;right:18px;width:35px;height:35px;background:#534189c9;border:2px solid #b59bdd;border-radius:50%;font-size:21px}.gift-float{position:absolute;z-index:2;bottom:45px;left:15px;background:linear-gradient(#ffe188,#ffc445);border:2px solid #86511b;border-radius:14px;color:#744c37;box-shadow:inset 0 3px #fff3b3,0 3px #61477d;padding:3px 8px;transform:rotate(-6deg)}.gift-float span{display:block;font-size:30px}.gift-float small{font-size:11px}.lobby-controls{padding:5px 30px 10px;flex:none;display:flex;align-items:center;flex-direction:column;gap:8px}.trophy-progress{width:100%}.track{position:relative;border:3px solid #b896e7;border-radius:16px;height:28px;background:#40206d;box-shadow:0 3px #3e235a;overflow:hidden}.track>i{display:block;background:linear-gradient(#ffe397,#de9c34);height:100%}.track b{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;font-size:14px;text-shadow:0 2px #624232;gap:6px}.track .coin{width:18px;height:18px;font-size:12px}.trophy-progress>button{width:86%;margin:auto;display:block;background:#674293;border:1px solid #382153;border-top:0;border-radius:0 0 10px 10px;font-size:13px;padding:4px 8px}.trophy-progress>button>span{float:right}.cache-track{display:flex;gap:9px;align-items:center;justify-content:center;padding:1px}.cache{width:43px;height:40px;border-radius:11px;position:relative;background:linear-gradient(#a585d5,#6d4a9e);border:2px solid #4d2b70;color:#b693da;box-shadow:inset 0 2px #c8a8e8,0 2px #3d255f}.cache span{font-size:24px}.cache.current{background:linear-gradient(#ffd690,#c78b52);border-color:#7c483e;color:#fff2b6;box-shadow:inset 0 2px #ffe7c9,0 2px #62416e}.cache.special{color:#fbcc6b;border-color:#c093bc}.btn{border:2px solid #3d3557;border-radius:13px;background:linear-gradient(#ab8bdd,#8261b6);box-shadow:inset 0 3px #dac0f4,0 4px #3b2858;color:#fff;text-shadow:0 2px #304455;padding:10px 17px;font-size:17px;text-align:center;transition:filter .15s,transform .15s;min-height:42px}.btn:hover:not(:disabled){filter:brightness(1.08)}.btn.green{background:linear-gradient(#d4fb9b 0,#9cdc63 30%,#57b544 100%);border-color:#427540;box-shadow:inset 0 3px #e9ffb9,0 4px #315342}.btn.blue{background:linear-gradient(#9ce4ff,#58b5e8 38%,#388dd1);border-color:#305b93;box-shadow:inset 0 3px #c2f1ff,0 4px #354775}.btn.golden{background:linear-gradient(#ffe699,#ffc65f 45%,#f3a939);border-color:#986336;box-shadow:inset 0 3px #fff2c1,0 4px #6d4548}.btn.small{font-size:13px;padding:6px 9px;min-height:36px;border-radius:11px}.btn.wide{width:100%;margin-top:12px}.btn.quiet{background:#36265466;box-shadow:none;border:1px solid #b296ce6b;font-size:14px;text-shadow:none;min-height:38px}.btn.disabled-look{background:#566185;box-shadow:inset 0 2px #92aac0,0 3px #363451}.btn .coin{width:21px;height:21px;font-size:17px}.battle-button{width:85%;max-width:320px;background:linear-gradient(#fff0b2,#ffce66 38%,#ffad42);border:3px solid #976040;border-radius:19px;box-shadow:inset 0 4px #ffffd1,0 5px #955132,0 8px #52357288;min-height:58px;font-size:28px;color:#fff8dd;text-shadow:2px 2px #5a342c,-1px -1px #5a342c,1px -1px #5a342c,-1px 1px #5a342c;letter-spacing:1px}.battle-button span{margin-inline-start:15px}.fair-note{font-size:11px;color:#decff7;font-weight:700;margin-top:2px}.lobby-deck,.deck-strip{display:flex;width:100%;gap:6px;justify-content:center}.mini-card{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;background:linear-gradient(130deg,#ffddb2,#e7b27e);border:2px solid #765171;border-radius:11px;color:#493352;box-shadow:inset 0 2px #ffeecf,0 3px #48325e;padding:3px 2px 4px;overflow:visible}.mini-card .weapon-art{width:100%;height:49px;min-height:0}.weapon-art{display:inline-block;background-image:var(--weapon-atlas);background-size:400% 500%;background-position:var(--ax) var(--ay);background-repeat:no-repeat;width:100px;aspect-ratio:1.25;vertical-align:middle;pointer-events:none;flex:none}.mini-name{font-size:10px;line-height:1.05;height:21px;display:flex;align-items:center;justify-content:center;text-wrap:balance}.mini-level{font-size:10px;background:#8f647a;color:#fff5ea;padding:1px 5px;border-radius:4px;margin-top:3px}.cost{position:absolute;z-index:1;top:-5px;inset-inline-start:-5px;background:linear-gradient(#d292ef,#965dc5);color:#fff5ff;text-shadow:0 2px #5e3277;min-width:24px;height:25px;border-radius:50% 50% 45% 45%;border:2px solid #624081;box-shadow:inset 0 2px #f1c6ff,0 2px #523262;font-size:16px;display:grid;place-items:center}.rare{--rarity:#60c7ff}.epic{--rarity:#e18cf6}.common{--rarity:#b5da87}.scroll-page{padding:9px 18px 28px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b599db #5c419100}.section-intro{padding:6px 1px 16px}.section-intro>small{color:#ddc8fc;text-transform:uppercase;font-size:11px;letter-spacing:2px}.section-intro h1{margin:5px 0 6px;text-shadow:0 3px #493064}.section-intro p{color:#e1d2f5;font-size:14px}.deck-strip{padding:7px 3px 14px;background:#48307466;border-radius:14px;margin-bottom:19px}.deck-strip .mini-card{margin:0 1px}.deck-strip .mini-card .weapon-art{height:55px}.collection-heading{display:flex;justify-content:space-between;align-items:center;margin:15px 0 12px}.collection-heading h2{font-size:20px}.collection-heading>b{background:#432a77;padding:4px 9px;border-radius:8px;color:#ddc8f9}.filters{display:flex;gap:5px;margin-bottom:15px}.filters>button{flex:1;min-width:0;background:#49317d;border:1px solid #9772bd;padding:7px 5px;border-radius:9px;font-size:12px;color:#d9c7ed}.filters .active{color:#493149;background:#ffdda0;box-shadow:0 2px #80506a;border-color:#f3bf86}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 10px}.collection-card{position:relative;display:flex;flex-direction:column;align-items:center;background:linear-gradient(145deg,#ffe1ba,#dba577);border:2px solid #674468;border-radius:13px;box-shadow:inset 0 3px #fff0d2,0 4px #48305e;color:#483147;padding:7px 4px;min-height:174px;overflow:visible}.collection-card .weapon-art{width:105%;height:82px}.collection-card>b{font-size:13px;line-height:1.1;min-height:28px;display:grid;place-items:center}.collection-card>small{font-size:11px;margin:4px 0;font-weight:800}.card-rarity{color:#493263;background:var(--rarity);border-radius:4px;font-size:10px;padding:2px 5px;margin-left:9px}.collection-card.is-locked{background:linear-gradient(145deg,#9d86bc,#775f92);box-shadow:inset 0 3px #bda2d5,0 4px #48305e;color:#e9daf5}.is-locked .weapon-art{filter:grayscale(.7) brightness(.75);opacity:.8}.is-locked .card-rarity{opacity:.6}.lock-icon{position:absolute;right:6px;bottom:8px;color:#ddd2ea}.copy-track{height:17px;border:1px solid #63496a;border-radius:6px;background:#6c6176;width:91%;position:relative;overflow:hidden}.copy-track i{display:block;height:100%;background:linear-gradient(#c4ec77,#7cb648)}.copy-track span{position:absolute;inset:0;font-size:10px;color:#fff;text-shadow:0 1px #354339}.equipped-mark{position:absolute;bottom:-4px;right:-5px;background:#7353a6;border:2px solid #422c62;border-radius:50%;width:20px;height:20px;color:#fff;font-size:12px}.muted{color:#d9c9ec;font-size:13px;font-weight:500;line-height:1.5}.center{text-align:center;margin:16px 0 0}.ribbon{font-size:21px;padding:9px 15px;text-align:center;background:linear-gradient(#ffdf76,#e7b94c);border:2px solid #83604b;box-shadow:inset 0 2px #ffefaa,0 3px #47305a;border-radius:5px;color:#fffbea;text-shadow:1px 2px #69504b;position:relative;margin:22px 12px 18px;transform:skew(-3deg)}.ribbon.aqua{background:linear-gradient(#83dde4,#4aa8c4);border-color:#4b5c86;box-shadow:inset 0 2px #b3eff2,0 3px #47305a}.ribbon.pink{background:linear-gradient(#e991ee,#b566d0);border-color:#6a418e;box-shadow:inset 0 2px #f4c0f9,0 3px #47305a}.daily-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.daily-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;border:2px solid #6e527f;border-radius:15px;padding:12px 6px 9px;background:radial-gradient(ellipse at 50% 27%,#fff7b7,#d6b777);box-shadow:inset 0 3px #fff0c3,0 4px #4b345f;color:#58435c;min-width:0}.daily-card.gems{background:radial-gradient(ellipse at 50% 27%,#d6ffcd,#76c1c5);box-shadow:inset 0 3px #c6f4ee,0 4px #4b345f}.daily-card.cores{background:radial-gradient(ellipse at 50% 27%,#c9c8ff,#a28fe1);box-shadow:inset 0 3px #decfff,0 4px #4b345f}.daily-card>.coin{width:47px;height:47px;font-size:37px;margin:3px 0 5px}.daily-card h3{font-size:13px;line-height:1.2;height:29px;display:grid;place-items:center}.daily-card strong{font-size:22px}.daily-card .btn{width:100%;font-size:12px;padding:6px 3px}.daily-card>small{font-size:10px}.shop-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pack-card{border:2px solid #48305d;border-radius:15px;background:radial-gradient(ellipse at 40% 40%,#dac6ff,#ac79d1);box-shadow:inset 0 3px #eac6ff,0 4px #4a3062;display:flex;flex-direction:column;align-items:center;position:relative;padding:13px 6px 10px;min-width:0}.pack-card h3{height:38px;line-height:1.15;text-align:center;font-size:14px;display:grid;place-items:center}.pack-card p{font-size:12px;padding:4px 0 10px}.pack-card .btn{width:100%;padding:6px 3px;font-size:13px}.pack-seal{position:absolute;right:8px;top:7px;color:#fff0b4;font-size:10px}.crate-art{width:65px;height:81px;background:linear-gradient(140deg,#d6eeff,#529ada 40%,#573daf 80%);border:3px solid #43366a;outline:1px solid #d7d5ff;border-radius:8px;transform:rotate(-7deg);box-shadow:inset 0 5px #a5d2f5,inset 0 -6px #a1bbf2,3px 5px #43316355;display:grid;place-items:center;margin:10px 0 13px;position:relative}.crate-art span{background:#edf4ff;color:#59418e;clip-path:polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%);font-size:31px;padding:3px 8px;text-shadow:0 2px #c5a8ec}.tier-1 .crate-art{background:linear-gradient(140deg,#fff5a4,#efb240 45%,#da5a55);box-shadow:inset 0 5px #ffe994,inset 0 -6px #ffe09b,3px 5px #43316355}.tier-2 .crate-art{background:linear-gradient(140deg,#a5ffff,#8d71dc 45%,#f780e2);box-shadow:inset 0 5px #b1faff,inset 0 -6px #a6fff5,3px 5px #43316355}.odds{font-size:11px;line-height:1.6}.deal-card{background:#785a9c88;border:1px solid #c596dc66;border-radius:14px;padding:7px 5px 10px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:6px}.deal-card .weapon-art{width:100%;height:75px}.deal-card>b{font-size:12px;min-height:28px;display:grid;place-items:center}.deal-card>span:not(.weapon-art){font-size:14px;color:#ffe5a9}.deal-card .btn{width:100%}.exchange-row{display:flex;align-items:center;justify-content:space-between;border-radius:14px;background:#52377f;border:1px solid #bb8ed377;padding:13px 17px}.exchange-row .coin.gold{width:40px;height:40px}.exchange-row b{font-size:23px;margin-inline-start:8px}.supply-banner{display:flex;background:linear-gradient(110deg,#d596dc,#9775bd);border:2px solid #4c346e;border-radius:16px;box-shadow:inset 0 3px #e3b2eb,0 4px #47305c;margin-top:22px;padding:18px;gap:22px;align-items:center}.supply-banner .crate-art{flex:none}.supply-banner h2{font-size:21px}.supply-banner p{font-size:13px;margin:6px 0 12px}.road-list{display:flex;flex-direction:column;gap:9px}.road-step{display:flex;align-items:center;gap:10px;background:#4c327d88;border:1px solid #b38cd15c;padding:10px;border-radius:13px}.road-step.reached{background:#80704166;border-color:#d8af70}.road-number{width:34px;height:34px;background:#60448d;border:2px solid #af8bd0;border-radius:11px;display:grid;place-items:center;font-size:16px;font-weight:900;flex:none}.road-step>div{flex:1}.road-step>div>b{font-size:14px;display:block}.road-step>div>small{font-size:11px;display:block;color:#d9c9ec;margin-top:3px}.road-step .btn{max-width:105px}.league-emblem{color:#ffe7a3;text-align:center;font-size:85px;text-shadow:0 4px #78542d;line-height:1;background:radial-gradient(ellipse,#f7c95977,transparent 65%);padding:5px 0 18px}.league-emblem span{display:block;font-size:15px;letter-spacing:3px;margin-top:10px}.stats-row{display:flex;gap:8px;margin:5px 0 20px}.stats-row>div{flex:1;text-align:center;background:#47307588;border:1px solid #a282c773;border-radius:13px;padding:12px 5px}.stats-row b{display:block;font-size:23px;color:#ffe5a2}.stats-row span{font-size:11px;display:block;margin-top:4px;color:#e2cef4}.rank-list{display:flex;flex-direction:column;gap:7px}.rank-row{display:flex;gap:11px;align-items:center;background:linear-gradient(#9976bf,#7a5a9e);border:2px solid #5b3d7d;border-radius:12px;box-shadow:inset 0 2px #c3a0e0,0 2px #493168;padding:9px 10px}.rank-row.is-you{background:linear-gradient(#ffdd9b,#dba967);box-shadow:inset 0 2px #ffedbf,0 2px #493168;color:#674353}.rank-num{width:16px;color:#eed9fe;font-size:18px}.rank-avatar{display:grid;place-items:center;width:35px;height:35px;border:2px solid #513575;border-radius:9px;background:#af90d2;font-size:22px}.rank-row>div{flex:1}.rank-row>div>b{font-size:15px}.rank-row small{display:block;font-size:10px;opacity:.8}.rank-row strong{font-size:15px}.rank-row .coin{width:18px;height:18px;font-size:13px}.result-page{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:12px 18px 20px;background:radial-gradient(ellipse at 50% 20%,#c7f0bd80,transparent 60%)}.result-page.lost{background:radial-gradient(ellipse at 50% 20%,#dc9aad80,transparent 60%)}.result-kicker{font-size:12px;letter-spacing:2px;color:#f5eac5;font-weight:900}.result-emblem{font-size:83px;line-height:1.1;color:#ffe38b;text-shadow:0 5px #aa6d45,0 10px 30px #ffec9d66;margin-top:4px}.result-page h1{font-size:43px;color:#c5f480;text-shadow:2px 3px #3d3155,-1px -1px #3d3155,1px -1px #3d3155,-1px 1px #3d3155;letter-spacing:1px;margin-bottom:10px}.result-page.lost h1{color:#ffc3bf}.result-score{display:flex;justify-content:center;gap:20px;font-weight:900;font-size:14px}.result-score span:first-child{color:#a6f4ff}.result-score span:last-child{color:#ffd0d2}.result-loot{display:flex;gap:16px;align-items:center;margin:16px 0;background:#45346d66;border:1px solid #dcc9d955;border-radius:14px;padding:7px 16px;min-height:48px}.result-loot>span{font-size:17px;font-weight:900;white-space:nowrap}.result-loot .weapon-art{width:35px}.result-page h2{font-size:18px;margin:9px 0 5px}.boost-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;width:100%;margin:21px 0 16px}.boost-item{position:relative;min-width:0}.boost-item .mini-card{width:100%;height:115px;padding-inline-end:7px}.boost-item .weapon-art{height:65px}.boost-item .mini-name{font-size:10px}.boost-item .mini-level{font-size:10px}.boost-item .btn{font-size:11px;width:100%;margin-top:8px;padding:4px 1px;min-height:32px}.boost-item .btn .coin{width:15px;height:15px;font-size:12px}.boost-track{position:absolute;height:81px;top:14px;right:3px;border-radius:8px;width:5px;background:#4e4b6c;overflow:hidden}.boost-track i{position:absolute;bottom:0;width:100%;background:linear-gradient(#d6ffff,#62c5ff);border-radius:8px}.boost-tip{font-size:13px;color:#dccff0;text-align:center;max-width:340px;margin:0 0 15px}.continue-button{width:80%;margin-top:auto;min-height:52px;font-size:23px;flex:none}.ad-offer{text-align:center;background:#503686aa;border:1px solid #b695d8;border-radius:15px;padding:12px;margin:4px 0 20px;width:100%;font-size:13px}.ad-offer>div{margin:8px 0}.ad-offer .btn{margin-top:7px}.match-page{height:100%;width:100%;display:flex;align-items:center;flex-direction:column;position:relative;overflow:hidden;background:linear-gradient(168deg,#de626e 0,#ed8f81 44%,#382c5b 44.2%,#382c5b 45%,#62cdec 45.2%,#6963c8 100%);padding:6vh 24px 25px}.match-rival,.match-player{display:flex;align-items:center;flex-direction:column;gap:12px;background:linear-gradient(120deg,#ffde9c,#eba875);border:3px solid #86545d;border-radius:22px;box-shadow:inset 0 4px #ffeabd,0 5px #814c68;color:#4a3457;width:85%;padding:22px 10px 18px;transform:rotate(-4deg)}.match-rival .avatar,.match-player .avatar{width:68px;height:68px;font-size:40px}.match-rival h2,.match-player h2{font-size:25px}.match-rival>span:not(.avatar),.match-player>span:not(.avatar){font-weight:900;background:#9c79c3;padding:3px 12px;border-radius:15px;color:#fff}.match-rival>small{color:#865d76}.match-player{transform:rotate(3deg)}.versus{font-size:76px;font-weight:1000;font-style:italic;line-height:1.1;color:#fffbf2;text-shadow:4px 5px #47334d,-3px -3px #47334d;margin:2vh 0}.match-status{display:flex;justify-content:center;gap:12px;margin:auto 0 20px;font-size:19px;align-items:center;padding-top:25px}.spinner{width:22px;height:22px;border:3px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.in-combat{background:#3a2b60}.battle-screen{height:100%;display:flex;flex-direction:column;min-height:0}.battle-hud{display:flex;justify-content:space-between;align-items:center;padding:9px 16px 7px;flex:none;height:74px;background:linear-gradient(#65448f,#402a68)}.combatant{display:flex;flex-direction:column;gap:3px;min-width:95px}.combatant b{font-size:13px;max-width:120px;text-overflow:ellipsis;overflow:hidden}.combatant strong{font-size:25px;text-shadow:0 2px #243855}.combatant.blue{color:#a3f2ff}.combatant.red{color:#ffb4b5;text-align:end}.battle-clock{display:flex;flex-direction:column;align-items:center;position:relative}.battle-clock>b{font-size:25px;font-variant-numeric:tabular-nums;color:#fff1c8;line-height:1}.battle-clock small{font-size:9px;color:#d9c7ea;margin-top:5px}.battle-clock button{position:absolute;top:-3px;left:-30px;width:24px;height:26px;border-radius:6px;background:#332050;border:1px solid #9d7cb8;font-size:16px}.urgent{color:#ffa5a5!important}.territory-meter{height:9px;display:flex;direction:ltr;background:#efe4d1;border-block:1px solid #302341;flex:none}.territory-meter>i{height:100%;transition:width .2s}#blue-bar{width:20%;background:#40c3eb}#red-bar{width:20%;background:#f27d82}#neutral-bar{width:60%;background:#e3d7c8}.board-wrap{flex:1;min-height:0;position:relative;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse,#544568,#29233f);padding:5px 7px;overflow:hidden}.board-wrap canvas{display:block;max-height:100%;max-width:100%;height:100%;aspect-ratio:353.338/484;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:7px;box-shadow:0 0 0 2px #211a35,0 2px 12px #1a143d;direction:ltr}.board-cue{position:absolute;top:65%;left:50%;transform:translateX(-50%);background:#342452e6;border:1px solid #ddd0f088;border-radius:11px;max-width:85%;width:270px;text-align:center;padding:10px;font-size:13px;font-weight:900;pointer-events:none;box-shadow:0 3px #261b42}.board-cue[hidden]{display:none}.battle-hand-area{background:linear-gradient(#71519c,#463069);padding:7px 16px 12px;flex:none;border-top:2px solid #a68ac0;box-shadow:0 -5px 15px #29203c55}.battle-hand-area>p{font-size:12px;color:#f4e7ff;text-align:center;margin:0 0 8px;line-height:1.2}.hand{display:flex;justify-content:center;gap:10px;align-items:center;min-height:93px}.hand-card{background:linear-gradient(#ffe4bb,#dca773);border:2px solid #77506d;box-shadow:inset 0 3px #fff0d0,0 4px #483153;position:relative;min-width:0;flex:1;max-width:113px;border-radius:12px;color:#4f3550;display:flex;flex-direction:column;align-items:center;padding:4px 3px 5px;height:99px;touch-action:none;user-select:none}.hand-card .weapon-art{height:62px;width:82px}.hand-card b{font-size:11px;line-height:1;white-space:nowrap}.hand-card small{font-size:10px;margin-top:4px;color:#795369}.hand-card kbd{position:absolute;right:4px;top:4px;font-size:9px;color:#9a6d89}.hand-card.selected{outline:3px solid #f9fca5;transform:translateY(-6px);box-shadow:0 0 24px #ffffad55,inset 0 3px #fff7d7,0 5px #8e5b51}.hand-card.unaffordable{filter:saturate(.45) brightness(.83)}.hand-card.selected.unaffordable{outline-color:#e998b0}.next-card{width:37px;flex:none;display:flex;flex-direction:column;align-items:center;text-align:center;color:#d5c5e5}.next-card small{font-size:9px}.next-card .weapon-art{width:38px;height:36px;background-color:#6d5687;border-radius:7px;opacity:.8;margin:4px 0}.next-card>span:last-child{font-size:12px;font-weight:800}.energy-row{display:flex;align-items:center;gap:8px;margin-top:10px}.energy-row>.coin{width:25px;height:25px}.energy-row>b{font-size:13px;white-space:nowrap;color:#f4dbff}.energy-row>div{display:flex;gap:3px;flex:1;direction:ltr}.energy-row>div>i{height:13px;flex:1;border:1px solid #352447;border-radius:3px;background:linear-gradient(90deg,#ca9dff var(--fill),#372952 var(--fill));box-shadow:inset 0 2px #e8c8ff44}#toast{position:fixed;z-index:100;bottom:95px;left:50%;transform:translate(-50%,15px);background:#251b40ef;color:#fff0d4;border:1px solid #dfb2e1;border-radius:12px;padding:12px 20px;box-shadow:0 5px 20px #120b26;text-align:center;max-width:min(90%,430px);width:max-content;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;font-size:14px}#toast.show{opacity:1;transform:translate(-50%,0)}.modal-backdrop{position:fixed;z-index:30;inset:0;background:#161125ba;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:15px}.modal{position:relative;width:440px;max-width:100%;max-height:90dvh;overflow:auto;border:3px solid #c6a3e9;border-radius:22px;background:linear-gradient(145deg,#9772c0,#62468e);box-shadow:inset 0 3px #e3c0f6,0 7px #3b235c,0 20px 70px #09071699;padding:28px 23px 22px;color:#fff0fb;scrollbar-width:thin}.modal h2{text-align:center;margin-bottom:17px;font-size:24px;text-shadow:0 2px #54336b;padding:0 15px}.modal>p{font-size:14px;margin:12px 0;text-align:center}.modal-close{position:absolute;right:10px;top:9px;background:#cf6d93;border:2px solid #7c3c69;box-shadow:inset 0 2px #efa8c0,0 2px #593462;border-radius:9px;width:32px;height:32px;display:grid;place-items:center;font-size:25px;line-height:1;z-index:3}.card-detail{display:flex;flex-direction:column;align-items:center;background:radial-gradient(ellipse,#e8d1bd88,transparent 67%);padding:0 0 10px}.card-detail .weapon-art{width:210px;height:160px}.card-detail h2{margin:2px 0 7px}.rarity-pill{font-size:11px;letter-spacing:1px;border-radius:12px;padding:4px 12px;background:var(--rarity);color:#533759;box-shadow:0 2px #54356c}.detail-stats{display:flex;gap:8px;margin:17px 0}.detail-stats>div{background:#4d337a88;border:1px solid #bf9bd255;flex:1;border-radius:11px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:3px;justify-content:center;position:relative}.detail-stats b{font-size:23px}.detail-stats small{font-size:11px;color:#e5cff5}.detail-stats .coin{position:absolute;left:6px;top:6px;width:17px;height:17px;font-size:12px}.boost-line{background:#3e315e;border:1px solid #c3a6dc;border-radius:8px;height:12px;margin:10px 0 7px;overflow:hidden}.boost-line i{display:block;height:100%;background:linear-gradient(#d7feff,#57bcf0)}.card-modal>.muted{display:block;font-size:12px;text-align:center}.upgrade-cost{background:#51377499;border:1px solid #b295cc66;border-radius:12px;padding:10px 13px 13px;margin-top:14px;text-align:center;font-size:13px}.form-field{display:flex;flex-direction:column;gap:8px;font-weight:800;font-size:14px;margin:17px 0}.form-field input,.form-field select{background:#3d2b64;border:1px solid #b28bcf;border-radius:10px;color:#fff5ff;padding:11px 12px;width:100%;font-size:16px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #cda3e333;font-size:15px}.setting-row input{appearance:none;width:42px;height:24px;background:#443264;border:2px solid #4b2f6d;border-radius:14px;position:relative;cursor:pointer}.setting-row input:before{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#d5c1df;left:2px;top:2px}.setting-row input:checked{background:#8fcb72}.setting-row input:checked:before{left:20px;background:#f2ffd9}.how-steps{display:flex;flex-direction:column;gap:15px;margin-top:20px}.how-steps article{display:flex;gap:12px}.how-steps article>span{background:#ffd77b;border:2px solid #89526c;border-radius:50%;width:28px;height:28px;flex:none;text-align:center;padding-top:2px;font-weight:900;color:#704567}.how-steps h3{font-size:16px;margin-bottom:5px}.how-steps p{font-size:13px;color:#ede0f5;line-height:1.6}.swap-deck{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.swap-deck .mini-card .weapon-art{height:90px}.swap-deck .mini-name{font-size:12px}.pack-opening{text-align:center}.pack-opening h2{color:#ffe494;margin-top:0}.burst-star{font-size:70px;color:#ffe588;text-shadow:0 0 30px #ffeba3;line-height:1}.gold-total{font-size:23px}.pack-result-cards{display:flex;gap:8px;margin:22px 0}.pack-reward{flex:1;min-width:0;background:linear-gradient(#f6d3ab,#d1a37f);border:2px solid #765679;border-radius:12px;padding:8px 3px;box-shadow:inset 0 2px #fff0d0,0 3px #583961;color:#563658}.pack-reward .weapon-art{width:100%;height:84px}.pack-reward b{display:block;font-size:12px;height:30px}.pack-reward strong{font-size:24px;display:block;color:#fffbe6;text-shadow:0 2px #633656}.pack-reward small{display:block;font-size:9px;color:#3b7b3c;margin-top:5px;font-weight:900}.boot{display:grid;place-content:center;text-align:center;height:100%;background:#624293;gap:16px}.boot b{font-size:32px;color:#ffde8d}.reduce-motion *, .reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important}html[dir=rtl] .brand,html[dir=rtl] .arena-badge{direction:ltr}html[dir=rtl] .brand b{letter-spacing:4px}html[dir=rtl] .battle-hud{direction:ltr}html[dir=rtl] .mini-name{font-size:10px}html[dir=rtl] .hand-card b{font-size:10px}html[dir=rtl] .lobby-deck{direction:rtl}html[dir=rtl] .wallet>button{padding:0 0 0 8px}html[dir=rtl] .settings-btn{line-height:1}
@media(min-width:850px){.game-shell{border-inline:3px solid #b996e83d;box-shadow:0 0 100px #0c0d22d9}.lobby-scene{min-height:230px}.brand span{font-size:76px}.brand b{font-size:27px}.lobby-controls{gap:10px;padding-bottom:16px}.lobby-deck .weapon-art{height:58px}.mini-name{font-size:11px}.mini-level{font-size:11px}.battle-button{min-height:64px;font-size:31px}.bottom-nav{height:83px}.bottom-nav b{font-size:13px}}
@media(max-height:750px){.topbar{padding:10px 15px 4px}.avatar{width:40px;height:40px;font-size:24px}.wallet{padding-bottom:6px}.lobby-controls{gap:6px;padding:4px 25px 7px}.lobby-deck .weapon-art{height:36px}.mini-name{font-size:9px;height:19px}.mini-level{font-size:9px;margin-top:2px}.brand span{font-size:54px}.brand b{font-size:19px}.brand{top:10px}.bottom-nav{height:67px}.bottom-nav>button>span{font-size:25px}.bottom-nav b{font-size:11px}.bottom-nav .main-tab>span{font-size:32px}.battle-button{min-height:49px;font-size:25px}.cache{height:32px;width:37px}.cache>span{font-size:20px}.fair-note{font-size:10px}.battle-hand-area{padding:6px 12px 9px}.battle-hand-area>p{font-size:11px;margin-bottom:7px}.hand-card{height:87px}.hand-card .weapon-art{height:52px;width:75px}.hand{min-height:86px}.battle-hud{height:65px;padding:7px 14px}.combatant strong{font-size:23px}.energy-row{margin-top:7px}.result-emblem{font-size:62px}.result-page h1{font-size:36px}.result-loot{margin:12px 0}.boost-grid{margin-top:15px}.boost-item .mini-card{height:105px}.result-page{padding-top:5px}.result-kicker{font-size:10px}}
@media(max-width:370px){.wallet{gap:7px;padding-inline:12px}.wallet b{font-size:13px}.topbar{padding-inline:12px}.lobby-controls{padding-inline:18px}.collection-grid{gap:11px 7px}.scroll-page{padding-inline:12px}.daily-grid{gap:6px}.mini-name{font-size:9px}.btn.small{font-size:12px}.daily-card .btn{font-size:11px}.result-page{padding-inline:12px}.boost-grid{gap:5px}.boost-item .btn{font-size:10px}.boost-item .btn .coin{width:12px;height:12px}.hand{gap:8px}.hand-card .weapon-art{width:65px}.hand-card b{font-size:10px}.next-card{width:29px}.next-card .weapon-art{width:30px}.profile b{font-size:15px}}
@media(max-height:540px) and (min-width:600px){.game-shell{width:100%;max-width:960px}.topbar{height:48px;padding:5px 18px}.wallet{position:absolute;top:7px;right:65px;width:310px;z-index:4}.profile .avatar{height:36px;width:36px}.profile small{display:none}.lobby{flex-direction:row}.lobby-scene{width:52%;min-height:0}.lobby-controls{width:48%;padding:8px 24px;justify-content:center;gap:6px}.brand{top:7px}.brand span{font-size:50px}.lobby-deck .weapon-art{height:30px}.mini-level{display:none}.cache{height:28px}.battle-button{min-height:44px}.bottom-nav{height:50px;max-width:480px;width:100%;align-self:center}.bottom-nav>button{flex-direction:row;gap:7px}.bottom-nav .main-tab{margin-top:0}.bottom-nav .main-tab>span{font-size:28px}.battle-screen{display:grid;grid-template-columns:1fr 220px;grid-template-rows:58px 6px 1fr}.battle-hud{grid-column:1/3;height:58px}.territory-meter{grid-column:1/3;height:6px}.board-wrap{grid-column:1;grid-row:3}.battle-hand-area{grid-column:2;grid-row:3;padding:10px;border-left:2px solid #a68ac0}.hand{flex-wrap:wrap;gap:12px;align-content:center}.hand-card{flex:none;width:82px;height:100px}.hand-card .weapon-art{height:66px}.next-card{width:82px}.next-card .weapon-art{width:60px;height:50px}.battle-hand-area>p{font-size:12px;margin-bottom:15px}.energy-row{flex-wrap:wrap}.energy-row>div{min-width:120px}.scroll-page{padding:12px 25px}.daily-grid,.shop-packs{max-width:600px;margin:auto}.collection-grid{grid-template-columns:repeat(5,1fr)}.deck-strip{max-width:500px}.result-page{padding-top:0;display:grid;grid-template-columns:1fr 1.3fr;gap:4px 20px;align-content:center;justify-items:center}.result-page h1{grid-column:1;grid-row:2}.result-emblem{grid-column:1;grid-row:1;font-size:65px}.result-kicker{display:none}.result-score{grid-column:1;grid-row:3}.result-loot{grid-column:1;grid-row:4}.result-page h2,.result-page>.muted{display:none}.boost-grid{grid-column:2;grid-row:1/4;margin:0}.boost-tip{grid-column:2;grid-row:4;font-size:11px;margin:0}.continue-button{grid-column:1/3;grid-row:5;width:250px;min-height:40px;font-size:18px}.match-page{flex-direction:row;gap:20px;justify-content:center;flex-wrap:wrap;padding:30px;background:linear-gradient(110deg,#e4787b 0,#e4787b 49%,#6b90d9 49.5%,#6b90d9)}.match-rival,.match-player{width:30%;padding:15px}.versus{font-size:60px}.match-status{position:absolute;bottom:10px;left:35%;margin:0;font-size:16px}.match-page>.btn{position:absolute;bottom:13px;right:15px}.match-rival .avatar,.match-player .avatar{width:45px;height:45px}.match-rival h2,.match-player h2{font-size:20px}}

html[lang=ar] body{font-family:Tahoma,Arial,sans-serif}html[lang=ar] .brand{font-family:'Trebuchet MS',Arial,sans-serif}.copy-track span{direction:ltr;unicode-bidi:isolate}.track b{direction:ltr}.wallet b{unicode-bidi:isolate}.upgrade-cost>b>bdi{direction:ltr}

.coin.trophy{background:none;border:0;box-shadow:none;text-shadow:none;font-family:'Segoe UI Emoji',sans-serif;font-size:20px}.profile .coin.trophy{font-size:18px}

/* Original 3D fantasy art and an arena built around the 25 x 40 hex board. */
.reward-art{display:inline-block;background-image:url('./assets__rewards.png');background-size:300% 300%;background-position:var(--rx) var(--ry);background-repeat:no-repeat;width:70px;height:70px;flex:none;vertical-align:middle;pointer-events:none}
.reward-art.coin,.coin.gems.reward-art,.coin.cores.reward-art,.coin.trophy.reward-art{background-image:url('./assets__rewards.png');background-size:300% 300%;background-position:var(--rx) var(--ry);background-repeat:no-repeat;background-color:transparent;border:0;border-radius:0;box-shadow:none;transform:none;text-shadow:none;width:28px;height:28px}
.wallet .reward-art.coin{width:43px;height:43px;margin:-6px 0 -6px -3px}.daily-card .reward-art.coin{width:90px;height:90px}.profile .reward-art.coin{width:23px;height:23px}.track .reward-art.coin{width:31px;height:31px}.btn .reward-art.coin{width:27px;height:27px}.result-emblem .reward-art{width:96px;height:96px}.gold-total .coin{width:43px;height:43px}.daily-card{overflow:visible}
body:before{background:radial-gradient(ellipse at 50% 25%,#4c3a82,#121727 80%);filter:none}
.game-shell{background:radial-gradient(ellipse at 45% 25%,#9480cb,#7360b1 58%,#574190)}.game-shell:before{opacity:.18}
.lobby-scene{overflow:hidden;margin-top:0;min-height:140px}.lobby-scene:after{display:none}.stage-caption{position:absolute;top:4px;text-align:center;inset-inline:0;z-index:1}.stage-caption small{font-size:12px;letter-spacing:3px;color:#e2cdf7;font-weight:900}.stage-caption p{font-size:13px;margin-top:6px;color:#f5e9ff;text-shadow:0 2px #4b3d75}
.stage-art{position:absolute;height:calc(100% - 32px);max-height:415px;aspect-ratio:1;left:50%;bottom:-3px;transform:translateX(-50%);background:url('./assets__arenas.png') var(--stage-x) var(--stage-y)/300% 500% no-repeat;filter:drop-shadow(0 12px 7px #33224960)}
.stage-rewards{position:absolute;bottom:0;inset-inline:13%;display:flex;justify-content:space-around;z-index:2;pointer-events:none}.stage-rewards>span{background:linear-gradient(#f7fcff,#bdd9ff);border:2px solid #4b547f;border-radius:50%;box-shadow:0 3px #4f3869;position:relative;width:44px;height:44px}.stage-rewards>span:after{content:"";position:absolute;left:15px;bottom:-8px;width:12px;height:12px;background:#c4dfff;border-right:2px solid #4b547f;border-bottom:2px solid #4b547f;transform:rotate(45deg)}.stage-rewards .reward-art{width:40px;height:40px;position:relative;z-index:1}
.gift-float{top:63px;bottom:auto;left:13px;background:transparent;box-shadow:none;border:0;padding:0}.gift-float .reward-art{width:56px;height:56px}.gift-float small{display:block;color:#fff0bf;text-shadow:0 2px #4c315b;margin-top:-7px}.help-float{top:7px;width:30px;height:30px;right:13px}
.lobby-controls{padding:11px 27px 22px;gap:13px}.track{height:38px;border:3px solid #c3a8f1;border-radius:19px;background:linear-gradient(#33115c,#52257d);box-shadow:0 0 0 2px #5a3d80,0 4px #3f285e}.track b{font-size:20px;color:#ffdf8b}.track>i{opacity:.55;background:linear-gradient(#e4c1ff,#9c65d3)}
.stage-selector{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#a37de0,#865ebc);border:2px solid #4e2b72;border-top:0;box-shadow:inset 0 -3px #b592e977,0 3px #593b79;width:88%;margin:auto;border-radius:0 0 7px 7px;min-height:36px}.stage-selector>button{background:#b594e7;border-inline:1px solid #65418c;height:35px;width:35px;font-size:29px;line-height:1;color:#74519f;flex:none}.stage-selector b{font-size:16px;text-align:center;text-shadow:0 2px #4b3063}.cache-track{padding:5px 9px;background:#51358170;border:2px solid #a381d1;border-radius:40px;gap:7px}.cache{border-radius:50%;width:45px;height:45px;background:linear-gradient(#e9c9a5,#c49071);border-color:#6e4672;box-shadow:inset 0 3px #fff0d1,0 3px #4f3168}.cache .reward-art{width:39px;height:39px}.cache.current{box-shadow:0 0 0 2px #ffd878,inset 0 3px #fff4d6,0 3px #54346f}.cache>span{font-size:25px;color:#f2e4ff}.stage-prize{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;height:59px}.stage-prize small{font-size:15px;font-weight:900}.stage-prize b{font-size:28px}.stage-prize .coin{width:42px;height:42px}
.battle-button{min-height:64px;border-radius:20px;width:90%;max-width:330px}.fair-note{font-size:10px}.bottom-nav .main-tab{background:linear-gradient(#e9d8ff,#ab83e2)}.bottom-nav .main-tab.active{background:linear-gradient(#f0e1ff,#ac83df)}
.shop-pack-art{width:100%;height:auto;aspect-ratio:1;filter:drop-shadow(0 8px 5px #52376577);margin:8px 0}.supply-banner>.shop-pack-art{width:110px;height:110px}.pack-card .pack-seal{display:none}.pack-card{padding-top:5px}.pack-card h3{margin:0}.weapon-art{aspect-ratio:1}.card-detail .weapon-art{width:185px;height:185px}.mini-card .weapon-art{height:59px;max-width:80px}.hand-card .weapon-art{width:70px;height:70px}.collection-card .weapon-art{height:98px;width:98px}
.in-combat{background:#0d1e42;max-width:570px}.in-combat:before{display:none}.battle-screen{background:linear-gradient(#101c44,#20334c);min-height:0}.battle-hud{background:linear-gradient(#111841,#152653);height:73px;padding:9px 17px}.combatant{border:2px solid #beddfd;border-radius:6px;padding:4px 10px;min-width:100px;box-shadow:0 3px #020c26}.combatant.blue{background:linear-gradient(#16b8ff,#097de5)}.combatant.red{background:linear-gradient(#ff6a80,#e22e53)}.combatant b{font-size:13px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.combatant strong{font-size:20px}.battle-clock{background:#0a416b;border:2px solid #b6d3eb;border-radius:4px;padding:2px 5px}.battle-clock>b{font-size:22px}.battle-clock>small{font-size:8px}.battle-clock button{background:transparent}
.territory-meter{height:10px;border:1px solid #dae5ec;margin:1px 18px 0;box-shadow:0 2px #0a1127}.territory-meter #blue-bar{background:#16baff}.territory-meter #neutral-bar{background:#bdc6d2}.territory-meter #red-bar{background:#fc4669}
.board-wrap{background:#293749;padding:8px 5px;min-height:0;position:relative}#board{border:4px solid #f1f2eb;border-radius:13px;box-shadow:0 4px #87919b,0 6px #121c2d;box-sizing:content-box;outline-offset:3px}
.battle-hand-area{background:linear-gradient(#152554,#0b153b);border-top:2px solid #506286;padding:6px 16px 9px}.battle-hand-area>p{color:#cbdfff;font-size:11px;margin-bottom:7px}.hand-card{border:3px solid #f3f1e7;border-radius:6px;background:linear-gradient(135deg,#3ed3f3,#1191d2);box-shadow:0 3px #070f2b;height:103px;padding:2px 2px 4px;color:#fff8e5}.hand-card b{font-size:10px;text-shadow:0 1px #304663}.hand-card small{font-size:9px;color:#effcff}.hand-card .cost{background:linear-gradient(#d9ff99,#61cb40);color:#102f35;border-color:#eff6cd;box-shadow:0 2px #102a44;top:-5px;left:-6px;font-size:17px}.hand-card kbd{color:#e1f8fc}.next-card .weapon-art{background-color:#2c5990;opacity:1;border:1px solid #c1e5ff}.energy-row>div>i{height:13px;border-radius:1px;border:1px solid #d2f7b9;background:linear-gradient(90deg,#92e94f var(--fill),#172447 var(--fill));box-shadow:inset 0 3px #efffc677}.energy-row{margin-top:8px}.board-cue{top:44%;background:#142751dc;max-width:80%;font-size:11px}
.emote-toggle{position:absolute;bottom:10px;left:14px;width:35px;height:31px;background:#fff9e6;color:#15436c;border:2px solid #8fb6d8;border-radius:10px;font-size:26px;line-height:1;box-shadow:0 2px #20345d}.emote-tray{position:absolute;bottom:48px;left:10px;right:10px;display:flex;justify-content:center;gap:5px;z-index:4;background:#152447ed;border:2px solid #b0d1f5;border-radius:15px;padding:9px;box-shadow:0 5px 15px #111c38}.emote-tray[hidden]{display:none}.emote-tray button{font-size:27px;width:40px;height:42px;padding:0;background:linear-gradient(#ffedc7,#e5bc8e);border:2px solid #775681;border-radius:9px}.emote-tray button:last-child{font-size:20px;color:#3c4b69;width:30px}.emote-tray .muted-emotes{opacity:.5}.emote-bubble{position:absolute;pointer-events:none;opacity:0;transform:scale(.4);font-size:37px;border-radius:17px;background:#fff9e8;border:3px solid #7497c6;box-shadow:0 4px #182c4b;padding:4px 8px;z-index:3;transition:opacity .2s,transform .3s}.emote-bubble.rival{top:13px;right:15px}.emote-bubble.player{bottom:18px;right:15px}.emote-bubble.show{opacity:1;transform:scale(1);animation:emote-pop .3s ease-out}.result-reaction{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;height:26px}.result-reaction span{font-size:25px}.result-emblem{line-height:1;height:98px}.result-page{padding-top:12px}.result-page h1{margin-top:0}.result-page .boost-grid{margin-top:13px}
.rival-roulette{width:100%;overflow:hidden;min-height:164px;display:flex;align-items:center;justify-content:center}.rival-roulette .match-rival{width:82%;margin:0}.match-rival.rolling{animation:rival-roll .24s ease-out}.rival-found .match-rival{box-shadow:0 0 30px #ffeca4a0,inset 0 3px #ffe9bf;animation:emote-pop .3s ease-out}.match-page{background:linear-gradient(173deg,#ef575f,#ff9290 46%,#99d6ff 46.3%,#466de1);gap:24px;padding-top:45px}.match-player,.match-rival{background:linear-gradient(130deg,#ffd99b,#eea35c);border:3px solid #81526b;box-shadow:inset 0 3px #fff1c9,0 5px #643b5d;transform:skew(-5deg);border-radius:18px}.match-player h2,.match-rival h2{font-size:26px}.match-rival small{font-size:10px;color:#6d4059}.versus{font-size:64px;color:#fff;text-shadow:3px 4px #502b39,-2px -2px #502b39;line-height:1}.match-status{margin-top:20px}
.physical-pack{position:relative;display:block;width:260px;height:270px;margin:15px auto;background:none;border:0;filter:drop-shadow(0 10px 15px #38205299);animation:pack-idle 3s ease-in-out infinite}.physical-pack .reward-art{width:260px;height:260px}.foil-body,.foil-tear{position:absolute;inset:0}.foil-body{clip-path:inset(25% 0 0)}.foil-tear{clip-path:inset(0 0 75%)}.pack-aura{position:absolute;inset:-15px;border-radius:50%;background:radial-gradient(#fff2bba0,transparent 68%);z-index:-1}.tear-line{position:absolute;top:25%;left:12%;right:12%;border-top:2px dashed #fff5cb99}.opening .physical-pack{animation:pack-shake .35s ease-in-out 2}.opening .foil-tear{animation:foil-away .75s .35s forwards}.opening .foil-body{animation:pack-drop .8s .5s forwards}.opening .pack-aura{animation:pack-flash 1.1s forwards}.opening .tear-line{display:none}.pack-modal .btn{position:relative;z-index:2}.pack-opening>p{font-size:14px}.burst-reward{height:90px}.burst-reward .reward-art{height:100px;width:100px}.pack-result-cards{display:grid;grid-template-columns:repeat(3,1fr);max-height:40dvh;overflow:auto;padding:4px;margin:15px 0;gap:8px}.pack-reward{animation:reward-reveal .45s var(--delay) both}.pack-reward .weapon-art{width:74px;height:74px}.pack-reward b{height:auto;min-height:28px;font-size:11px}.pack-opening.revealed{animation:reward-reveal .35s}.modal a{color:#e5f8ff}.pack-card h3{font-size:16px}
@keyframes slide-out-right{to{transform:translateX(65%);opacity:0}}@keyframes slide-out-left{to{transform:translateX(-165%);opacity:0}}@keyframes slide-in-right{from{transform:translateX(-165%);opacity:0}to{transform:translateX(-50%);opacity:1}}@keyframes slide-in-left{from{transform:translateX(65%);opacity:0}to{transform:translateX(-50%);opacity:1}}.slide-out-right{animation:slide-out-right .26s ease-in both}.slide-out-left{animation:slide-out-left .26s ease-in both}.slide-in-right{animation:slide-in-right .38s ease-out both}.slide-in-left{animation:slide-in-left .38s ease-out both}
@keyframes rival-roll{from{transform:translateX(-90%) skew(-5deg);opacity:.2}to{transform:translateX(0) skew(-5deg);opacity:1}}@keyframes emote-pop{0%{transform:scale(.65)}65%{transform:scale(1.12)}100%{transform:scale(1)}}@keyframes pack-idle{50%{transform:translateY(-7px) rotate(3deg)}}@keyframes pack-shake{25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}@keyframes foil-away{to{transform:translate(100px,-130px) rotate(32deg);opacity:0}}@keyframes pack-drop{to{transform:translateY(70px) scale(.6);opacity:0}}@keyframes pack-flash{80%{transform:scale(2);background:#fff9cb;opacity:1}100%{opacity:0}}@keyframes reward-reveal{from{opacity:0;transform:translateY(35px) scale(.8)}to{opacity:1;transform:none}}
@media(max-height:750px){.lobby-controls{padding:9px 22px 13px;gap:8px}.stage-art{height:calc(100% - 28px);bottom:0}.stage-caption p{font-size:11px}.stage-caption small{font-size:10px}.stage-rewards>span{width:36px;height:36px}.stage-rewards .reward-art{width:32px;height:32px}.stage-rewards>span:after{left:11px;width:10px;height:10px}.stage-selector b{font-size:14px}.track{height:32px}.track b{font-size:17px}.stage-selector{min-height:30px}.stage-selector button{height:29px}.cache{width:38px;height:38px}.cache .reward-art{width:32px;height:32px}.cache-track{padding:4px 7px}.battle-button{min-height:51px}.battle-hud{height:64px}.combatant{padding:2px 7px}.combatant strong{font-size:17px}.battle-clock>b{font-size:20px}.hand-card{height:88px}.hand-card .weapon-art{width:56px;height:56px}.hand{min-height:86px}.result-emblem{height:65px}.result-emblem .reward-art{width:69px;height:69px}.result-page h1{font-size:35px}.result-page{padding-top:4px}.result-reaction{height:21px}.physical-pack{width:220px;height:230px}.physical-pack .reward-art{width:220px;height:220px}.pack-opening h2{font-size:21px}.match-page{padding-top:25px;gap:16px}.rival-roulette{min-height:135px}}
@media(max-width:370px){.stage-selector b{font-size:12px}.lobby-controls{padding-inline:18px}.emote-tray{gap:3px;padding:6px}.emote-tray button{width:36px;font-size:24px}.combatant{min-width:88px}.collection-card .weapon-art{width:86px;height:86px}}
@media(max-height:540px) and (min-width:600px){.game-shell.in-combat{max-width:960px}.lobby-controls{gap:5px;padding:5px 25px 7px}.stage-art{height:calc(100% - 15px);bottom:-12px}.stage-caption{top:0}.stage-caption p{display:none}.stage-rewards{bottom:5px}.cache-track{padding:2px 7px}.cache{width:31px;height:31px}.cache .reward-art{width:27px;height:27px}.battle-button{min-height:44px}.track{height:28px}.stage-selector{min-height:26px}.stage-selector button{height:25px}.stage-selector b{font-size:13px}.stage-prize{height:41px}.stage-prize b{font-size:21px}.battle-hud{height:58px}.hand-card{height:98px}.hand-card .weapon-art{width:64px;height:64px}.hand{gap:10px}.board-wrap{padding:4px}.result-emblem{height:67px}.result-reaction{grid-column:1;grid-row:5}.continue-button{grid-row:6}.rival-roulette{width:32%;min-height:170px}.rival-roulette .match-rival{width:100%}.match-page{gap:12px;flex-wrap:nowrap;padding:12px}.match-player{width:32%}.match-status{bottom:16px;font-size:15px}.emote-tray{flex-wrap:wrap;max-width:305px;left:50%;transform:translateX(-50%)}}
.bottom-nav>button>span>.reward-art,.bottom-nav>button>span>.weapon-art{width:43px;height:43px;margin:0;filter:drop-shadow(0 2px 1px #49356877)}.bottom-nav .main-tab>span>.reward-art{width:52px;height:52px}@media(max-height:750px){.bottom-nav>button>span>.reward-art,.bottom-nav>button>span>.weapon-art{width:35px;height:35px}.bottom-nav .main-tab>span>.reward-art{width:44px;height:44px}}@media(max-height:540px) and (min-width:600px){.bottom-nav>button>span>.reward-art,.bottom-nav>button>span>.weapon-art,.bottom-nav .main-tab>span>.reward-art{width:31px;height:31px}}
@media(max-height:540px) and (min-width:600px){html[dir=rtl] .wallet{left:65px;right:auto}}

.fair-note:empty{display:none}.avatar{overflow:hidden;position:relative;padding:0}.avatar-portrait{display:block;width:100%;height:100%;background:url('./assets__avatars.png') var(--px) var(--py)/400% 300% no-repeat;pointer-events:none}.avatar .avatar-portrait{transform:scale(1.16) translateY(1px)}.rank-avatar{overflow:hidden;padding:0;width:44px;height:44px;border-radius:12px;background:linear-gradient(#6bbeec,#445bb0)}.rank-avatar .avatar-portrait{transform:scale(1.13)}.league-emblem{height:133px;font-size:16px;padding:0}.league-emblem>.reward-art{width:104px;height:104px;display:block;margin:auto}.league-emblem>span{position:static;display:block}.avatar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 9px;margin-top:19px}.portrait-choice{position:relative;min-width:0;border:2px solid #d3b9ee;border-radius:14px;background:linear-gradient(#7966b9,#473c86);padding:7px 3px;color:#fff;box-shadow:inset 0 2px #d4b8f155,0 4px #362853}.portrait-choice .avatar-portrait{height:97px;margin-bottom:4px}.portrait-choice b{display:block;font-size:11px;min-height:26px;text-wrap:balance}.portrait-choice small{font-size:9px;display:block;color:#e4d7ff;min-height:21px}.portrait-choice.locked{filter:grayscale(.8);opacity:.6}.portrait-choice.chosen{border-color:#fff1a1;background:linear-gradient(#c7a455,#856438);box-shadow:0 0 13px #ffdf7e88}.portrait-choice.chosen small{color:#fff2b5}.avatar-modal>p{font-size:13px}.combatant{display:grid;grid-template-columns:30px auto;column-gap:4px;min-width:108px;padding:3px 6px}.combatant>.combat-avatar{grid-column:1;grid-row:1/3;width:30px;height:39px;align-self:center;overflow:hidden}.combat-avatar .avatar-portrait{transform:scale(1.12)}.combatant>b,.combatant>strong{grid-column:2}.combatant b{max-width:78px;font-size:11px}.combatant strong{font-size:19px}.battle-hud{gap:8px;padding-inline:12px}.battle-clock{flex:none}.rival-roulette{min-height:173px}.rival-roulette .match-rival{display:grid;grid-template-columns:64px auto;grid-template-rows:auto auto auto;column-gap:14px;text-align:start;padding:17px 22px}.match-rival>.avatar{grid-column:1;grid-row:1/4;width:64px;height:69px;align-self:center;margin:0}.match-rival>h2,.match-rival>.rival-trophies,.match-rival>small{grid-column:2;margin:0}.match-rival>h2{font-size:25px;white-space:nowrap}.rival-trophies{font-size:22px;font-weight:900;display:flex;align-items:center;gap:5px;justify-content:flex-start;color:#fff3b9;text-shadow:0 2px #85534d}.rival-trophies>.coin{width:40px;height:40px}.match-player .avatar{width:65px;height:65px}.match-player>span:not(.avatar){display:flex;align-items:center;justify-content:center;font-size:23px;font-weight:900;gap:6px}.match-status{margin-top:10px}.match-rival.rolling{animation:rival-roll .21s ease-out}
.pack-modal{background:none!important;border:0!important;box-shadow:none!important;border-radius:0;overflow:auto;max-width:540px;width:100%;padding:25px 25px 15px}.pack-modal .modal-close{background:#1b244c;border:1px solid #d6daf5;box-shadow:none;right:14px}.modal-backdrop:has(.pack-modal){background:radial-gradient(ellipse at 50% 42%,#546acaeb,#111b3df2 72%);backdrop-filter:blur(8px)}.pack-modal h2{color:#fff0ab;text-shadow:0 3px #212b62;font-size:28px}.physical-pack{width:300px;height:312px;filter:drop-shadow(0 14px 20px #12183899)}.physical-pack .reward-art{width:300px;height:300px}.pack-aura{background:radial-gradient(#edf3ff9e,transparent 68%)}.pack-opening>p{color:#e2e9ff}.pack-opening .pack-result-cards{overflow:visible;max-height:none;gap:4px}.pack-opening .pack-reward{background:none;border:0;box-shadow:none;color:#fff5e3;padding:0 3px;text-shadow:0 2px #233260}.pack-opening .pack-reward .weapon-art{width:100%;height:110px;filter:drop-shadow(0 0 13px #c3e9ffa0)}.pack-opening .pack-reward b{font-size:13px;min-height:36px}.pack-opening .pack-reward strong{font-size:28px}.pack-opening .pack-reward small{color:#c8ffb3}.burst-reward{height:117px}.burst-reward .reward-art{width:124px;height:124px}.pack-opening .gold-total{font-size:28px;color:#fff0c2}.pack-opening .gold-total .coin{width:55px;height:55px}.pack-opening .btn{margin-top:27px}.shop-pack-art{width:100%;height:160px;aspect-ratio:auto}.cache{background:transparent;border:0;box-shadow:none;border-radius:0;width:48px;height:54px}.cache.current{background:none;box-shadow:none;filter:drop-shadow(0 0 5px #ffdb85)}.cache .reward-art{width:51px;height:51px}.cache-track{border:0;background:#53368350;border-radius:25px;padding:4px 8px;gap:7px}.cache>span{background:#af8fc4;border:2px solid #e8c8f0;border-radius:50%;display:block;width:37px;height:37px;margin:auto;line-height:32px}.cache .notification{right:0;top:-2px}.stage-rewards .reward-art{filter:drop-shadow(0 1px 1px #19254c66)}
@media(max-height:750px){.physical-pack{width:246px;height:255px}.physical-pack .reward-art{width:246px;height:246px}.pack-modal h2{font-size:24px}.pack-opening .pack-reward .weapon-art{height:90px}.pack-opening .btn{margin-top:17px}.burst-reward{height:85px}.burst-reward .reward-art{height:92px;width:92px}.cache{width:41px;height:43px}.cache .reward-art{width:42px;height:42px}.cache>span{width:33px;height:33px;line-height:28px}.shop-pack-art{height:142px}.combatant strong{font-size:17px}.combatant>.combat-avatar{width:28px;height:34px}.combatant{grid-template-columns:28px auto;min-width:103px}.portrait-choice .avatar-portrait{height:81px}}
@media(max-width:370px){.battle-hud{gap:5px;padding-inline:8px}.combatant{min-width:98px;column-gap:2px;padding:3px 4px}.combatant b{max-width:68px;font-size:10px}.match-rival>h2{font-size:21px}.rival-roulette .match-rival{padding:15px;column-gap:9px}.pack-modal{padding-inline:12px}.pack-modal h2{font-size:23px}.pack-opening .pack-reward b{font-size:12px}.portrait-choice b{font-size:10px}}
@media(max-height:540px) and (min-width:600px){.cache{height:32px;width:35px}.cache .reward-art{width:33px;height:33px}.cache>span{width:29px;height:29px;line-height:24px}.cache-track{padding:0 7px}.rival-roulette{width:39%;min-height:175px}.rival-roulette .match-rival{grid-template-columns:50px auto;padding:13px 10px;column-gap:9px}.match-rival>.avatar{width:50px;height:57px}.match-rival>h2{font-size:20px}.match-player{width:35%}.rival-trophies{font-size:18px}.match-player .avatar{height:44px;width:44px}.match-player h2{font-size:21px}.match-player>span:not(.avatar){font-size:18px}.pack-modal .physical-pack{width:200px;height:210px;margin:5px auto}.physical-pack .reward-art{width:200px;height:200px}.pack-opening.sealed{display:grid;grid-template-columns:1fr 1fr;align-items:center;column-gap:25px}.pack-opening.sealed h2{grid-column:2;grid-row:1;font-size:22px;margin:0;padding:0}.pack-opening.sealed>p{grid-column:2;grid-row:2}.pack-opening.sealed .physical-pack{grid-column:1;grid-row:1/4}.pack-opening.sealed>.btn{grid-column:2;grid-row:3;margin:0}.pack-opening.revealed .burst-reward{display:none}.pack-opening.revealed h2{font-size:21px;margin-bottom:5px}.pack-opening.revealed .gold-total{font-size:20px}.pack-opening .gold-total .coin{width:32px;height:32px}.pack-opening .pack-result-cards{margin:6px 0}.pack-opening .pack-reward .weapon-art{height:70px;width:80px}.pack-opening .pack-reward b{min-height:16px;font-size:11px}.pack-opening .pack-reward strong{font-size:19px}.pack-opening.revealed .btn{margin-top:8px;min-height:36px}.pack-modal{max-width:580px}.portrait-choice .avatar-portrait{height:95px}.avatar-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-height:750px) and (max-width:599px){.rival-roulette{min-height:138px}.match-rival>.avatar{width:52px;height:57px}.rival-roulette .match-rival{grid-template-columns:52px auto;padding:12px 18px}.match-rival>h2{font-size:22px}.match-player .avatar{width:55px;height:55px}.match-player h2{font-size:23px}.match-page{gap:14px}.versus{font-size:54px}}

@font-face{font-family:HexRounded;src:url('./assets__rounded.ttf') format('truetype');font-style:normal;font-weight:400 800;font-display:swap}
:root,html[dir=rtl],html[dir=rtl] body,button,input,select{font-family:HexRounded,'Trebuchet MS',sans-serif}body{font-weight:600}h1,h2,h3,b,strong,button{font-weight:800}button{line-height:1.15}.game-shell:before{inset:-110px 0 0 -120px;animation:hex-drift 34s linear infinite;will-change:transform}.stage-art:not(.slide-out-right):not(.slide-out-left):not(.slide-in-right):not(.slide-in-left){animation:island-float 4s ease-in-out infinite}.stage-caption p{font-size:14px}.stage-selector b{font-size:16px}.stage-caption small{letter-spacing:2px}.mini-name,.mini-level,.hand-card b,.hand-card small{line-height:1.15}.hand-card{height:114px}.hand-card .weapon-art{height:73px;width:73px;margin-top:-3px}.hand-card b{font-size:11px}.hand-card small{font-size:10px}.bottom-nav b{font-size:13px}.profile em{line-height:1.1}.welcome-strip{display:flex;align-items:center;justify-content:space-between;background:#e4f2c9;color:#344c48;border-radius:13px;margin:3px 15px 7px;padding:6px 10px;font-size:12px;line-height:1.3;z-index:3;box-shadow:0 3px #49377b}.welcome-strip b{display:flex;align-items:center;gap:3px;font-size:12px}.welcome-strip .reward-art{width:23px;height:23px}.welcome-strip button{background:none;font-size:25px;color:#455448;padding:8px}.detail-page{padding:10px 18px 23px}.detail-top{display:flex;align-items:center;justify-content:space-between}.detail-top .btn{min-height:35px;margin:0}.detail-top .rarity-pill{background:#67cced;color:#235674;padding:5px 15px;border-radius:14px;font-size:12px;border:1px solid #baf4ff}.weapon-hero{display:flex;align-items:center;min-height:175px;padding:5px 7px;gap:0}.weapon-hero>div{flex:1;position:relative;z-index:1}.weapon-hero h1{font-size:27px;line-height:1.1;text-shadow:0 2px #463266;margin-bottom:9px}.weapon-hero>.weapon-art{width:190px;height:190px;flex:none;filter:drop-shadow(0 9px 8px #32255277)}.role-chip{display:block;font-size:12px;background:#41325783;padding:5px 7px;border-radius:9px;width:fit-content}.hero-level{display:block;font-size:13px;margin-top:10px}.hero-energy{display:flex;align-items:center;gap:7px;margin-top:6px}.inspector-panel{background:linear-gradient(#ffdfb3,#efbf89);border:3px solid #6d4c69;box-shadow:inset 0 2px #fff3d3,0 5px #4a335e;border-radius:22px;overflow:hidden;color:#573d48;margin-bottom:16px}.inspector-tabs{display:flex;border-bottom:2px solid #ba885a;background:#967d9d}.inspector-tabs button{flex:1;background:none;color:#e5dce9;font-size:20px;padding:15px 5px}.inspector-tabs .active{background:#ffdbac;color:#563c49;border-radius:16px 16px 0 0;box-shadow:inset 0 3px #fff1d4}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 12px 10px}.stat-tile{border-radius:11px;background:#e9ad7296;display:grid;grid-template-columns:36px 1fr;padding:11px 8px;column-gap:7px;min-height:75px;align-items:center}.stat-icon{grid-row:1/3;font-size:28px;filter:drop-shadow(0 2px #ac786c)}.stat-tile small{font-size:13px;align-self:end}.stat-tile b{font-size:20px;line-height:1.1;align-self:start}.stat-tile:last-child b{font-size:11px;line-height:1.3}.range-dots{display:flex;gap:4px;margin-top:6px;direction:ltr}.range-dots i{display:block;width:13px;height:13px;border-radius:50%;background:#bb9c84;border:1px solid #a58268;box-shadow:inset 0 1px #ffe0ac}.range-dots .lit{background:linear-gradient(#ffdc7b,#e67e4f);border-color:#ae6d49}.tactics{display:block;width:100%;padding:0 12px}.tactic-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #b9896144;padding:6px 0;gap:5px}.tactic-row>span{display:flex;align-items:center;gap:6px}.tactic-row>span i{font-style:normal;font-size:20px}.tactic-row>span b{font-size:12px}.tactic-row>div{display:flex;gap:8px}.tactic-row button{background:#fff3d154;border-radius:10px;padding:1px 4px 3px;color:#5b4351;width:72px}.tactic-row .weapon-art{width:44px;height:44px}.tactic-row small{display:block;font-size:9px;line-height:1.1;min-height:20px}.inspector-upgrade{padding:13px 15px 17px}.copy-progress{height:28px;position:relative;border-radius:18px;border:2px solid #916141;background:#584963;overflow:hidden;margin-bottom:10px}.copy-progress i{display:block;height:100%;background:linear-gradient(#ffcb58,#e89c38)}.copy-progress b{position:absolute;inset:3px;text-align:center;color:white;text-shadow:0 1px 2px #3b3145;font-size:13px;line-height:1.2}.inspector-upgrade .btn{min-height:49px;font-size:19px;margin:0}.mastery-panel{padding:20px;text-align:center}.mastery-panel>.weapon-art{height:150px;width:150px}.mastery-panel .boost-line{margin:12px 0}.mastery-panel p{font-size:14px;margin-bottom:15px}.inline-swap>b{display:block;margin:6px 0}.inline-swap .deck-strip{gap:5px}.inline-swap .mini-card{min-width:0}.locked-detail{text-align:center;padding:20px;font-size:18px}.postmatch-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;width:100%;margin:10px 0}.postmatch-card{grid-column:span 2;min-width:0}.postmatch-card:nth-child(4){grid-column:2/span 2}.postmatch-card .mini-card{width:100%;min-height:109px}.postmatch-card .mini-card .weapon-art{height:66px;width:66px}.postmatch-card .mini-name{font-size:11px;min-height:25px;display:block}.postmatch-card .mini-level{font-size:12px}.postmatch-card .boost-line{height:8px;margin:7px 2px}.postmatch-card>.btn{width:100%;min-height:36px;font-size:12px;margin:4px 0}.postmatch-card>.small .coin{width:23px;height:23px}.postmatch-card>small{font-size:10px;display:block;text-align:center;color:#e2d0f3}.upgrade-results{padding:12px 22px;overflow:auto;min-height:0}.upgrade-results h1{font-size:27px;line-height:1.2;margin:0}.upgrade-results>p{font-size:13px}.result-currencies{display:flex;align-items:center;justify-content:center;gap:6px;font-size:20px;margin-top:10px}.result-currencies .coin{width:35px;height:35px}.upgrade-results .continue-button{margin:8px auto 0;min-height:48px}.outcome-page{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:15px;gap:12px;position:relative;overflow:auto;background:radial-gradient(ellipse at 50% 35%,#84c8d77d,transparent 70%)}.outcome-page.lost{background:radial-gradient(ellipse at 50% 35%,#ea858e40,transparent 70%)}.outcome-page h1{font-size:49px;color:#d2ff8b;text-shadow:0 4px #344867}.outcome-page.lost h1{color:#ffb8b3}.trophy-delta{display:flex;align-items:center;gap:8px;font-size:49px}.trophy-delta .coin{width:76px;height:76px}.outcome-page .result-emblem{margin:0}.outcome-page .result-loot{margin:0}.outcome-page .result-score{font-size:15px}.outcome-timer{height:3px;background:#d6ffd59e;width:100px;border-radius:4px;animation:outcome-countdown 2.8s linear both}.outcome-page>.btn{margin-top:12px}.weapon-hero .weapon-art,.mastery-panel .weapon-art{animation:weapon-hover 4s ease-in-out infinite}
@keyframes hex-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(120px,110px,0)}}@keyframes island-float{0%,100%{transform:translate(-50%,0) rotate(-1deg)}50%{transform:translate(-50%,-11px) rotate(1deg)}}@keyframes weapon-hover{50%{transform:translateY(-5px)}}@keyframes outcome-countdown{to{width:0}}
@media(max-height:750px){.hand-card{height:101px}.hand-card .weapon-art{height:62px;width:62px}.detail-page{padding:5px 12px 18px}.weapon-hero{min-height:145px}.weapon-hero>.weapon-art{width:160px;height:160px}.weapon-hero h1{font-size:23px}.inspector-tabs button{font-size:18px;padding:12px 4px}.stat-tile{min-height:67px;padding:9px 7px}.postmatch-grid{gap:8px;margin:12px 0}.postmatch-card .mini-card{min-height:104px}.postmatch-card .mini-card .weapon-art{height:57px;width:57px}.postmatch-card>.btn{min-height:31px}.postmatch-card .mini-name{min-height:20px;font-size:10px}.upgrade-results{padding:10px 18px}.upgrade-results h1{font-size:24px}.result-currencies{margin-top:4px}.outcome-page{gap:7px}.outcome-page h1{font-size:40px}.outcome-page .result-emblem .reward-art{width:70px;height:70px}}
@media(max-width:370px){.weapon-hero>.weapon-art{width:145px;height:145px}.weapon-hero h1{font-size:22px}.stat-tile{grid-template-columns:30px 1fr;column-gap:4px}.stat-icon{font-size:24px}.stat-tile small{font-size:12px}.tactic-row button{width:65px}.detail-page{padding-inline:9px}}
@media(max-height:540px) and (min-width:600px){.detail-page{display:grid;grid-template-columns:40% 1fr;gap:10px;align-items:start}.detail-top{grid-column:1/-1}.weapon-hero{flex-direction:column;grid-column:1;grid-row:2}.weapon-hero>.weapon-art{width:180px;height:180px}.inspector-panel{grid-column:2;grid-row:2/4}.detail-page>.btn,.inline-swap{grid-column:1}.weapon-hero h1{font-size:23px}.outcome-page{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:4px}.outcome-page .result-emblem{display:none}.outcome-page h1{grid-column:1}.trophy-delta{grid-column:1;justify-content:center}.outcome-page .result-score,.outcome-page .result-loot,.outcome-page>.btn{grid-column:2}.outcome-page .result-score{grid-row:1}.outcome-page .result-loot{grid-row:2}.outcome-page>.btn{grid-row:3}.outcome-timer{display:none}.postmatch-grid{grid-template-columns:repeat(5,1fr);gap:8px;margin:7px 0}.postmatch-card,.postmatch-card:nth-child(4){grid-column:auto}.postmatch-card .mini-card .weapon-art{width:65px;height:65px}.postmatch-card .mini-card{min-height:95px}.postmatch-card .mini-name{min-height:16px}.upgrade-results{padding:8px 20px}.upgrade-results h1{font-size:21px}.upgrade-results>p{display:none}.result-currencies{position:absolute;right:20px;top:97px;font-size:15px}.upgrade-results .continue-button{min-height:35px;font-size:16px}.welcome-strip{position:absolute;top:8px;left:36%;right:15%;margin:0;font-size:11px}}
.reduce-motion .stage-art,.reduce-motion .weapon-art,.reduce-motion .game-shell:before,.reduce-motion .outcome-timer{animation:none!important}@media(prefers-reduced-motion:reduce){.stage-art,.weapon-hero .weapon-art,.game-shell:before{animation:none!important}}

.stage-rewards{pointer-events:auto}.stage-rewards>button .coin.gems,.stage-rewards>button .coin.cores{transform:scale(1.6)}.stage-rewards>button{width:54px;height:54px;border:0;background:none;padding:0;filter:drop-shadow(0 3px 2px #39255288);position:relative}.stage-rewards>button:after,.stage-rewards>span:after{display:none}.stage-rewards>button .reward-art{width:52px;height:52px}.stage-rewards>button.active{filter:drop-shadow(0 0 7px #ffec99)}.stage-amount{position:absolute;bottom:65px;inset-inline:0;text-align:center;z-index:3;font-size:13px;color:#fff2c3;text-shadow:0 2px 3px #493266;pointer-events:none}.stage-amount b{display:inline-flex;gap:5px;align-items:center;font-size:18px}.stage-amount .coin{width:29px;height:29px}.track>i{opacity:1;background:linear-gradient(#ffed96 0,#ffce56 35%,#ed9e32 100%);box-shadow:inset 0 2px #fff7c9,inset 0 -3px #d6832477}.track b{text-shadow:0 2px 2px #774a68,0 0 3px #322042;color:#fff8ce}.progress-remaining{display:block;text-align:center;font-size:11px;color:#ffedbc;margin-top:4px;line-height:1.2}.arsenal-page .deck-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:8px 2px}.deck-strip .mini-card{width:100%;min-width:0;padding:7px 2px 8px;min-height:126px;display:flex;flex-direction:column;align-items:center}.deck-strip .mini-card .weapon-art{width:calc(100% - 5px);height:auto;aspect-ratio:1;max-width:82px;flex:none;display:block;margin:4px auto 2px}.deck-strip .mini-name{font-size:10px;min-height:27px;line-height:1.1;display:flex;align-items:center;justify-content:center;text-align:center;width:100%}.deck-strip .mini-level{position:static;margin-top:auto;font-size:10px}.mini-card.upgrade-ready{border-color:#b5f571}.mini-card.upgrade-ready .mini-level{background:#4d9942;color:#edffd2}.upgrade-arrow{position:absolute;right:2px;bottom:19px;font-size:19px;color:#aff273;text-shadow:0 2px #366140;line-height:1;filter:drop-shadow(0 0 3px #e2ff8c)}.collection-card .upgrade-arrow{top:28px;bottom:auto;right:6px;font-size:28px}.collection-card.upgrade-ready .copy-track{background:#4e8c36;box-shadow:0 0 0 1px #e7ffb8}.collection-card.upgrade-ready .copy-track i{background:linear-gradient(#dcff9e,#72c442)}.collection-card.upgrade-ready .copy-track span{color:#f9ffdf;text-shadow:0 1px #377647}.upgrade-label{font-size:11px;background:#4a993b;color:#f3ffd8;border-radius:7px;padding:3px 8px;display:block;margin:5px 6px 0;border:1px solid #e1ffa2}.ready-notice{background:#8be064;color:#275b27;font-size:14px;line-height:13px;width:20px;height:20px;border:2px solid #417d39}.deal-card>.weapon-art{width:88px;height:88px;max-width:100%;aspect-ratio:1;flex:none;margin:auto}.postmatch-card .result-weapon{border:2px solid #76537a;border-radius:16px;background:linear-gradient(#ffe1b1,#e6b384);box-shadow:inset 0 2px #fff8d6,0 4px #513666;display:flex;align-items:center;flex-direction:column;padding:8px 4px;color:#563947;min-height:132px}.result-weapon .weapon-art{height:74px;width:74px;max-width:100%;aspect-ratio:1}.result-weapon b{font-size:11px;text-align:center;min-height:27px;line-height:1.15}.result-weapon small{background:#997083;color:#fff1e4;border-radius:7px;padding:2px 8px;font-size:11px}.upgrade-results>.result-currencies{position:static}.result-currencies.core-balance{margin:6px auto 0;color:#e3e9ff;font-size:23px}.core-balance .coin{width:43px;height:43px}.postmatch-card .boost-line{height:12px}.postmatch-card .boost-value{color:#d9f5ff;font-size:10px;margin:1px auto}.postmatch-card>.boost-action{min-height:43px;font-size:13px}.upgrade-results h1{font-size:28px;text-align:center;text-wrap:balance;margin-top:5px}.upgrade-results>p{text-align:center}.postmatch-grid{margin:8px auto;max-width:440px}.upgrade-results .continue-button{margin:15px auto 4px}.game-shell.reward-view{background:radial-gradient(ellipse at 50% 38%,#49618d,#172443 75%)}.reward-view:before{display:none}.pack-page{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;overflow:auto;padding:25px 18px}.pack-page .pack-opening{width:100%;max-width:480px;text-align:center}.pack-page .pack-opening h2{font-size:30px;color:#ffe9a0;text-shadow:0 3px #273352}.pack-page .pack-opening p{color:#d8e7fb}.pack-page .pack-result-cards{display:flex;justify-content:center;gap:10px;overflow:visible;max-height:none;margin:27px 0 18px}.pack-page .pack-reward{flex:1;max-width:150px;background:none;border:0;box-shadow:none;padding:0;color:#fff3d9;min-width:0}.pack-page .pack-reward .weapon-art{width:100%;height:auto;aspect-ratio:1;filter:drop-shadow(0 0 12px #8edfff66)}.pack-page .pack-reward b{font-size:13px;min-height:33px;line-height:1.2;display:block}.pack-page .pack-reward strong{font-size:31px;display:block}.pack-page .pack-reward small{color:#b5ff9c;font-size:12px}.pack-page .gold-total{font-size:30px;display:block;margin-top:13px;color:#fff0b8}.pack-page .gold-total .coin{width:48px;height:48px}.pack-page .burst-reward .reward-art{width:130px;height:130px}.pack-page .burst-reward{height:135px}.pack-page .pack-opening>.btn{min-height:52px;margin-top:17px;width:85%}.pack-page .physical-pack{display:block;margin:30px auto}.weapon-unlock{padding:16px 13px;text-align:center;background:#ffedc17a;border-radius:13px;margin:10px;color:#56394b}.weapon-unlock h3{font-size:19px;margin-bottom:5px}.weapon-unlock p{font-size:12px;margin-bottom:8px}.weapon-unlock>.weapon-art{width:130px;height:130px}.weapon-unlock>.btn{min-height:43px;font-size:15px;width:100%;margin:5px 0}.weapon-unlock small{display:block;font-size:12px;margin:3px 0 7px}.weapon-unlock .ad-pips{display:flex;justify-content:center;gap:9px;margin:10px auto}.ad-pips i{width:15px;height:15px;border-radius:50%;background:#857190;border:1px solid #fff0c4}.ad-pips .done{background:#82d04b}.shop-unlock{margin:20px 0 16px;background:linear-gradient(#d8cdf1,#a88cce);border:2px solid #79628c;box-shadow:inset 0 2px #eeebff,0 4px #493560}.shop-unlock .weapon-unlock{margin:0;background:none;display:grid;grid-template-columns:110px 1fr;align-items:center;column-gap:12px}.shop-unlock .weapon-art{grid-column:1;grid-row:1/5;width:110px;height:110px}.shop-unlock .weapon-unlock h3,.shop-unlock .weapon-unlock p,.shop-unlock .weapon-unlock>.btn{grid-column:2}.shop-unlock .ad-pips,.shop-unlock .weapon-unlock small{grid-column:1/-1}.road-step small .coin{width:20px;height:20px}.ad-supply{padding:15px;border-radius:15px;background:#42337877;text-align:center;margin:12px 0}.ad-supply>p{font-size:12px}.result-loot{flex-wrap:wrap}.milestone-toast{color:#ffeda7;font-size:15px;background:#4b42806e;padding:6px 14px;border-radius:11px}
@media(max-height:750px){.deck-strip .mini-card{min-height:110px}.result-weapon .weapon-art{width:65px;height:65px}.postmatch-card .result-weapon{min-height:121px}.postmatch-card>.boost-action{min-height:37px}.postmatch-grid{margin:10px auto}.upgrade-results h1{font-size:23px}.result-currencies.core-balance{margin-top:9px;font-size:20px}.pack-page .burst-reward{height:93px}.pack-page .burst-reward .reward-art{width:98px;height:98px}.pack-page .pack-opening h2{font-size:25px}.pack-page .pack-result-cards{margin:18px 0 12px}.pack-page .pack-reward strong{font-size:26px}.pack-page{padding:18px 14px}.stage-rewards>button,.stage-rewards>button .reward-art{width:45px;height:45px}.stage-amount{bottom:52px;font-size:11px}.stage-amount b{font-size:15px}}
@media(max-width:370px){.deck-strip .mini-name{font-size:9px}.deck-strip .mini-card{padding:8px 1px;min-height:110px}.arsenal-page .deck-strip{gap:4px}.pack-page .pack-reward b{font-size:11px}.pack-page .pack-reward strong{font-size:24px}.result-weapon .weapon-art{width:70px;height:70px}.shop-unlock .weapon-unlock{grid-template-columns:85px 1fr}.shop-unlock .weapon-art{width:85px;height:85px}}
@media(max-height:540px) and (min-width:600px){.postmatch-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-width:700px;margin:8px auto}.postmatch-card .result-weapon{min-height:113px}.result-weapon .weapon-art{width:65px;height:65px}.postmatch-card>.boost-action{min-height:30px}.result-currencies.core-balance{font-size:16px;margin:4px auto}.core-balance .coin{width:27px;height:27px}.postmatch-card .boost-value{display:none}.upgrade-results h1{font-size:20px;margin:0}.upgrade-results .continue-button{margin:8px auto;min-height:33px;font-size:17px}.stage-rewards>button,.stage-rewards>button .reward-art{width:35px;height:35px}.stage-amount{bottom:40px;font-size:10px}.progress-remaining{font-size:10px}.pack-page{padding:12px 30px}.pack-page .burst-reward{display:none}.pack-page .pack-opening{max-width:600px}.pack-page .pack-opening h2{font-size:21px}.pack-page .gold-total{font-size:23px;margin:5px}.pack-page .gold-total .coin{height:34px;width:34px}.pack-page .pack-result-cards{margin:5px auto}.pack-page .pack-reward .weapon-art{width:80px;height:80px}.pack-page .pack-reward b{min-height:15px;font-size:12px}.pack-page .pack-reward strong{font-size:23px}.pack-page .pack-opening>.btn{min-height:36px;margin-top:8px}.pack-page .physical-pack{margin:0 auto;width:200px;height:210px}.pack-page .physical-pack .reward-art{width:200px;height:200px}.pack-page .sealed{display:grid;grid-template-columns:1fr 1fr;align-items:center}.pack-page .sealed .physical-pack{grid-column:1;grid-row:1/3}.pack-page .sealed h2,.pack-page .sealed p{grid-column:2}.arsenal-page .deck-strip{max-width:550px;margin:auto}}


/* Trophy rewards share the exact geometry of their progress track. */
.reward-road{width:100%;position:relative;padding-top:66px;direction:ltr}
.road-markers{position:absolute;top:0;left:0;right:0;height:66px;z-index:4}
.road-node{position:absolute;left:var(--pos);bottom:0;transform:translateX(-50%);width:45px;height:66px;background:none;border:0;color:#ffefb5;display:flex;align-items:center;flex-direction:column;padding:0;filter:drop-shadow(0 2px 2px #3d285b66);overflow:visible}
.road-node>.reward-art,.road-node>.weapon-art{display:block;width:42px;height:42px;flex:none}
.road-node>.coin.gems,.road-node>.coin.cores{transform:scale(1.28)}
.road-node small{font-size:10px;line-height:13px;font-weight:800;background:#533671b5;border-radius:6px;padding:0 5px;white-space:nowrap}
.road-node .road-stem{position:absolute;bottom:-8px;left:calc(50% - 1px);height:17px;width:2px;background:#ffe6a4;box-shadow:0 1px 2px #563368}
.road-node .road-stem:after{content:"";position:absolute;bottom:-2px;left:-3px;width:8px;height:8px;border-radius:50%;background:#ffe5a0;box-shadow:0 0 0 2px #775386}
.road-node em{position:absolute;top:-1px;right:-1px;border-radius:50%;font-size:12px;font-style:normal;background:#84c950;color:#2c5e2e;padding:1px 4px;border:1px solid #d6ffa4}
.road-node.collected .road-stem,.road-node.collected .road-stem:after{background:#b5f182}.road-node.chosen{filter:drop-shadow(0 0 5px #ffeda3)}
.mystery-card{display:inline-flex;align-items:center;justify-content:center;width:30px;height:40px;border-radius:6px;border:2px solid #ffe195;background:linear-gradient(135deg,#81cdff,#3676e5 45%,#354b9f);box-shadow:inset 0 0 0 2px #b4edff80,0 3px #483269;transform:rotate(-8deg);flex:none}
.mystery-card i{display:flex;align-items:center;justify-content:center;border:1px solid #cbf2ff;border-radius:9px;color:#effbff;font-size:24px;line-height:1;width:23px;height:29px;font-style:normal;text-shadow:0 2px #2f5998}
/* Keep the lobby background continuous beneath the hint at every viewport size. */
.road-peek{position:absolute;bottom:0;inset-inline:0;text-align:center;color:#ffedba;text-shadow:0 2px 3px #4a3568;z-index:3;font-size:12px;pointer-events:none;background:none;padding:4px}
.road-peek>b{display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap;font-size:14px}.road-peek>b>span{display:flex;align-items:center;gap:3px}.road-peek .coin,.road-peek .reward-art,.road-peek .weapon-art{height:25px;width:25px}.road-peek small{display:block;font-size:10px;margin-top:4px}.road-peek .mystery-card{width:21px;height:29px}.road-peek .mystery-card i{font-size:19px}
.trophy-road-list{gap:10px}.road-chapter{border:2px solid #a787cc;border-radius:13px;background:#42315b60;overflow:hidden;margin-bottom:9px}.road-chapter summary{padding:13px 12px;cursor:pointer;font-size:13px;color:#ffebaf;background:#9472bd77}.road-chapter summary b{display:block;font-size:11px;color:#e8d9f8;margin-top:5px}.road-chapter .road-step{border:0;border-top:1px solid #af88cb44;border-radius:0;margin:0;padding:10px;gap:8px;display:flex;align-items:center}.road-step>div{flex:1;min-width:0}.road-step>div>b{display:flex;flex-wrap:wrap;gap:5px;font-size:12px}.road-step>div>b>span{display:flex;align-items:center;gap:3px}.road-step>div>small{display:block;font-size:10px;color:#e3d7ef;margin-top:5px}.road-step .road-item-art{width:43px;flex:none;display:flex;justify-content:center}.road-item-art>.reward-art,.road-item-art>.weapon-art{height:43px;width:43px}.road-step b .reward-art,.road-step b .weapon-art{height:23px;width:23px}.road-step .mystery-card{width:28px;height:37px}.road-step>strong{color:#b2ed7f;font-size:22px}
.market-links{display:flex;gap:5px;margin:5px 0 18px;flex-wrap:wrap}.market-links .btn{flex:1;min-height:36px;margin:0;font-size:12px;border:1px solid #b49acc;background:#574077}.shop-page .section-intro{margin-bottom:10px}.market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 23px}.market-offer{position:relative;display:flex;flex-direction:column;align-items:center;padding:12px 9px;border-radius:15px;border:2px solid #e5c1f3;background:linear-gradient(#c2a3dd,#a084c5);color:#443351;box-shadow:inset 0 2px #ffe5ff,0 4px #4b356b;text-align:center;min-height:207px}.market-offer.gold{background:linear-gradient(#ffecac,#d8b65e);border-color:#fff1c8}.market-offer.gems{background:linear-gradient(#bef1db,#73bcae);border-color:#d9fff0}.market-offer.cores{background:linear-gradient(#d9c4ff,#a18bd7)}.market-offer.packs{background:linear-gradient(#aee0fa,#85a4d7);border-color:#cdfaff}.market-offer>.coin,.market-offer>.pack-art{width:77px;height:77px;margin:0 auto 5px;flex:none}.market-offer h3{font-size:15px;line-height:1.2}.market-offer>strong{font-size:28px}.market-offer>small{font-size:10px;line-height:1.3;margin:3px auto 9px}.market-offer>.btn{margin-top:auto;width:100%;min-height:38px;font-size:13px}.market-offer>.btn .coin{height:25px;width:25px}.pack-card p .coin{width:17px;height:17px}.shop-packs .pack-card p{font-size:10px;line-height:1.3}.market-grid+.muted{font-size:12px}
.combat-avatar[data-action]{padding:0;background:none;cursor:pointer;border:2px solid #e8efff;border-radius:12px;box-shadow:0 2px #303151}.combat-avatar[data-action][aria-expanded=true]{border-color:#ffe37f;box-shadow:0 0 9px #ffda80}.combat-deck-panel{position:absolute;left:7px;right:7px;top:8px;z-index:12;background:linear-gradient(#434e77f7,#293557fa);border:2px solid #b9caf8;border-radius:14px;padding:9px;box-shadow:0 8px 18px #12203988;color:#f4eddf;animation:deck-peek .2s ease-out}.combat-deck-panel[hidden]{display:none}.deck-panel-title{display:flex;align-items:center;justify-content:space-between;font-size:15px}.deck-panel-title>button{background:#7890c4;color:white;width:30px;height:23px;border-radius:6px}.scouted-deck{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:8px 0}.scouted-card{min-width:0;text-align:center;background:linear-gradient(#ffdc9d,#ce986e);border:2px solid #ae8190;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:104px;padding:5px 1px;color:#4e3547}.scouted-card.unknown{background:linear-gradient(#6e72ae,#4f5488);border-color:#9299d3;color:#e6e5fa}.scouted-card .weapon-art{width:100%;height:auto;aspect-ratio:1;max-width:65px}.scouted-card>b{font-size:8px;line-height:1.1;min-height:18px}.scouted-card>small{font-size:9px;margin-top:3px}.scouted-card .mystery-card{margin:4px 0 9px}.combat-deck-panel>p{font-size:10px;text-align:center;color:#d6e6ff}
.redraw-cue{width:40px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b8deff;text-align:center}.redraw-cue>span{font-size:36px;color:#d2ecff;line-height:1}.redraw-cue small{font-size:9px;line-height:1.1}.redrawing .hand-card{animation:hand-redraw .28s ease-out both}.redrawing .hand-card:nth-child(2){animation-delay:35ms}.redrawing .hand-card:nth-child(3){animation-delay:70ms}
.arena-result{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#11254275;overflow:hidden;animation:arena-veil .3s ease-out;pointer-events:all}.arena-result-copy{position:relative;z-index:2;text-align:center;width:100%;padding:30px 5px;background:linear-gradient(transparent,#263951a6 30%,#23304daa 70%,transparent);animation:result-arrive .55s cubic-bezier(.16,1.4,.5,1)}.arena-result-copy>.reward-art{height:112px;width:112px;filter:drop-shadow(0 0 23px #ffe88977)}.arena-result h1{font-size:53px;color:#d2ff81;text-shadow:0 4px #35485f,0 0 20px #caff8555;line-height:1.1}.arena-result.lost h1{color:#ffc1b1;text-shadow:0 4px #46385a}.arena-result-copy p{font-size:15px;margin:10px 0 18px;color:#eef8ff}.arena-result-copy>b{display:flex;align-items:center;justify-content:center;gap:5px;font-size:28px;color:#ffefb6}.arena-result-copy .coin{width:38px;height:38px}.arena-result-copy>b>span{color:#aac1db;margin:0 8px}.arena-result-rays{position:absolute;width:900px;height:900px;background:repeating-conic-gradient(from 0deg,#ebff811b 0deg 13deg,transparent 13deg 32deg);animation:reward-spin 22s linear infinite;opacity:.8}.arena-result.lost .arena-result-rays{display:none}.arena-transition{position:absolute;bottom:10%;text-align:center;z-index:3;color:#e5f0ff;font-size:12px;width:150px}.arena-transition i{height:4px;border-radius:5px;background:#b3defa;display:block;transform-origin:left;animation:arena-loading 2.3s ease-in-out both;margin-bottom:9px}.arena-result.departing{animation:arena-depart .32s ease-in forwards}
.battle-screen{position:relative}.reward-sparks{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:hidden}.reward-sparks>i{position:absolute;left:var(--sx);bottom:18%;font-size:22px;color:#ffe58c;font-style:normal;opacity:0;animation:reward-spark 1.65s var(--delay) ease-out both}.reward-sparks .coin{height:29px;width:29px}.reward-feedback{position:absolute;left:50%;top:24%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;z-index:65;pointer-events:none;background:linear-gradient(130deg,#dfffbaef,#7bc998f7);border:2px solid #e6ffc5;border-radius:17px;padding:10px 16px;box-shadow:0 7px 22px #263e5888;min-width:270px;max-width:93%;color:#244c48;animation:feedback-enter .3s cubic-bezier(.18,1.3,.5,1)}.reward-feedback.new{background:linear-gradient(130deg,#fff1b1,#ffc777);border-color:#fff6cb;color:#694b46}.reward-feedback.boost{background:linear-gradient(130deg,#c3f2ff,#86b6ec);color:#334d76}.feedback-art{width:65px;height:65px;flex:none}.feedback-art .weapon-art{width:65px;height:65px}.reward-feedback b{font-size:23px;display:block;line-height:1.1}.reward-feedback small{font-size:12px;display:block;margin-top:5px;white-space:normal}.reward-feedback .reward-sparks{inset:-60px;overflow:visible}
.mystery-earned{display:flex;gap:13px;justify-content:center}.mystery-earned>div{display:flex;flex-direction:column;align-items:center}.mystery-earned .weapon-art{width:57px;height:57px}.mystery-earned b{font-size:12px}.road-receipt-note{color:#ffeda7}
@keyframes reward-spin{to{transform:rotate(360deg)}}@keyframes reward-spark{0%{opacity:0;transform:translate(0,10px) scale(.5)}15%{opacity:1}100%{opacity:0;transform:translate(var(--drift),-320px) rotate(var(--spin)) scale(.8)}}@keyframes hand-redraw{from{transform:translateY(13px) rotate(-3deg);opacity:.45}to{transform:none;opacity:1}}@keyframes deck-peek{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@keyframes arena-veil{from{opacity:0}to{opacity:1}}@keyframes result-arrive{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}@keyframes arena-loading{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes arena-depart{to{opacity:0;transform:scale(1.06)}}@keyframes feedback-enter{from{opacity:0;transform:translate(-50%,18px) scale(.9)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(max-height:750px){.reward-road{padding-top:59px}.road-markers{height:59px}.road-node{height:59px;width:39px}.road-node>.reward-art,.road-node>.weapon-art{width:36px;height:36px}.road-node>.mystery-card{height:36px;width:27px}.road-node .road-stem{height:14px}.lobby-controls{gap:8px}.road-peek{font-size:10px}.road-peek>b{font-size:12px}.road-peek small{font-size:9px}.arena-result-copy>.reward-art{height:85px;width:85px}.arena-result h1{font-size:44px}.arena-result-copy p{font-size:13px}.arena-result-copy>b{font-size:23px}.arena-result-copy .coin{width:33px;height:33px}.scouted-card{min-height:89px}.combat-deck-panel{padding:7px}.market-grid{gap:9px}}
@media(max-width:370px){.road-node small{font-size:9px}.road-peek>b{gap:3px}.road-peek .coin,.road-peek .reward-art{width:21px;height:21px}.road-peek small{font-size:8px}.market-offer{padding:10px 6px}.market-offer h3{font-size:13px}.scouted-card>b{font-size:7px}.redraw-cue{width:30px}.arena-result h1{font-size:40px}.reward-feedback b{font-size:21px}}
@media(max-height:540px) and (min-width:600px){.reward-road{padding-top:44px}.road-markers{height:44px}.road-node{height:44px}.road-node>.reward-art,.road-node>.weapon-art{height:27px;width:27px}.road-node>.mystery-card{height:27px;width:21px}.road-node .mystery-card i{font-size:17px;height:21px;width:16px}.road-node small{font-size:8px;line-height:10px}.road-node .road-stem{height:10px;bottom:-6px}.road-peek{display:none}.arena-result-copy{padding:7px;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;max-width:500px}.arena-result-copy>.reward-art{width:65px;height:65px}.arena-result h1{font-size:37px}.arena-result-copy p{width:100%;margin:0}.arena-result-copy>b{font-size:21px}.arena-transition{bottom:7%}.combat-deck-panel{left:10%;right:10%;top:4px}.scouted-card{min-height:75px}.scouted-card .weapon-art{max-width:45px}.deck-panel-title{font-size:12px}.scouted-deck{margin:4px 0}.scouted-card.unknown .mystery-card{height:29px;width:24px}.combat-deck-panel>p{font-size:9px}.reward-feedback{top:18%}}
.reduce-motion .reward-sparks,.reduce-motion .arena-result-rays{display:none}.reduce-motion .reward-feedback,.reduce-motion .arena-result,.reduce-motion .arena-result-copy,.reduce-motion .arena-transition i,.reduce-motion .redrawing .hand-card,.reduce-motion .combat-deck-panel{animation:none!important}
@media(prefers-reduced-motion:reduce){.reward-sparks,.arena-result-rays{display:none}.reward-feedback,.arena-result-copy,.redrawing .hand-card{animation:none}}

@media(max-height:750px){.lobby-scene .stage-caption small{display:none}.lobby-scene .stage-caption p{margin-top:0;font-size:11px}.lobby-scene .stage-art{height:calc(100% - 38px);bottom:13px}}


/* Stable controls, manual trophy markers, and layouts sized to the device. */
.pack-page,.pack-opening,.pack-result-cards{scrollbar-width:none}.pack-page::-webkit-scrollbar,.pack-opening::-webkit-scrollbar,.pack-result-cards::-webkit-scrollbar{display:none}.pack-page{overflow-x:hidden;overscroll-behavior:contain}.pack-page .pack-opening{min-width:0}.reward-view{overflow:hidden}
.detail-top{position:sticky;top:-10px;z-index:9;background:linear-gradient(#7f63abfa,#7b5faafa);padding:9px 5px;margin:-10px -5px 0;border-bottom:1px solid #d2b4ed55;backdrop-filter:blur(9px);gap:8px;border-radius:0 0 12px 12px}.detail-top .rarity-pill{margin-inline-start:auto}.detail-close{height:37px;width:37px;flex:none;border:2px solid #ffe3ee;border-radius:10px;background:linear-gradient(#ef93ab,#ca6586);box-shadow:inset 0 2px #ffd0e2,0 3px #654066;color:white;font-size:29px;line-height:1}
.road-node.edge-last{transform:translateX(-100%)}.road-node.edge-last .road-stem{left:calc(50% + 5px);height:23px;bottom:-8px;transform:rotate(-35deg);transform-origin:top center}
.road-node.edge-last:active{transform:translateX(-100%) translateY(2px)}.road-node:not(.edge-last):active{transform:translateX(-50%) translateY(2px)}
.road-node.ready>.reward-art,.road-node.ready>.weapon-art,.road-node.ready>.mystery-card{filter:drop-shadow(0 0 6px #ffdf7b)}.road-node.ready:before{content:"↓";position:absolute;top:-19px;color:#d9ff91;font-size:23px;line-height:1;text-shadow:0 2px #44663a}
.road-node.ready small{background:#578d3a;color:#f0ffd6;box-shadow:0 0 0 1px #cffa8e}.track b{direction:ltr}.progress-remaining bdi{color:#f9dc8f}
.hand-card{opacity:1}.hand-card.unaffordable{opacity:.68}.redrawing .hand-card{animation:hand-redraw .28s ease-out both}.battle-side-note{display:none}
@media(min-width:600px) and (min-height:541px){
 .game-shell,.game-shell.in-combat{width:100%;max-width:none;max-height:none;border:0}
 .topbar{padding:20px 30px 10px}.profile b{font-size:20px}.profile .avatar{width:56px;height:56px}.wallet{padding:10px 30px 14px;gap:20px}.wallet>button{height:38px}.wallet b{font-size:19px}.wallet .coin{height:43px;width:43px}
 .lobby-controls{width:100%;max-width:710px;align-self:center;padding:15px 37px 26px;gap:15px}.lobby-scene{min-height:200px}.lobby-scene .stage-art{height:calc(100% - 58px);max-height:550px;bottom:14px}.stage-caption small{font-size:16px}.stage-caption p{font-size:17px}.stage-selector b{font-size:19px}.stage-selector{min-height:44px}.stage-selector button{height:42px;width:45px}.track{height:45px}.track b{font-size:23px}.road-node{width:53px;height:74px}.road-node>.reward-art,.road-node>.weapon-art{width:49px;height:49px}.road-node .mystery-card{height:46px;width:35px}.road-node small{font-size:12px;line-height:15px}.reward-road{padding-top:75px}.road-markers{height:75px}.road-node.edge-last .road-stem{height:27px;bottom:-9px}
 .road-peek{font-size:15px}.road-peek>b{font-size:16px}.road-peek small{font-size:12px}.progress-remaining{font-size:13px}.cache{width:58px;height:58px}.cache .reward-art{width:53px;height:53px}.battle-button{max-width:410px;width:88%;min-height:70px;font-size:33px}
 .bottom-nav{height:96px;padding:8px 15px 0;gap:8px}.bottom-nav b{font-size:17px}.bottom-nav .reward-art{width:55px;height:55px}
 .scroll-page{padding:20px 30px 35px}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:19px 15px}.collection-card .weapon-art{width:128px;height:128px}.collection-card>b{font-size:16px}.collection-card>small{font-size:12px}.collection-card{min-height:235px}.arsenal-page .deck-strip{max-width:750px;padding:13px 8px;gap:12px}.deck-strip .mini-card{min-height:157px}.deck-strip .mini-card .weapon-art{max-width:102px}.deck-strip .mini-name{font-size:13px;min-height:32px}.deck-strip .mini-level{font-size:12px}
 .daily-grid,.shop-packs{max-width:940px;margin:14px auto;gap:19px}.pack-card{padding:14px}.pack-card .shop-pack-art{max-width:200px;max-height:200px}.pack-card h3{font-size:22px}.shop-packs .pack-card p{font-size:13px}.daily-card>strong{font-size:35px}.daily-card>.coin{width:110px;height:110px}.daily-card .btn,.pack-card .btn{font-size:17px;min-height:44px}.market-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.market-offer{min-height:240px}.market-offer>.coin,.market-offer>.pack-art{width:95px;height:95px}.market-offer h3{font-size:17px}.market-offer .btn{font-size:16px;min-height:44px}.market-links .btn{font-size:15px;min-height:43px}
 .detail-page{width:100%;max-width:1080px;align-self:center;padding:15px 32px 30px}.detail-top{top:-15px;margin-top:-15px;padding:12px 7px}.weapon-hero{min-height:225px}.weapon-hero h1{font-size:38px}.weapon-hero>.weapon-art{width:240px;height:240px}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-tile{min-height:95px}.stat-tile small{font-size:15px}.stat-tile b{font-size:24px}.tactic-row{padding:9px 0}.tactic-row>span b{font-size:16px}.tactic-row button{width:108px}.tactic-row .weapon-art{width:65px;height:65px}.tactic-row small{font-size:12px}.inspector-upgrade .btn{max-width:500px;margin:auto}.weapon-unlock{max-width:700px;margin:15px auto}.shop-unlock{max-width:790px;margin:24px auto}.rank-list,.league-emblem,.stats-row{max-width:920px;width:100%;margin-left:auto;margin-right:auto}.rank-row{padding:13px 20px}.rank-row .rank-avatar{width:60px;height:60px}.rank-row b{font-size:18px}.rank-row strong{font-size:22px}
 .pack-page .pack-opening{max-width:820px}.pack-page .pack-reward{max-width:220px}.pack-page .pack-result-cards{gap:30px}.pack-page .pack-opening h2{font-size:41px}.pack-page .pack-reward b{font-size:19px;min-height:48px}.pack-page .pack-reward strong{font-size:40px}.pack-page .gold-total{font-size:37px}.pack-page .pack-opening>.btn{max-width:510px;min-height:60px;font-size:25px}.pack-page .physical-pack{width:330px;height:350px}.pack-page .physical-pack .reward-art{width:330px;height:330px}
 .upgrade-results{width:100%;max-width:980px;align-self:center}.postmatch-grid{max-width:900px;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:30px auto}.postmatch-card,.postmatch-card:nth-child(4){grid-column:auto}.postmatch-card .result-weapon{min-height:197px}.result-weapon .weapon-art{width:125px;height:125px}.result-weapon b{font-size:15px;min-height:37px}.result-weapon small{font-size:14px}.postmatch-card>.boost-action{min-height:47px;font-size:17px}.upgrade-results h1{font-size:35px}.upgrade-results .continue-button{max-width:460px;width:80%;font-size:25px;min-height:58px}.outcome-page h1{font-size:58px}
 .in-combat .battle-screen{display:grid;grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:85px 9px minmax(0,1fr);flex:1;width:100%;height:100%}.in-combat .battle-hud{grid-column:1/3;grid-row:1;height:85px;padding:10px 24px}.in-combat .territory-meter{grid-column:1/3;grid-row:2;margin:0 24px;height:7px}.in-combat .board-wrap{grid-column:1;grid-row:3;padding:12px;min-height:0;min-width:0;background:radial-gradient(ellipse,#536179,#202e46)}.in-combat .battle-hand-area{grid-column:2;grid-row:3;padding:20px 16px;display:flex;flex-direction:column;justify-content:center;min-height:0;border-top:0;border-inline-start:2px solid #7082b3;overflow:auto;scrollbar-width:none}.in-combat .hand{display:flex;flex-direction:column;gap:19px;min-height:0;flex:none}.in-combat .hand-card{width:100%;height:112px;display:grid;grid-template-columns:90px minmax(0,1fr);grid-template-rows:1fr 28px;padding:8px 5px;gap:0 5px;align-items:center;flex:none}.in-combat .hand-card .weapon-art{width:86px;height:86px;grid-column:1;grid-row:1/3;margin:0}.in-combat .hand-card b{font-size:17px;grid-column:2;align-self:end}.in-combat .hand-card small{font-size:12px;grid-column:2;align-self:start}.in-combat .hand-card kbd{position:absolute;top:3px;right:7px}.in-combat .redraw-cue{flex-direction:row;width:100%;gap:9px;height:28px}.in-combat .redraw-cue>span{font-size:28px}.in-combat .redraw-cue small{font-size:12px}.in-combat .battle-hand-area>p{font-size:13px;line-height:1.4;min-height:40px;margin-bottom:16px}.in-combat .energy-row{margin-top:23px;flex-wrap:wrap}.in-combat .energy-row>div{min-width:160px}.in-combat .combatant{min-width:160px;padding:6px 14px}.in-combat .combatant b{font-size:16px}.in-combat .combatant strong{font-size:26px}.in-combat .combat-avatar{width:49px;height:49px}.in-combat .battle-clock>b{font-size:28px}.in-combat .combat-deck-panel{max-width:550px;left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 20px);animation:none}.in-combat .scouted-card{min-height:125px}.in-combat .scouted-card>b{font-size:11px}.in-combat .scouted-card>small{font-size:12px}.in-combat .arena-result-copy{max-width:760px}.in-combat .arena-result h1{font-size:65px}.in-combat .arena-transition{bottom:8%}
}
@media(min-width:1000px) and (min-height:541px){
 .game-shell:has(>.bottom-nav){display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:88px minmax(0,1fr)}
 .game-shell:has(>.bottom-nav)>.topbar{grid-column:2;grid-row:1;padding:16px 30px}.game-shell:has(>.bottom-nav)>.wallet{grid-column:2;grid-row:1;position:absolute;inset-inline-end:95px;top:17px;width:min(40%,500px);padding:10px 15px;z-index:4}
 .game-shell:has(>.bottom-nav)>.lobby,.game-shell:has(>.bottom-nav)>.scroll-page{grid-column:2;grid-row:2;min-width:0}
 .game-shell:has(>.bottom-nav)>.bottom-nav{grid-column:1;grid-row:1/-1;display:flex;flex-direction:column;justify-content:center;gap:15px;height:100%;width:100%;padding:22px 11px;background:linear-gradient(#50367f,#30224f);border-inline-end:2px solid #b498cf55;max-width:none;align-self:stretch}
 .game-shell:has(>.bottom-nav)>.bottom-nav button{flex:none;height:94px;width:88px;border:2px solid #543b72;border-radius:15px;margin:0;padding:6px 3px;gap:4px;box-shadow:inset 0 3px #edddff,0 4px #332149}.game-shell:has(>.bottom-nav)>.bottom-nav .active{transform:translateY(-2px);box-shadow:inset 0 3px #fff0be,0 4px #664855,0 0 16px #f4da8155}.game-shell:has(>.bottom-nav)>.bottom-nav b{font-size:13px}.game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:50px;height:50px}
 .game-shell:has(>.welcome-strip){grid-template-rows:88px 49px minmax(0,1fr)}.game-shell>.welcome-strip{grid-column:2;grid-row:2;margin:0 30px 7px}.game-shell:has(>.welcome-strip)>.lobby{grid-row:3}
 .lobby{flex-direction:row;align-items:stretch;padding:5px 20px 30px;gap:15px}.lobby-scene{width:53%;min-height:0;flex:1}.lobby-controls{width:46%;max-width:630px;padding:22px 28px;justify-content:center;gap:24px}.lobby-scene .stage-art{height:min(90%,600px);max-height:650px;bottom:50%;transform:translate(-50%,50%)}.stage-art:not(.slide-out-right):not(.slide-out-left):not(.slide-in-right):not(.slide-in-left){animation:wide-island-float 4s ease-in-out infinite}.stage-caption{top:18px}.stage-caption small{font-size:19px;letter-spacing:4px}.stage-caption p{font-size:17px;margin-top:12px}.lobby-scene .road-peek{bottom:30px;background:none;font-size:15px}.help-float{top:87px}.gift-float{top:110px;bottom:auto}.stage-selector b{font-size:18px}.lobby-controls .track b{font-size:24px}.battle-button{width:90%;max-width:430px;min-height:78px;font-size:37px}.cache-track{gap:14px}.cache{width:63px;height:63px}.cache .reward-art{width:56px;height:56px}
 .collection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:23px 18px}.arsenal-page .deck-strip{max-width:860px}.collection-card .weapon-art{width:140px;height:140px}.market-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));max-width:1250px;margin:20px auto}.shop-page .ribbon{max-width:1000px;margin-left:auto;margin-right:auto}.shop-page .daily-grid{max-width:1000px}.shop-page .market-links{max-width:700px}.shop-page .section-intro h1{font-size:35px}
 .in-combat .battle-screen{grid-template-columns:minmax(0,1fr) clamp(280px,28vw,440px)}.in-combat .battle-hand-area{padding:30px}.in-combat .hand-card{grid-template-columns:110px 1fr;height:126px;padding:6px 10px}.in-combat .hand-card .weapon-art{width:104px;height:104px}.in-combat .hand-card b{font-size:20px}.in-combat .hand-card small{font-size:15px}.in-combat .hand{gap:24px}.in-combat .battle-hud{padding-inline:7%}.in-combat .battle-hand-area>p{font-size:15px}.in-combat .redraw-cue small{font-size:15px}.in-combat .energy-row>div{min-width:180px}.in-combat .energy-row>div>i{height:20px}.in-combat .energy-row>b{font-size:21px}.in-combat .combatant{min-width:215px}.in-combat .combatant b{font-size:18px}.in-combat .combatant strong{font-size:28px}
 @keyframes wide-island-float{0%,100%{transform:translate(-50%,50%)}50%{transform:translate(-50%,calc(50% - 10px))}}
 .stage-art.slide-out-left{animation:wide-stage-out-left .26s ease-in both}.stage-art.slide-out-right{animation:wide-stage-out-right .26s ease-in both}.stage-art.slide-in-left{animation:wide-stage-in-left .38s ease-out both}.stage-art.slide-in-right{animation:wide-stage-in-right .38s ease-out both}
 @keyframes wide-stage-out-left{to{transform:translate(-165%,50%);opacity:0}}@keyframes wide-stage-out-right{to{transform:translate(65%,50%);opacity:0}}@keyframes wide-stage-in-left{from{transform:translate(65%,50%);opacity:0}to{transform:translate(-50%,50%);opacity:1}}@keyframes wide-stage-in-right{from{transform:translate(-165%,50%);opacity:0}to{transform:translate(-50%,50%);opacity:1}}
}
@media(min-width:600px) and (max-width:999px) and (orientation:portrait){.in-combat .battle-screen{display:flex;flex-direction:column}.in-combat .battle-hud{height:88px;flex:none}.in-combat .territory-meter{flex:none}.in-combat .board-wrap{flex:1}.in-combat .battle-hand-area{flex:none;border-inline:0;border-top:2px solid #506286;padding:12px 30px 17px}.in-combat .hand{flex-direction:row;gap:16px}.in-combat .hand-card{height:138px;display:flex;flex:1;width:auto;flex-direction:column;justify-content:center}.in-combat .hand-card .weapon-art{height:86px;width:86px}.in-combat .hand-card b{font-size:14px;align-self:center}.in-combat .hand-card small{font-size:11px;align-self:center}.in-combat .redraw-cue{width:55px;height:auto;flex:none;flex-direction:column}.in-combat .battle-hand-area>p{min-height:0;margin-bottom:12px;text-align:center}.in-combat .energy-row{margin-top:12px;flex-wrap:nowrap}.in-combat .hand-card kbd{display:none}}
@media(min-width:1000px) and (max-height:730px) and (min-height:541px){.in-combat .battle-hand-area{padding:15px 23px}.in-combat .hand{gap:16px}.in-combat .hand-card{height:100px;grid-template-columns:86px 1fr}.in-combat .hand-card .weapon-art{width:82px;height:82px}.in-combat .hand-card b{font-size:17px}.in-combat .energy-row{margin-top:15px}.in-combat .battle-hand-area>p{min-height:0;margin-bottom:15px}.lobby-controls{gap:14px}.cache{height:48px;width:48px}.cache .reward-art{height:43px;width:43px}.battle-button{min-height:62px;font-size:30px}.lobby-scene .stage-art{height:calc(100% - 75px)}}

@media(min-width:600px) and (min-height:541px){.in-combat .hand{width:100%;align-items:stretch}.in-combat .hand-card{max-width:none;min-width:0;align-self:stretch}.in-combat .combatant{display:grid;grid-template-columns:49px minmax(0,1fr);grid-template-rows:20px 29px;column-gap:10px;padding:6px 12px;height:65px;min-height:65px}.in-combat .combatant .combat-avatar{position:static;grid-column:1;grid-row:1/3;width:47px;height:47px;margin:0}.in-combat .combatant>b,.in-combat .combatant>strong{grid-column:2;text-align:start;padding:0;margin:0;line-height:1.1}.in-combat .combatant>b{font-size:16px}.in-combat .combatant>strong{font-size:25px}.in-combat .hand-card b{white-space:normal;overflow-wrap:anywhere}}

/* Every reward uses the same icon box, label baseline and vertical connector. */
.reward-road{--road-height:70px;--road-icon:42px;padding-top:var(--road-height)}
.road-markers{height:var(--road-height);left:3px;right:3px}
.road-node{height:var(--road-height);width:48px;display:grid;grid-template-rows:var(--road-icon) 16px;gap:3px;justify-items:center;align-content:start}
.road-node .road-icon{width:var(--road-icon);height:var(--road-icon);display:flex;align-items:center;justify-content:center}
.road-node .road-icon>.reward-art,.road-node .road-icon>.weapon-art{width:100%;height:100%;margin:0;transform:none}
.road-icon>.mystery-card{height:calc(var(--road-icon) - 3px);width:calc(var(--road-icon) * .73);margin:0}
.road-node small{height:16px;line-height:16px;font-size:11px;padding:0 5px;align-self:start}
.road-node .road-stem{height:14px;bottom:-7px;left:calc(50% - 1px);transform:none}
.road-node.ready .road-icon{filter:drop-shadow(0 0 6px #ffdf7b)}
.road-node:focus-visible{outline:2px solid #fff5bc;outline-offset:4px;border-radius:9px}
.lobby-scene{container-type:size}
.lobby-scene .stage-art{width:min(94cqw,calc(100cqh - 80px),540px);height:auto;max-height:none;aspect-ratio:1;bottom:25px}
@media(min-width:600px) and (min-height:541px){.reward-road{--road-height:79px;--road-icon:49px}.road-node{width:54px}.road-node small{font-size:12px}.lobby-scene .stage-art{width:min(92cqw,calc(100cqh - 90px),600px)}}
@media(min-width:1000px) and (min-height:541px){.lobby-scene .stage-art{bottom:50%;width:min(94cqw,calc(100cqh - 160px),580px)}}
@media(max-height:700px) and (max-width:599px){.reward-road{--road-height:59px;--road-icon:35px}.road-node{width:40px}.road-node small{font-size:10px;height:13px;line-height:13px}.lobby-scene .stage-art{width:min(88cqw,calc(100cqh - 58px))}}
@media(max-height:540px) and (min-width:600px){.reward-road{--road-height:48px;--road-icon:28px}.road-node{width:38px;grid-template-rows:var(--road-icon) 12px;gap:2px}.road-node small{font-size:9px;height:12px;line-height:12px}.road-node .road-stem{height:9px;bottom:-6px}.lobby-scene .stage-art{width:min(90cqw,calc(100cqh - 55px))}}

/* Full-viewport loading artwork. Its progress is driven by loaded assets. */
body.boot-active{background:#37216a}
.hex-boot{position:fixed;inset:0;z-index:10000;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;min-height:100dvh;background:radial-gradient(ellipse at 50% 30%,#947ae4 0%,#59388f 55%,#24183f 100%);color:#fff9e9;font-family:HexRounded,'Trebuchet MS',sans-serif;transition:opacity .42s ease,filter .42s ease}
.boot-art{position:absolute;inset:0 0 130px;display:flex;justify-content:center;transform-origin:50% 45%;animation:boot-art-enter 1.1s cubic-bezier(.16,.7,.3,1) both}
.boot-art img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;align-self:flex-start;object-fit:contain;object-position:center top;mask-image:linear-gradient(#000 88%,transparent);filter:drop-shadow(0 15px 28px #22184233)}
.boot-glow{position:absolute;inset:-15%;background:radial-gradient(ellipse at 50% 30%,#af99ff91,transparent 65%);animation:boot-breathe 4s ease-in-out infinite alternate}
.boot-vignette{position:absolute;inset:0;background:linear-gradient(0deg,#24143d 0%,#34204bee 12%,#52307033 28%,transparent 48%);pointer-events:none}
.boot-controls{position:relative;z-index:2;width:min(88vw,430px);padding:20px 0 max(28px,env(safe-area-inset-bottom));text-align:center;animation:boot-controls-enter .75s .15s ease both}
.boot-accessible-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.boot-tagline{font-size:clamp(14px,2.2vh,18px);font-weight:700;line-height:1.35;margin:0 0 17px;text-shadow:0 2px 8px #120621}
.boot-loading{height:50px;opacity:1;transition:opacity .25s ease,height .25s ease}
.boot-status{font-size:14px;color:#e7d3ff;font-weight:600;margin:0 0 10px;line-height:1.2}
.boot-progress{height:15px;padding:2px;border-radius:12px;background:#201435;border:1px solid #c5a5e088;box-shadow:inset 0 2px 3px #0c052c,0 1px #e9b3ff24;overflow:hidden}
.boot-progress>span{display:block;width:0;height:100%;border-radius:9px;background:linear-gradient(#fff697,#ffc348 55%,#f3932f);box-shadow:0 0 12px #ffc94c70;transition:width .24s ease;position:relative}
.boot-progress>span:after{content:'';position:absolute;inset:1px 8px auto;height:2px;background:#fffbd3a6;border-radius:3px}
.boot-enter{position:relative;align-items:center;justify-content:center;gap:18px;display:flex;visibility:hidden;opacity:0;pointer-events:none;width:min(100%,340px);height:0;min-height:0;margin:0 auto;padding:0;border:0;border-radius:18px;background:linear-gradient(#ffeda1,#ffcf53 48%,#ffb432);box-shadow:inset 0 3px #ffffd0,inset 0 -3px #eaa039,0 6px #a9652f,0 8px 20px #130b2b80;color:#71400e;text-shadow:0 1px #fff2c7;font-size:29px;font-weight:800;line-height:1;transition:opacity .25s ease,transform .25s ease;transform:translateY(12px);outline-offset:7px;cursor:pointer}
.boot-enter>i{font-style:normal;font-size:19px;filter:drop-shadow(0 1px #fff4bc)}
.boot-enter:focus-visible{outline:3px solid #d3fffc;box-shadow:inset 0 3px #ffffd0,inset 0 -3px #eaa039,0 6px #a9652f,0 0 35px #f5d26d6b}
.boot-ready .boot-loading{height:50px}
.boot-ready .boot-progress{display:block}
.boot-ready .boot-enter{height:60px;opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.boot-enter:disabled{filter:none;opacity:0}
.boot-exit .boot-enter:disabled{opacity:1;pointer-events:none;transform:scale(.98)}
.boot-exit{opacity:0;filter:brightness(1.15);pointer-events:none}
.boot-sparks{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.boot-sparks i{position:absolute;bottom:-25px;left:18%;width:7px;height:7px;border-radius:2px;background:#fff0a1;box-shadow:0 0 10px #ffe44e;animation:boot-spark 6s 1.1s linear infinite;opacity:0}
.boot-sparks i:nth-child(2){left:78%;animation-delay:2.4s;width:5px;height:5px}
.boot-sparks i:nth-child(3){left:41%;animation-delay:3.5s;width:4px;height:4px}
.boot-sparks i:nth-child(4){left:65%;animation-delay:4.5s}
.boot-sparks i:nth-child(5){left:9%;animation-delay:5.4s;width:4px;height:4px}
.boot-reveal #app.game-shell{animation:boot-game-enter .45s ease both}
@keyframes boot-art-enter{from{opacity:0;transform:scale(1.075) translateY(15px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes boot-controls-enter{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@keyframes boot-breathe{to{opacity:.65;transform:scale(1.04)}}
@keyframes boot-spark{0%{opacity:0;transform:translateY(0) rotate(0)}15%,70%{opacity:.65}100%{opacity:0;transform:translateY(-75vh) rotate(240deg)}}
@keyframes boot-game-enter{from{opacity:0;filter:brightness(1.15)}to{opacity:1;filter:brightness(1)}}
@media(min-aspect-ratio:1/1){.boot-art{inset:0 0 60px}.boot-art img{width:100%;height:100%;align-self:center;object-position:center center;mask-image:linear-gradient(#000 89%,transparent)}.boot-controls{padding-bottom:max(26px,env(safe-area-inset-bottom));width:min(46vw,430px)}.boot-vignette{background:linear-gradient(0deg,#251439 0%,#352049c7 14%,transparent 38%),linear-gradient(90deg,#2e205f99,transparent 22%,transparent 78%,#2e205f99)}.boot-tagline{margin-bottom:11px}}
@media(max-height:520px) and (min-aspect-ratio:1/1){.boot-controls{padding:10px 0 16px;width:min(42vw,340px)}.boot-tagline{display:none}.boot-ready .boot-enter{height:46px;font-size:24px}.boot-ready .boot-loading{height:43px}.boot-status{font-size:12px}.boot-art{inset:0 0 40px}.boot-vignette{background:linear-gradient(0deg,#251439,transparent 37%)}}
.boot-reduced,.boot-reduced *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.hex-boot,.hex-boot *,.boot-reveal #app.game-shell{animation:none!important;transition:none!important}}

.boot-art-missing .boot-art{display:none}.boot-art-missing .boot-accessible-title{clip-path:none;width:100%;height:auto;overflow:visible;position:fixed;top:22vh;inset-inline-start:0;white-space:normal;font-size:clamp(42px,9vw,110px);color:#ffe167;text-shadow:0 5px #56304c,0 12px 25px #251739}

/* Seven-day rewards use the existing local icon atlas, with no new assets or timers. */
.login-rewards{margin:0 0 18px;padding:15px;border:2px solid #bd91d2;border-radius:19px;background:linear-gradient(145deg,#513e78,#292846);box-shadow:inset 0 1px #e4c5ee55,0 5px #30223866;color:#fff1d7;min-width:0;overflow:hidden}
.login-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.login-header small{font-size:10px;letter-spacing:.08em;color:#dac6f0;font-weight:800}
.login-header h2{font-size:22px;line-height:1.18;color:#fff1c8;margin:4px 0 0;text-shadow:0 2px #291a42}
.login-streak{flex:none;border:1px solid #ad83c6;background:#302344;border-radius:20px;padding:5px 11px;font-weight:800;font-size:13px;white-space:nowrap;direction:ltr}
.login-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:stretch}
.login-day{min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;background:#f2dfc8;border:2px solid #9981a9;border-radius:11px;padding:7px 3px 4px;color:#553c5b;box-shadow:0 3px #221a35}
.login-day-label{font-size:11px;font-weight:800;white-space:nowrap}
.login-day-loot{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:3px;min-width:0}
.login-loot{display:flex;flex-direction:column;align-items:center;font-size:13px;line-height:1.2;min-width:0}
.login-icon{display:block;width:38px;height:38px;flex:none;background-image:url(./assets__ui-icons.png);background-size:500% 200%;background-repeat:no-repeat;filter:drop-shadow(0 2px 1px #553c5b55)}
.login-gold{background-position:0% 100%}.login-gems{background-position:25% 100%}.login-cores{background-position:50% 100%}
.login-crate{background-image:url(./assets__packs.png);background-size:300% 100%;background-position:0 0}
.login-mark{line-height:16px;font-size:14px;color:#816390;font-weight:900}
.login-day.is-ready{border-color:#f5d965;background:linear-gradient(#fff1bb,#ecc479);box-shadow:0 3px #8a5c36,inset 0 0 0 1px #fff5cf}
.login-day.is-ready .login-mark{color:#966015}.login-day.is-claimed{background:#bacfb5;border-color:#739e79;box-shadow:0 3px #263d34}.login-day.is-claimed .login-mark{color:#2e674b}
.login-day.is-finale{background:linear-gradient(#e9d5fa,#c7ace5);border-color:#d4acf0}.login-day.is-finale .login-day-loot{gap:2px}.login-day.is-finale .login-loot{flex-direction:row;font-size:11px;gap:2px}.login-day.is-finale .login-icon{width:26px;height:26px}.login-day.is-finale.is-claimed{background:#bacfb5;border-color:#739e79}.login-day.is-finale.is-ready{background:linear-gradient(#fff1bb,#ecc479);border-color:#f5d965}
.login-action{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}.login-action>div{min-width:0}.login-action b{display:block;font-size:13px;line-height:1.3;color:#fff1d7}.login-action small{display:block;font-size:10px;line-height:1.4;color:#d5c5e2;margin-top:3px}.login-action>.btn{flex:none;min-height:39px;padding:7px 14px;font-size:13px}.login-action>.btn:disabled{background:#514b62;border-color:#847992;color:#d4cadd;box-shadow:none;opacity:1;cursor:default}
.login-note{font-size:10px;line-height:1.5;text-align:center;color:#d5c5e2;margin:10px 0 0;overflow-wrap:anywhere}
@media(max-width:520px){.login-rewards{padding:12px}.login-days{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.login-day{min-height:91px}.login-day.is-finale{grid-column:span 2}.login-day.is-finale .login-day-loot{flex-direction:row;gap:7px}.login-day.is-finale .login-loot{flex-direction:column;font-size:12px}.login-day.is-finale .login-icon{width:32px;height:32px}.login-header h2{font-size:20px}.login-action{align-items:stretch}.login-action>.btn{max-width:47%;white-space:normal}.login-action small{font-size:10px}}
@media(max-width:340px){.login-header h2{font-size:17px}.login-header small{font-size:9px}.login-rewards{padding:10px}.login-days{gap:5px}.login-icon{width:32px;height:32px}.login-day.is-finale .login-day-loot{gap:4px}.login-day.is-finale .login-icon{width:27px;height:27px}.login-action{flex-direction:column}.login-action>.btn{max-width:100%;width:100%}}

/* Contain the embedded game in its actual viewport; long panels still scroll by touch,
   wheel and keyboard without an intermittent browser scrollbar. */
html,body{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;overscroll-behavior:none}
#app{min-width:0;min-height:0;max-width:100%;height:100vh;height:100dvh}
.game-shell>*{min-width:0}
.scroll-page,.result-page,.upgrade-results,.outcome-page,.pack-page,.modal,.battle-hand-area{overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain}
.scroll-page::-webkit-scrollbar,.result-page::-webkit-scrollbar,.upgrade-results::-webkit-scrollbar,.outcome-page::-webkit-scrollbar,.pack-page::-webkit-scrollbar,.modal::-webkit-scrollbar,.battle-hand-area::-webkit-scrollbar{display:none;width:0;height:0}
#save-notice{position:fixed;inset:0 0 auto;z-index:12000;height:48px;display:flex;align-items:center;justify-content:center;gap:14px;padding:5px 14px;background:#ffebb9;color:#51341d;font-size:13px;line-height:1.2;text-align:start}
#save-notice button{flex:none;padding:8px 12px;border:1px solid #967749;border-radius:9px;background:#fff8e5;color:#51341d;font-size:13px}
body.save-protected #app{margin-top:48px;height:calc(100vh - 48px);height:calc(100dvh - 48px)}
@media(max-width:599px){#save-notice{font-size:11px;gap:7px;padding:4px 8px}#save-notice button{font-size:11px;padding:7px}}

/* One content column and spacing rhythm across the existing game pages. */
.scroll-page{--page-content:1040px;--page-gap:16px;padding:20px max(24px,calc((100% - var(--page-content))/2)) 32px;scroll-padding-top:20px;min-width:0}
.scroll-page>.section-intro,.shop-page>.section-intro{margin:0 0 20px;padding:0;text-align:start}
.section-intro>small{display:block;margin:0 0 8px;font-size:11px;line-height:1.3;letter-spacing:.1em;color:#e3d7f5}
.section-intro>h1,.shop-page .section-intro h1{margin:0;font-size:30px;line-height:1.2;text-wrap:balance}
.section-intro>p{margin:8px 0 0;font-size:14px;line-height:1.5;color:#eee2fa}
.scroll-page .ribbon{max-width:none;width:auto;margin:24px 0 16px;font-size:20px;line-height:1.25;padding:12px 16px}
.scroll-page .shop-packs,.scroll-page .daily-grid,.scroll-page .market-grid{max-width:none;width:100%;margin:0;gap:16px}
.scroll-page .market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.shop-page .market-links{max-width:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 24px}
.market-links .btn{min-width:0;min-height:42px;font-size:13px;padding:8px 12px;white-space:normal;line-height:1.25}
.scroll-page .odds,.scroll-page .market-grid+.muted{margin:12px 0 24px;line-height:1.5;font-size:12px}
.scroll-page .shop-unlock{max-width:none;margin:24px 0}
.scroll-page .shop-unlock .weapon-unlock{padding:16px}
.scroll-page .pack-card,.scroll-page .daily-card,.scroll-page .deal-card{min-width:0;padding:16px 12px;display:flex;flex-direction:column;align-items:center}
.scroll-page .pack-card .shop-pack-art{width:100%;max-width:160px;height:150px;max-height:none;margin:0 auto 8px}
.scroll-page .pack-card h3{font-size:20px;line-height:1.2;margin:0 0 8px}
.scroll-page .pack-card p{font-size:12px;line-height:1.4;margin:0 0 14px}
.scroll-page .pack-card .btn,.scroll-page .daily-card .btn,.scroll-page .deal-card .btn,.scroll-page .market-offer .btn{min-height:42px;width:100%;font-size:15px;margin-top:auto;white-space:normal}
.scroll-page .daily-card>small,.scroll-page .deal-card>span{margin:8px 0;font-size:11px;line-height:1.4}
.scroll-page>.daily-grid,.scroll-page>.ad-supply,.scroll-page>.supply-banner{margin-bottom:24px}
.scroll-page .market-offer{min-height:222px;padding:16px 12px}
.scroll-page .market-offer>.coin,.scroll-page .market-offer>.pack-art{width:80px;height:80px}
.scroll-page .market-offer h3{font-size:16px}
.scroll-page .market-offer>small{font-size:11px;line-height:1.4;margin:5px 0 12px}
.arsenal-page .deck-strip{width:100%;max-width:none;margin:0 0 24px;padding:0;gap:12px}
.arsenal-page .deck-strip .mini-card{min-height:150px;padding:10px 6px}
.arsenal-page .deck-strip .mini-card .weapon-art{max-width:90px}
.arsenal-page .deck-strip .mini-name{font-size:12px;min-height:30px;line-height:1.25}
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.collection-heading h2{font-size:22px;line-height:1.25;margin:0}
.arsenal-page .filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.arsenal-page .filters>button{min-height:36px;min-width:0;flex:1;padding:8px;font-size:12px;line-height:1.2}
.scroll-page .collection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.scroll-page .collection-card{min-height:218px;padding:12px 8px}
.scroll-page .collection-card .weapon-art{width:min(100%,120px);height:120px}
.scroll-page .collection-card>b{font-size:14px;line-height:1.25}
.scroll-page .collection-card>small{font-size:11px;line-height:1.4;min-height:30px}
.scroll-page .collection-card .copy-track{margin-top:8px}
.scroll-page .collection-grid+.muted{margin-top:20px}
.scroll-page .rank-list,.scroll-page .stats-row,.scroll-page .league-emblem{width:100%;max-width:none;margin-inline:0}
.scroll-page .league-emblem{height:116px;margin:0 0 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.scroll-page .league-emblem>.reward-art{width:82px;height:82px;margin:0}
.scroll-page .league-emblem>span{font-size:12px;line-height:1.3}
.scroll-page .stats-row{gap:16px;margin:0 0 20px}
.scroll-page .stats-row>div{padding:14px 10px;min-height:70px}
.scroll-page .rank-list{display:flex;flex-direction:column;gap:10px}
.scroll-page .rank-row{padding:10px 16px;min-height:72px;margin:0;gap:12px}
.scroll-page .rank-row .rank-avatar{width:46px;height:46px;flex:none}
.scroll-page .rank-row b{font-size:16px}.scroll-page .rank-row strong{font-size:18px}
.scroll-page .rank-row>div{flex:1;min-width:0}.scroll-page .rank-row>div b{overflow-wrap:anywhere}
.scroll-page .rank-list~.muted{margin-top:16px;line-height:1.5}
.scroll-page .login-rewards{margin:0 0 24px;padding:20px}
.login-header{margin-bottom:16px}.login-days{gap:10px}.login-day{padding:10px 5px 6px;min-height:116px}
.login-header h2{font-size:24px}.login-action{margin-top:16px}.login-note{font-size:11px}
.login-action b{font-size:14px}.login-action small{font-size:11px}
.login-action>.btn{min-height:42px;font-size:14px}
.detail-page.scroll-page{width:100%;max-width:none;align-self:stretch;padding:16px max(24px,calc((100% - 1040px)/2)) 32px}
.detail-page .detail-top{top:-16px;padding:12px 0;margin:-16px 0 0;min-height:62px}
.detail-page .weapon-hero{padding:16px 0;min-height:190px;gap:20px}
.detail-page .weapon-hero h1{font-size:32px;line-height:1.2;margin:0 0 12px}
.detail-page .weapon-hero>.weapon-art{width:200px;height:200px}
.detail-page .stats-grid{padding:16px;gap:12px}.detail-page .tactics{padding:0 16px}
.detail-page .stat-tile{min-height:84px}.detail-page .tactic-row{padding:10px 0}
.detail-page .inspector-panel{margin-bottom:20px}.detail-page .inspector-tabs button{min-height:48px;font-size:18px}
.detail-page .inspector-upgrade{padding:16px}.detail-page .weapon-unlock{max-width:none}
/* Gold offers reuse the game's palette and local currency atlas. */
.deployment-promo{margin:0 0 24px;padding:20px;border:2px solid #e5c083;border-radius:20px;background:linear-gradient(130deg,#564075,#332a52);box-shadow:inset 0 1px #fff0c144,0 4px #38264f;color:#fff1d5;scroll-margin-top:20px}
.deployment-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.deployment-heading>div{min-width:0}.deployment-heading small{display:block;font-size:10px;line-height:1.3;letter-spacing:.1em;color:#efd391;margin:0 0 7px}
.deployment-heading h2{font-size:26px;line-height:1.2;margin:0 0 8px;color:#fff0bd;text-shadow:0 2px #251e37}
.deployment-heading p{font-size:14px;line-height:1.45;color:#e8dff3}
.deployment-badge{flex:none;background:#ffdf8a;border:1px solid #fff0bd;border-radius:12px;padding:12px 14px;font-size:17px;line-height:1.2;color:#604336;white-space:nowrap;direction:ltr}
.deployment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.deployment-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border:1px solid #ae93c3;border-radius:14px;background:#cdb6e414;min-width:0}
.deployment-option.is-permanent{border-color:#dfbc79;background:#dfba6321}
.deployment-option-copy{grid-column:1/-1}.deployment-option h3{font-size:19px;line-height:1.25;color:#fff2d9;margin:0 0 5px}
.deployment-option p{font-size:12px;line-height:1.5;color:#ded0ee}
.deployment-price{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:18px;line-height:1.2;color:#ffe5a1}
.deployment-price span{font-size:11px}.deployment-price b{font-variant-numeric:tabular-nums;white-space:nowrap}
.deployment-gold{display:block;flex:none;width:30px;height:30px;background:url('./assets__ui-icons.png') 0% 100%/500% 200% no-repeat}
.deployment-option>.btn{font-size:14px;line-height:1.25;min-height:42px;min-width:130px;max-width:100%;padding:8px 14px;margin:0}
.deployment-option>.btn:disabled{opacity:1;filter:none;background:#67576e;border-color:#9c89a2;color:#ded2e5;box-shadow:inset 0 1px #d8c7dc33}
.deployment-option>small{grid-column:1/-1;font-size:11px;line-height:1.4;min-height:16px;color:#dfd1e9}
.deployment-note{font-size:11px;line-height:1.6;margin:14px 0 0;color:#dacde7}
.cost.is-discounted{background:linear-gradient(#c9ffa4,#74ba67);color:#244e32;border-color:#4c8955;box-shadow:inset 0 1px #edffd9,0 2px #294b3c}
.deployment-status{display:block;align-self:center;margin:0;text-align:center;font-size:12px;line-height:1.4;padding:7px 12px;border-radius:10px;background:#35264b8c;color:#e6f2cc;border:1px solid #c3dbad66;max-width:100%}
html[dir=rtl] .section-intro>small,html[dir=rtl] .deployment-heading small{letter-spacing:0}
html[dir=rtl] .deployment-badge{direction:rtl}
@media(min-width:1000px) and (min-height:541px){
 .game-shell:has(>.bottom-nav)>.topbar{padding-inline:max(24px,calc((100% - 1040px)/2)) 30px}
 .game-shell:has(>.bottom-nav)>.wallet{inset-inline-end:95px;width:min(42%,500px)}
 .game-shell:has(>.bottom-nav)>.bottom-nav{gap:12px;padding:20px 11px}
 .game-shell:has(>.bottom-nav)>.bottom-nav button{height:88px}
 .lobby{padding:12px 24px 24px;gap:24px}.lobby-controls{padding:20px 24px;gap:16px}.lobby-scene .road-peek{bottom:16px}
}
@media(max-width:999px){
 .scroll-page{padding:18px 20px 28px}.scroll-page .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 .scroll-page .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .detail-page.scroll-page{padding-inline:20px}.deployment-heading h2{font-size:24px}
}
@media(max-width:599px){
 .scroll-page{padding:16px 16px 26px}.scroll-page>.section-intro,.shop-page>.section-intro{margin-bottom:18px}
 .section-intro>h1,.shop-page .section-intro h1{font-size:26px}.section-intro>p{font-size:12px;margin-top:7px}
 .section-intro>small{font-size:10px;margin-bottom:6px}.scroll-page .ribbon{font-size:18px;margin:22px 0 14px;padding:11px 12px}
 .shop-page .market-links{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}
 .market-links .btn{font-size:11px;padding:8px 6px;min-height:38px}
 .scroll-page .shop-packs,.scroll-page .daily-grid{gap:8px}
 .scroll-page .pack-card,.scroll-page .daily-card,.scroll-page .deal-card{padding:12px 6px}
 .scroll-page .pack-card .shop-pack-art{height:94px;margin-bottom:6px}
 .scroll-page .pack-card h3{font-size:14px;min-height:35px;margin-bottom:7px;display:flex;align-items:center}
 .scroll-page .pack-card p{font-size:10px;margin-bottom:12px;min-height:30px}
 .scroll-page .pack-card .btn,.scroll-page .daily-card .btn,.scroll-page .deal-card .btn{font-size:12px;min-height:38px;padding:8px 5px}
 .scroll-page .daily-card>.coin{height:62px;width:62px}.scroll-page .daily-card>strong{font-size:26px}
 .scroll-page .market-offer{padding:12px 9px;min-height:210px}.scroll-page .market-offer h3{font-size:14px}
 .scroll-page .market-offer>.btn{font-size:12px;min-height:40px}
 .arsenal-page .deck-strip{gap:6px;margin-bottom:22px}.arsenal-page .deck-strip .mini-card{min-height:123px;padding:8px 2px}
 .arsenal-page .deck-strip .mini-name{font-size:9px;line-height:1.2;min-height:33px}.arsenal-page .deck-strip .mini-level{font-size:9px}
 .collection-heading h2{font-size:20px}.arsenal-page .filters{gap:5px;margin-bottom:14px}.arsenal-page .filters>button{font-size:11px;padding:7px 5px;min-height:34px}
 .scroll-page .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
 .scroll-page .collection-card{min-height:186px;padding:10px 5px}.scroll-page .collection-card .weapon-art{width:88px;height:88px}
 .scroll-page .collection-card>b{font-size:12px}.scroll-page .collection-card>small{font-size:10px;min-height:30px}
 .scroll-page .league-emblem{height:104px}.scroll-page .stats-row{gap:8px;margin-bottom:16px}
 .scroll-page .stats-row>div{min-height:62px;padding:11px 5px}.scroll-page .rank-row{padding:9px 10px;gap:9px;min-height:64px}
 .scroll-page .rank-row b{font-size:13px}.scroll-page .rank-row strong{font-size:15px}.scroll-page .rank-row .rank-avatar{width:40px;height:40px}
 .scroll-page .login-rewards{padding:14px;margin-bottom:22px}.login-header h2{font-size:21px}.login-days{gap:8px}
 .login-day{padding:8px 4px 5px;min-height:100px}.login-action{gap:10px}.login-action b{font-size:12px}.login-action small{font-size:10px}
 .login-action>.btn{font-size:12px;min-height:40px;padding:7px 10px}.login-note{font-size:10px}
 .detail-page.scroll-page{padding:12px 16px 26px}.detail-page .detail-top{top:-12px;margin-top:-12px;padding:10px 0;min-height:58px}
 .detail-page .weapon-hero{min-height:160px;gap:12px;padding:14px 0}.detail-page .weapon-hero h1{font-size:24px}
 .detail-page .weapon-hero>.weapon-art{width:150px;height:150px}.detail-page .stats-grid{gap:8px;padding:12px}.detail-page .tactics{padding-inline:12px}
 .detail-page .stat-tile{min-height:74px;padding:9px 7px}.detail-page .stat-tile small{font-size:12px}.detail-page .stat-tile b{font-size:20px}
 .detail-page .stat-tile:last-child b{font-size:11px}.detail-page .tactic-row button{width:65px}.detail-page .tactic-row>span b{font-size:11px}
 .detail-page .inspector-upgrade{padding:12px}.detail-page .inspector-tabs button{font-size:17px;min-height:46px}
 .deployment-promo{padding:14px;margin-bottom:22px}.deployment-heading{gap:10px;align-items:start;margin-bottom:14px}
 .deployment-heading h2{font-size:21px}.deployment-heading p{font-size:12px}.deployment-heading small{font-size:9px}
 .deployment-badge{font-size:12px;padding:10px 8px}.deployment-options{grid-template-columns:1fr;gap:10px}
 .deployment-option{padding:13px;gap:10px}.deployment-option h3{font-size:17px}.deployment-option p{font-size:11px}
 .deployment-option>.btn{font-size:13px;min-width:125px}.deployment-price{font-size:18px}.deployment-note{font-size:10px}
}
@media(max-height:540px) and (min-width:600px){
 .scroll-page{padding:14px 24px 26px}.section-intro>h1,.shop-page .section-intro h1{font-size:25px}.section-intro>p{font-size:12px}
 .section-intro>small{font-size:10px;margin-bottom:5px}.scroll-page>.section-intro,.shop-page>.section-intro{margin-bottom:16px}
 .shop-page .market-links{margin-bottom:18px}.market-links .btn{min-height:36px;font-size:12px}
 .scroll-page .shop-packs,.scroll-page .daily-grid{max-width:none}.scroll-page .market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .scroll-page .collection-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.arsenal-page .deck-strip{max-width:none}
 .arsenal-page .deck-strip .mini-card{min-height:136px}.arsenal-page .deck-strip .mini-level{display:block;font-size:10px}
 .detail-page.scroll-page{padding:12px 24px 26px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:14px}
 .detail-page .detail-top{top:-12px;margin-top:-12px;grid-column:1/-1}.detail-page .weapon-hero{gap:12px;padding:10px 0;min-height:0}
 .detail-page .weapon-hero h1{font-size:25px}.detail-page .weapon-hero>.weapon-art{width:165px;height:165px}
 .detail-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}.detail-page .tactics{padding:0 10px}
 .detail-page .stat-tile{min-height:70px}.detail-page .stat-tile small{font-size:11px}.detail-page .stat-tile b{font-size:18px}.detail-page .stat-tile:last-child b{font-size:10px}
 .detail-page .tactic-row>span b{font-size:11px}.detail-page .tactic-row button{width:55px}.detail-page .tactic-row .weapon-art{width:38px;height:38px}
 .detail-page .tactic-row small{font-size:9px}.detail-page .inspector-tabs button{font-size:16px;min-height:44px}.detail-page .inspector-upgrade{padding:12px}
 .deployment-promo{padding:16px}.deployment-heading h2{font-size:23px}.deployment-option{padding:13px}.deployment-heading{margin-bottom:14px}
 .deployment-option>.btn{min-width:120px;font-size:12px}.deployment-option h3{font-size:17px}.deployment-price{font-size:17px}
 .lobby-controls{gap:7px;padding:10px 24px}.deployment-status{padding:4px 8px;font-size:10px}.lobby-scene .road-peek{bottom:7px}
}
/* Keep upgrade indicators compact, and reserve their own space in each flow. */
.deployment-lobby-status{display:block;flex:none;align-self:center;max-width:100%;min-height:30px;margin:0;padding:6px 12px;border:1px solid #c3dbad88;border-radius:10px;background:#35264b99;color:#e6f2cc;font-size:12px;line-height:1.35;text-align:center;box-shadow:inset 0 1px #e4f5d51a}
.deployment-combat-status{display:block;flex:none;text-align:center;color:#e0f6ba;border:1px solid #adc79477;border-radius:8px;background:#263c3999;padding:6px 9px;margin:0 0 10px;font-size:12px;line-height:1.35}
.hero-energy del{font-size:.8em;color:#ddd0e9;text-decoration-thickness:2px}
@media(min-width:1000px) and (min-height:541px){
 .game-shell:not(:has(>.bottom-nav)):has(>.detail-page)>.topbar{height:88px;padding:16px max(24px,calc((100% - 1040px)/2));flex:none}
 .game-shell:not(:has(>.bottom-nav)):has(>.detail-page)>.wallet{position:absolute;top:17px;inset-inline-end:calc(max(24px,(100% - 1040px)/2) + 58px);width:min(40%,500px);padding:10px 15px;z-index:4}
 .lobby-controls:has(.deployment-lobby-status){gap:12px;padding-block:12px}
}
@media(max-width:599px){.lobby-controls:has(.deployment-lobby-status){gap:8px}.deployment-lobby-status{font-size:11px;padding:5px 10px}.deployment-combat-status{font-size:10px;margin-bottom:6px;padding:4px 7px}}
@media(max-height:540px) and (min-width:600px){
 .detail-page.scroll-page{grid-template-rows:max-content minmax(max-content,0) auto;grid-auto-rows:max-content;align-content:start}
 .detail-page .weapon-hero{min-height:max-content}
 .detail-page>.btn,.detail-page>.inline-swap{grid-row:3}
 .lobby-controls:has(.deployment-lobby-status){gap:5px;padding-block:7px}
 .deployment-lobby-status{min-height:24px;padding:4px 8px;font-size:10px}
 .deployment-combat-status{padding:4px 5px;font-size:10px;margin-bottom:6px}
}

/* Short windows keep detail content in document order so controls cannot overlap. */
@media(max-height:540px) and (min-width:600px){
 .detail-page.scroll-page{display:block}
 .detail-page .weapon-hero{flex-direction:row;min-height:170px;gap:24px;padding:12px 0}
 .detail-page .weapon-hero>div{flex:1}
 .detail-page .weapon-hero>.weapon-art{width:180px;height:180px}
 .detail-page .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:14px;gap:10px}
 .detail-page .tactics{padding-inline:14px}
 .detail-page .tactic-row>span b{font-size:13px}
 .detail-page .tactic-row button{width:72px}
 .detail-page .tactic-row .weapon-art{width:48px;height:48px}
 .detail-page .tactic-row small{font-size:10px}
 .detail-page>.btn{max-width:420px;margin:12px auto 0}
}
.hand-card .cost{left:auto;right:auto;inset-inline-start:-5px;width:26px;min-width:26px}

/* Embedded windows: controls belong to the available game viewport. */
.match-page{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;align-items:center;justify-items:center;gap:20px 28px;padding:32px max(28px,calc((100% - 1100px)/2));min-height:0;height:100%;overflow:hidden}
.match-page .rival-roulette{grid-column:1;grid-row:1;width:100%;min-height:0;overflow:visible;padding:8px;display:flex;justify-content:center;align-items:center}
.match-page .match-rival,.match-page .match-player{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:450px;min-width:0;min-height:230px;padding:22px 18px;gap:14px;transform:none;text-align:center}
.match-page .match-player{grid-column:3;grid-row:1;width:calc(100% - 16px)}
.match-page .match-rival>.avatar,.match-page .match-player>.avatar{width:72px;height:72px;grid-column:auto;grid-row:auto;margin:0}
.match-page .match-rival>h2,.match-page .match-player>h2{font-size:27px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;max-width:100%;margin:0}
.match-page .match-rival>span:not(.avatar),.match-page .match-player>span:not(.avatar){display:flex;align-items:center;justify-content:center;gap:6px;font-size:22px;line-height:1.2;padding:5px 12px}
.match-page .versus{grid-column:2;grid-row:1;font-size:64px;line-height:1}
.match-page .match-status{grid-column:1/-1;grid-row:2;position:static;margin:0;min-height:30px;display:flex;justify-content:center;align-items:center;gap:10px;text-align:center;font-size:18px;line-height:1.3}
.match-page>.btn{grid-column:1/-1;grid-row:3;position:static;margin:0;min-height:42px;min-width:130px;font-size:15px}
.match-page .match-rival.rolling{animation:rival-refresh .21s ease-out}.match-page.rival-found .match-rival{animation:rival-refresh .3s ease-out}
@keyframes rival-refresh{from{opacity:.5;transform:translateY(5px) scale(.98)}to{opacity:1;transform:none}}
/* Result screens use a single header row on wide windows, like the main pages. */
@media(min-width:700px){
 .game-shell:has(>.result-page)>.topbar,.game-shell:has(>.outcome-page)>.topbar{height:80px;padding:12px 28px;flex:none}
 .game-shell:has(>.result-page)>.wallet,.game-shell:has(>.outcome-page)>.wallet{position:absolute;top:17px;inset-inline-end:90px;inset-inline-start:auto;width:min(42%,500px);padding:5px 12px}
 .game-shell:has(>.result-page)>.topbar .avatar,.game-shell:has(>.outcome-page)>.topbar .avatar{width:48px;height:48px}
}
.upgrade-results.result-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px 24px 20px;max-width:1040px;min-height:0;overflow-y:auto}
.upgrade-results>*{flex-shrink:0}.upgrade-results h1{font-size:30px;line-height:1.2;margin:0;grid-column:auto;grid-row:auto}
.upgrade-results>p{display:block;font-size:12px;line-height:1.3;margin:0}
.upgrade-results>.result-currencies{position:static;line-height:1.2;margin:0;font-size:18px;height:30px}
.upgrade-results>.result-currencies .coin{width:30px;height:30px}
.upgrade-results .postmatch-grid{width:100%;max-width:900px;margin:10px 0;gap:16px;grid-template-columns:repeat(5,minmax(0,1fr))}
.upgrade-results .postmatch-card,.upgrade-results .postmatch-card:nth-child(4){grid-column:auto}
.upgrade-results .result-weapon{min-height:174px;padding:8px 6px;gap:5px}
.upgrade-results .result-weapon .weapon-art{width:105px;height:105px}
.upgrade-results .result-weapon b{font-size:13px;line-height:1.25;min-height:33px}
.upgrade-results .result-weapon small{font-size:12px;line-height:1.3}
.upgrade-results .boost-line{height:9px;margin:8px 2px 5px}.upgrade-results .boost-value{font-size:10px;line-height:1.2}
.upgrade-results .boost-action{margin:7px 0 0;min-height:40px;font-size:15px;padding:7px}
.upgrade-results .continue-button{margin:2px 0 0;min-height:46px;width:min(100%,430px);font-size:22px;grid-row:auto;grid-column:auto}
.outcome-page{justify-content:safe center;padding:16px 24px;gap:8px}.outcome-page>*{flex-shrink:0}.outcome-page h1{font-size:42px;line-height:1.2;margin:0}
.outcome-page .trophy-delta{font-size:39px}.outcome-page .trophy-delta .coin{width:54px;height:54px}.outcome-page .result-emblem{height:70px}
.outcome-page .result-emblem .reward-art{width:70px;height:70px}.outcome-page>.btn{min-height:42px;margin:6px 0 0}
.pack-page{padding:20px 24px;align-items:safe center;justify-content:center;min-height:0;overflow-y:auto}
.pack-page .pack-opening{max-width:740px}.pack-page .pack-opening h2{font-size:30px;line-height:1.2;margin:0 0 8px}
.pack-page .burst-reward{height:80px}.pack-page .burst-reward .reward-art{width:85px;height:85px}
.pack-page .gold-total{font-size:26px;line-height:1.2;margin:8px 0}.pack-page .gold-total .coin{width:40px;height:40px}
.pack-page .pack-result-cards{gap:20px;margin:16px 0}.pack-page .pack-reward{max-width:170px}.pack-page .pack-reward .weapon-art{width:140px;max-width:100%;height:140px;aspect-ratio:1}
.pack-page .pack-reward b{font-size:14px;min-height:36px;line-height:1.3}.pack-page .pack-reward strong{font-size:27px;line-height:1.2}.pack-page .pack-reward small{font-size:11px}
.pack-page .pack-opening>.btn{margin:10px 0 0;min-height:46px;font-size:21px;width:min(100%,430px)}
.pack-page .physical-pack{width:260px;height:270px;margin:20px auto}.pack-page .physical-pack .reward-art{width:260px;height:260px}
.settings-modal{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 16px;width:560px;max-height:calc(100dvh - 28px);padding:22px;scroll-padding:18px}
.settings-modal h2{grid-column:1/-1;margin:0 28px 4px;padding:0;font-size:25px;line-height:1.2}
.settings-modal .form-field{grid-column:span 3;min-width:0;margin:0;gap:5px;font-size:13px}.settings-modal .form-field input,.settings-modal .form-field select{min-width:0;padding:8px 10px;font-size:15px}
.settings-modal .setting-row{grid-column:span 2;gap:6px;padding:8px 0;font-size:13px;min-width:0}.settings-modal .setting-row input{flex:none}
.music-volume-control{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;min-width:0;padding:8px 0 10px;border-bottom:1px solid #cda3e333;font-size:14px}
.music-volume-control>span,.music-volume-control>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.music-volume-control output{font-size:14px;font-variant-numeric:tabular-nums;direction:ltr;color:#e5ffb6}
.music-volume-control input[type=range]{display:block;width:100%;min-width:0;margin:0;height:24px;accent-color:#b9ed80;cursor:pointer;padding:0}
.music-volume-control small{font-size:11px;line-height:1.45;color:#eedffc;font-weight:600}.music-volume-control input:focus-visible{outline:2px solid #e5ffb6;outline-offset:3px;border-radius:8px}
.settings-modal>.btn{grid-column:span 2;min-width:0;width:100%;margin:0;min-height:42px;padding:8px;font-size:14px;white-space:normal;line-height:1.2}
@media(max-width:699px){
 .match-page{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto minmax(0,1fr) auto auto;gap:16px;padding:24px}
 .match-page .rival-roulette{grid-column:1;grid-row:1;padding:4px;width:100%}.match-page .match-player{grid-column:1;grid-row:3;width:calc(100% - 8px)}
 .match-page .match-rival,.match-page .match-player{max-width:450px;min-height:170px;padding:16px;gap:10px}
 .match-page .versus{grid-column:1;grid-row:2;font-size:48px}.match-page .match-status{grid-row:4;font-size:15px}.match-page>.btn{grid-row:5}
 .match-page .match-rival>.avatar,.match-page .match-player>.avatar{height:58px;width:58px}.match-page .match-rival>h2,.match-page .match-player>h2{font-size:22px}
 .match-page .match-rival>span:not(.avatar),.match-page .match-player>span:not(.avatar){font-size:18px}
 .upgrade-results.result-page{justify-content:safe center;gap:7px;padding:14px 14px 18px}.upgrade-results h1{font-size:26px}.upgrade-results>p{font-size:11px}
 .upgrade-results .postmatch-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 8px;margin:6px 0}
 .upgrade-results .postmatch-card{grid-column:span 2}.upgrade-results .postmatch-card:nth-child(4){grid-column:2/span 2}.upgrade-results .postmatch-card:nth-child(5){grid-column:span 2}
 .upgrade-results .result-weapon{min-height:128px;padding:5px 3px;gap:3px}.upgrade-results .result-weapon .weapon-art{height:70px;width:70px}.upgrade-results .result-weapon b{font-size:10px;min-height:26px}.upgrade-results .result-weapon small{font-size:10px;padding:2px 5px}
 .upgrade-results .boost-action{font-size:11px;min-height:36px;padding:6px 2px}.upgrade-results .boost-action .coin{width:20px;height:20px}.upgrade-results .continue-button{font-size:20px;min-height:44px}
 .pack-page{padding:20px 16px}.pack-page .pack-opening h2{font-size:26px}.pack-page .pack-result-cards{gap:8px}.pack-page .pack-reward .weapon-art{width:100%;height:auto}.pack-page .pack-reward b{font-size:12px;min-height:33px}
 .settings-modal{padding:20px 16px;gap:12px 10px}.settings-modal .setting-row{grid-column:1/-1;padding:8px 0;font-size:14px}.settings-modal>.btn{grid-column:span 3}.settings-modal>.btn[data-action=saveSettings]{grid-column:1/-1}
}
@media(max-height:540px) and (min-width:700px){
 .game-shell:has(>.result-page)>.topbar,.game-shell:has(>.outcome-page)>.topbar{height:48px;padding:5px 18px}
 .game-shell:has(>.result-page)>.wallet,.game-shell:has(>.outcome-page)>.wallet{top:5px;inset-inline-end:64px;width:min(42%,400px);padding:3px 10px}
 .game-shell:has(>.result-page)>.topbar .avatar,.game-shell:has(>.outcome-page)>.topbar .avatar{width:36px;height:36px}
 .match-page{padding:18px 26px;gap:12px 22px}.match-page .match-rival,.match-page .match-player{min-height:175px;gap:8px;padding:14px}.match-page .match-rival>.avatar,.match-page .match-player>.avatar{width:52px;height:52px}.match-page .match-rival>h2,.match-page .match-player>h2{font-size:22px}.match-page .versus{font-size:48px}.match-page .match-status{min-height:24px;font-size:14px}.match-page>.btn{min-height:36px;font-size:13px}
 .upgrade-results.result-page{padding:9px 20px 13px;gap:4px}.upgrade-results h1{font-size:23px}.upgrade-results>p{font-size:10px}.upgrade-results>.result-currencies{height:24px;font-size:15px}.upgrade-results>.result-currencies .coin{width:24px;height:24px}
 .upgrade-results .postmatch-grid{margin:4px 0;gap:12px}.upgrade-results .result-weapon{min-height:118px;gap:2px;padding:5px}.upgrade-results .result-weapon .weapon-art{height:62px;width:62px}.upgrade-results .result-weapon b{font-size:11px;min-height:26px}.upgrade-results .result-weapon small{font-size:10px;padding:2px 6px}
 .upgrade-results .boost-line{margin:6px 2px 3px;height:8px}.upgrade-results .boost-value{font-size:9px}.upgrade-results .boost-action{min-height:33px;font-size:12px;padding:5px;margin:4px 0 0}.upgrade-results .boost-action .coin{width:21px;height:21px}.upgrade-results .continue-button{min-height:36px;font-size:18px}
 .outcome-page{padding:12px 24px;gap:7px;grid-template-columns:1fr 1fr}.outcome-page h1{font-size:36px}.outcome-page .trophy-delta{font-size:30px}.outcome-page .trophy-delta .coin{width:42px;height:42px}
 .pack-page{padding:16px 26px}.pack-page .pack-opening h2{font-size:24px}.pack-page .burst-reward{display:none}.pack-page .gold-total{font-size:23px;margin:4px 0}.pack-page .gold-total .coin{height:32px;width:32px}.pack-page .pack-result-cards{margin:8px 0}.pack-page .pack-reward .weapon-art{height:86px;width:86px}.pack-page .pack-reward b{min-height:20px;font-size:12px}.pack-page .pack-reward strong{font-size:22px}.pack-page .pack-opening>.btn{min-height:37px;font-size:18px;margin:8px 0 0}
 .pack-page .physical-pack{width:210px;height:220px;margin:0 auto}.pack-page .physical-pack .reward-art{width:210px;height:210px}
 .settings-modal{width:650px;padding:14px 18px;gap:7px 14px;max-height:calc(100dvh - 20px)}.settings-modal h2{font-size:22px;margin-bottom:0}.settings-modal .form-field{font-size:12px;gap:3px}.settings-modal .form-field input,.settings-modal .form-field select{padding:6px 8px;font-size:14px}.settings-modal .setting-row{padding:5px 0;font-size:12px}.music-volume-control{gap:4px;padding:3px 0 6px;font-size:13px}.music-volume-control small{font-size:10px;line-height:1.3}.settings-modal>.btn{min-height:36px;font-size:13px;padding:6px}
}
/* Keep the three preferences together even when the volume control occurs between them in markup. */
.settings-modal h2{order:0}.settings-modal .form-field{order:1}.settings-modal .setting-row{order:2}.settings-modal .music-volume-control{order:3}.settings-modal>.btn{order:4}

/* First battle guidance and optional goals use the existing game palette. */
.engagement-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:540px;margin:0 auto}
.engagement-links button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:start;min-width:0;min-height:54px;padding:8px 12px;border:1px solid #c6adf3;border-radius:12px;background:#443266e8;color:#fff;box-shadow:0 3px #322440;font:inherit;cursor:pointer}
.engagement-links b{display:block;font-size:13px;line-height:1.25}.engagement-links small,.engagement-links span{font-size:11px;line-height:1.35;color:#f1eafa}.engagement-links .daily-teaser{flex-direction:column;align-items:flex-start;justify-content:center}.engagement-links button:hover{background:#554079}.engagement-links button:focus-visible{outline:3px solid #d6fb91;outline-offset:2px}
.daily-missions{color:#f8f2ff}.scroll-page>.daily-missions{background:#493566aa;border:1px solid #bda5e2;border-radius:18px;padding:20px;margin-bottom:24px}
.mission-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.mission-header h2{margin:0;font-size:25px}.mission-note{margin:8px 0 16px;color:#eee3fa;font-size:12px;line-height:1.5}
.mission-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mission-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;border:1px solid #a48bbd;border-radius:14px;background:#362b53}.mission-card.is-ready{border-color:#cbf798;background:#34482e}.mission-card.is-claimed{opacity:.75}
.mission-copy{display:flex;flex-direction:column;gap:5px}.mission-copy h3,.mission-copy b{margin:0;font-size:17px;line-height:1.3}.mission-copy p,.mission-copy small{margin:0;font-size:12px;color:#f0e7ff}.mission-progress{height:8px;background:#221c34;border-radius:8px;overflow:hidden}.mission-progress i{display:block;height:100%;background:#bcf57b;border-radius:8px}
.mission-action{display:flex;flex-direction:column;gap:10px;margin-top:auto}.mission-action>span{font-size:13px;color:#fce697}.mission-action .btn{min-height:40px;min-width:0;font-size:14px}.mission-rules{font-size:11px;line-height:1.5;color:#e7dcf1;margin:14px 0 0}.missions-modal{width:min(820px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;padding:25px 20px}.missions-modal .mission-header{padding-inline-end:24px}
.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;width:100%;max-width:620px;margin:6px auto 0}.result-actions>.btn{flex:1;min-width:140px;min-height:44px;font-size:17px;line-height:1.2;padding:9px 12px}.next-goal{font-size:13px;line-height:1.4;color:#f0fbc4;margin:8px 0;text-align:center}.outcome-page .next-goal,.outcome-page .result-actions{grid-column:1/-1}.outcome-timer{display:none!important}
.board-cue.coach-cue{top:12px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 36px);max-width:490px;box-sizing:border-box;padding:10px 14px;background:#242847f5;color:#fff;border:1px solid #cafa88;border-radius:12px;font-size:15px;line-height:1.4;z-index:5;pointer-events:none;text-align:center;text-shadow:none;white-space:normal;box-shadow:0 3px 12px #0006}
.learning-placement .hand-card:not(.unaffordable){outline:2px solid #c7f386;outline-offset:2px}.learning-placement .hand-card.selected{outline-color:#fff;outline-width:3px}
.recovery-modal .btn{margin-top:10px}.recovery-modal p{line-height:1.6}
@media(min-width:700px) and (max-height:730px){.lobby-controls{gap:10px}.engagement-links button{min-height:48px;padding:6px 10px}.engagement-links b{font-size:12px}.engagement-links small,.engagement-links span{font-size:10px}.result-actions>.btn{font-size:15px;min-height:40px}.next-goal{font-size:12px;margin:4px 0}}
@media(max-width:699px){.engagement-links{gap:6px;max-width:390px}.engagement-links button{min-height:46px;padding:7px 9px}.engagement-links b{font-size:11px}.engagement-links small,.engagement-links span{font-size:10px}.mission-list{grid-template-columns:1fr}.mission-card{padding:12px;gap:8px}.mission-action{flex-direction:row;align-items:center;justify-content:space-between}.mission-header h2{font-size:22px}.missions-modal{padding:20px 16px}.result-actions{gap:7px}.result-actions>.btn{min-width:110px;font-size:14px;min-height:42px}.next-goal{font-size:12px}.board-cue.coach-cue{font-size:12px;padding:7px 10px;top:7px}.scroll-page>.daily-missions{padding:16px}}
@media(max-height:540px){.engagement-links button{min-height:40px;padding:5px 8px}.engagement-links b{font-size:11px}.engagement-links small,.engagement-links span{font-size:9px}.lobby-controls{gap:6px}.result-actions>.btn{font-size:13px;min-height:34px;padding:6px 10px}.next-goal{font-size:11px;margin:2px 0}.board-cue.coach-cue{font-size:11px;padding:6px 9px;top:5px}.mission-list{gap:8px}.mission-card{padding:10px}.mission-header h2{font-size:21px}.mission-note{margin:6px 0 10px}}

.build-version{font-size:12px;font-weight:600;opacity:.8;white-space:nowrap}

/* Daily Missions: both claim choices remain distinct and readable in compact viewports. */
.mission-claim-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
.mission-action .mission-claim-buttons>.btn{display:inline-flex;align-items:center;justify-content:center;min-width:0;width:100%;padding:6px 3px;font-size:12px;line-height:1.15;white-space:nowrap}
.mission-claim-double .rewarded-ad-icon{font-size:13px;margin-inline-end:3px}
@media(max-width:699px){.mission-claim-buttons{flex:1;max-width:270px}.mission-action .mission-claim-buttons>.btn{font-size:12px}}
@media(max-height:540px){.mission-action .mission-claim-buttons>.btn{min-height:34px;padding:4px 2px}}
@media(max-width:360px){.mission-claim-buttons{gap:4px}.mission-action .mission-claim-buttons>.btn{font-size:11px}.mission-claim-double .rewarded-ad-icon{font-size:12px;margin-inline-end:2px}}
/* Short vertical opponent shuffle, with the selected rival held before battle. */
.match-page .rival-roulette{overflow:hidden;align-self:stretch;isolation:isolate}
.match-page .match-rival.rolling{animation:match-search-scroll .2s ease-out}
.match-page.rival-found .match-rival{animation:match-search-found .3s ease-out;border-color:#fff4b0;box-shadow:inset 0 2px #fff4b0,0 4px #764660,0 0 22px #fff3ab66}
.match-page.rival-found .match-status .spinner{animation:none;border:0;width:24px;height:24px;display:grid;place-content:center}
.match-page.rival-found .match-status .spinner:after{content:'✓';font-size:24px;color:#ecffb5}
@keyframes match-search-scroll{from{transform:translateY(-36px);opacity:.25}to{transform:translateY(0);opacity:1}}
@keyframes match-search-found{from{transform:scale(.97)}to{transform:scale(1)}}
.reduce-motion .match-page .match-rival,.reduce-motion .match-page .spinner{animation:none!important}
@media(prefers-reduced-motion:reduce){.match-page .match-rival,.match-page .spinner{animation:none!important}}

/* Camera controls stay inside the arena viewport; all art shares one uniform zoom. */
.board-wrap{overflow:hidden;position:relative;isolation:isolate}
.board-wrap>#board{touch-action:none;box-sizing:content-box;max-width:calc(100% - 22px);max-height:calc(100% - 18px);outline:none}
.board-wrap.camera-enabled>#board{cursor:grab}.board-wrap.camera-enabled.has-selection>#board{cursor:crosshair}.board-wrap.camera-enabled.is-panning>#board{cursor:grabbing}
.arena-camera-controls{position:absolute;z-index:8;bottom:12px;right:12px;display:flex;align-items:center;gap:5px;padding:6px;border:1px solid #9fb5d2;border-radius:12px;background:#13243aed;box-shadow:0 3px 14px #0005;color:#f2faff;direction:ltr;max-width:calc(100% - 72px)}
.arena-camera-controls[hidden]{display:none!important}.arena-camera-controls button{height:34px;min-width:34px;padding:4px 9px;border:1px solid #7895b8;border-radius:7px;background:#294363;color:#fff;font:inherit;font-size:12px;line-height:1.15;cursor:pointer;white-space:nowrap}.arena-camera-controls button:hover{background:#3e648a}.arena-camera-controls button:focus-visible{outline:3px solid #d1f59b;outline-offset:2px}.arena-camera-controls button:disabled{opacity:.45;cursor:default}.arena-camera-controls .camera-step{font-size:24px;padding:0 7px}.arena-camera-controls output{min-width:41px;text-align:center;font-size:12px;font-weight:800}
.arena-camera-hint{position:absolute;z-index:6;bottom:59px;right:15px;max-width:calc(100% - 38px);padding:4px 8px;border-radius:6px;background:#12243bdc;color:#e9f3ff;font-size:10px;line-height:1.4;pointer-events:none}.arena-camera-hint[hidden]{display:none!important}
.board-wrap.camera-enabled .board-cue{max-width:calc(100% - 30px)}
@media(max-height:540px){.arena-camera-controls{bottom:8px;right:8px;padding:4px;gap:4px}.arena-camera-controls button{height:30px;min-width:30px;padding:3px 7px;font-size:11px}.arena-camera-controls .camera-step{font-size:22px}.arena-camera-hint{bottom:49px;right:10px;font-size:9px}}
.deployment-target{--target-size:60px;position:absolute;z-index:4;width:var(--target-size);height:var(--target-size);border:3px dashed #efffc0;border-radius:50%;transform:translate(-50%,-50%);background:#bef78a24;box-shadow:0 0 0 5px #102c5766,0 0 24px #91efff66;pointer-events:none}.deployment-target[hidden]{display:none!important}.deployment-target>span{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);width:max-content;max-width:165px;background:#173052ec;color:#fff;padding:4px 8px;border-radius:7px;font-size:12px;line-height:1.3;text-align:center}.reduce-motion .deployment-target{animation:none}@media(max-width:699px){.deployment-target>span{font-size:10px}}

/* Three candidate profiles remain visible while the center selection advances. */
.match-page .rival-roulette:has(.rival-picker){padding:8px 2px;min-width:0;overflow:visible}
.match-page .rival-picker{position:relative;width:100%;min-width:0;overflow:hidden;padding:18px 2px 24px;direction:ltr;isolation:isolate}
.rival-picker-track{display:grid;grid-template-columns:.85fr 1.1fr .85fr;align-items:center;gap:8px;min-width:0}
.rival-picker-slot{min-width:0;transition:opacity .22s ease,transform .22s ease}
.rival-picker-slot.is-side{opacity:.64;transform:scale(.9)}
.match-page .rival-picker .match-rival{width:100%;max-width:none;min-width:0;min-height:200px;padding:16px 6px;gap:10px;transform:none;border-radius:15px;animation:none;box-shadow:inset 0 2px #fff0ce88,0 4px #764660}
.match-page .rival-picker .match-rival>.avatar{width:58px;height:58px;flex:none}
.match-page .rival-picker .match-rival>h2{font-size:18px;line-height:1.15;min-height:2.3em;max-width:100%;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere;unicode-bidi:plaintext}
.match-page .rival-picker .match-rival>span:not(.avatar){font-size:16px;gap:3px;padding:4px;white-space:nowrap}
.match-page .rival-picker .rival-trophies>.coin{width:24px;height:24px;flex:none}
.match-page .rival-picker-slot.is-center .match-rival{border-color:#fff2a1;box-shadow:inset 0 2px #fff8cd,0 4px #805269,0 0 16px #fff4a455;background:linear-gradient(150deg,#ffeab3,#f4b56d)}
.rival-picker-marker{position:absolute;bottom:0;left:50%;transform:translateX(-50%);font-size:23px;line-height:24px;color:#fff4ab;text-shadow:0 2px #6d3c65}
.rival-picker.is-rolling .rival-picker-track{animation:rival-picker-slide .2s ease-out}
.rival-picker.is-settled .is-side{opacity:.18;transform:scale(.83)}
.match-page.rival-found .rival-picker .match-rival{animation:none}
.match-page.rival-found .rival-picker .is-side .match-rival{border-color:#b88d88;box-shadow:inset 0 2px #fff0ce66,0 4px #764660}
.match-page.rival-found .rival-picker .is-center .match-rival{animation:rival-picker-chosen .28s ease-out;box-shadow:inset 0 2px #fff9d3,0 4px #805269,0 0 22px #fff4a477}
@keyframes rival-picker-slide{from{opacity:.65;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@keyframes rival-picker-chosen{from{transform:scale(.95)}to{transform:scale(1)}}
@media(max-width:699px){
 .rival-picker-track{grid-template-columns:.82fr 1.16fr .82fr;gap:5px}
 .match-page .rival-picker .match-rival{min-height:170px;padding:11px 4px;gap:8px;border-radius:12px}
 .match-page .rival-picker .match-rival>.avatar{width:48px;height:48px}
 .match-page .rival-picker .match-rival>h2{font-size:15px}
 .match-page .rival-picker-slot.is-side .match-rival>h2{font-size:12px}
 .match-page .rival-picker .match-rival>span:not(.avatar){font-size:13px;padding:3px 1px}
 .match-page .rival-picker .rival-trophies>.coin{width:20px;height:20px}
}
@media(min-width:700px) and (max-height:540px){
 .match-page .rival-picker .match-rival{min-height:160px;padding:10px 4px;gap:7px}
 .match-page .rival-picker .match-rival>.avatar{width:48px;height:48px}
 .match-page .rival-picker .match-rival>h2{font-size:16px}
 .match-page .rival-picker .match-rival>span:not(.avatar){font-size:14px}
}
.reduce-motion .rival-picker *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.rival-picker *{animation:none!important;transition:none!important}}

.player-record-modal{width:min(480px,94vw)}
.record-heading{display:flex;align-items:center;gap:16px;margin-block:8px 24px}.record-heading>.avatar-portrait{width:76px;height:76px;flex:none}.record-heading h2,.record-heading p{margin:0}.record-heading h2{overflow-wrap:anywhere}.record-heading p{opacity:.85}
.record-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.record-stat{padding:12px 16px;border-radius:16px;background:#ffffff15;display:flex;flex-direction:column;gap:2px}.record-stat.total{grid-column:1/-1}.record-stat strong{font-size:30px;line-height:1.1}.record-stat.wins strong{color:#c8ff8c}.record-stat.losses strong{color:#ffbfcc}.record-note{font-size:13px;line-height:1.5;margin:18px 0}.optional-boost{display:flex;align-items:center;justify-content:center;gap:12px;margin:4px auto;padding:7px 16px;min-height:34px;max-width:100%;background:#493369;color:#fff;border:1px solid #d4b8ee;border-radius:12px;font:inherit;font-size:13px;cursor:pointer}.outcome-timer{margin:16px auto 0;font-size:14px;color:#e5ffc7}.outcome-page .outcome-timer::after{content:'';display:block;height:3px;background:#d5ffa3;width:180px;margin:10px auto;border-radius:3px;animation:result-return 2.8s linear forwards}@keyframes result-return{from{transform:scaleX(1)}to{transform:scaleX(0)}}.reduce-motion .outcome-timer::after{animation:none}.result-actions{justify-content:center}
.outcome-page .outcome-timer{display:block!important;grid-column:1/-1;height:auto;width:auto;max-width:100%;margin:12px auto 0;padding:0;background:none;animation:none;transform:none;line-height:1.4;text-align:center;font-size:14px;color:#e5ffc7}
.outcome-page .outcome-timer:has(button)::after{display:none}.outcome-timer>.btn{min-height:42px;max-width:100%;margin:0}

/* Compact gift ribbon participates in the lobby layout at every size. */
.game-shell>.welcome-strip{position:relative;inset:auto;display:flex;align-items:center;gap:12px;flex:none;min-width:0;width:calc(100% - 40px);max-width:1100px;justify-self:center;align-self:center;margin:4px 20px 8px;padding:7px 12px;min-height:44px;border:1px solid #f3ffdc;border-radius:12px;line-height:1.3;font-size:13px;box-shadow:0 2px 0 #49377b;box-sizing:border-box}
.welcome-strip>span{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}
.welcome-strip b{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;line-height:1.25}
.welcome-strip .coin,.welcome-strip .reward-art{display:inline-block;flex:none;width:23px;height:23px;vertical-align:middle;transform:none;margin:0}
.welcome-strip>button{width:32px;height:32px;min-width:32px;flex:none;padding:0;font-size:23px;line-height:1;display:grid;place-items:center}
@media(min-width:1000px) and (min-height:541px){.game-shell:has(>.welcome-strip){grid-template-rows:88px auto minmax(0,1fr)}}

/* The training coach stays beside the hand rather than covering the map. */
.battle-hand-area>.board-cue,.battle-hand-area>.board-cue.coach-cue{position:static;inset:auto;transform:none;display:block;flex:none;min-width:0;width:100%;max-width:none;margin:0 0 10px;padding:9px 11px;box-sizing:border-box;border:1px solid #d1f6a7;border-radius:10px;background:#172d4de8;color:#fff;font-size:13px;line-height:1.35;text-align:start;white-space:normal;box-shadow:0 2px 8px #0002;pointer-events:none}
.battle-hand-area>.board-cue:empty,.battle-hand-area>.board-cue[hidden]{display:none}
.battle-hand-area:has(>.board-cue:not([hidden]):not(:empty))>#place-hint{display:none}
@media(max-width:699px){.game-shell>.welcome-strip{width:calc(100% - 24px);margin:3px 12px 7px;padding:6px 9px;gap:8px;font-size:11px}.welcome-strip b{font-size:11px}.welcome-strip>span{gap:3px 7px}.welcome-strip .coin,.welcome-strip .reward-art{width:20px;height:20px}.battle-hand-area>.board-cue,.battle-hand-area>.board-cue.coach-cue{font-size:12px;margin-bottom:7px;padding:7px 9px}}
@media(max-height:540px){.battle-hand-area>.board-cue,.battle-hand-area>.board-cue.coach-cue{font-size:11px;margin-bottom:6px;padding:6px 8px}}

/* Desktop inspector: hero and equip on the left, all stats and upgrade on the right. */
@media(min-width:850px) and (min-height:430px){
 .game-shell:not(:has(>.bottom-nav)):has(>.detail-page)>.topbar{height:72px;padding:10px max(22px,calc((100% - 1180px)/2));flex:none}
 .game-shell:not(:has(>.bottom-nav)):has(>.detail-page)>.wallet{position:absolute;top:13px;inset-inline-end:calc(max(22px,(100% - 1180px)/2) + 58px);width:min(43%,470px);padding:5px 12px;z-index:4}
 .game-shell:has(>.detail-page)>.topbar .avatar{width:46px;height:46px}
 .detail-page.scroll-page{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.65fr);grid-template-rows:42px auto auto;grid-auto-rows:auto;align-items:stretch;align-content:start;gap:12px 24px;width:100%;max-width:none;min-height:0;padding:8px max(22px,calc((100% - 1180px)/2)) 18px;overflow:visible}
 .detail-page .detail-top{grid-column:1/-1;grid-row:1;position:static;inset:auto;min-height:0;height:42px;margin:0;padding:3px 0;background:none;backdrop-filter:none;border:0;gap:10px}
 .detail-page .detail-top .btn{min-height:34px;padding:5px 13px;font-size:14px}
 .detail-page .weapon-hero{grid-column:1;grid-row:2;display:flex;flex-direction:column;justify-content:center;align-items:center;align-self:center;gap:12px;min-height:0;padding:0;text-align:center}
 .detail-page .weapon-hero>div{flex:none;min-width:0;width:100%}
 .detail-page .weapon-hero h1{font-size:clamp(23px,2.2vw,34px);line-height:1.13;margin:0 0 8px;overflow-wrap:break-word}
 .detail-page .weapon-hero>.weapon-art{width:clamp(145px,24vh,260px);height:clamp(145px,24vh,260px);max-width:100%;flex:none}
 .detail-page .role-chip{display:inline-block;margin:0 auto;font-size:12px;padding:5px 8px}
 .detail-page .hero-level{font-size:14px;margin-top:8px}.detail-page .hero-energy{justify-content:center;font-size:17px;margin-top:5px}.detail-page .hero-energy .coin{width:25px;height:25px}
 .detail-page .inspector-panel{grid-column:2;grid-row:2/4;align-self:center;min-width:0;min-height:0;margin:0;overflow:visible;border-radius:18px}
 .detail-page .inspector-tabs{border-radius:14px 14px 0 0;overflow:hidden}
 .detail-page .inspector-tabs button{min-height:40px;padding:8px 5px;font-size:17px}
 .detail-page .stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px}
 .detail-page .stat-tile{min-height:66px;grid-template-columns:27px minmax(0,1fr);column-gap:6px;padding:8px 7px}
 .detail-page .stat-icon{font-size:22px}.detail-page .stat-tile small{font-size:12px;line-height:1.2}.detail-page .stat-tile b{font-size:21px;line-height:1.15}.detail-page .stat-tile:last-child b{font-size:11px;line-height:1.3}
 .detail-page .range-dots{gap:3px;margin-top:4px}.detail-page .range-dots i{width:10px;height:10px}
 .detail-page .tactics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 12px}
 .detail-page .tactic-row{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;padding:8px 0 0;gap:7px;border-top:1px solid #b9896177}
 .detail-page .tactic-row>span{justify-content:center;gap:4px;min-height:20px}.detail-page .tactic-row>span i{font-size:17px}.detail-page .tactic-row>span b{font-size:11px;line-height:1.2;text-align:center}
 .detail-page .tactic-row>div{display:flex;justify-content:center;align-items:stretch;gap:4px;min-width:0}
 .detail-page .tactic-row button{flex:1;min-width:0;max-width:82px;width:auto;padding:2px 3px 4px;border-radius:8px}
 .detail-page .tactic-row .weapon-art{width:40px;height:40px;max-width:100%}.detail-page .tactic-row small{font-size:10px;line-height:1.15;min-height:23px;overflow-wrap:break-word}
 .detail-page .inspector-upgrade{padding:12px;display:flex;align-items:center;gap:12px;border-top:1px solid #b9896155;margin-top:10px}
 .detail-page .copy-progress{flex:1;min-width:0;height:29px;margin:0}.detail-page .copy-progress b{font-size:12px;inset:5px 2px}
 .detail-page .inspector-upgrade .btn{width:auto;flex:1;max-width:none;min-height:42px;padding:7px 10px;font-size:17px;margin:0}
 .detail-page>.btn{grid-column:1;grid-row:3;width:100%;min-height:42px;font-size:17px;margin:0;max-width:none;align-self:end}
 .detail-page>.inline-swap{grid-column:1;grid-row:3;margin:0;min-width:0}.detail-page>.inline-swap>b{font-size:12px;margin:0 0 6px}.detail-page>.inline-swap .deck-strip{gap:4px;padding:3px}
 .detail-page>.inline-swap .mini-card{min-height:92px;padding:4px 2px}.detail-page>.inline-swap .weapon-art{height:44px;width:44px}.detail-page>.inline-swap .mini-name{font-size:9px;min-height:22px}.detail-page>.inline-swap .mini-level{font-size:9px}
 .detail-page .mastery-panel{padding:16px 20px}.detail-page .mastery-panel>.weapon-art{width:110px;height:110px}.detail-page .mastery-panel h2{font-size:26px}.detail-page .mastery-panel p{font-size:13px;margin-bottom:10px}.detail-page .mastery-panel .boost-line{margin:10px 0}
 .detail-page .weapon-unlock{margin:8px 12px 12px;padding:10px;max-width:none}.detail-page .locked-detail{padding:12px;font-size:14px}
}
@media(min-width:850px) and (min-height:430px) and (max-height:560px){
 .game-shell:not(:has(>.bottom-nav)):has(>.detail-page)>.topbar{height:54px;padding-block:6px}.game-shell:has(>.detail-page)>.topbar .avatar{width:36px;height:36px}
 .game-shell:not(:has(>.bottom-nav)):has(>.detail-page)>.wallet{top:5px;padding-block:3px}.game-shell:has(>.detail-page)>.wallet>button{height:28px}.game-shell:has(>.detail-page)>.wallet .coin{width:30px;height:30px}
 .detail-page.scroll-page{grid-template-columns:minmax(190px,.75fr) minmax(0,1.7fr);grid-template-rows:34px auto auto;padding-top:3px;padding-bottom:10px;gap:7px 18px}
 .detail-page .detail-top{height:34px}.detail-page .detail-top .btn{min-height:30px;font-size:12px}.detail-page .detail-close{width:30px;height:30px;font-size:23px}
 .detail-page .weapon-hero{gap:7px}.detail-page .weapon-hero h1{font-size:22px;margin-bottom:5px}.detail-page .role-chip{font-size:10px;padding:4px 6px}.detail-page .hero-level{font-size:12px;margin-top:5px}.detail-page .hero-energy{font-size:15px;margin-top:3px}.detail-page .hero-energy .coin{width:21px;height:21px}.detail-page .weapon-hero>.weapon-art{height:130px;width:130px}
 .detail-page .inspector-tabs button{min-height:33px;font-size:14px;padding:6px 4px}.detail-page .stats-grid{gap:6px;padding:8px}.detail-page .stat-tile{min-height:57px;padding:6px;grid-template-columns:23px minmax(0,1fr);column-gap:4px}.detail-page .stat-icon{font-size:19px}.detail-page .stat-tile small{font-size:10px}.detail-page .stat-tile b{font-size:18px}.detail-page .stat-tile:last-child b{font-size:10px}
 .detail-page .tactics{padding:0 8px;gap:6px}.detail-page .tactic-row{padding-top:5px;gap:4px}.detail-page .tactic-row>span b{font-size:10px}.detail-page .tactic-row>span i{font-size:14px}.detail-page .tactic-row .weapon-art{width:32px;height:32px}.detail-page .tactic-row small{font-size:9px;min-height:21px}
 .detail-page .inspector-upgrade{margin-top:7px;padding:8px;gap:8px}.detail-page .inspector-upgrade .btn{min-height:35px;font-size:14px;padding:5px 7px}.detail-page .copy-progress{height:25px}.detail-page .copy-progress b{font-size:11px;inset:4px 1px}.detail-page>.btn{min-height:35px;font-size:14px}
 .detail-page .mastery-panel{padding:10px 15px}.detail-page .mastery-panel>.weapon-art{width:75px;height:75px}.detail-page .mastery-panel h2{font-size:22px}.detail-page .mastery-panel p{font-size:12px}.detail-page .mastery-panel .boost-line{margin:7px 0}
 .detail-page>.inline-swap .mini-card{min-height:72px}.detail-page>.inline-swap .weapon-art{height:28px;width:28px}.detail-page>.inline-swap .mini-level{display:none}.detail-page>.inline-swap .mini-name{font-size:9px;min-height:21px}
}

/* Leave breathing room below the optional boost link in embedded desktop windows. */
@media(min-width:1000px) and (min-height:541px) and (max-height:750px){
 .lobby-controls:has(>.optional-boost){gap:8px;min-height:0;padding-block:10px 18px}
 .lobby-controls>.optional-boost{margin-block:2px;flex:none}
}

/* Unlock alternatives share one compact two-column footer, including ads-enabled builds. */
@media(min-width:850px) and (min-height:430px){
 .detail-page .weapon-unlock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 12px;align-items:center;margin:8px 10px 10px;padding:9px 10px}
 .detail-page .weapon-unlock h3{grid-column:1;grid-row:1;font-size:15px;line-height:1.2;margin:0}
 .detail-page .weapon-unlock p{grid-column:1;grid-row:2;font-size:11px;line-height:1.25;margin:0}
 .detail-page .weapon-unlock>.btn[data-action=unlockDirect]{grid-column:2;grid-row:1/3}
 .detail-page .weapon-unlock>.btn{min-height:35px;margin:0;padding:5px 8px;font-size:14px;line-height:1.15}
 .detail-page .weapon-unlock:has(.ad-pips)>.btn[data-action=unlockDirect]{grid-column:1;grid-row:3}
 .detail-page .weapon-unlock>.btn[data-action=unlockAd]{grid-column:2;grid-row:3}
 .detail-page .weapon-unlock>small:first-of-type{grid-column:2;grid-row:1;font-size:10px;line-height:1.2;margin:0}
 .detail-page .weapon-unlock>.ad-pips{grid-column:2;grid-row:2;gap:7px;margin:0}
 .detail-page .weapon-unlock .ad-pips i{height:11px;width:11px}
 .detail-page .weapon-unlock>small:last-child{grid-column:1/-1;grid-row:4;font-size:10px;line-height:1.2;margin:2px 0 0}
}
@media(min-width:850px) and (min-height:430px) and (max-height:560px){
 .detail-page .weapon-unlock{margin:5px 8px 7px;padding:7px 8px;gap:3px 9px}
 .detail-page .weapon-unlock h3{font-size:13px}.detail-page .weapon-unlock p{font-size:10px}
 .detail-page .weapon-unlock>.btn{min-height:31px;font-size:12px;padding:4px 6px}.detail-page .weapon-unlock>small:first-of-type,.detail-page .weapon-unlock>small:last-child{font-size:9px}
}
@media(min-width:850px) and (min-height:430px) and (max-height:560px){
 .detail-page:has(.weapon-unlock) .stat-tile{min-height:52px}
 .detail-page:has(.weapon-unlock) .stats-grid{padding-block:6px}
 .detail-page:has(.weapon-unlock) .tactic-row .weapon-art{width:30px;height:30px}
}

/* Split-screen windows reflow their content instead of shrinking the whole game.
   The lobby owns any overflow, so its actions never spill under the navigation. */
.lobby{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;scroll-padding-block:16px 28px}
.lobby::-webkit-scrollbar{display:none}
.lobby-controls{min-width:0;flex-shrink:0}
.lobby-controls>*{flex-shrink:0}
.lobby-controls>.battle-button{scroll-margin-block:20px}
.game-shell:has(>.lobby)>.bottom-nav{flex-shrink:0}

@media(min-width:600px) and (max-width:999px) and (min-height:541px){
 .game-shell:has(>.bottom-nav)>.topbar{padding:12px 20px 8px}
 .game-shell:has(>.bottom-nav)>.topbar .avatar{width:48px;height:48px}
 .game-shell:has(>.bottom-nav)>.topbar .profile b{font-size:18px}
 .game-shell:has(>.bottom-nav)>.wallet{padding:6px 20px 8px;gap:14px}
 .game-shell:has(>.bottom-nav)>.wallet>button{height:34px}
 .game-shell:has(>.bottom-nav)>.wallet b{font-size:17px}
 .game-shell:has(>.bottom-nav)>.wallet .coin{width:37px;height:37px}
 .game-shell:has(>.bottom-nav)>.bottom-nav{height:80px;padding:7px 10px 0;gap:6px}
 .game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:43px;height:43px}
 .game-shell:has(>.bottom-nav)>.bottom-nav b{font-size:14px}
 .lobby{padding-bottom:4px}
 .lobby-scene{flex:1 0 170px;min-height:170px}
 .lobby-scene .stage-art{width:min(88cqw,calc(100cqh - 86px),420px);bottom:25px}
 .lobby-controls,.lobby-controls:has(.deployment-lobby-status){width:100%;max-width:650px;gap:10px;padding:10px 30px 24px}
 .lobby-controls .reward-road{--road-height:70px;--road-icon:44px}
 .lobby-controls .track{height:40px}
 .lobby-controls .track b{font-size:21px}
 .lobby-controls .stage-selector{min-height:40px}
 .lobby-controls .stage-selector button{width:42px;height:39px}
 .lobby-controls .stage-selector b{font-size:17px}
 .lobby-controls .progress-remaining{font-size:12px}
 .lobby-controls .cache-track{gap:10px;padding:4px 8px}
 .lobby-controls .cache{width:48px;height:48px}
 .lobby-controls .cache .reward-art{width:45px;height:45px}
 .lobby-controls .engagement-links button{min-height:50px}
 .lobby-controls>.optional-boost{min-height:36px;margin:0}
 .lobby-controls>.battle-button{min-height:62px;font-size:30px;width:88%;max-width:380px}
 .lobby-scene .road-peek{font-size:13px}
}

/* A short, wide window has room for two columns, but not a tall vertical stack. */
@media(min-width:760px) and (max-width:999px) and (min-height:541px) and (max-height:800px){
 .lobby{flex-direction:row;align-items:stretch;gap:12px;padding:12px 16px 22px}
 .lobby-scene{width:40%;flex:1;min-height:280px}
 .lobby-controls,.lobby-controls:has(.deployment-lobby-status){width:58%;max-width:520px;align-self:stretch;justify-content:safe center;padding:10px 14px 16px;gap:9px}
 .lobby-scene .stage-caption{top:10px;padding-inline:34px}
 .lobby-scene .stage-caption small{font-size:13px}
 .lobby-scene .stage-caption p{font-size:14px}
 .lobby-scene .help-float{top:8px;right:3px}
 .lobby-scene .gift-float{left:2px;top:90px;bottom:auto}
 .lobby-scene .stage-art{bottom:42px;width:min(92cqw,calc(100cqh - 125px))}
 .lobby-scene .road-peek{bottom:14px;font-size:12px}
 .lobby-controls .engagement-links{gap:6px}
 .lobby-controls .engagement-links button{padding:7px 9px}
 .lobby-controls .engagement-links b{font-size:12px}
 .lobby-controls>.battle-button{min-height:58px;font-size:28px}

}

/* Preserve scroll access when mobile text or an extra offer needs more height. */
@media(max-width:599px){
 .lobby-scene{flex:1 0 155px;min-height:155px}
 .lobby-controls{padding-bottom:26px}
 .lobby-controls>.optional-boost{margin-block:0}
 .lobby-controls>.battle-button{min-height:52px}
}
@media(min-width:1000px) and (min-height:541px){
 .lobby-controls{align-self:stretch;justify-content:safe center}
}
@media(max-height:540px) and (min-width:600px){
 .lobby{align-items:stretch}
 .lobby-controls,.lobby-controls:has(.deployment-lobby-status){align-self:stretch;justify-content:safe center}
}

/* 1.10.4: rewards and available upgrades read as actions, with their own space. */
.collection-card.upgrade-ready,.mini-card.upgrade-ready{border:3px solid #ffdc76;box-shadow:inset 0 2px #fff3c9,0 4px #72513d,0 0 0 2px #fff0a24d,0 0 16px #ffdc7659;animation:upgrade-ready-glow 2.8s ease-in-out infinite}
.collection-card.upgrade-needs-gold,.mini-card.upgrade-needs-gold{border-color:#d5b36d;box-shadow:inset 0 2px #ffe8b3,0 3px #634552;animation:none}
.collection-card .upgrade-arrow{display:none}
.collection-card .upgrade-label,.mini-card .upgrade-callout{position:static;display:flex;align-items:center;justify-content:center;gap:5px;flex:none;min-width:0;max-width:100%;width:100%;height:auto;min-height:29px;margin:8px 0 0;padding:5px 6px;background:linear-gradient(#ffe6a0,#f5bf55);border:1px solid #fff2ba;border-radius:8px;color:#513820;font-size:12px;font-weight:900;line-height:1.2;text-align:center;text-shadow:none;white-space:normal;overflow-wrap:break-word}
.collection-card.upgrade-ready .upgrade-label:before{content:'↑';font-size:20px;line-height:1}
.mini-card .upgrade-callout{margin-top:6px;min-height:22px;padding:3px 2px;font-size:10px;border-radius:5px}
.mini-card.upgrade-ready .mini-level{background:#7e5427;color:#fff4c4}
.collection-card.upgrade-needs-gold .upgrade-label,.mini-card.upgrade-needs-gold .upgrade-callout{background:#69523f;border-color:#d9b979;color:#ffe6a5;box-shadow:none;font-weight:800}
.inspector-upgrade.upgrade-ready{box-shadow:inset 0 0 0 2px #ffdd79;background:#ffeab530}
.inspector-upgrade.upgrade-ready .btn{min-height:44px;border-color:#fff0ac;box-shadow:inset 0 3px #f0ffc4,0 3px #4b6337,0 0 0 2px #c4ee8266}
@keyframes upgrade-ready-glow{0%,100%{box-shadow:inset 0 2px #fff3c9,0 4px #72513d,0 0 0 2px #fff0a24d,0 0 10px #ffdc7640}50%{box-shadow:inset 0 2px #fff3c9,0 4px #72513d,0 0 0 2px #fff0a28c,0 0 19px #ffdc7680}}

/* Each marker has a full icon and up to two rows of reward amounts. */
.lobby-controls .reward-road{--road-height:94px;--road-icon:46px}
.road-node{width:78px;min-width:44px;min-height:44px;grid-template-rows:var(--road-icon) auto;gap:4px}
.road-node small{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 5px;max-width:86px;min-height:20px;height:auto;max-height:none;line-height:1.25;font-size:11px;padding:3px 5px;white-space:normal;text-align:center;border:1px solid #b692d559;box-shadow:0 1px #34244766}
.road-node small .road-amount-part{display:inline-flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
.road-node small .coin,.road-node small .reward-art{width:15px;height:15px;min-width:15px;font-size:12px;margin:0;transform:none;vertical-align:middle}
.road-node.ready small{background:#466d2c;color:#f2ffcf;border-color:#d7f99c}
.road-node.collected small{color:#e1f8c5;background:#42623d}
.road-node .road-stem{bottom:-7px;height:12px}

/* Five stage packs retain a clear slot after claiming; the bonus is on its pack. */
.stage-pack-row{width:100%;max-width:540px;min-width:0}
.cache-track.stage-pack-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:8px;width:100%;padding:8px;border-radius:17px;background:#49316f66}
.cache.stage-pack{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;position:relative;width:100%;height:auto;min-height:93px;min-width:0;margin:0;padding:7px 2px 5px;border:1px solid #b99bdd66;border-radius:11px;background:#52397755;box-shadow:inset 0 1px #d4b9ed26;color:#f9efff;filter:none}
.cache.stage-pack>.reward-art{width:47px;height:47px;max-width:100%;flex:none;margin:0}
.cache.stage-pack.ready{border-color:#ffdf8f;background:#bb955233;box-shadow:inset 0 1px #fff2bb80,0 0 10px #ffde7959}
.cache.stage-pack.claimed{background:#364d4266;border-color:#c3e6ac99}
.cache.stage-pack.claimed>.reward-art{opacity:.5;filter:saturate(.45)}
.cache.stage-pack>.pack-claimed{position:absolute;inset-inline-end:3px;top:3px;display:grid;place-items:center;width:22px;height:22px;margin:0;padding:0;border:1px solid #e5ffc5;border-radius:50%;background:#70ad4d;color:#fffbdc;font-size:15px;line-height:1;z-index:2;box-shadow:0 2px #304c35}
.cache.stage-pack>.pack-weapon-preview{position:absolute;inset-inline-end:1px;top:3px;display:flex;align-items:center;justify-content:center;width:29px;height:29px;margin:0;border:1px solid #fff0b5;border-radius:8px;background:linear-gradient(#ffeeb5,#deaf6a);box-shadow:0 2px #55385b;z-index:1}
.pack-weapon-preview>.weapon-art{width:27px;height:27px;max-width:100%;margin:0}
.cache.stage-pack.claimed>.pack-weapon-preview{inset-inline-start:1px;inset-inline-end:auto}
.pack-bonus-label{display:block;width:100%;min-height:25px;margin:4px 0 0;padding:2px 1px;font-size:10px;line-height:1.15;color:#fff0ae;text-align:center;white-space:normal;overflow-wrap:break-word}
.stage-pack-caption{display:block;text-align:center;margin:6px 0 0;font-size:12px;line-height:1.35;color:#f3e4ff}

/* A claim keeps the familiar primary button and shows the exact reward below it. */
.battle-button>.primary-action-label{display:block;margin:0;line-height:1.05}
.battle-button.claim-ready{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:80px;padding:10px 14px;border-color:#ffe6a1;background:linear-gradient(#fff2b2,#ffd367 48%,#f4b846);box-shadow:inset 0 3px #fffbd2,0 4px #9c672f,0 0 0 2px #ffe59855,0 0 18px #ffe29255;animation:claim-ready-glow 2.8s ease-in-out infinite}
.battle-button .primary-action-reward{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 8px;width:100%;margin:0;font-size:12px;line-height:1.3;color:#513a28;text-shadow:none;letter-spacing:0}
.primary-action-reward>span{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin:0;font-size:12px;line-height:1.3;white-space:nowrap}
.primary-action-reward .coin,.primary-action-reward .reward-art,.primary-action-reward .weapon-art{width:21px;height:21px;min-width:21px;margin:0;transform:none;font-size:16px}
.claim-context{max-width:420px;margin:0;text-align:center;font-size:12px;line-height:1.4;color:#fff0bc}
@keyframes claim-ready-glow{0%,100%{box-shadow:inset 0 3px #fffbd2,0 4px #9c672f,0 0 0 2px #ffe59855,0 0 10px #ffe29240}50%{box-shadow:inset 0 3px #fffbd2,0 4px #9c672f,0 0 0 2px #fff2b899,0 0 22px #ffe29285}}

/* Allocate real island space on phones; controls below it remain scrollable. */
@media(max-width:599px){
 .lobby-scene{flex:1 0 clamp(310px,39dvh,350px);min-height:clamp(310px,39dvh,350px)}
 .lobby-scene .stage-art{width:min(92cqw,calc(100cqh - 96px),280px);height:auto;max-height:none;aspect-ratio:1;bottom:40px}
 .lobby-scene:has(.road-peek>b) .stage-art{bottom:61px;width:min(92cqw,calc(100cqh - 117px),280px)}
 .lobby-scene .stage-caption{top:8px;padding-inline:50px}
 .lobby-scene .stage-caption small{font-size:12px;letter-spacing:2px}
 .lobby-scene .stage-caption p{font-size:13px;line-height:1.3;margin-top:6px}
 .lobby-scene .help-float{top:6px;right:8px;width:44px;height:44px}
 .lobby-scene .gift-float{left:8px;bottom:80px;min-width:44px;min-height:52px}
 .lobby-scene .road-peek{font-size:12px;padding:5px 12px;bottom:0}
 .lobby-controls,.lobby-controls:has(.deployment-lobby-status){gap:10px;padding:12px 20px 30px}
 .lobby-controls .reward-road{--road-height:91px;--road-icon:43px}
 .road-node{width:76px}
 .road-node small{font-size:10px;max-width:80px;padding:3px 4px}
 .lobby-controls .stage-selector{min-height:44px;width:90%}
 .lobby-controls .stage-selector button{width:44px;height:44px}
 .lobby-controls .stage-selector b{font-size:15px}
 .lobby-controls>.optional-boost{min-height:44px;font-size:12px;margin:0}
 .lobby-controls>.battle-button{min-height:58px;font-size:29px}
 .lobby-controls>.battle-button.claim-ready{min-height:80px}
 .lobby-controls .engagement-links button{min-height:48px}
 .cache-track.stage-pack-track{padding:6px;gap:5px}
 .cache.stage-pack{min-height:88px;padding:7px 1px 4px}
 .cache.stage-pack>.reward-art{width:42px;height:42px}
 .cache.stage-pack>.pack-weapon-preview{width:25px;height:25px}
 .pack-weapon-preview>.weapon-art{width:23px;height:23px}
 .pack-bonus-label{font-size:9px;min-height:23px}
 .stage-pack-caption{font-size:11px}
 .arsenal-page .deck-strip .mini-card{padding-bottom:6px}
 .mini-card .upgrade-callout{font-size:9px;min-height:24px;padding:3px 1px}
 .collection-card .upgrade-label{font-size:11px;min-height:30px;padding:5px 3px}
 .collection-card.upgrade-ready .upgrade-label:before{font-size:17px}
}
@media(max-height:540px) and (min-width:600px){
 .lobby-scene{min-height:265px}
 .lobby-scene .stage-art{width:min(88cqw,calc(100cqh - 60px),280px);bottom:15px}
 .lobby-controls .reward-road{--road-height:79px;--road-icon:33px}
 .road-node small{font-size:9px;max-width:78px;padding:2px 4px}
 .lobby-controls .stage-selector{min-height:44px}
 .lobby-controls .stage-selector button{height:44px;width:44px}
 .lobby-controls>.optional-boost{min-height:40px}
 .cache-track.stage-pack-track{gap:5px;padding:5px}
 .cache.stage-pack{min-height:78px;padding-top:5px}
 .cache.stage-pack>.reward-art{width:36px;height:36px}
 .cache.stage-pack>.pack-weapon-preview{width:23px;height:23px}
 .pack-weapon-preview>.weapon-art{width:21px;height:21px}
 .pack-bonus-label{font-size:9px;min-height:22px}
 .lobby-controls>.battle-button.claim-ready{min-height:72px;font-size:25px}
}
.reduce-motion .collection-card.upgrade-ready,.reduce-motion .mini-card.upgrade-ready,.reduce-motion .battle-button.claim-ready{animation:none}
@media(prefers-reduced-motion:reduce){.collection-card.upgrade-ready,.mini-card.upgrade-ready,.battle-button.claim-ready{animation:none}}

/* The Arsenal advertises affordable upgrades before the collection begins. */
.arsenal-page>.upgrade-summary{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 9px;width:fit-content;max-width:100%;min-height:46px;margin:0 0 20px;padding:10px 17px;border:2px solid #fff0b1;border-radius:12px;background:linear-gradient(#ffe7a1,#edbc5a);color:#503821;box-shadow:inset 0 2px #fff7d0,0 3px #876039;font-size:15px;font-weight:900;line-height:1.3;text-align:center;white-space:normal}
.arsenal-page>.upgrade-summary:hover{filter:brightness(1.06)}
.arsenal-page .filters>button[data-id=ready]{border-color:#eace86;color:#fff0b1;background:#745539}
.arsenal-page .filters>button[data-id=ready].active{background:#ffda83;color:#503821;border-color:#fff0b1}
.bottom-nav .ready-notice{width:auto;min-width:23px;height:23px;padding:0 4px;border:2px solid #765228;border-radius:12px;background:#ffe192;color:#583a1f;font-size:12px;line-height:19px;font-weight:900;box-shadow:0 1px #fff4bb70}
@media(max-width:599px){
 .arsenal-page>.upgrade-summary{min-height:44px;font-size:13px;padding:9px 13px;margin-bottom:18px}
 .arsenal-page .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .arsenal-page .filters>button{min-height:44px;font-size:12px}
 .mini-card.upgrade-needs-gold .upgrade-callout{line-height:1.25;overflow-wrap:normal}
}

/* Claimed slots are clear checks, and ready badges leave bonus art unobscured. */
.cache.stage-pack.claimed{justify-content:center;opacity:1;filter:none}
.cache.stage-pack.claimed>.pack-claimed{position:static;inset:auto;width:32px;height:32px;margin:0;font-size:23px;border-width:2px;box-shadow:0 2px #304c35}
.cache.stage-pack.has-bonus>.notification{left:auto;right:auto;inset-inline-start:1px;inset-inline-end:auto;top:-3px}
.road-node small:has(>.road-amount-part:nth-child(4)){display:grid;grid-template-columns:repeat(2,max-content);justify-content:center;gap:2px 4px;width:max-content;max-width:none;padding:3px 4px}
.lobby-controls .reward-road:has(.road-node small>.road-amount-part:nth-child(4)){--road-height:104px}
@media(max-height:540px) and (min-width:600px){.lobby-controls .reward-road:has(.road-node small>.road-amount-part:nth-child(4)){--road-height:91px}}

/* Phone primary actions stay visible while the large island and reward road scroll. */
.lobby-primary{display:none}
@media(max-width:599px){
 .game-shell>.lobby{flex:1 1 0;min-height:0}
 .lobby-controls>.battle-button,.lobby-controls>.claim-context,.lobby-controls>.fair-note{display:none}
 .game-shell>.lobby-primary{position:relative;z-index:2;display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;padding:10px 16px 24px;border-top:1px solid #c9a9e766;background:linear-gradient(#7657ac,#634793);box-shadow:0 -5px 15px #37215e38}
 .lobby-primary>.battle-button{flex:none;width:100%;max-width:360px;min-height:58px;margin:0;padding:10px 14px;font-size:29px}
 .lobby-primary>.battle-button.claim-ready{min-height:80px;gap:5px}
 .lobby-primary>.claim-context,.lobby-primary>.fair-note{flex:none;max-width:380px;margin:0;color:#fff0c7;font-size:11px;line-height:1.3;text-align:center}
 .lobby-primary .primary-action-reward{font-size:12px;gap:3px 8px}
 .lobby-controls{padding-bottom:20px}
}

/* The weapon replacement picker keeps its cards proportional inside the inspector. */
.detail-page>.inline-swap{max-width:100%;align-self:end}
.detail-page>.inline-swap>b{display:block;margin:0 0 8px;text-align:center;line-height:1.2}
.detail-page>.inline-swap>.deck-strip{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  gap:8px;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  background:none;
}
.detail-page>.inline-swap .mini-card{
  flex:0 0 clamp(65px,calc((100% - 16px)/3),96px);
  align-self:flex-start;
  aspect-ratio:1;
  height:auto;
  min-height:0;
  margin:0;
  padding:10px 3px 4px;
  border-radius:11px;
}
.detail-page>.inline-swap .mini-card .weapon-art{
  width:min(51px,60%);
  height:auto;
  aspect-ratio:1;
  margin:0 auto 1px;
}
.detail-page>.inline-swap .mini-card .mini-name{
  width:100%;
  height:auto;
  min-height:21px;
  margin:auto 0 0;
  padding:0 2px;
  font-size:10px;
  line-height:1.05;
  overflow-wrap:anywhere;
}
.detail-page>.inline-swap .mini-card .mini-level{
  display:block;
  margin-top:2px;
  font-size:9px;
  line-height:1.1;
}
.detail-page>.inline-swap .mini-card .upgrade-callout{display:none}
.detail-page>.inline-swap .mini-card .cost{
  width:21px;
  min-width:21px;
  height:21px;
  top:-4px;
  inset-inline-start:-4px;
  font-size:12px;
}
@media(min-width:850px) and (max-height:560px){
  .detail-page>.inline-swap>b{font-size:11px;margin-bottom:5px}
  .detail-page>.inline-swap>.deck-strip{gap:5px}
  .detail-page>.inline-swap .mini-card{flex-basis:clamp(61px,calc((100% - 10px)/3),84px);padding-top:7px}
  .detail-page>.inline-swap .mini-card .weapon-art{width:min(43px,58%)}
  .detail-page>.inline-swap .mini-card .mini-name{font-size:9px;min-height:19px}
  .detail-page>.inline-swap .mini-card .mini-level{font-size:8px}
}


/* Desktop weapon details scroll when their upgrade panel exceeds the embed height. */
@media(min-width:850px) and (min-height:430px){
  .detail-page.scroll-page{
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scroll-padding-block:16px 28px;
    padding-bottom:28px;
  }
}
@media(min-width:600px) and (max-width:849px) and (max-height:540px){
  .detail-page.scroll-page{
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scroll-padding-block:12px 28px;
    padding-bottom:28px;
  }
}


.victory-harvest{position:absolute;inset:0;z-index:24;pointer-events:none;overflow:hidden;isolation:isolate;background:linear-gradient(180deg,#241b4324,transparent 38%)}
.victory-harvest-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.victory-harvest-target{position:absolute;z-index:1;transform:translate(-50%,-50%);min-height:58px;max-width:calc(100% - 32px);padding:10px 18px;display:flex;align-items:center;justify-content:center;gap:10px;border:2px solid #ffe4a4;border-radius:20px;background:linear-gradient(145deg,#705038ee,#382245f5);box-shadow:0 5px 0 #24173480,0 0 26px #ffd97866,inset 0 2px #fff6cf44;color:#fff0b8;white-space:nowrap;text-shadow:0 2px #5e352a}
.victory-harvest-target strong{font-size:clamp(13px,2.6vw,18px)}
.victory-harvest-icon{display:grid;place-items:center;width:34px;height:34px;flex:none}
.victory-harvest-icon .coin{width:34px;height:34px;font-size:26px}
.victory-fallback-gold{font-style:normal;display:grid;place-items:center;width:30px;height:30px;border:2px solid #ac681d;outline:2px solid #ffeca1;border-radius:50%;background:linear-gradient(135deg,#fff3a4,#ffc840);color:#bf7d1c;text-shadow:none;font-size:23px}
.victory-harvest-target.is-collecting .victory-harvest-icon{animation:harvest-receive .23s ease-in-out 3}
.victory-harvest-target.is-collected{box-shadow:0 5px 0 #24173480,0 0 36px #ffe28a88,inset 0 2px #fff6cf66}
@keyframes harvest-receive{50%{transform:scale(1.13)}}
.victory-harvest.is-reduced .victory-harvest-icon{animation:none}
@media(prefers-reduced-motion:reduce){.victory-harvest *{animation:none!important}}

/* 1.10.5: the lobby fits its viewport; rewards never grow the layout. */
.lobby{overflow:hidden;min-height:0}
.lobby-scene .stage-caption p{display:none}
.lobby-scene .road-peek{display:none}
.lobby-scene .stage-caption{top:10px}
.lobby-scene .stage-caption small{display:block}
.lobby-float,.lobby-scene .gift-float{position:absolute;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;width:58px;height:65px;min-width:44px;min-height:44px;padding:2px;margin:0;border:0;background:none;box-shadow:none;color:#fff2ba;filter:drop-shadow(0 3px 2px #40255b88)}
.lobby-float img,.lobby-scene .gift-float>.reward-art{width:49px;height:49px;flex:none;object-fit:contain;margin:0}
.lobby-float small,.lobby-scene .gift-float small{font-size:11px;line-height:1.15;text-shadow:0 2px #563464;white-space:nowrap}
.lobby-float:hover,.lobby-scene .gift-float:hover{filter:brightness(1.12) drop-shadow(0 3px 3px #40255b88)}
.lobby-float:focus-visible{outline:2px solid #fff3aa;outline-offset:2px;border-radius:12px}
.lobby-float .notification{width:12px;height:12px;top:4px;right:5px;border:2px solid #fff1b9}
.lobby-scene .gift-float{left:9px;right:auto;top:30%;bottom:auto}
.lobby-scene .float-missions{left:9px;right:auto;top:59%}
.lobby-scene .float-daily{right:9px;left:auto;top:30%}
.lobby-scene .float-boost{right:9px;left:auto;top:59%}
.lobby-scene .help-float{top:3px;right:12px}
.lobby-controls{gap:12px}
.cache-track.stage-pack-track{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:62px;padding:0;background:none;border:0;box-shadow:none}
.cache.stage-pack,.cache.stage-pack.ready,.cache.stage-pack.claimed{display:grid;place-items:center;flex:0 1 58px;position:relative;width:58px;height:58px;min-height:0;min-width:44px;aspect-ratio:1;padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none;filter:none}
.cache.stage-pack>.reward-art{width:54px;height:54px;max-width:100%;margin:0;filter:drop-shadow(0 3px 2px #3c285566)}
.cache.stage-pack.ready>.reward-art{filter:drop-shadow(0 0 5px #ffe39799)}
.cache.stage-pack.claimed>.reward-art{opacity:.32;filter:saturate(.5)}
.cache.stage-pack.claimed>.pack-claimed{position:absolute;inset:auto 1px 4px auto;width:17px;height:17px;font-size:12px;line-height:1;border:1px solid #e7ffbd;box-shadow:0 1px #43622c}
.cache.stage-pack>.notification{top:0;right:0;width:17px;height:17px;font-size:11px;line-height:13px}
.stage-pack-row{max-width:390px}
.lobby-controls .reward-road,.lobby-controls .reward-road:has(.road-node small>.road-amount-part:nth-child(4)){--road-height:74px;--road-icon:45px}
.road-node{grid-template-rows:var(--road-icon) 18px;gap:3px;width:66px}
.road-node small{min-height:16px;height:18px;padding:1px 5px;border:0;box-shadow:none;line-height:16px;font-size:11px}
.road-node.collected small{display:none}
.road-node.collected .road-icon{opacity:.75}
.road-node em{right:5px;top:0}
.collection-empty{grid-column:1/-1;grid-row:1/-1;align-self:center;text-align:center;font-size:14px}
.collection-pager{direction:ltr}
/* Long secondary lists remain usable by touch without a visible scrollbar. */
@media(max-width:999px){.game-shell *{scrollbar-width:none}.game-shell *::-webkit-scrollbar{display:none}}
@media(max-width:599px){
 .game-shell:has(>.bottom-nav){display:flex;flex-direction:column;height:100dvh;max-height:100dvh;min-height:0;overflow:hidden}
 .game-shell:has(>.bottom-nav)>.topbar{height:58px;min-height:58px;flex:none;padding:7px 14px 4px}
 .game-shell:has(>.bottom-nav)>.topbar .profile .avatar{width:43px;height:43px}
 .game-shell:has(>.bottom-nav)>.topbar .profile b{font-size:16px}
 .game-shell:has(>.bottom-nav)>.topbar .profile small{font-size:11px}
 .game-shell:has(>.bottom-nav)>.wallet{position:static;width:100%;height:41px;min-height:41px;flex:none;padding:3px 14px 7px;gap:10px}
 .game-shell:has(>.bottom-nav)>.wallet>button{height:29px;min-height:29px;padding-inline:0 8px}
 .game-shell:has(>.bottom-nav)>.wallet .coin{width:34px;height:34px;flex:none}
 .game-shell:has(>.bottom-nav)>.wallet b{font-size:14px}
 .game-shell:has(>.bottom-nav)>.bottom-nav{height:70px;min-height:70px;flex:none;gap:5px;padding:5px 7px 0;width:100%;max-width:none}
 .game-shell:has(>.bottom-nav)>.bottom-nav>button{height:64px;min-width:0;margin-top:0;padding:3px 1px;gap:1px;border-radius:13px 13px 0 0}
 .game-shell:has(>.bottom-nav)>.bottom-nav .main-tab{margin-top:0;transform:none}
 .game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:36px;height:36px}
 .game-shell:has(>.bottom-nav)>.bottom-nav b{font-size:10px;line-height:12px}
 .game-shell>.lobby{display:flex;flex-direction:column;flex:1 1 0;min-height:0;gap:0;padding:0;overflow:hidden}
 .game-shell>.lobby>.lobby-scene{flex:1 1 0;width:100%;min-height:0;margin:0;overflow:hidden}
 .lobby-scene .stage-art,.lobby-scene:has(.road-peek>b) .stage-art{width:min(calc(100cqw - 104px),calc(100cqh - 28px),300px);height:auto;aspect-ratio:1;max-height:none;bottom:4px}
 .lobby-scene .stage-caption{top:3px;padding-inline:52px}
 .lobby-scene .stage-caption small{font-size:10px;line-height:16px;letter-spacing:2px}
 .lobby-scene .help-float{width:32px;height:32px;min-width:32px;min-height:32px;top:0;right:12px;font-size:23px}
 .lobby-float,.lobby-scene .gift-float{width:48px;height:55px}
 .lobby-float img,.lobby-scene .gift-float>.reward-art{width:43px;height:43px}
 .lobby-float small,.lobby-scene .gift-float small{font-size:10px}
 .lobby-scene .gift-float,.lobby-scene .float-missions{left:10px}
 .lobby-scene .float-daily,.lobby-scene .float-boost{right:10px}
 .lobby-scene .gift-float,.lobby-scene .float-daily{top:25%}
 .lobby-scene .float-missions,.lobby-scene .float-boost{top:59%}
 .game-shell>.lobby>.lobby-controls,.game-shell>.lobby>.lobby-controls:has(.deployment-lobby-status){flex:none;width:100%;max-width:none;min-height:0;padding:4px 20px 0;gap:4px;align-self:stretch}
 .lobby-controls .reward-road,.lobby-controls .reward-road:has(.road-node small>.road-amount-part:nth-child(4)){--road-height:59px;--road-icon:35px}
 .road-node{width:58px;gap:2px;grid-template-rows:var(--road-icon) 16px}
 .road-node small{height:16px;min-height:16px;line-height:14px;font-size:10px;padding:1px 4px}
 .lobby-controls .track{height:33px}
 .lobby-controls .track b{font-size:18px}
 .lobby-controls .stage-selector{height:35px;min-height:35px;width:91%}
 .lobby-controls .stage-selector button{width:42px;height:34px}
 .lobby-controls .stage-selector b{font-size:14px}
 .lobby-controls .progress-remaining{font-size:10px;margin:3px 0 0;line-height:13px}
 .cache-track.stage-pack-track{height:48px;gap:12px}
 .cache.stage-pack,.cache.stage-pack.ready,.cache.stage-pack.claimed{width:45px;height:45px;min-height:0;flex:0 1 45px}
 .cache.stage-pack>.reward-art{width:44px;height:44px}
 .game-shell>.lobby-primary{height:72px;min-height:72px;flex:none;padding:6px 18px 12px;gap:0;border:0;background:none;box-shadow:none}
 .game-shell>.lobby-primary>.battle-button,.game-shell>.lobby-primary>.battle-button.claim-ready{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;height:53px;min-height:53px;max-width:380px;width:100%;font-size:27px;padding:5px 10px;margin:0}
 .lobby-primary .primary-action-reward{width:auto;gap:3px;font-size:11px;max-width:60%;line-height:1.05}
 .lobby-primary .primary-action-reward>.reward-art{width:23px;height:23px}
 .lobby-primary .primary-action-reward .road-amount-part{font-size:10px}
 .lobby-primary .claim-context,.lobby-primary .fair-note{display:none}
 .game-shell>.welcome-strip{min-height:30px;max-height:34px;padding:3px 7px;margin:0 12px 3px;font-size:10px;overflow:hidden}
 .welcome-strip b{font-size:10px}.welcome-strip>span{flex-wrap:nowrap;gap:4px}.welcome-strip .coin,.welcome-strip .reward-art{width:15px;height:15px}
}
@media(min-width:600px) and (max-height:540px){
 .game-shell>.lobby{display:flex;flex-direction:row;flex:1 1 0;gap:10px;padding:3px 15px 8px;min-height:0}
 .game-shell>.lobby>.lobby-scene{flex:1 1 45%;width:45%;min-height:0}
 .lobby-scene .stage-art{width:min(calc(100cqw - 95px),calc(100cqh - 30px),260px);bottom:3px}
 .lobby-scene .stage-caption{top:1px}.lobby-scene .stage-caption small{font-size:10px}
 .lobby-float,.lobby-scene .gift-float{width:44px;height:50px}
 .lobby-float img,.lobby-scene .gift-float>.reward-art{width:38px;height:38px}
 .lobby-float small,.lobby-scene .gift-float small{font-size:9px}
 .game-shell>.lobby>.lobby-controls{width:53%;flex:0 0 53%;min-height:0;max-width:500px;padding:1px 8px;gap:5px}
 .lobby-controls .reward-road,.lobby-controls .reward-road:has(.road-node small>.road-amount-part:nth-child(4)){--road-height:48px;--road-icon:29px}
 .lobby-controls .track{height:28px}.lobby-controls .track b{font-size:17px}
 .lobby-controls .stage-selector{min-height:30px;height:30px}.lobby-controls .stage-selector button{height:29px;width:35px}.lobby-controls .stage-selector b{font-size:13px}
 .lobby-controls .progress-remaining{font-size:10px;line-height:12px;margin:2px 0 0}
 .cache-track.stage-pack-track{height:43px;gap:8px}.cache.stage-pack,.cache.stage-pack.ready,.cache.stage-pack.claimed{width:41px;height:41px;min-height:0;flex-basis:41px}.cache.stage-pack>.reward-art{width:40px;height:40px}
 .lobby-controls>.battle-button,.lobby-controls>.battle-button.claim-ready{height:45px;min-height:45px;padding:5px 8px;font-size:24px;flex-direction:row;gap:7px;margin:0}
 .lobby-controls .primary-action-reward{width:auto;font-size:10px;max-width:60%;gap:2px}.lobby-controls .primary-action-reward>*{font-size:10px}
 .lobby-controls>.claim-context,.lobby-controls>.fair-note{display:none}
}
@media(max-width:599px) and (max-height:620px){
 .game-shell:has(>.bottom-nav)>.topbar{height:50px;min-height:50px;padding-block:4px 2px}
 .game-shell:has(>.bottom-nav)>.topbar .profile .avatar{width:38px;height:38px}
 .game-shell:has(>.bottom-nav)>.wallet{height:35px;min-height:35px;padding-block:2px 4px}
 .game-shell:has(>.bottom-nav)>.bottom-nav{height:62px;min-height:62px;padding-top:3px}
 .game-shell:has(>.bottom-nav)>.bottom-nav>button{height:59px}.game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:32px;height:32px}
 .game-shell>.lobby-primary{height:64px;min-height:64px;padding-block:4px 9px}
 .game-shell>.lobby-primary>.battle-button,.game-shell>.lobby-primary>.battle-button.claim-ready{height:50px;min-height:50px;font-size:25px}
 .lobby-controls .reward-road,.lobby-controls .reward-road:has(.road-node small>.road-amount-part:nth-child(4)){--road-height:52px;--road-icon:30px}
 .lobby-controls .track{height:30px}.lobby-controls .stage-selector{height:32px;min-height:32px}.lobby-controls .stage-selector button{height:31px}
 .lobby-controls .progress-remaining{display:none}
 .cache-track.stage-pack-track{height:44px}.cache.stage-pack,.cache.stage-pack.ready,.cache.stage-pack.claimed{height:42px;width:42px;flex-basis:42px;min-width:40px}.cache.stage-pack>.reward-art{height:40px;width:40px}
}
@media(max-width:999px){.modal{scrollbar-width:none}.modal::-webkit-scrollbar{display:none}}

/* 1.10.5 Arsenal: six square cards per page, fitted to the available viewport.
   This sheet is intentionally scoped to Arsenal; inspectors and battle hands keep their own layouts. */
.arsenal-page.scroll-page{
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr) auto;
 gap:6px;align-content:stretch;flex:1 1 0;min-width:0;min-height:0;width:100%;height:auto;
 padding:8px 14px 10px;overflow:hidden;scroll-padding:0;
}
.arsenal-page.scroll-page>.section-intro{grid-row:1;margin:0;padding:0;min-width:0}
.arsenal-page.scroll-page>.section-intro h1{margin:0;font-size:25px;line-height:28px;text-align:center}
.arsenal-page.scroll-page>.section-intro>small,.arsenal-page.scroll-page>.section-intro>p,
.arsenal-page.scroll-page>.upgrade-summary,.arsenal-page.scroll-page>.muted.center{display:none}

/* The five-card deck occupies one compact row and never inherits tall card minima. */
.arsenal-page.scroll-page>.deck-strip{
 grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;
 justify-self:center;width:min(100%,420px);max-width:none;min-width:0;margin:0;padding:0;background:none;
}
.arsenal-page.scroll-page>.deck-strip .mini-card{
 display:block;position:relative;width:100%;height:auto;aspect-ratio:1;min-width:0;min-height:0;max-height:none;
 padding:0;margin:0;border-width:2px;border-radius:10px;overflow:hidden;box-shadow:inset 0 2px #ffedce,0 2px #493254;
}
.arsenal-page.scroll-page>.deck-strip .mini-card .weapon-art{
 position:absolute;left:50%;top:5%;transform:translateX(-50%);display:block;flex:none;
 width:58%;height:58%;aspect-ratio:1;max-width:none;min-height:0;margin:0;
}
.arsenal-page.scroll-page>.deck-strip .mini-card .mini-name{
 position:absolute;inset-inline:3px;bottom:17px;display:block;width:auto;height:12px;min-height:0;margin:0;
 font-size:9px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.arsenal-page.scroll-page>.deck-strip .mini-card .mini-level{
 position:absolute;left:50%;right:auto;bottom:3px;transform:translateX(-50%);display:block;
 width:max-content;max-width:calc(100% - 6px);min-height:0;margin:0;padding:1px 4px;
 border-radius:4px;font-size:9px;line-height:11px;white-space:nowrap;
}

.arsenal-page.scroll-page>.collection-heading{
 grid-row:3;display:flex;align-items:center;justify-content:space-between;gap:8px;
 width:100%;max-width:660px;justify-self:center;margin:0;min-height:22px;
}
.arsenal-page.scroll-page>.collection-heading h2{margin:0;font-size:17px;line-height:22px}
.arsenal-page.scroll-page>.collection-heading>b{font-size:11px;line-height:16px;padding:2px 7px}
.arsenal-page.scroll-page>.filters{
 grid-row:4;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;
 width:100%;max-width:660px;justify-self:center;margin:0;min-width:0;
}
.arsenal-page.scroll-page>.filters>button{
 min-width:0;min-height:32px;height:32px;margin:0;padding:4px 2px;font-size:10px;line-height:1.1;
 border-radius:7px;white-space:normal;overflow-wrap:normal;
}

/* The size container supplies a definite height. Each square fits both its
   column and half the grid height; no independent width/height squeezing. */
.arsenal-page.scroll-page>.collection-grid{
 grid-row:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));
 gap:8px;container-type:size;justify-items:center;align-items:center;justify-self:center;
 width:100%;max-width:660px;height:100%;min-width:0;min-height:0;margin:0;padding:0;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card{
 position:relative;display:block;align-self:center;flex:none;
 width:min(100%,calc((100cqh - 8px)/2),190px);height:auto;aspect-ratio:1;
 min-width:0;min-height:0;max-width:100%;max-height:none;margin:0;padding:0;
 border-width:2px;border-radius:11px;overflow:hidden;box-shadow:inset 0 2px #ffedce,0 2px #493254;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(-n+3){align-self:end}
.arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(n+4){align-self:start}
.arsenal-page.scroll-page>.collection-grid>.collection-card .weapon-art{
 position:absolute;left:50%;top:5%;transform:translateX(-50%);display:block;
 width:54%;height:54%;aspect-ratio:1;max-width:none;min-height:0;margin:0;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card>b{
 position:absolute;inset-inline:4px;bottom:19px;display:flex;align-items:center;justify-content:center;
 height:22px;min-height:0;margin:0;padding:0;overflow:hidden;
 font-size:clamp(9px,2.5vw,13px);line-height:11px;text-align:center;text-wrap:balance;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card>small{
 position:absolute;inset-inline:14px;bottom:4px;display:block;height:12px;min-height:0;
 margin:0;padding:0;font-size:clamp(8px,2.3vw,11px);line-height:12px;
 text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.arsenal-page.scroll-page .collection-card .card-rarity,.arsenal-page.scroll-page .collection-card .copy-track,
.arsenal-page.scroll-page .collection-card .upgrade-label,.arsenal-page.scroll-page .collection-card .upgrade-arrow,
.arsenal-page.scroll-page .mini-card .upgrade-callout,.arsenal-page.scroll-page .collection-card .upgrade-callout{display:none}
.arsenal-page.scroll-page .collection-card .equipped-mark,.arsenal-page.scroll-page .collection-card .lock-icon{
 position:absolute;left:auto;right:auto;inset-inline-end:3px;bottom:3px;top:auto;
 width:13px;height:13px;margin:0;border-width:1px;font-size:8px;line-height:11px;text-align:center;
}
.arsenal-page.scroll-page .mini-card .cost,.arsenal-page.scroll-page .collection-card .cost{
 left:auto;right:auto;inset-inline-start:3px;top:3px;min-width:19px;width:19px;height:19px;
 margin:0;border-width:1px;font-size:12px;line-height:1;box-shadow:inset 0 1px #f1c6ff,0 1px #523262;
}

/* Upgrade readiness is a badge, never an extra card row or a changed border size. */
.arsenal-page.scroll-page .mini-card.upgrade-ready,.arsenal-page.scroll-page .collection-card.upgrade-ready{
 border-width:2px;border-color:#ffe191;animation:none;
 box-shadow:inset 0 2px #fff3ce,0 2px #72513d,0 0 0 1px #ffe59966;
}
.arsenal-page.scroll-page .mini-card.upgrade-needs-gold,.arsenal-page.scroll-page .collection-card.upgrade-needs-gold{
 border-width:2px;border-color:#b29476;animation:none;box-shadow:inset 0 2px #ffedce,0 2px #493254;
}
.arsenal-page.scroll-page .mini-card.upgrade-ready:after,.arsenal-page.scroll-page .collection-card.upgrade-ready:after{
 content:'↑';position:absolute;z-index:2;inset-inline-end:3px;top:3px;
 display:grid;place-items:center;width:19px;height:19px;border:1px solid #fff4bd;border-radius:6px;
 background:#ffdd82;color:#60401e;font-size:15px;font-weight:900;line-height:1;text-shadow:none;pointer-events:none;
}

.arsenal-page.scroll-page>.collection-pager{
 grid-row:6;display:grid;grid-template-columns:44px minmax(60px,1fr) 44px;gap:10px;
 align-items:center;justify-self:center;width:min(100%,220px);min-height:44px;margin:0;padding:0;
}
.arsenal-page.scroll-page .collection-page-prev,.arsenal-page.scroll-page .collection-page-next{
 display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;
 margin:0;padding:0;border:1px solid #ccb4eb;border-radius:10px;
 background:linear-gradient(#ac8dd1,#775698);color:#fff3dd;box-shadow:inset 0 2px #dec7ef,0 2px #49325f;font-size:24px;line-height:1;
}
.arsenal-page.scroll-page .collection-page-count{font-size:12px;line-height:1.2;text-align:center;white-space:nowrap;direction:ltr}
.arsenal-page.scroll-page .collection-empty{grid-column:1/-1;grid-row:1/-1;align-self:center;justify-self:center;max-width:90%;margin:0;text-align:center;font-size:13px;line-height:1.4}

@media(max-width:599px){
 .arsenal-page.scroll-page{padding:7px 12px 9px;gap:5px}
 .arsenal-page.scroll-page>.section-intro h1{font-size:22px;line-height:26px}
 .arsenal-page.scroll-page>.deck-strip{gap:5px;max-width:350px}
 .arsenal-page.scroll-page>.deck-strip .mini-card .mini-name{display:none}
 .arsenal-page.scroll-page>.deck-strip .mini-card .weapon-art{width:64%;height:64%;top:5%}
 .arsenal-page.scroll-page>.collection-heading h2{font-size:15px;line-height:20px}
 .arsenal-page.scroll-page>.collection-heading{min-height:20px}
 .arsenal-page.scroll-page>.filters>button{font-size:9px;min-height:30px;height:30px}
 .arsenal-page.scroll-page>.collection-grid{gap:7px}
 .arsenal-page.scroll-page>.collection-grid>.collection-card{width:min(100%,calc((100cqh - 7px)/2))}
 .arsenal-page.scroll-page>.collection-grid>.collection-card>b{font-size:10px;line-height:11px}
 .arsenal-page.scroll-page>.collection-grid>.collection-card>small{font-size:9px}
}
@media(max-height:680px) and (max-width:599px){
 .arsenal-page.scroll-page{padding-block:5px 7px;gap:4px}
 .arsenal-page.scroll-page>.section-intro h1{font-size:20px;line-height:24px}
 .arsenal-page.scroll-page>.deck-strip{width:min(100%,310px)}
 .arsenal-page.scroll-page>.collection-heading h2{font-size:14px}
 .arsenal-page.scroll-page>.collection-pager{min-height:40px}
 .arsenal-page.scroll-page .collection-page-prev,.arsenal-page.scroll-page .collection-page-next{min-height:40px;height:40px}
}

/* Short landscape: keep the deck beside the collection, leaving the entire
   right column for two square rows and a pager that never scrolls away. */
@media(min-width:600px) and (max-width:999px) and (max-height:540px){
 .arsenal-page.scroll-page{
  grid-template-columns:minmax(120px,150px) minmax(0,1fr);
  grid-template-rows:22px 28px minmax(0,1fr) 38px;
  column-gap:16px;row-gap:4px;padding:4px 16px 7px;
 }
 .arsenal-page.scroll-page>.section-intro{grid-column:1;grid-row:1;align-self:center}
 .arsenal-page.scroll-page>.section-intro h1{font-size:20px;line-height:22px}
 .arsenal-page.scroll-page>.deck-strip{
  grid-column:1;grid-row:2/5;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));
  width:100%;height:100%;max-width:none;min-height:0;gap:5px;
  container-type:size;align-items:center;justify-items:center;align-self:stretch;
 }
 .arsenal-page.scroll-page>.deck-strip .mini-card{width:min(calc((100cqw - 5px)/2),calc((100cqh - 10px)/3),78px);height:auto;aspect-ratio:1}
 .arsenal-page.scroll-page>.deck-strip .mini-card:last-child{grid-column:1/-1}
 .arsenal-page.scroll-page>.deck-strip .mini-card .mini-name{display:none}
 .arsenal-page.scroll-page>.deck-strip .mini-card .mini-level{display:block;font-size:9px}
 .arsenal-page.scroll-page>.deck-strip .mini-card .weapon-art{width:64%;height:64%;top:5%}
 .arsenal-page.scroll-page>.collection-heading{grid-column:2;grid-row:1;min-height:22px;max-width:none}
 .arsenal-page.scroll-page>.collection-heading h2{font-size:15px;line-height:20px}
 .arsenal-page.scroll-page>.collection-heading>b{font-size:10px;padding:1px 6px}
 .arsenal-page.scroll-page>.filters{grid-column:2;grid-row:2;gap:4px;max-width:none}
 .arsenal-page.scroll-page>.filters>button{min-height:28px;height:28px;padding:3px 2px;font-size:9px}
 .arsenal-page.scroll-page>.collection-grid{grid-column:2;grid-row:3;gap:6px;max-width:none}
 .arsenal-page.scroll-page>.collection-grid>.collection-card{width:min(100%,calc((100cqh - 6px)/2),150px)}
 .arsenal-page.scroll-page>.collection-grid>.collection-card .weapon-art{width:51%;height:51%;top:3%}
 .arsenal-page.scroll-page>.collection-grid>.collection-card>b{font-size:9px;line-height:10px;height:20px;bottom:17px;inset-inline:2px}
 .arsenal-page.scroll-page>.collection-grid>.collection-card>small{font-size:8px;height:11px;line-height:11px;bottom:3px;inset-inline:12px}
 .arsenal-page.scroll-page .mini-card .cost,.arsenal-page.scroll-page .collection-card .cost{width:17px;min-width:17px;height:17px;font-size:10px;top:2px;inset-inline-start:2px}
 .arsenal-page.scroll-page .mini-card.upgrade-ready:after,.arsenal-page.scroll-page .collection-card.upgrade-ready:after{width:17px;height:17px;font-size:13px;top:2px;inset-inline-end:2px}
 .arsenal-page.scroll-page>.collection-pager{grid-column:2;grid-row:4;grid-template-columns:44px minmax(60px,1fr) 44px;min-height:38px;width:min(100%,200px)}
 .arsenal-page.scroll-page .collection-page-prev,.arsenal-page.scroll-page .collection-page-next{height:36px;min-height:36px;font-size:22px}
 .arsenal-page.scroll-page .collection-page-count{font-size:11px}
}

/* 1.10.6: roomy daily gifts and a deck sized like the weapons it contains.
   Scoped overrides; the rewards page, inspectors and battle cards are unchanged. */
.modal.daily-gift-modal{
 width:780px;max-width:100%;max-height:calc(100dvh - 30px);padding:26px 24px 22px;
 border-radius:24px;overflow:auto;overscroll-behavior:contain;
 background:radial-gradient(ellipse at 50% 0,#a986cb 0,#725192 66%,#5d417e 100%);
}
.daily-gift-modal>.modal-close{top:12px;right:12px;width:40px;height:40px;line-height:1}
.daily-gift-modal>.login-rewards{margin:0;padding:0;min-width:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
.daily-gift-modal .login-header{gap:12px;margin:0 0 18px;padding-inline-end:44px;min-width:0;align-items:center}
.daily-gift-modal .login-header>div{min-width:0}
.daily-gift-modal .login-header small{display:block;font-size:11px;line-height:15px;letter-spacing:.08em}
.daily-gift-modal .login-header h2{margin:3px 0 0;padding:0;text-align:start;font-size:28px;line-height:1.18;text-shadow:0 2px #49305f}
.daily-gift-modal .login-streak{font-size:14px;padding:6px 12px;background:#463060;border-color:#c9a5df}
.daily-gift-modal .login-days{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:auto;gap:12px;align-items:start}
.daily-gift-modal .login-day{
 grid-column:span 2;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
 width:100%;height:auto;aspect-ratio:1;min-width:0;min-height:0;margin:0;padding:12px 8px 9px;
 gap:6px;border-width:2px;border-radius:15px;overflow:hidden;
}
.daily-gift-modal .login-day:nth-child(5){grid-column:2/span 2}
.daily-gift-modal .login-day:nth-child(6){grid-column:4/span 2}
.daily-gift-modal .login-day:nth-child(7){grid-column:6/span 2}
.daily-gift-modal .login-day-label{flex:none;max-width:100%;font-size:14px;line-height:18px;font-weight:900;white-space:nowrap}
.daily-gift-modal .login-day-loot{flex:1 1 0;min-height:0;min-width:0;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px}
.daily-gift-modal .login-loot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:19px;line-height:1.1}
.daily-gift-modal .login-icon{width:61px;height:61px}
.daily-gift-modal .login-mark{display:none;position:absolute;inset-inline-end:7px;top:7px;width:18px;height:18px;line-height:18px;text-align:center;font-size:14px}
.daily-gift-modal .is-claimed .login-mark,.daily-gift-modal .is-ready .login-mark,.daily-gift-modal .is-finale .login-mark{display:block}
.daily-gift-modal .login-day.is-finale .login-day-loot{flex-direction:column;gap:5px}
.daily-gift-modal .login-day.is-finale .login-loot{flex-direction:row;justify-content:flex-start;gap:8px;width:88px;font-size:15px;line-height:24px}
.daily-gift-modal .login-day.is-finale .login-icon{width:25px;height:25px}
.daily-gift-modal .login-action{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 0;padding:14px 16px;border:1px solid #c9a4dc66;border-radius:14px;background:#39294d44}
.daily-gift-modal .login-action b{font-size:15px;line-height:1.3}
.daily-gift-modal .login-action small{font-size:12px;line-height:1.35;margin-top:4px}
.daily-gift-modal .login-action>.btn{flex:none;min-width:150px;min-height:46px;max-width:50%;padding:9px 17px;font-size:15px;line-height:1.15}
.daily-gift-modal .login-note{margin:12px 0 0;font-size:11px;line-height:1.4;color:#eadcf4}

/* The instructions remain within the existing intro grid row. */
.arsenal-page.scroll-page>.section-intro>.deck-edit-hint{display:block;margin:3px 0 0;color:#f0e2ff;text-align:center;font-size:12px;line-height:16px}
@media(min-width:600px) and (min-height:541px){
 .arsenal-page.scroll-page{gap:8px}
 .arsenal-page.scroll-page>.deck-strip{width:min(100%,740px);max-width:740px;gap:10px}
 .arsenal-page.scroll-page>.deck-strip .mini-card{border-radius:13px}
 .arsenal-page.scroll-page>.deck-strip .mini-card .weapon-art{width:61%;height:61%;top:5%}
 .arsenal-page.scroll-page>.deck-strip .mini-card .mini-name{inset-inline:5px;bottom:23px;height:24px;font-size:12px;line-height:12px;white-space:normal;text-wrap:balance}
 .arsenal-page.scroll-page>.deck-strip .mini-card .mini-level{bottom:5px;font-size:11px;line-height:13px;padding:1px 6px}
 .arsenal-page.scroll-page>.collection-heading,.arsenal-page.scroll-page>.filters,.arsenal-page.scroll-page>.collection-grid{max-width:740px}
 .arsenal-page.scroll-page .mini-card .cost{width:23px;min-width:23px;height:23px;font-size:14px;top:5px;inset-inline-start:5px}
 .arsenal-page.scroll-page .mini-card.upgrade-ready:after{width:23px;height:23px;font-size:18px;top:5px;inset-inline-end:5px}
}
@media(max-width:599px){
 .modal.daily-gift-modal{padding:20px 13px 15px;border-radius:19px;max-height:calc(100dvh - 24px)}
 .daily-gift-modal>.modal-close{top:9px;right:9px;width:36px;height:36px}
 .daily-gift-modal .login-header{gap:8px;padding-inline-end:36px;margin-bottom:13px}
 .daily-gift-modal .login-header small{font-size:9px;line-height:12px;letter-spacing:.05em}
 .daily-gift-modal .login-header h2{font-size:20px;line-height:1.15;margin-top:3px}
 .daily-gift-modal .login-streak{font-size:11px;padding:5px 7px}
 .daily-gift-modal .login-days{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
 .daily-gift-modal .login-day,.daily-gift-modal .login-day:nth-child(5),.daily-gift-modal .login-day:nth-child(6){grid-column:span 2;padding:7px 4px 5px;gap:3px;border-radius:11px}
 .daily-gift-modal .login-day:nth-child(7){grid-column:3/span 2;padding:7px 4px 5px;gap:3px;border-radius:11px}
 .daily-gift-modal .login-day-label{font-size:11px;line-height:13px}
 .daily-gift-modal .login-loot{gap:2px;font-size:14px;line-height:16px}
 .daily-gift-modal .login-icon{width:35px;height:35px}
 .daily-gift-modal .login-mark{top:4px;inset-inline-end:4px;width:12px;height:12px;line-height:12px;font-size:10px}
 .daily-gift-modal .login-day.is-finale .login-day-loot{gap:1px}
 .daily-gift-modal .login-day.is-finale .login-loot{width:59px;gap:4px;font-size:11px;line-height:18px}
 .daily-gift-modal .login-day.is-finale .login-icon{width:18px;height:18px}
 .daily-gift-modal .login-action{flex-direction:column;gap:10px;margin-top:14px;padding:10px;text-align:center}
 .daily-gift-modal .login-action b{font-size:13px}
 .daily-gift-modal .login-action small{font-size:10px;margin-top:2px}
 .daily-gift-modal .login-action>.btn{width:100%;max-width:100%;min-width:0;min-height:44px;font-size:14px;padding:8px 12px}
 .daily-gift-modal .login-note{font-size:10px;margin-top:9px;line-height:1.35}
 .arsenal-page.scroll-page>.deck-strip{width:100%;max-width:none;gap:5px}
 .arsenal-page.scroll-page>.section-intro>.deck-edit-hint{font-size:10px;line-height:13px;margin-top:1px}
}
@media(max-width:359px){
 .modal.daily-gift-modal{padding:17px 10px 12px}
 .daily-gift-modal .login-header{padding-inline-end:31px;gap:6px;margin-bottom:10px}
 .daily-gift-modal .login-header h2{font-size:17px}
 .daily-gift-modal .login-header small{font-size:8px}
 .daily-gift-modal .login-streak{font-size:10px;padding:4px 6px}
 .daily-gift-modal .login-days{gap:6px}
 .daily-gift-modal .login-day,.daily-gift-modal .login-day:nth-child(5),.daily-gift-modal .login-day:nth-child(6),.daily-gift-modal .login-day:nth-child(7){padding:5px 3px 4px;gap:2px}
 .daily-gift-modal .login-day-label{font-size:10px;line-height:12px}
 .daily-gift-modal .login-icon{width:29px;height:29px}
 .daily-gift-modal .login-loot{font-size:12px;line-height:14px}
 .daily-gift-modal .login-day.is-finale .login-loot{font-size:10px;line-height:15px;width:53px;gap:3px}
 .daily-gift-modal .login-day.is-finale .login-icon{width:15px;height:15px}
 .daily-gift-modal .login-action{padding:8px;margin-top:11px;gap:8px}
}
@media(min-width:600px) and (max-height:540px){
 .modal.daily-gift-modal{width:900px;max-height:calc(100dvh - 20px);padding:17px 20px 14px}
 .daily-gift-modal .login-header{margin-bottom:12px;padding-inline-end:42px}
 .daily-gift-modal .login-header h2{font-size:22px;line-height:25px;margin-top:0}
 .daily-gift-modal .login-header small{font-size:9px;line-height:12px}
 .daily-gift-modal .login-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
 .daily-gift-modal .login-day,.daily-gift-modal .login-day:nth-child(5),.daily-gift-modal .login-day:nth-child(6),.daily-gift-modal .login-day:nth-child(7){grid-column:auto;padding:6px 3px 5px;gap:3px;border-radius:11px}
 .daily-gift-modal .login-day-label{font-size:11px;line-height:13px}
 .daily-gift-modal .login-icon{width:32px;height:32px}
 .daily-gift-modal .login-loot{gap:2px;font-size:13px;line-height:14px}
 .daily-gift-modal .login-mark{top:4px;inset-inline-end:4px;width:12px;height:12px;line-height:12px;font-size:10px}
 .daily-gift-modal .login-day.is-finale .login-day-loot{gap:1px}
 .daily-gift-modal .login-day.is-finale .login-loot{font-size:10px;line-height:15px;width:52px;gap:3px}
 .daily-gift-modal .login-day.is-finale .login-icon{width:15px;height:15px}
 .daily-gift-modal .login-action{margin-top:13px;padding:9px 12px;gap:12px}
 .daily-gift-modal .login-action b{font-size:13px}.daily-gift-modal .login-action small{font-size:10px}
 .daily-gift-modal .login-action>.btn{min-height:42px;font-size:13px;padding:7px 14px}
 .daily-gift-modal .login-note{font-size:10px;margin-top:8px}
}
@media(min-width:600px) and (max-width:999px) and (max-height:540px){
 .arsenal-page.scroll-page{grid-template-rows:38px 28px minmax(0,1fr) 38px}
 .arsenal-page.scroll-page>.section-intro h1{font-size:18px;line-height:21px}
 .arsenal-page.scroll-page>.section-intro>.deck-edit-hint{font-size:9px;line-height:12px;max-height:12px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
.daily-gift-modal>.modal-close{right:auto;inset-inline-end:12px}
@media(max-width:599px){.daily-gift-modal>.modal-close{right:auto;inset-inline-end:9px}}

/* One gesture replaces one slot; no panel or confirmation interrupts editing. */
.arsenal-page [data-deck-source]{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.arsenal-page [data-deck-source] .weapon-art{pointer-events:none}
.arsenal-page.deck-dragging [data-deck-source]{cursor:grabbing}
.arsenal-page .deck-drag-source{opacity:.48}
.arsenal-page .deck-strip .mini-card.deck-drop-target{border-color:#f6ffb5;box-shadow:inset 0 0 0 2px #c6fb88,0 0 0 3px #83d675,0 0 22px #c2ff8b88;transform:translateY(-3px)}
.deck-drag-ghost{position:fixed;z-index:80;display:grid;place-items:center;pointer-events:none;aspect-ratio:1;border:2px solid #ffe8a5;border-radius:15px;background:linear-gradient(145deg,#ffe5b2ee,#d9b58ee8);box-shadow:inset 0 2px #fff7d9,0 10px 22px #28174477;opacity:.96;overflow:hidden;contain:layout paint}
.deck-drag-ghost .weapon-art{display:block;width:90%;height:90%;aspect-ratio:1;min-width:0;max-width:none;max-height:none;margin:0;transform:none;filter:drop-shadow(0 3px 2px #2b224255)}
.arsenal-page .deck-edit-hint{min-height:16px;line-height:16px}
@media(prefers-reduced-motion:reduce){.arsenal-page .deck-strip .mini-card.deck-drop-target{transform:none}}

/* Optional reward choices and the rare battle-clock consumable. */
.prebattle-modal{width:min(610px,96vw);text-align:center;padding:24px;max-height:94dvh;overflow:auto}
.supply-eyebrow{display:block;color:#ffe18c;font-weight:900;font-size:11px;letter-spacing:1px;margin-bottom:6px}
.prebattle-modal h2{font-size:26px;padding-inline:15px}.prebattle-modal>p{margin:10px 0 14px}.prebattle-modal>.btn{margin-top:12px;min-height:46px}
.prebattle-options{display:flex;gap:12px}.prebattle-options article{flex:1;min-width:0;padding:14px;border:1px solid #b6a1e9;border-radius:18px;background:#39245470;display:flex;flex-direction:column;align-items:center;gap:9px}
.prebattle-options article>.weapon-art{width:86px;height:80px;flex:none}.prebattle-options p{font-size:13px;flex:1}.prebattle-options .btn{min-height:46px;font-size:14px;margin-top:auto}
.supply-symbol{display:flex;gap:10px;align-items:center;justify-content:center;height:80px;font-size:46px;color:#ffe689;text-shadow:0 3px #5c376b}.supply-symbol b{font-size:30px}
.supply-ready{padding:22px;margin:16px 0;border-radius:16px;background:#4b875a55;border:1px solid #a6db89}.supply-ready b{font-size:23px;color:#daffba}
.ad-service-note{font-size:12px;line-height:1.5;text-align:center;color:#ece2ff;max-width:640px;margin:12px auto 4px}.ad-service-note p{font-size:12px}.ad-service-note .btn{margin-top:8px}
.time-supply{display:flex;align-items:center;gap:20px;padding:20px;margin:18px 0;border:2px solid #efca6e;border-radius:22px;background:linear-gradient(135deg,#483377,#6d48a8);box-shadow:inset 0 2px #ffedb142}
.time-supply h2{margin:0 0 6px}.time-supply p{font-size:14px;margin-bottom:7px}.time-supply small{display:block}.time-supply-art{flex:0 0 90px;text-align:center}.time-supply-art>b{display:block;color:#ffdf76;font-size:24px}
.time-coin{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:3px solid #ffe99b;border-radius:50%;background:radial-gradient(circle at 35% 25%,#aeefff,#ba99f4 50%,#7551c1);box-shadow:0 3px 0 #8d5e2c,inset 0 0 0 2px #825fb8;font-size:28px;line-height:1}
.time-supply-art .time-coin{width:78px;height:78px;font-size:45px}.time-owned{color:#ffdf76}.supply-buttons{display:flex;gap:10px;margin:12px 0 6px;flex-wrap:wrap}.supply-buttons>.btn{flex:1;white-space:nowrap}
.battle-clock button.time-token-control{position:static;top:auto;left:auto;width:auto;height:28px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid #ffe489;border-radius:12px;padding:3px 7px;background:#62438d;box-shadow:0 2px #342146;line-height:1.1;min-height:28px;margin-top:2px;color:#fff0a6}
.battle-clock .time-token-control .time-coin{width:23px;height:23px;border-width:1px;font-size:16px;box-shadow:none}.battle-clock .time-token-control b{font-size:14px}.battle-clock .time-token-control small{font-size:10px}.time-token-control[hidden]{display:none!important}
.upgrade-help-modal{width:min(480px,94vw);text-align:center}.upgrade-help-modal>p{margin:12px 0}.upgrade-help-modal>.btn{margin-top:10px}.upgrade-shortfall{display:flex;gap:10px;margin:16px 0}.upgrade-shortfall>div{flex:1;padding:14px 7px;background:#34264d66;border:1px solid #9e7bca;border-radius:14px}.upgrade-shortfall small{display:block;margin-top:5px}.upgrade-shortfall .coin{vertical-align:middle}.core-help-modal .market-grid{grid-template-columns:1fr}.core-help-modal{width:min(420px,94vw)}
@media(max-width:600px){.time-supply{padding:14px;gap:12px}.time-supply-art{flex-basis:54px}.time-supply-art .time-coin{width:52px;height:52px;font-size:30px}.time-supply h2{font-size:21px}.time-supply p{font-size:12px}.time-supply small{font-size:11px}.prebattle-modal{padding:19px 14px}.prebattle-modal h2{font-size:22px}.prebattle-options{gap:8px}.prebattle-options article{padding:10px}.prebattle-options .btn{font-size:12px}.prebattle-options h3{font-size:15px}.prebattle-options p{font-size:12px}}
@media(max-height:520px) and (min-width:600px){.prebattle-modal{padding:14px 24px}.prebattle-modal h2{font-size:22px}.prebattle-options article{padding:8px 12px;gap:4px}.prebattle-options article>.weapon-art,.supply-symbol{height:48px}.prebattle-modal>p{margin:5px}.prebattle-modal>.btn{margin-top:8px}.ad-service-note{margin-top:8px}.battle-clock button.time-token-control{position:absolute;top:50%;left:calc(100% + 15px);width:max-content;transform:translateY(-50%);margin:0}.battle-clock{position:relative}}

@media(min-height:521px){.battle-hud:has(.time-token-control:not([hidden])){min-height:88px}.in-combat .battle-clock:has(.time-token-control:not([hidden]))>b{font-size:22px}}

/* CrazyGames rewarded controls share one clearly framed Play badge. */
.rewarded-ad-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.65em;height:1.12em;margin-inline-end:.4em;border:2px solid currentColor;border-radius:3px;background:#ffffff24;vertical-align:middle;box-sizing:border-box}
.rewarded-ad-icon::before{content:"";display:block;width:0;height:0;margin-inline-start:1px;border-block:4px solid transparent;border-inline-start:6px solid currentColor}
.battle-boost-panel{margin:16px 0 22px;padding:20px;border:2px solid #ad95df;border-radius:19px;background:linear-gradient(135deg,#423065,#5b4281);box-shadow:inset 0 2px #dbccfb44;color:#fff}
.battle-boost-heading h2{margin:5px 0 7px;font-size:23px;line-height:1.2}
.battle-boost-heading p{margin:0 0 15px;color:#eee6fa;font-size:13px;line-height:1.45}
.battle-boost-panel .prebattle-options article{background:#2f224d99}
.battle-boost-panel .prebattle-options .btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;width:100%;margin-top:auto}
.battle-boost-panel .prebattle-options .weapon-art{width:76px;height:76px}
.battle-boost-panel .supply-ready{margin:10px 0 0;padding:14px}
@media(max-width:600px){.battle-boost-panel{padding:15px}.battle-boost-heading h2{font-size:19px}.battle-boost-panel .prebattle-options{flex-direction:column}.battle-boost-panel .prebattle-options article{gap:5px}.battle-boost-panel .supply-symbol{height:50px}}
/* The two Time Coin channels restock independently and the price is gold. */
.time-supply-details{flex:1;min-width:0}
.time-supply .supply-buttons>.btn{display:inline-flex;align-items:center;justify-content:center;flex:1 1 180px;white-space:normal;line-height:1.15;min-width:0;gap:3px}
.time-supply .supply-buttons>.btn .coin{width:22px;height:22px;font-size:17px}
#time-restock{min-height:1.3em;line-height:1.4;color:#fff1c4}
.shop-page #market-videos{text-align:center;margin:24px auto;max-width:1080px}
.shop-page #market-videos>.ribbon{text-align:center;margin-inline:auto}
.shop-page #market-videos>.market-grid{max-width:1080px;margin:15px auto 8px;justify-content:center}
@media(max-width:600px){.time-supply .supply-buttons>.btn{flex-basis:100%;font-size:13px;min-height:42px}.shop-page #market-videos{margin:18px auto}}

/* QA: cards keep a readable size in short CrazyGames iframes. */
.arsenal-page.scroll-page{
  display:block;
  flex:1 1 auto;
  width:100%;
  height:auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  padding:10px clamp(12px,2vw,24px) 18px;
  scroll-padding-block:10px 72px;
  scrollbar-width:thin;
}
.arsenal-page.scroll-page>.section-intro{margin:0 auto 10px;max-width:920px}
.arsenal-page.scroll-page>.section-intro h1{font-size:clamp(21px,2.8vw,29px);line-height:1.15}
.arsenal-page.scroll-page>.section-intro>.deck-edit-hint{
  display:block;
  height:auto;
  min-height:16px;
  max-height:none;
  margin-top:3px;
  color:#f5e8ff;
  font-size:12px;
  line-height:16px;
  white-space:normal;
  overflow:visible;
}
.arsenal-page.scroll-page>.deck-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-template-rows:none;
  align-items:stretch;
  justify-items:stretch;
  width:min(100%,740px);
  max-width:740px;
  height:auto;
  margin:0 auto 14px;
  padding:8px;
  gap:8px;
  border:1px solid #c9a6e45c;
  border-radius:16px;
  background:#3c2a6b70;
  container-type:normal;
}
.arsenal-page.scroll-page>.deck-strip .mini-card,
.arsenal-page.scroll-page>.deck-strip .mini-card:last-child{
  grid-column:auto;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-width:0;
  min-height:113px;
  height:auto;
  max-height:none;
  aspect-ratio:auto;
  padding:18px 5px 5px;
  overflow:hidden;
  border-width:2px;
  border-radius:12px;
}
.arsenal-page.scroll-page>.deck-strip .mini-card .weapon-art{
  position:static;
  display:block;
  width:65px;
  height:65px;
  max-width:100%;
  min-height:0;
  margin:0 auto 2px;
  transform:none;
}
.arsenal-page.scroll-page>.deck-strip .mini-card .mini-name{
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:auto;
  min-height:25px;
  margin:0;
  font-size:11px;
  line-height:12px;
  text-align:center;
  white-space:normal;
  overflow:hidden;
  overflow-wrap:anywhere;
  text-overflow:clip;
}
.arsenal-page.scroll-page>.deck-strip .mini-card .mini-level{
  position:static;
  display:block;
  width:auto;
  max-width:100%;
  margin:auto 0 0;
  padding:1px 5px;
  transform:none;
  font-size:10px;
  line-height:12px;
  white-space:nowrap;
}
.arsenal-page.scroll-page>.collection-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:min(100%,920px);
  max-width:920px;
  min-height:30px;
  margin:0 auto 8px;
}
.arsenal-page.scroll-page>.collection-heading h2{font-size:21px;line-height:1.2}
.arsenal-page.scroll-page>.collection-heading>b{
  padding:4px 10px;
  border:1px solid #bd9fe0;
  border-radius:9px;
  background:#3d2a71;
  color:#fff1d1;
  font-size:12px;
  line-height:1.2;
}
.arsenal-page.scroll-page>.filters{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  width:min(100%,920px);
  max-width:920px;
  margin:0 auto 12px;
  gap:7px;
}
.arsenal-page.scroll-page>.filters>button{
  min-width:0;
  min-height:38px;
  height:auto;
  margin:0;
  padding:6px 5px;
  border:1px solid #c4a7e4;
  border-radius:9px;
  background:#433272;
  color:#f7eafd;
  font-size:12px;
  line-height:1.15;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:inset 0 1px #a080c2;
}
.arsenal-page.scroll-page>.filters>button.active{
  border-color:#fff0b5;
  background:#ffdfa0;
  color:#4e3447;
  box-shadow:inset 0 2px #fff7db,0 2px #67406a;
}
.arsenal-page.scroll-page>.collection-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:none;
  justify-items:stretch;
  align-items:stretch;
  width:min(100%,920px);
  max-width:920px;
  height:auto;
  min-height:0;
  margin:0 auto;
  gap:12px;
  container-type:normal;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card,
.arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(-n+3),
.arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(n+4){
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  justify-self:stretch;
  align-self:stretch;
  width:100%;
  max-width:none;
  min-width:0;
  min-height:182px;
  max-height:none;
  height:auto;
  aspect-ratio:auto;
  margin:0;
  padding:30px 10px 10px;
  border:2px solid #7c5675;
  border-radius:14px;
  overflow:hidden;
  box-shadow:inset 0 2px #fff4d8,0 4px #392452;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card .weapon-art{
  position:static;
  display:block;
  width:82px;
  height:82px;
  max-width:100%;
  min-height:0;
  margin:0 auto 2px;
  transform:none;
  filter:drop-shadow(0 3px 2px #60436055);
}
.arsenal-page.scroll-page>.collection-grid>.collection-card>b{
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:auto;
  min-height:30px;
  margin:0;
  padding:0;
  color:inherit;
  font-size:14px;
  line-height:1.14;
  text-align:center;
  text-wrap:balance;
  overflow:visible;
  overflow-wrap:anywhere;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card>small{
  position:static;
  display:block;
  width:100%;
  height:auto;
  min-height:15px;
  margin:3px 0 0;
  padding:0;
  font-size:11px;
  line-height:15px;
  text-align:center;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.arsenal-page.scroll-page .collection-card .card-rarity{
  position:absolute;
  display:block;
  top:8px;
  left:50%;
  margin:0;
  padding:3px 8px;
  transform:translateX(-50%);
  border:1px solid #674e6699;
  border-radius:6px;
  color:#3f334d;
  font-size:10px;
  line-height:1.1;
  white-space:nowrap;
}
.arsenal-page.scroll-page .collection-card .copy-track{
  display:block;
  flex:none;
  width:calc(100% - 24px);
  height:16px;
  margin:7px auto 0;
  border-radius:6px;
}
.arsenal-page.scroll-page .collection-card .copy-track span{
  display:block;
  font-size:10px;
  line-height:14px;
  text-align:center;
}
.arsenal-page.scroll-page .collection-card .upgrade-callout{
  position:absolute;
  display:grid;
  place-items:center;
  top:7px;
  inset-inline-end:7px;
  width:23px;
  height:23px;
  border:1px solid #fff1b5;
  border-radius:7px;
  background:#ffda72;
  color:#583c28;
  font-size:17px;
  line-height:1;
}
.arsenal-page.scroll-page .collection-card.upgrade-ready:after{display:none}
.arsenal-page.scroll-page .collection-card .equipped-mark,
.arsenal-page.scroll-page .collection-card .lock-icon{
  position:absolute;
  top:auto;
  bottom:7px;
  inset-inline-end:7px;
  width:17px;
  height:17px;
  font-size:11px;
  line-height:14px;
}
.arsenal-page.scroll-page .mini-card .cost,
.arsenal-page.scroll-page .collection-card .cost{
  position:absolute;
  top:7px;
  inset-inline-start:7px;
  left:auto;
  right:auto;
  width:23px;
  min-width:23px;
  height:23px;
  margin:0;
  font-size:13px;
  line-height:1;
}
.arsenal-page.scroll-page .mini-card.upgrade-ready:after{
  top:7px;
  inset-inline-end:7px;
  width:23px;
  height:23px;
  font-size:17px;
}
.arsenal-page.scroll-page>.collection-pager{
  position:sticky;
  bottom:0;
  z-index:2;
  display:grid;
  grid-template-columns:44px minmax(60px,1fr) 44px;
  align-items:center;
  width:min(100%,210px);
  min-height:54px;
  margin:12px auto 0;
  padding:5px 9px;
  gap:8px;
  border:1px solid #b897d8;
  border-radius:13px;
  background:#3a285fef;
  box-shadow:0 4px 15px #2017358c;
}
.arsenal-page.scroll-page .collection-page-prev,
.arsenal-page.scroll-page .collection-page-next{
  display:grid;
  place-items:center;
  width:44px;
  min-width:44px;
  height:42px;
  min-height:42px;
  border:1px solid #f0d7ff;
  border-radius:9px;
  background:linear-gradient(#bc9cdd,#805ba7);
  color:#fff;
  box-shadow:inset 0 2px #e5cdf8,0 2px #281d46;
  font-size:26px;
}
.arsenal-page.scroll-page .collection-page-count{
  font-size:13px;
  color:#fff4d8;
  white-space:nowrap;
  direction:ltr;
}
.arsenal-page.scroll-page>.collection-grid>.collection-card:hover:not(:disabled){
  filter:brightness(1.05);
  transform:translateY(-2px);
}
.arsenal-page.scroll-page>.collection-grid>.collection-card:focus-visible{
  outline:3px solid #c8fbff;
  outline-offset:2px;
}
@media (min-width:1000px){
  .arsenal-page.scroll-page>.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:599px){
  .arsenal-page.scroll-page{padding:9px 10px 15px}
  .arsenal-page.scroll-page>.section-intro{margin-bottom:8px}
  .arsenal-page.scroll-page>.section-intro>.deck-edit-hint{font-size:11px;line-height:14px}
  .arsenal-page.scroll-page>.deck-strip{gap:4px;padding:5px;margin-bottom:12px}
  .arsenal-page.scroll-page>.deck-strip .mini-card{min-height:92px;padding:16px 2px 4px}
  .arsenal-page.scroll-page>.deck-strip .mini-card .weapon-art{width:48px;height:48px}
  .arsenal-page.scroll-page>.deck-strip .mini-card .mini-name{min-height:23px;font-size:9px;line-height:10px}
  .arsenal-page.scroll-page>.deck-strip .mini-card .mini-level{font-size:9px;line-height:11px}
  .arsenal-page.scroll-page>.collection-heading h2{font-size:18px}
  .arsenal-page.scroll-page>.filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .arsenal-page.scroll-page>.filters>button{min-height:36px;font-size:11px}
  .arsenal-page.scroll-page>.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .arsenal-page.scroll-page>.collection-grid>.collection-card{min-height:174px;padding-inline:5px}
  .arsenal-page.scroll-page>.collection-grid>.collection-card .weapon-art{width:73px;height:73px}
  .arsenal-page.scroll-page>.collection-grid>.collection-card>b{font-size:12px}
}
@media (min-width:700px) and (max-width:999px) and (orientation:landscape){
  .game-shell:has(>.bottom-nav){
    display:grid;
    grid-template-columns:88px minmax(0,1fr);
    grid-template-rows:52px minmax(0,1fr);
    width:100%;
    max-width:none;
  }
  .game-shell:has(>.bottom-nav)>.topbar{
    grid-column:2;
    grid-row:1;
    height:52px;
    min-height:52px;
    padding:7px 16px;
  }
  .game-shell:has(>.bottom-nav)>.wallet{
    grid-column:2;
    grid-row:1;
    position:absolute;
    top:8px;
    inset-inline-end:58px;
    inset-inline-start:auto;
    width:min(43%,300px);
    height:35px;
    min-height:0;
    padding:0 4px;
    gap:4px;
  }
  .game-shell:has(>.bottom-nav)>.wallet>button{height:31px;min-height:31px}
  .game-shell:has(>.bottom-nav)>.wallet .coin{width:29px;height:29px}
  .game-shell:has(>.bottom-nav)>.wallet b{font-size:13px}
  .game-shell:has(>.bottom-nav)>.lobby,
  .game-shell:has(>.bottom-nav)>.scroll-page,
  .game-shell:has(>.bottom-nav)>.lobby-primary{grid-column:2;grid-row:2;min-width:0}
  .game-shell:has(>.bottom-nav)>.bottom-nav{
    grid-column:1;
    grid-row:1/-1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    width:100%;
    max-width:none;
    height:100%;
    min-height:0;
    padding:8px 5px;
    margin:0;
    gap:6px;
    background:linear-gradient(#50367f,#30224f);
    border-inline-end:2px solid #b498cf55;
  }
  .game-shell:has(>.bottom-nav)>.bottom-nav>button{
    flex:none;
    width:74px;
    height:64px;
    min-height:0;
    margin:0;
    padding:3px 2px;
    gap:1px;
    border:2px solid #543b72;
    border-radius:12px;
    box-shadow:inset 0 2px #edddff,0 3px #332149;
  }
  .game-shell:has(>.bottom-nav)>.bottom-nav .main-tab{margin:0;transform:none}
  .game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:33px;height:33px}
  .game-shell:has(>.bottom-nav)>.bottom-nav b{font-size:10px;line-height:1.1}
}
@media (min-width:700px) and (max-width:999px) and (orientation:landscape) and (max-height:460px){
  .game-shell:has(>.bottom-nav){grid-template-rows:46px minmax(0,1fr)}
  .game-shell:has(>.bottom-nav)>.topbar{height:46px;min-height:46px;padding-block:4px}
  .game-shell:has(>.bottom-nav)>.wallet{top:5px}
  .game-shell:has(>.bottom-nav)>.bottom-nav>button{height:60px}
  .game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:30px;height:30px}
}


/* Menus scroll inside their frame; close and the main action stay in view. */
.modal-backdrop{padding:8px}
.modal,
.modal.settings-modal,
.modal.missions-modal,
.modal.daily-gift-modal{
  display:flex;
  flex-direction:column;
  max-height:calc(100dvh - 16px);
  overflow:hidden;
  padding:0;
}
.modal-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:25px 22px 20px;
  scrollbar-width:thin;
}
.modal-footer{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:10px 17px max(10px,env(safe-area-inset-bottom));
  border-top:1px solid #dbc0f577;
  background:linear-gradient(#76529c,#5b407d);
  box-shadow:0 -6px 14px #3c285755;
}
.modal-footer[hidden]{display:none}
.modal-footer>.btn{width:min(100%,460px);min-height:44px;margin:0}
.modal-close{
  position:absolute;
  top:8px;
  inset-inline-end:8px;
  left:auto;
  right:auto;
  z-index:5;
  width:38px;
  height:38px;
}
.modal-scroll>h2{padding-inline:28px}
.modal.daily-gift-modal .modal-scroll{padding:20px 18px 17px}
.modal.daily-gift-modal .modal-footer{padding:8px 14px}
.modal.daily-gift-modal .modal-footer>.login-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:740px;
  margin:0;
  padding:8px 12px;
}
.modal.daily-gift-modal .modal-footer .login-action>.btn{
  flex:none;
  width:min(42%,220px);
  min-height:42px;
  margin:0;
}
.modal.missions-modal .modal-scroll{padding:21px 18px}
.modal.settings-modal .modal-scroll{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-content:start;
  gap:10px 14px;
}
.modal.settings-modal .modal-scroll>h2{grid-column:1/-1}
.modal.settings-modal .modal-scroll>.form-field{grid-column:span 3}
.modal.settings-modal .modal-scroll>.setting-row{grid-column:span 2}
.modal.settings-modal .modal-scroll>.music-volume-control{grid-column:1/-1}
.modal.settings-modal .modal-scroll>.btn{grid-column:span 3;min-height:40px;margin:0}
.modal.settings-modal .modal-footer>.btn{width:100%}
.game-select{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}
.game-select-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:39px;
  padding:8px 11px;
  border:1px solid #cda7e7;
  border-radius:9px;
  background:#3d2b64;
  color:#fff7ff;
  text-align:start;
  font-size:14px;
}
.game-select-trigger:after{content:'▾';margin-inline-start:10px;color:#ffdd90}
.game-select-trigger[aria-expanded=true]:after{content:'▴'}
.game-select-options{
  display:flex;
  flex-direction:column;
  max-height:170px;
  overflow-y:auto;
  padding:4px;
  gap:3px;
  border:1px solid #cda7e7;
  border-radius:9px;
  background:#362451;
}
.game-select-options[hidden]{display:none}
.game-select-option{
  width:100%;
  min-height:36px;
  padding:7px 9px;
  border:1px solid transparent;
  border-radius:6px;
  background:#654785;
  color:#fff7ff;
  text-align:start;
  font-size:13px;
}
.game-select-option[aria-selected=true],
.game-select-option.is-selected{
  border-color:#fff1b3;
  background:#ffda90;
  color:#4e3447;
}
@media(max-width:599px){
  .modal-scroll{padding:22px 14px 16px}
  .modal.daily-gift-modal .modal-scroll{padding:16px 12px}
  .modal.settings-modal .modal-scroll{gap:9px 8px}
  .modal.settings-modal .modal-scroll>.form-field{grid-column:1/-1}
  .modal.settings-modal .modal-scroll>.setting-row{grid-column:1/-1}
  .modal.settings-modal .modal-scroll>.btn{grid-column:span 3}
  .modal-footer{padding-inline:11px}
  .modal.daily-gift-modal .modal-footer>.login-action{flex-direction:row;gap:9px;text-align:start}
  .modal.daily-gift-modal .modal-footer .login-action>b{font-size:12px}
  .modal.daily-gift-modal .modal-footer .login-action small{font-size:10px}
  .modal.daily-gift-modal .modal-footer .login-action>.btn{width:42%;font-size:12px}
}
@media(max-height:460px) and (min-width:600px){
  .modal-scroll{padding:15px 18px 12px}
  .modal-footer{padding-block:6px}
  .modal-footer>.btn{min-height:38px}
  .modal-close{top:5px;inset-inline-end:5px;width:32px;height:32px}
  .modal.settings-modal .modal-scroll{gap:5px 10px}
  .modal.settings-modal .modal-scroll>.form-field{margin:0}
  .modal.settings-modal .modal-scroll>.setting-row{padding:4px 0}
}


/* Place pagination beside the collection title, clear of weapon artwork. */
@media(min-width:600px){
  .arsenal-page.scroll-page{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto auto auto auto;
    align-content:start;
    gap:6px 8px;
  }
  .arsenal-page.scroll-page>.section-intro{grid-column:1/-1;grid-row:1;width:100%}
  .arsenal-page.scroll-page>.deck-strip{grid-column:1/-1;grid-row:2;justify-self:center}
  .arsenal-page.scroll-page>.collection-heading{
    grid-column:1;
    grid-row:3;
    justify-self:stretch;
    align-self:center;
    max-width:none;
    margin:0;
  }
  .arsenal-page.scroll-page>.filters{grid-column:1/-1;grid-row:4;justify-self:center}
  .arsenal-page.scroll-page>.collection-grid{grid-column:1/-1;grid-row:5;justify-self:center}
  .arsenal-page.scroll-page>.collection-pager{
    grid-column:2;
    grid-row:3;
    position:static;
    justify-self:end;
    align-self:center;
    width:164px;
    min-height:38px;
    margin:0;
    padding:2px 4px;
    grid-template-columns:34px minmax(48px,1fr) 34px;
    gap:4px;
  }
  .arsenal-page.scroll-page .collection-page-prev,
  .arsenal-page.scroll-page .collection-page-next{
    width:34px;
    min-width:34px;
    height:32px;
    min-height:32px;
    font-size:21px;
  }
}
@media(min-width:700px) and (max-height:460px){
  .arsenal-page.scroll-page{padding-block:5px 12px;gap:3px 7px}
  .arsenal-page.scroll-page>.section-intro{margin:0}
  .arsenal-page.scroll-page>.section-intro h1{font-size:19px;line-height:21px}
  .arsenal-page.scroll-page>.section-intro>.deck-edit-hint{font-size:10px;line-height:12px;min-height:12px;margin-top:0}
  .arsenal-page.scroll-page>.deck-strip{margin:0 auto 1px;padding:4px;gap:6px}
  .arsenal-page.scroll-page>.deck-strip .mini-card{min-height:91px;padding:14px 3px 3px}
  .arsenal-page.scroll-page>.deck-strip .mini-card .weapon-art{width:49px;height:49px}
  .arsenal-page.scroll-page>.deck-strip .mini-card .mini-name{min-height:17px;font-size:10px;line-height:10px}
  .arsenal-page.scroll-page>.deck-strip .mini-card .mini-level{font-size:9px;line-height:10px}
  .arsenal-page.scroll-page>.collection-heading{min-height:32px}
  .arsenal-page.scroll-page>.collection-heading h2{font-size:17px}
  .arsenal-page.scroll-page>.filters{margin:0 auto 2px;gap:5px}
  .arsenal-page.scroll-page>.filters>button{min-height:32px;font-size:10px;padding:4px}
  .arsenal-page.scroll-page>.collection-grid{gap:9px}
  .arsenal-page.scroll-page>.collection-grid>.collection-card{min-height:172px;padding:26px 7px 7px}
  .arsenal-page.scroll-page>.collection-grid>.collection-card .weapon-art{width:72px;height:72px}
  .arsenal-page.scroll-page>.collection-grid>.collection-card>b{min-height:27px;font-size:12px}
}


/* Account identity is shown as a value, not an editable player name. */
.player-name-readonly{
  display:flex;
  align-items:center;
  min-height:39px;
  padding:8px 11px;
  border:1px solid #cda7e7;
  border-radius:9px;
  background:#3d2b64;
  color:#fff7ff;
  font-size:14px;
  overflow-wrap:anywhere;
}
.player-name-note{
  display:block;
  color:#ead9fa;
  font-size:11px;
  line-height:1.35;
}
.game-select-trigger:after{display:none}
.game-select-chevron{
  flex:none;
  margin-inline-start:9px;
  color:#ffdd90;
  font-size:20px;
  line-height:1;
}
.game-select-trigger[aria-expanded=true] .game-select-chevron{transform:rotate(180deg)}
.game-select-trigger:focus-visible,
.game-select-option:focus-visible{
  outline:2px solid #c8fbff;
  outline-offset:2px;
}


/* Logical offsets must follow physical fallbacks so cost badges stay in the corner. */
.arsenal-page.scroll-page .mini-card .cost,
.arsenal-page.scroll-page .collection-card .cost{
  left:auto;
  right:auto;
  inset-inline-start:7px;
  inset-inline-end:auto;
}


.modal.settings-modal .modal-scroll>.btn{order:4}

@media (min-width:700px) and (max-width:999px) and (orientation:landscape){
  .game-shell:has(>.bottom-nav)>.bottom-nav{grid-row:1 / span 2}
  .game-shell:has(>.bottom-nav)>.welcome-strip{
    grid-column:2;
    grid-row:2;
    align-self:start;
    width:calc(100% - 24px);
    min-height:28px;
    max-height:30px;
    margin:4px 12px 0;
    padding:2px 8px;
    overflow:hidden;
    z-index:5;
    font-size:10px;
  }
  .game-shell:has(>.bottom-nav):has(>.welcome-strip)>.lobby{grid-row:2;padding-top:36px}
}

/* Each collection tile reserves space for its level and copy progress. */
.arsenal-page.scroll-page>.collection-grid>.collection-card,
.arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(-n+3),
.arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(n+4){
  min-height:200px;
  padding-bottom:12px;
}
.arsenal-page.scroll-page .collection-card .copy-track{
  width:calc(100% - 32px);
}
@media(max-width:599px){
  .arsenal-page.scroll-page{display:flex;flex-direction:column}
  .arsenal-page.scroll-page>.collection-pager{
    position:static;
    order:1;
    flex:none;
    margin:2px auto 10px;
  }
  .arsenal-page.scroll-page>.collection-grid{order:2;flex:none}
  .arsenal-page.scroll-page>.collection-grid>.collection-card{min-height:194px}
}
@media(min-width:700px) and (max-height:460px){
  .arsenal-page.scroll-page>.collection-grid>.collection-card,
  .arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(-n+3),
  .arsenal-page.scroll-page>.collection-grid>.collection-card:nth-child(n+4){min-height:188px}
}

/* Keep the trophy road in place when CLAIM becomes BATTLE after a road reward. */
@media (min-width:600px) and (min-height:541px){
 .lobby-controls>.battle-button,.lobby-controls>.battle-button.claim-ready{
  display:flex;flex:none;flex-direction:row;align-items:center;justify-content:center;
  gap:8px;height:80px;min-height:80px;max-height:80px;padding:7px 12px;
 }
 .lobby-controls>.battle-button.claim-ready .primary-action-label{flex:none;white-space:nowrap}
 .lobby-controls>.battle-button.claim-ready .primary-action-reward{
  flex:0 1 240px;width:auto;max-width:65%;min-width:0;font-size:11px;line-height:1.1;gap:1px 3px;
 }
 .lobby-controls>.claim-context{display:block;flex:none;min-height:17px;height:17px;max-height:17px;overflow:hidden}
}

/* Match rewards remain readable in embedded and full-size CrazyGames windows. */
.result-page.offer-page{display:block;flex:1 1 0;min-width:0;min-height:0;max-width:none;width:100%;overflow-x:hidden;overflow-y:auto;padding:14px clamp(12px,2.5vw,30px) 22px;scroll-padding-bottom:24px;background:radial-gradient(ellipse at 50% 22%,#c5a5eb55,transparent 62%)}
.offer-inner{display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:9px;width:min(100%,930px);min-height:100%;margin:0 auto;text-align:center}
.offer-eyebrow{display:inline-block;padding:5px 12px;border:1px solid #fff1a5;border-radius:999px;background:#4d397c;color:#ffecaa;font-size:11px;font-weight:900;letter-spacing:.08em;line-height:1.15}
.offer-page h1{max-width:900px;margin:0;color:#e5ffa6;font-size:clamp(24px,3vw,36px);line-height:1.13;text-wrap:balance}
.offer-page .offer-intro,.offer-page .offer-note{max-width:780px;margin:0;color:#f5ebff;font-size:13px;line-height:1.35;text-wrap:pretty}
.offer-rewards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,670px);margin:2px 0}
.offer-reward{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:68px;padding:9px 13px;border:2px solid #ddbfed;border-radius:15px;background:linear-gradient(135deg,#50377f,#694996);box-shadow:inset 0 2px #ffffff32,0 3px #3e295f;text-align:start}
.offer-reward.gold{border-color:#ffdf91;background:linear-gradient(135deg,#594071,#826057)}
.offer-reward.cores{border-color:#bbadff}
.offer-reward>.coin{width:46px;height:46px;font-size:31px}
.offer-reward>div{min-width:0}
.offer-reward small{display:block;color:#f2e2ff;font-size:11px;line-height:1.2}
.offer-reward strong{display:block;margin-top:2px;color:#fff7cf;font-size:21px;line-height:1.15;overflow-wrap:anywhere}
.offer-page h2{display:block;margin:3px 0 0;color:#fff4c5;font-size:18px;line-height:1.2;text-wrap:balance}
.offer-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;justify-content:center;width:min(100%,750px);margin:0}
.offer-weapon-card{display:flex;flex-direction:column;align-items:center;min-width:0;min-height:116px;padding:6px 4px 7px;border:2px solid #f9dbac;border-radius:12px;background:linear-gradient(#ffe0b6,#e8b78c);box-shadow:inset 0 2px #fff3d3,0 3px #4b3469;color:#533a4e}
.offer-weapon-card>.weapon-art{display:block;width:57px;height:57px;max-width:100%;flex:none}
.offer-weapon-card b{display:flex;align-items:center;justify-content:center;flex:1;width:100%;min-height:24px;font-size:11px;line-height:1.1;overflow-wrap:anywhere;text-wrap:balance}
.offer-weapon-card strong{font-size:11px;line-height:1.15;color:#4c3558}
.offer-page .offer-note{font-size:11px}
.offer-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,650px);margin-top:4px}
.offer-choices>.offer-action.btn{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;width:100%;min-height:47px;margin:0;padding:8px 10px;font-size:16px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.offer-choices>.offer-action:only-child{grid-column:1/-1;width:min(100%,320px);justify-self:center}

/* Boost progress opens a paid upgrade route; it never levels a weapon itself. */
.upgrade-results .boost-explainer{display:block;max-width:760px;color:#fff4dc;font-size:13px;line-height:1.35;text-align:center}
.upgrade-results .postmatch-card.boost-ready .result-weapon{border-color:#d7f79b;box-shadow:inset 0 2px #fff8d6,0 0 0 2px #b9ec78,0 4px #513666}
.upgrade-results .postmatch-card.boost-ready .boost-value{color:#d8ffb0;font-weight:900}
.upgrade-results .postmatch-card>.boost-action{white-space:normal;overflow-wrap:anywhere;line-height:1.2;padding-inline:3px}
.upgrade-results .boost-value{display:block;min-height:1.2em}
.detail-page .inspector-upgrade{display:block;min-width:0;padding:13px 14px 15px}
.detail-page .upgrade-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
.detail-page .upgrade-paths>.copy-progress,.detail-page .upgrade-paths>.boost-progress{min-width:0;min-height:48px;height:auto;margin:0;border:2px solid #87657d;border-radius:11px;background:#4e3c5c;box-shadow:inset 0 2px #ffffff20;overflow:hidden}
.detail-page .upgrade-paths>.copy-progress{height:48px}
.detail-page .upgrade-paths>.copy-progress i{height:100%;min-width:0}
.detail-page .upgrade-paths>.copy-progress b{display:flex;align-items:center;justify-content:center;inset:3px 5px;margin:0;color:#fff;font-size:12px;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.detail-page .boost-progress{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 9px}
.detail-page .boost-progress .boost-line{width:100%;height:9px;margin:0}
.detail-page .boost-progress b{color:#f5ecff;font-size:12px;line-height:1.2;text-align:center}
.detail-page .upgrade-rule{margin:8px 0 10px;color:#5c3f50;font-size:12px;line-height:1.35;text-align:center}
.detail-page .upgrade-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px}
.detail-page .upgrade-buttons>.btn,.detail-page .inspector-upgrade .upgrade-buttons>.btn{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;max-width:none;width:100%;min-height:45px;margin:0;padding:7px 8px;font-size:14px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
.detail-page .upgrade-buttons>.btn .coin{width:20px;height:20px;font-size:15px}
.market-offer .market-description{max-width:26ch;margin:5px auto 7px;color:#503d58;font-size:11px;line-height:1.3;text-align:center;text-wrap:pretty}
.outcome-page .outcome-timer:has(.btn){display:block!important;width:min(100%,440px);height:auto;min-height:42px;margin:8px auto 0;background:none;animation:none}
.outcome-page .outcome-timer:has(.btn)::after{display:none}
.outcome-page .outcome-timer>.btn{width:100%;min-height:42px;white-space:normal}

@media(max-height:600px) and (min-width:600px){
 .result-page.offer-page{padding-block:8px 12px}
 .offer-inner{gap:5px}
 .offer-eyebrow{padding:3px 10px;font-size:10px}
 .offer-page h1{font-size:clamp(21px,2.6vw,29px)}
 .offer-page .offer-intro{font-size:11px;line-height:1.2}
 .offer-rewards{gap:8px;margin:0}
 .offer-reward{min-height:53px;padding:5px 9px;gap:8px}
 .offer-reward>.coin{width:35px;height:35px;font-size:25px}
 .offer-reward small{font-size:10px}
 .offer-reward strong{font-size:17px}
 .offer-page h2{font-size:15px;margin:0}
 .offer-card-grid{gap:7px}
 .offer-weapon-card{min-height:88px;padding:3px 3px 4px}
 .offer-weapon-card>.weapon-art{width:41px;height:41px}
 .offer-weapon-card b{min-height:20px;font-size:10px}
 .offer-weapon-card strong{font-size:10px}
 .offer-page .offer-note{font-size:10px;line-height:1.2}
 .offer-choices{margin-top:1px}
 .offer-choices>.offer-action.btn{min-height:38px;font-size:13px;padding:5px 8px}
 .upgrade-results .boost-explainer{font-size:11px;line-height:1.25}
}
@media(max-width:599px){
 .result-page.offer-page{padding:12px 12px 20px}
 .offer-inner{gap:9px;justify-content:flex-start;min-height:0}
 .offer-page h1{font-size:clamp(24px,7vw,31px)}
 .offer-page .offer-intro{font-size:12px}
 .offer-reward{min-height:66px;padding:8px;gap:7px}
 .offer-reward>.coin{width:35px;height:35px;font-size:24px}
 .offer-reward strong{font-size:15px}
 .offer-reward small{font-size:10px}
 .offer-card-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
 .offer-weapon-card{grid-column:span 2;min-height:110px;padding:5px 3px}
 .offer-weapon-card:nth-child(4){grid-column:2/span 2}
 .offer-weapon-card>.weapon-art{width:51px;height:51px}
 .offer-weapon-card b{font-size:10px}
 .offer-weapon-card strong{font-size:10px}
 .offer-choices{grid-template-columns:1fr;gap:8px;width:min(100%,390px)}
 .offer-choices>.offer-action.btn{min-height:47px;font-size:15px}
 .offer-choices>.offer-action:only-child{grid-column:1}
 .upgrade-results .boost-explainer{font-size:11px}
 .detail-page .upgrade-buttons{grid-template-columns:1fr}
}
@media(max-width:370px){
 .offer-rewards{grid-template-columns:1fr;gap:6px;width:min(100%,270px)}
 .offer-reward{min-height:53px}
 .offer-page h2{font-size:16px}
 .offer-weapon-card{min-height:105px}
 .offer-weapon-card>.weapon-art{width:44px;height:44px}
 .detail-page .upgrade-paths{gap:6px}
 .detail-page .upgrade-paths>.copy-progress b,.detail-page .boost-progress b{font-size:10px}
 .detail-page .upgrade-rule{font-size:11px}
}



/* The post-match choice ends with one centered Continue action. */
.upgrade-results .result-actions>.btn{flex:0 1 340px;width:100%;max-width:100%}


/* 1.10.11 CrazyGames review: viewport controls, themed overflow and clear spacing. */
#app,#app *,#modal-root,#modal-root *{scrollbar-width:thin;scrollbar-color:#c49be4 #3c2a61}
#app ::-webkit-scrollbar,#modal-root ::-webkit-scrollbar{display:block;width:9px;height:9px}
#app ::-webkit-scrollbar-track,#modal-root ::-webkit-scrollbar-track{background:#3c2a61;border-radius:8px}
#app ::-webkit-scrollbar-thumb,#modal-root ::-webkit-scrollbar-thumb{background:#c49be4;border:2px solid #3c2a61;border-radius:8px}
#app ::-webkit-scrollbar-thumb:hover,#modal-root ::-webkit-scrollbar-thumb:hover{background:#ffe099}
#app ::-webkit-scrollbar-corner,#modal-root ::-webkit-scrollbar-corner{background:#3c2a61}
#app.game-shell{height:100dvh;max-height:100dvh;min-height:0;overflow:hidden}
.modal-backdrop>.modal{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:calc(100dvh - 24px)}
.modal-header{display:flex;justify-content:flex-end;flex:none;min-height:52px;padding:6px 10px 2px}
.modal-header>.modal-close{position:static;inset:auto;transform:none;flex:none;width:40px;height:40px;margin:0}
.modal-backdrop .modal-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.modal-backdrop .modal-footer{flex:none}
/* The selected card never moves into the instruction row. */
.in-combat .battle-hand-area{justify-content:flex-start;gap:12px;overflow:auto;overscroll-behavior:contain}
.in-combat .battle-hand-area>#place-hint{position:static;flex:0 0 auto;height:auto;min-height:2.8em;line-height:1.4;margin:0;padding:0;overflow-wrap:anywhere}
.in-combat .battle-hand-area>.hand{flex:0 0 auto;margin:0;overflow:visible}
.in-combat .hand-card.selected{transform:none}
.in-combat .battle-hand-area>.energy-row{flex:none;margin-top:0}
/* All selected navigation items use one treatment, including Battle. */
.game-shell>.bottom-nav>button.active,.game-shell>.bottom-nav>button.main-tab.active{background:linear-gradient(#fff0bd,#ffd17c);color:#634454}
/* Actions are siblings of the scroller so long rewards cannot push them below the fold. */
.viewport-page{display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;width:100%;overflow:hidden}
.viewport-page>.scroll-page,.viewport-page>.result-page{flex:1 1 0;min-height:0;max-height:none;width:100%;overflow:auto;overscroll-behavior:contain;margin:0;scroll-padding-block:12px}
.result-viewport>.upgrade-results{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:12px 20px;gap:10px}
.result-viewport>.upgrade-results>*{flex-shrink:0}
.offer-viewport .offer-inner{min-height:0;justify-content:flex-start}
.viewport-page>.viewport-actions{display:block;flex:0 0 auto;height:auto;min-height:0;max-height:50%;width:100%;max-width:none;margin:0;padding:8px 16px max(10px,env(safe-area-inset-bottom));overflow:auto;border-top:1px solid #c9a6e470;background:#503977;box-shadow:0 -4px 16px #281c4033}
.viewport-actions .result-actions{position:static;display:flex;justify-content:center;width:100%;margin:0 auto;padding:0}
.viewport-actions .result-actions>.btn{min-height:44px;margin:0}
.viewport-actions.offer-page .offer-choices{width:min(100%,650px);margin:0 auto;grid-template-columns:repeat(2,minmax(0,1fr))}
.viewport-actions.offer-page .offer-choices>.btn{min-height:44px;margin:0}
.viewport-actions.detail-page .inspector-upgrade{width:min(100%,1040px);margin:0 auto;padding:0;background:transparent;border:0}
.viewport-actions.detail-page .upgrade-rule{color:#fff0dc;margin:5px 0}
.viewport-actions.detail-page .upgrade-paths>.copy-progress,.viewport-actions.detail-page .upgrade-paths>.boost-progress{min-height:34px;height:34px}
.viewport-actions.detail-page .upgrade-buttons{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
/* Reserve header room for Settings even when wallet and profile share a row. */
.game-shell>.topbar{position:relative;padding-inline-end:14px;gap:12px}
.game-shell>.topbar>.settings-btn{position:relative;flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;line-height:1;padding:0;z-index:6}
.game-shell>.topbar>.profile{min-width:0;max-width:calc(100% - 60px)}
@media(min-width:600px) and (max-height:650px){
 .detail-viewport>.detail-page{padding:6px 16px 12px;max-width:none}
 .detail-viewport .detail-top{position:static;min-height:38px;padding:0;margin:0 0 5px}
 .detail-viewport .weapon-hero{min-height:90px;height:auto;padding:4px 0;margin:0}
 .detail-viewport .weapon-hero>.weapon-art{width:100px;height:100px}
 .detail-viewport .weapon-hero h1{font-size:25px;margin:0 0 4px}
 .detail-viewport .weapon-hero .hero-level{margin-top:4px}
 .detail-viewport .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}
 .detail-viewport .stat-tile{min-height:60px;padding:6px}
 .detail-viewport .stat-tile b{font-size:18px}
 .detail-viewport .stat-tile small{font-size:11px}
 .viewport-actions.detail-page .upgrade-rule{font-size:11px;line-height:1.2}
 .viewport-actions.detail-page .upgrade-buttons>.btn{min-height:40px}
 .game-shell>.wallet{inset-inline-end:76px}
}
@media(max-width:599px){
 .viewport-page>.viewport-actions{padding-inline:12px}
 .viewport-actions.offer-page .offer-choices{grid-template-columns:1fr;gap:7px}
 .result-viewport>.upgrade-results{padding:10px 12px}
 .result-viewport>.upgrade-results h1{font-size:28px;margin:0}
 .result-viewport .postmatch-grid{margin-block:4px;gap:10px}
 .in-combat .battle-hand-area{gap:7px}
 .in-combat .battle-hand-area>#place-hint{min-height:1.4em;font-size:11px}
}
@media(min-width:600px) and (max-height:540px){
 .in-combat .battle-hand-area{gap:9px;padding:10px}
 .in-combat .battle-hand-area>.hand{gap:9px}
 .in-combat .battle-hand-area>#place-hint{font-size:11px}
}
@media(min-width:600px) and (max-height:650px){
 .detail-viewport .weapon-hero{min-height:88px;height:88px}
 .detail-viewport .weapon-hero>.weapon-art{width:82px;height:82px}
 .detail-viewport .weapon-hero>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;gap:4px 12px}
 .detail-viewport .weapon-hero h1{grid-column:1/-1;font-size:23px;margin:0}
 .detail-viewport .weapon-hero .role-chip{grid-column:1;grid-row:2;margin:0}
 .detail-viewport .weapon-hero .hero-level{grid-column:2;grid-row:2;margin:0;font-size:11px}
 .detail-viewport .weapon-hero .hero-energy{grid-column:2;grid-row:3;margin:0}
}

/* Review 1.10.12: reserved navigation/tab rows, no floating header hit area. */
.detail-viewport>.detail-top{position:static;inset:auto;display:flex;align-items:center;gap:10px;flex:none;min-height:48px;height:auto;margin:0;padding:4px 16px;z-index:auto;background:none}
.detail-viewport>.detail-top .rarity-pill{margin-inline-start:auto}
.detail-viewport>.detail-top .detail-close{position:static;inset:auto;margin:0;width:40px;height:40px;flex:none}
.detail-viewport>.inspector-tabs{position:static;display:flex;flex:none;gap:4px;margin:0 16px 6px;padding:0;min-height:44px;border:2px solid #573e72;border-radius:10px;overflow:hidden;background:#644987}
.detail-viewport>.inspector-tabs>button{flex:1;min-width:0;min-height:44px;padding:6px 12px;font-size:16px;background:#795b98;color:#fcefff}
.detail-viewport>.inspector-tabs>button.active{background:linear-gradient(#ffe4af,#efc587);color:#54384e}
.detail-viewport>.detail-page.scroll-page{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);grid-template-rows:auto;grid-auto-rows:auto;align-content:start;align-items:start;gap:16px;padding:8px 16px 16px}
.detail-viewport>.detail-page.scroll-page>.weapon-hero{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:0;height:auto;margin:0;padding:8px;gap:8px;text-align:center}
.detail-viewport>.detail-page.scroll-page>.weapon-hero>div{display:block;min-width:0}
.detail-viewport>.detail-page.scroll-page>.weapon-hero h1{font-size:clamp(21px,2.7vw,30px);margin:0 0 5px}
.detail-viewport>.detail-page.scroll-page>.weapon-hero>.weapon-art{width:150px;height:150px;max-width:100%}
.detail-viewport>.detail-page.scroll-page>.inspector-panel{grid-column:2;grid-row:1;width:100%;min-width:0;align-self:start;margin:0}
.detail-viewport .inline-swap{position:static;min-width:0;margin:0;padding:12px;background:#503873;border-radius:12px}
.detail-viewport .inline-swap>b{display:block;margin-bottom:10px}
.detail-viewport .inline-swap>.deck-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;width:100%;max-width:none;margin:0;padding:6px;gap:10px;background:none}
.detail-viewport .inline-swap .mini-card,.detail-viewport .inline-swap .mini-card:last-child{position:relative;grid-column:auto;grid-row:auto;display:flex;flex-direction:column;width:100%;height:auto;min-height:116px;aspect-ratio:auto;margin:0;padding:20px 3px 6px}
.detail-viewport .inline-swap .mini-card .weapon-art{position:static;transform:none;width:65px;height:65px;max-width:100%;margin:0}
.detail-viewport .inline-swap .mini-name{position:static;display:block;width:100%;height:auto;min-height:24px;font-size:11px;line-height:12px;white-space:normal;overflow-wrap:anywhere}
.detail-viewport .inline-swap .mini-level{position:static;transform:none;display:block;margin:3px 0 0}
@media(max-width:599px){
 .detail-viewport>.detail-page.scroll-page{display:flex;flex-direction:column;gap:8px;padding:6px 12px 12px}
 .detail-viewport>.detail-page.scroll-page>.weapon-hero{width:100%;flex-direction:row;justify-content:space-between;text-align:start;padding:0}
 .detail-viewport>.detail-page.scroll-page>.weapon-hero>.weapon-art{width:90px;height:90px}
 .detail-viewport>.inspector-tabs{margin-inline:12px}
}
@media(max-height:500px){
 .detail-viewport>.detail-top{min-height:42px;padding-block:1px}
 .detail-viewport>.detail-page.scroll-page>.weapon-hero>.weapon-art{width:82px;height:82px}
 .detail-viewport>.detail-page.scroll-page>.weapon-hero h1{font-size:21px}
 .detail-viewport .inline-swap .mini-card{min-height:92px;padding-top:16px}
 .detail-viewport .inline-swap .mini-card .weapon-art{width:44px;height:44px}
}

.detail-viewport .inline-swap{color:#fff0dc}
.detail-viewport .inline-swap .upgrade-callout{display:none}
.detail-viewport .boost-progress[role=button]{cursor:pointer}
.detail-viewport .boost-progress[role=button]:focus-visible{outline:3px solid #b2ffff;outline-offset:2px}
@media(min-width:700px){.detail-viewport .inline-swap>.deck-strip{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}}
.detail-viewport>.detail-page.scroll-page>.weapon-hero,.detail-viewport>.detail-page.scroll-page>.inspector-panel{flex-shrink:0;overflow:visible}
.detail-viewport>.detail-page.scroll-page{grid-template-rows:max-content}
@media(min-width:700px) and (max-height:500px){
 .detail-viewport>.detail-page.scroll-page>.weapon-hero{flex-direction:row;text-align:start;gap:6px;padding:4px}
 .detail-viewport>.detail-page.scroll-page>.weapon-hero>div{flex:1;min-width:0}
 .detail-viewport>.detail-page.scroll-page>.weapon-hero .role-chip{font-size:10px}
 .detail-viewport .inline-swap{padding:6px}
 .detail-viewport .inline-swap>b{margin:0 0 6px;font-size:14px;line-height:18px}
 .detail-viewport .inline-swap>.deck-strip{padding:2px}
 .detail-viewport .inline-swap .mini-card,.detail-viewport .inline-swap .mini-card:last-child{min-height:96px;padding:14px 2px 3px}
 .detail-viewport .inline-swap .mini-card .weapon-art{width:38px;height:38px}
 .detail-viewport .inline-swap .mini-level{font-size:9px;line-height:10px;padding:1px 3px}
}

/* Desktop navigation stays on the physical left, independently of iframe size.
   Mobile/tablet keep their existing responsive rules. Only shells with nav change. */
html[data-device=desktop] .game-shell:has(>.bottom-nav){
 display:grid;direction:ltr;width:100%;max-width:none;height:100dvh;max-height:none;
 grid-template-columns:112px minmax(0,1fr);grid-template-rows:88px minmax(0,1fr);
 border:0;min-height:0;
}
html[dir=rtl][data-device=desktop] .game-shell:has(>.bottom-nav)>*{direction:rtl}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.topbar{grid-column:2;grid-row:1;min-width:0}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.lobby,
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.scroll-page{grid-column:2;grid-row:2;min-width:0;min-height:0}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav{
 grid-column:1;grid-row:1/-1;display:flex;flex-direction:column;align-items:stretch;
 justify-content:flex-start;gap:12px;height:100%;min-height:0;width:100%;max-width:none;
 padding:20px 11px;align-self:stretch;overflow-x:hidden;overflow-y:auto;
 overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:12px;
 background:linear-gradient(#50367f,#30224f);border-right:2px solid #b498cf55;border-left:0;
}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav::-webkit-scrollbar{display:block;width:6px}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav>button{
 flex:none;flex-direction:column;height:88px;min-height:64px;width:100%;min-width:0;
 border:2px solid #543b72;border-radius:15px;margin:0;padding:6px 3px;gap:4px;
 box-shadow:inset 0 3px #edddff,0 4px #332149;
}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav>button:first-child{margin-top:auto}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav>button:last-child{margin-bottom:auto}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav b{font-size:13px;overflow-wrap:anywhere}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:50px;height:50px}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav .active{transform:none}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.lobby-primary{display:none}
html[data-device=desktop] .game-shell:has(>.bottom-nav):has(>.welcome-strip){grid-template-rows:88px auto minmax(0,1fr)}
html[data-device=desktop] .game-shell:has(>.bottom-nav)>.welcome-strip{grid-column:2;grid-row:2}
html[data-device=desktop] .game-shell:has(>.bottom-nav):has(>.welcome-strip)>.lobby{grid-row:3}
/* The smaller content area must scroll, never shrink grid tracks under cards. */
html[data-device=desktop] .arsenal-page.scroll-page{grid-template-rows:repeat(5,max-content)}
html[data-device=desktop] .arsenal-page.scroll-page>.deck-strip,
html[data-device=desktop] .arsenal-page.scroll-page>.collection-grid{height:max-content;flex-shrink:0}

@media(max-width:999px),(max-height:540px){
 html[data-device=desktop] .game-shell:has(>.bottom-nav){grid-template-columns:88px minmax(0,1fr);grid-template-rows:56px 40px minmax(0,1fr)}
 html[data-device=desktop] .game-shell:has(>.bottom-nav):has(>.welcome-strip){grid-template-rows:56px 40px auto minmax(0,1fr)}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.topbar{height:56px;min-height:0;padding:6px 14px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.topbar .avatar{width:38px;height:38px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.topbar .profile b{font-size:16px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.wallet{grid-column:2;grid-row:2;position:static;inset:auto;width:100%;height:40px;min-height:0;padding:3px 14px 7px;gap:10px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.wallet>button{height:29px;min-height:0}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.wallet .coin{width:30px;height:30px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.wallet b{font-size:14px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.lobby,
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.scroll-page{grid-row:3}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.welcome-strip{grid-row:3}
 html[data-device=desktop] .game-shell:has(>.bottom-nav):has(>.welcome-strip)>.lobby{grid-row:4}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav{gap:10px;padding:12px 8px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav>button{height:72px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav .reward-art{width:38px;height:38px}
 html[data-device=desktop] .game-shell:has(>.bottom-nav)>.bottom-nav b{font-size:11px}
 html[data-device=desktop] .game-shell>.lobby{overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
 html[data-device=desktop] .game-shell>.lobby>.lobby-controls{align-self:stretch;min-height:265px;justify-content:center}
 html[data-device=desktop] .lobby-controls>.battle-button{display:flex;align-items:center;justify-content:center;flex:none;min-height:48px;height:auto;font-size:25px}
}
@media(max-width:699px){
 html[data-device=desktop] .game-shell>.lobby{display:flex;flex-direction:column;align-items:stretch;padding:4px 8px 14px;gap:8px}
 html[data-device=desktop] .game-shell>.lobby>.lobby-scene{width:100%;flex:1 0 190px;min-height:190px}
 html[data-device=desktop] .game-shell>.lobby>.lobby-controls{width:100%;max-width:none;flex:0 0 auto;padding:4px 10px;gap:8px}
}

/* Resource counters stay in normal flow, including pinned offer/detail pages.
   Reset physical AND logical offsets left by older responsive/RTL rules. */
#app.game-shell>.wallet{
 position:relative;inset:auto;top:auto;right:auto;bottom:auto;left:auto;
 inset-inline:auto;inset-block:auto;transform:none;
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 width:100%;max-width:100%;min-width:0;height:44px;min-height:44px;
 margin:0;padding:4px 14px 8px;gap:10px;flex:0 0 44px;align-items:center;
}
#app.game-shell>.wallet>button{
 display:grid;grid-template-columns:28px minmax(0,1fr) 14px;
 align-items:center;gap:5px;min-width:0;width:100%;height:32px;min-height:32px;
 padding:0 7px 0 2px;overflow:hidden;
}
#app.game-shell>.wallet .reward-art.coin{
 width:28px;height:28px;min-width:28px;margin:0;transform:none;
}
#app.game-shell>.wallet b{
 min-width:0;font-size:clamp(11px,1.4vw,17px);line-height:1.1;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end;
}
#app.game-shell>.wallet .wallet-plus{font-size:17px;line-height:1;text-align:center}
#app.game-shell>.topbar{flex-shrink:0}
#app.game-shell:not(:has(>.bottom-nav)){display:flex;flex-direction:column}
html[data-device=desktop] #app.game-shell:has(>.bottom-nav){
 grid-template-rows:56px 44px minmax(0,1fr);
}
html[data-device=desktop] #app.game-shell:has(>.bottom-nav)>.topbar{
 grid-column:2;grid-row:1;height:56px;min-height:0;padding:6px 14px;
}
html[data-device=desktop] #app.game-shell:has(>.bottom-nav)>.wallet{grid-column:2;grid-row:2}
html[data-device=desktop] #app.game-shell:has(>.bottom-nav)>.lobby,
html[data-device=desktop] #app.game-shell:has(>.bottom-nav)>.scroll-page{grid-column:2;grid-row:3}
html[data-device=desktop] #app.game-shell:has(>.bottom-nav):has(>.welcome-strip){
 grid-template-rows:56px 44px auto minmax(0,1fr);
}
html[data-device=desktop] #app.game-shell:has(>.bottom-nav)>.welcome-strip{grid-column:2;grid-row:3}
html[data-device=desktop] #app.game-shell:has(>.bottom-nav):has(>.welcome-strip)>.lobby{grid-row:4}

/* The HUD track takes its actual content height; a min-height alone cannot
   enlarge a fixed grid track. The Time Coin is never absolutely positioned. */
#app.in-combat .battle-screen{grid-template-rows:max-content 9px minmax(0,1fr)}
#app.in-combat .battle-hud{
 display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 height:auto;min-height:74px;padding:6px 12px;gap:8px;align-items:center;
}
#app.in-combat .combatant{
 min-width:0;max-width:240px;width:100%;height:auto;min-height:0;
 grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;
 column-gap:5px;padding:4px 6px;
}
#app.in-combat .combatant.red{justify-self:end}
#app.in-combat .combatant .combat-avatar{width:28px;height:34px}
#app.in-combat .combatant>b{max-width:100%;font-size:clamp(10px,1.5vw,16px)}
#app.in-combat .combatant>strong{font-size:clamp(17px,2.3vw,26px)}
#app.in-combat .battle-clock{
 display:grid;grid-template-columns:24px minmax(0,1fr);
 grid-template-areas:'pause clock' 'pause phase' 'token token';
 align-items:center;justify-items:center;gap:2px 4px;min-width:70px;
}
#app.in-combat .battle-clock>button[data-action=pause]{
 grid-area:pause;position:static;inset:auto;transform:none;margin:0;
}
#app.in-combat .battle-clock>b{grid-area:clock;font-size:22px;line-height:1}
#app.in-combat .battle-clock>small{grid-area:phase;margin:0;font-size:9px;line-height:1.2}
#app.in-combat .battle-clock>button.time-token-control{
 grid-area:token;position:static;inset:auto;transform:none;margin:2px 0 0;
 width:auto;min-height:28px;height:28px;padding:2px 5px;white-space:nowrap;
}
#app.in-combat .time-token-control .time-coin{width:20px;height:20px}
#app.in-combat .time-token-control b{font-size:12px}
#app.in-combat .time-token-control small{margin:0;font-size:10px}
html,body,#app,#modal-root{overscroll-behavior:none}
.shop-page{overscroll-behavior:contain;scroll-behavior:auto}
@media(max-width:420px){
 #app.game-shell>.wallet{padding-inline:8px;gap:5px}
 #app.game-shell>.wallet>button{grid-template-columns:23px minmax(0,1fr) 11px;gap:2px;padding-inline:1px 4px}
 #app.game-shell>.wallet .reward-art.coin{width:23px;height:23px;min-width:23px}
 #app.in-combat .battle-hud{padding-inline:6px;gap:4px}
 #app.in-combat .combatant{grid-template-columns:23px minmax(0,1fr);column-gap:3px;padding-inline:3px}
 #app.in-combat .combatant .combat-avatar{width:23px;height:29px}
}

.quick-charge-shop{margin:16px 0;padding:18px;border:2px solid #af94e3;border-radius:17px;background:linear-gradient(130deg,#43316c,#242744);box-shadow:0 5px #171b35;color:#fff}
.quick-charge-shop header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.quick-charge-shop h2{margin:3px 0;font-size:24px}.quick-charge-shop header small{font-size:11px;color:#ddd4fa}.quick-charge-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#7860b4;color:#edff8a;font-size:38px}.quick-charge-owned{margin-inline-start:auto;font-size:27px}.quick-charge-owned small{display:block;text-align:center}.quick-charge-shop p{font-size:14px;line-height:1.5;margin:12px 0}.quick-charge-offer{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:14px 0}.quick-charge-offer>b{font-size:24px;color:#edff8a}.quick-charge-offer .btn{min-height:44px;flex:1}.quick-charge-free{color:#d9dfed}.quick-charge-shop>small{display:block;color:#e4ddf5}
.quick-charge-control{margin-top:9px;min-width:0;width:100%;text-align:center}.quick-charge-control>button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;border:1px solid #b5a5ec;border-radius:9px;background:#554486;color:#fff;padding:6px 8px;font:inherit}.quick-charge-control>button>span{color:#edff8a;font-size:22px;line-height:1}.quick-charge-control b{font-size:12px}.quick-charge-control strong{background:#29233f;border-radius:5px;padding:2px 6px;font-size:12px}.quick-charge-control button small{font-size:11px;color:#efffc8}.quick-charge-control>small{display:block;margin-top:4px;font-size:10px;line-height:1.3;color:#d8dbef}.quick-charge-control button:disabled{opacity:.65}.quick-charge-control button:focus-visible{outline:3px solid #f7f7a4;outline-offset:2px}
@media(max-height:500px) and (min-width:600px){
 .battle-hand-area{overflow-y:auto;overscroll-behavior:contain}
 #app.in-combat .hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-height:0;align-content:start}
 #app.in-combat .hand-card{width:100%;max-width:none;min-width:0;height:94px;padding:4px 2px}
 #app.in-combat .hand-card .weapon-art{width:100%;height:48px}
 #app.in-combat .hand-card b{font-size:9px;white-space:normal;line-height:1.1;min-height:20px}
 #app.in-combat .hand-card small{font-size:9px;margin-top:2px}
 .quick-charge-control{margin-top:6px}.quick-charge-control>button{min-height:38px;padding:4px}.quick-charge-control>small{font-size:9px}
}
