:root{--bg:#101f29;--panel:#182b35;--line:#30434c;--mint:#b6f5d5;--muted:#91a6ae;--orange:#ffb17c;--text:#edf5ef}*{box-sizing:border-box}body{margin:0;background:#0b151d;color:var(--text);font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:4px}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}.shell{max-width:1060px;margin:auto;background:var(--bg);min-height:100dvh;padding:0 42px}header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none;font-size:21px;font-weight:800;letter-spacing:3px;line-height:1.1}.brand-icon{font-size:42px;color:var(--mint)}.brand-small{display:block;font-size:8px;letter-spacing:2px;color:var(--muted);margin-top:7px}.header-actions{display:flex;gap:9px}.icon-btn{background:transparent;border:1px solid var(--line);padding:8px 11px;border-radius:6px;font-size:11px;letter-spacing:1px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);display:flex;align-items:center;gap:9px}.live-dot{background:var(--mint);width:6px;height:6px;border-radius:50%;box-shadow:0 0 10px #b6f5d577}main>.eyebrow{padding:26px 0 16px}.hero{position:relative;height:375px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#182d37}.hero-copy{position:absolute;z-index:2;left:30px;top:28px;pointer-events:none}.issue{color:var(--orange);font-size:10px;letter-spacing:2px}h1{font:500 clamp(33px,5vw,53px)/1.04 Georgia,serif;letter-spacing:-1.8px;margin:20px 0 18px}.hero-copy p{color:#b6c6c8;font-size:12px;line-height:1.8}#scene{width:100%;height:100%}.art-caption{position:absolute;bottom:19px;left:30px;font-size:8px;color:var(--muted);letter-spacing:2px}.hero-tag{position:absolute;bottom:18px;right:22px;display:flex;gap:9px;align-items:center;font-size:8px;color:var(--muted);letter-spacing:1px}.hero-tag>span{font-size:28px;color:var(--orange)}.mission{display:flex;align-items:center;justify-content:space-between;padding:26px 0;gap:15px}.mission h2{font:26px Georgia,serif;margin:7px 0}.mission p{font-size:9px;color:var(--muted);letter-spacing:1.5px;margin-bottom:0}.primary{background:var(--mint);color:#122c27;border:0;border-radius:7px;font-weight:700;padding:16px 22px;display:flex;justify-content:space-between;gap:30px;align-items:center;transition:background .2s,transform .2s}.primary:hover{background:#d1ffe8;transform:translateY(-1px)}.tabs{border-bottom:1px solid var(--line);display:flex;gap:25px}.tabs button{border:0;background:none;color:var(--muted);padding:15px 0;font-size:11px;white-space:nowrap}.tabs button.active{color:var(--mint);border-bottom:2px solid var(--mint)}#panel{padding:23px 0;min-height:220px}.panel-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-bottom:16px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.card{position:relative;border:1px solid var(--line);border-radius:9px;padding:20px;background:#152630;min-width:0}.card.selected{border-color:var(--mint);background:#1d3539}.card h3{font-size:15px;margin:8px 0}.card p{font-size:11px;color:var(--muted);min-height:33px}.card small{color:var(--mint);font-size:9px;letter-spacing:1px}.weapon-icon{font-size:30px;color:var(--mint);height:42px}.card:nth-child(2) .weapon-icon{color:var(--orange)}.card:nth-child(3) .weapon-icon{color:#b9b5fa}.small-button{background:transparent;border:1px solid var(--line);border-radius:5px;padding:8px 12px;font-size:10px}.small-button:hover{border-color:var(--mint)}.card .small-button{width:100%;margin-top:8px}.pill{position:absolute;right:12px;top:12px;font-size:8px;color:var(--mint);letter-spacing:1px}.balance{color:var(--orange)}.note{font-size:11px;color:var(--muted);line-height:1.8}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.guide-grid article{padding:16px;background:var(--panel);border-radius:8px}.guide-grid strong{color:var(--mint)}footer{border-top:1px solid var(--line);padding:20px 0 28px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:8px;letter-spacing:1px;color:var(--muted)}footer button{border:0;background:none;color:var(--muted);font-size:9px}#game{max-width:480px;margin:auto;padding-top:16px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:12px}#time{font-size:28px;font-variant-numeric:tabular-nums}.game-right{text-align:right;margin-left:auto}.game-right span{font-size:8px;color:var(--muted)}#kills{font-size:20px;color:var(--orange)}.health-row{display:flex;align-items:center;gap:12px;font-size:9px;margin:10px 0}.bar{height:5px;background:#2a3d49;border-radius:5px;flex:1;overflow:hidden}.bar i{height:100%;display:block;width:100%;background:var(--mint);transition:width .2s}.health-row b{width:30px}.arena{position:relative;height:min(65dvh,640px);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#142934}#battle{width:100%;height:100%;touch-action:none;display:block}#hint{position:absolute;bottom:13px;text-align:center;width:100%;pointer-events:none;font-size:8px;letter-spacing:1px;color:var(--mint);opacity:.8}#boss-warning{position:absolute;top:15%;width:100%;text-align:center;letter-spacing:3px;color:var(--orange);font-size:15px;pointer-events:none}.run-bottom{display:flex;align-items:center;gap:18px;padding:15px 0;font-size:10px;color:var(--muted)}.xp i{width:0;background:var(--orange)}#skills{max-width:120px;color:var(--mint)}.overlay{position:fixed;inset:0;background:#071219dd;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:10}.modal{width:min(530px,100%);background:var(--bg);border:1px solid var(--line);border-radius:15px;padding:28px;max-height:90dvh;overflow:auto}.modal h2{font:32px Georgia,serif;margin:10px 0}.modal p{color:var(--muted);font-size:13px}.modal .primary{width:100%;margin-top:14px;justify-content:center}.modal .small-button{margin-top:12px}.choices{display:grid;gap:9px;margin-top:22px}.choice{text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:15px;display:flex;gap:15px;align-items:center}.choice:hover{border-color:var(--mint)}.choice>span{font-size:26px;color:var(--orange)}.choice strong{display:block;font-size:14px}.choice small{display:block;color:var(--muted);margin-top:3px}.result-stat{display:flex;justify-content:space-around;padding:20px 0;border-block:1px solid var(--line);margin:20px 0}.result-stat b{display:block;font-size:28px;color:var(--mint)}.result-stat span{font-size:10px;color:var(--muted)}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:var(--mint);color:var(--bg);z-index:20;opacity:0;pointer-events:none;transition:opacity .2s;font-size:12px;max-width:90vw}.toast-visible{opacity:1!important}@media(max-width:600px){.shell{padding:0 18px}header{height:76px}.brand{font-size:17px}.brand-icon{font-size:32px}.brand-small{font-size:6px}.icon-btn{padding:7px 8px;font-size:9px}.hero{height:385px}.hero-copy{left:21px;top:22px}h1{font-size:38px;margin:15px 0}.hero-copy p{font-size:11px}.hero-tag{display:none}.art-caption{left:20px;font-size:7px}.mission h2{font-size:21px}.mission .primary{padding:15px;gap:14px;font-size:12px}.mission .eyebrow{font-size:8px}.mission p{font-size:7px;letter-spacing:.5px}.tabs{gap:0;justify-content:space-between}.tabs button{font-size:9px}.cards{gap:8px}.card{padding:12px}.card h3{font-size:12px}.card p{font-size:10px;min-height:46px}.card small,.pill{font-size:7px}.pill{right:8px;top:8px}.small-button{padding:8px 4px}.guide-grid{grid-template-columns:1fr}.modal{padding:22px}.game-top .eyebrow{font-size:8px;letter-spacing:1px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* v0.2 — the living garden */
:root{--bg:#10262c;--panel:#1d383a;--line:#38534f;--mint:#c6ec9e;--muted:#a4bab0;--orange:#f9c879;--text:#f3f4de}body{background:radial-gradient(ellipse at 50% 0,#28423f,#07191f 80%);font-family:ui-rounded,'Avenir Next',system-ui,sans-serif}.shell{background:linear-gradient(180deg,#142e32f2,#10262cf7);padding:0 32px;box-shadow:0 0 100px #0006}header{height:85px;border-color:#c5e0b316}.brand{font-size:19px;letter-spacing:1.2px}.brand-icon{color:#d5eea8;background:#24433f;border:1px solid #71956b;border-radius:13px;width:43px;height:43px;text-align:center;line-height:39px;font-size:31px;box-shadow:inset 0 0 15px #b7e98715}.brand-small{font-size:7px;letter-spacing:2px;color:#a2b5a0}.icon-btn{border-radius:9px;background:#c5e0b307}.hero{height:470px;border-color:#91b59b55;border-radius:19px;background:#142f38;box-shadow:0 16px 40px #0003,inset 0 0 0 1px #a0c8b51a}.hero-art{position:absolute;inset:0;background:url('assets/glass-garden-v2.webp') center 58%/cover no-repeat}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#071d32c9 0,#071d3270 31%,transparent 70%),linear-gradient(0deg,#08252bba,transparent 32%);pointer-events:none}.hero-copy{top:38px;left:33px;z-index:3}.issue{font-weight:700;font-size:9px;letter-spacing:1.5px;color:#f7d6a1}h1{font:800 clamp(35px,5vw,53px)/1.08 ui-rounded,system-ui,sans-serif;letter-spacing:-2px;text-shadow:0 3px 20px #00172299;margin:20px 0}.hero-copy p{color:#e0e6d3;font-size:12px;text-shadow:0 2px 7px #081d26}.art-caption,.hero-tag{z-index:3;color:#e0e6d3}.hero-tag{padding:10px 14px;border:1px solid #d1e4b72b;border-radius:10px;background:#12353466;backdrop-filter:blur(12px)}#scene{position:absolute;inset:0;z-index:2;pointer-events:none}.mission{padding:23px 0}.mission h2{font:750 25px ui-rounded,system-ui,sans-serif;letter-spacing:-.7px}.mission p{color:#a7c2ae}.primary{border-radius:12px;background:linear-gradient(180deg,#e3f5b0,#b7d88b);box-shadow:0 4px 0 #6e8f5d,0 8px 20px #0003;border:1px solid #edffca80;font-size:14px;color:#273c2a;min-height:52px}.primary:hover{background:linear-gradient(180deg,#efffc6,#c9e49e)}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 #6e8f5d}.tabs{background:#0a202680;border:1px solid #56766055;border-radius:12px;gap:5px;padding:5px}.tabs button{flex:1;border-radius:8px;font-size:12px;font-weight:650;padding:10px 12px;letter-spacing:.2px}.tabs button.active{border:0;background:#3d5c48;color:#e0f0c6;box-shadow:inset 0 1px 0 #9ab98633}.card{border:1px solid #5a7b665c;background:linear-gradient(155deg,#27443e,#172f33);border-radius:14px;padding:18px;overflow:hidden}.card.selected{border:1px solid #c8e797;box-shadow:inset 0 0 30px #b3d2800a,0 0 0 1px #d8f1a312;background:linear-gradient(155deg,#3b5743,#193637)}.weapon-art{height:145px;margin:-12px -12px -2px;position:relative;display:flex;align-items:center;justify-content:center}.weapon-art:before{content:'';position:absolute;inset:10%;background:radial-gradient(ellipse,#b4e0a511,transparent 65%)}.weapon-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 8px #00151b55);transition:transform .3s}.card:hover .weapon-art img{transform:translateY(-4px)}.card h3{font-size:17px;margin:7px 0}.card small{font-size:8px;color:#c4d8b0}.card p{font-size:11px;line-height:1.7;color:#a8c0b0}.pill{border:1px solid #b8d98a55;border-radius:5px;padding:3px 6px;background:#243d32b0;color:#d7efae;z-index:2;font-size:8px;letter-spacing:.5px}.small-button{border-color:#78966c66;background:#b5d89a0c;border-radius:8px;font-size:11px;color:#dce8c9}.small-button:hover{background:#a4c68122;border-color:#b6d78f}.card.selected .small-button{background:#c3e59b;color:#2a3e29;border-color:#d8eeb2}.panel-heading{font-size:10px;letter-spacing:.6px}.balance{color:#f4d493}.guide-grid article{background:linear-gradient(140deg,#27443e,#183236);border:1px solid #66856c33;border-radius:12px}.modal{background:radial-gradient(ellipse at 50% 0,#345345,#122a30 75%);border-color:#8dab7766;border-radius:22px;box-shadow:0 25px 100px #0008}.modal h2{font:800 30px/1.2 ui-rounded,system-ui,sans-serif;letter-spacing:-1px}.choice{border-radius:12px;border-color:#78936855;background:#25413c}.choice:hover{background:#365540}.choice>span{background:#3e5944;border-radius:10px;width:44px;height:44px;text-align:center;line-height:44px;flex-shrink:0}.result-stat{border-color:#9ab28233}.result-stat b{color:#def1b6}.arena{border:2px solid #6e8c6c;border-radius:17px;box-shadow:0 8px 30px #0004,inset 0 0 0 2px #d0deb133;background:#355451}.game-top{padding:2px 4px 0}.game-top .eyebrow{color:#b5caad}.game-right span{font-size:7px}#time{font-weight:800;font-size:30px;color:#f7edc7}.health-row{font-weight:700;color:#b4c8a9;font-size:9px}.bar{height:8px;background:#061d26;border:1px solid #64836288;box-shadow:inset 0 1px 3px #0005}.bar i{background:linear-gradient(90deg,#8dbd78,#d7efa8)}.run-bottom{border-radius:10px;font-size:9px}.xp i{background:linear-gradient(90deg,#db9d55,#f5d286)}#hint{color:#e3f3ca;background:#123c3699;backdrop-filter:blur(6px);padding:8px;width:auto;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:20px;bottom:11px;font-size:8px}#boss-warning{padding:15px 0;background:linear-gradient(90deg,transparent,#542e23d9,transparent);font-weight:800;color:#ffe0a0;text-shadow:0 0 15px #ffac68;letter-spacing:2px}#toast{background:#d2e9ac;color:#273e2b;box-shadow:0 5px 25px #0005}#game{padding-top:13px;padding-bottom:10px}body:has(#game:not([hidden])) header{height:56px}body:has(#game:not([hidden])) .brand-small{display:none}body:has(#game:not([hidden])) .brand{font-size:13px}body:has(#game:not([hidden])) .brand-icon{width:30px;height:30px;line-height:27px;font-size:22px;border-radius:8px}footer{border-color:#a9c79722;font-size:8px}@media(max-width:600px){.shell{padding:0 14px}header{height:71px}.brand{font-size:14px}.brand-small{font-size:6px}.brand-icon{width:34px;height:34px;line-height:31px;font-size:25px;border-radius:10px}.hero{height:420px;border-radius:15px}.hero-art{background-size:auto 100%;background-position:57% center}.hero:after{background:linear-gradient(180deg,#061b34a1,transparent 65%),linear-gradient(0deg,#0b262ba6,transparent 30%)}.hero-copy{left:21px;top:25px}h1{font-size:35px;letter-spacing:-1.5px;line-height:1.1;margin:14px 0}.hero-copy p{font-size:10px;line-height:1.7;max-width:240px}.issue{font-size:7px;letter-spacing:1px}.hero-tag{display:none}.art-caption{font-size:7px;bottom:15px}.mission{padding:20px 1px}.mission h2{font-size:19px}.mission .primary{font-size:12px;padding:12px 15px;gap:10px;min-height:48px}.mission .eyebrow{font-size:7px;letter-spacing:1px}.mission p{font-size:7px}.tabs button{font-size:11px;padding:9px 6px}.cards{gap:7px}.card{padding:11px 9px;border-radius:12px}.weapon-art{height:111px;margin:-8px -12px 0}.card h3{font-size:12px;margin:6px 0}.card small{font-size:6px;letter-spacing:.5px}.card p{font-size:9px;line-height:1.6;min-height:44px}.card .small-button{font-size:9px;padding:9px 3px}.pill{font-size:6px;top:7px;right:7px;padding:2px 4px}.panel-heading{font-size:8px;letter-spacing:0}.note{font-size:10px}.arena{height:min(65dvh,640px)}.modal{padding:23px}.modal h2{font-size:26px}#panel{padding:20px 0;min-height:230px}}@media(max-height:720px){body:has(#game:not([hidden])) header{height:46px}.arena{height:61dvh}.game-top .eyebrow{font-size:7px}#time{font-size:25px}.health-row{margin:6px 0}.run-bottom{padding:10px 0}}
.weapon-sprite{position:relative;width:165px;height:165px;background-image:url('assets/units-v2.webp');background-size:300% 200%;background-repeat:no-repeat;filter:drop-shadow(0 6px 10px #041c2377);transition:transform .3s}.sprite-pulse{background-position:0 0}.sprite-ember{background-position:50% 0}.sprite-arc{background-position:100% 0}.card:hover .weapon-sprite{transform:translateY(-4px) rotate(-2deg)}@media(max-width:600px){.weapon-sprite{width:116px;height:116px}}
/* v0.3 campaign, builds and progression */
.wallet{margin-left:auto;margin-right:18px;display:flex;gap:15px;font-size:12px;color:#eed6a0}.wallet span:last-child{color:#b7e7dc}.wallet b{font-variant-numeric:tabular-nums;font-weight:700}.chapter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.chapter{position:relative;min-height:145px;background:linear-gradient(145deg,#2c5147,#172f33);border:1px solid #74977066;border-radius:13px;text-align:left;padding:15px;overflow:hidden}.chapter:before{content:'✳';position:absolute;right:-9px;top:-18px;color:#9abf6f18;font-size:110px;transform:rotate(-20deg)}.chapter.selected{border-color:#d3eda7;box-shadow:inset 0 0 25px #bbd88818}.chapter-number{font-size:22px;display:block;font-weight:800;color:#d9edaf}.chapter strong{font-size:13px;display:block;margin:8px 0 4px}.chapter small{font-size:9px;display:block;color:#b6c6ab}.chapter-prize{display:block;font-size:8px;margin-top:12px;color:#edcf96}.biome-1{background:linear-gradient(140deg,#414c55,#222d3b)}.biome-2{background:linear-gradient(140deg,#58483c,#2b3032)}.subtabs{display:flex;gap:10px;margin-bottom:24px}.subtabs button{background:none;border:1px solid #66845e55;border-radius:8px;padding:8px 18px;color:#a9c2aa;font-size:12px}.subtabs button.active{background:#b8d995;color:#293e2b}.upgrade-list,.task-list,.module-list{display:grid;gap:10px}.upgrade-list article,.task-list article,.module-list article,.daily-login{display:flex;align-items:center;gap:16px;padding:17px;border-radius:12px;background:#29453c66;border:1px solid #66876344}.upgrade-list article>div,.task-list article>div,.module-list article>div,.daily-login>div{flex:1}.upgrade-list h3,.task-list h3,.daily-login h3{font-size:14px;margin:0 0 5px}.upgrade-list small,.task-list small{color:#d1e5ad;margin-left:8px;font-size:10px}.upgrade-list p,.task-list p,.daily-login p{font-size:11px;color:#a9c0ab;margin:0}.upgrade-list .small-button,.task-list .small-button{min-width:90px}.upgrade-icon{font-size:30px;color:#d2e9b0}.socket-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.socket{border:1px solid #7e9c6e88;border-radius:13px;background:radial-gradient(ellipse at 50% 0,#3b5b46,#1b3434);padding:18px 10px;color:#deedc3}.socket>span{display:block;font-size:32px;margin-bottom:5px}.socket b{display:block;font-size:12px}.socket small{display:block;font-size:9px;color:#a5bda5;margin-top:5px}.module-list article{padding:12px}.module-list b{font-size:12px}.module-list small{display:block;font-size:10px;color:#acbfa9;margin-top:4px}.tier{display:inline-flex;align-items:center;justify-content:center;border:1px solid #789671;border-radius:10px;width:40px;height:40px;font-size:25px;color:#d0e6a6;background:#38513c}.tier-2{color:#9be4d8;border-color:#62c6bc}.tier-3{color:#c5a0f2;border-color:#ad85cd}.tier-4{color:#ffd08b;border-color:#cdb370}.research-row{display:flex;gap:8px;flex-wrap:wrap}.research-row button{flex:1;white-space:nowrap;padding:12px}.daily-login{margin-bottom:14px;background:linear-gradient(100deg,#3d533d,#243c35)}.milestones{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.milestones>div{background:#29433c;border-radius:9px;padding:12px;font-size:11px}.milestones button{display:block;width:100%;margin-top:10px;font-size:9px}.journal-intro{display:flex;justify-content:space-between;align-items:center;gap:15px;background:radial-gradient(ellipse at 0 0,#4a5a3d,#203936);padding:24px;border:1px solid #7e92604d;border-radius:14px;margin-bottom:20px}.journal-intro h2{font-size:25px;letter-spacing:-1px;margin:0 0 9px}.journal-intro p{font-size:11px;color:#b6c9af;max-width:480px;margin:0}.journal-intro button{flex-shrink:0;padding:12px}.journal-table{border:1px solid #72916155;border-radius:12px;overflow:hidden}.journal-head,.journal-row{display:grid;grid-template-columns:50px 1fr 1fr}.journal-head{font-size:9px;color:#a6bd9d;padding:12px;background:#294239;text-align:center}.journal-row{align-items:center;border-top:1px solid #5c794b33;padding:12px;background:#172f31}.journal-row.unlocked{background:#2b4236}.journal-row>strong{text-align:center;color:#cbdeac;font-size:17px}.journal-row>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;border-left:1px solid #6e84523d}.journal-row b{font-size:11px;font-weight:500;color:#e0d4a9}.journal-row button{min-width:42px;font-size:9px}.supply-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.supply-card .weapon-art{height:130px}.supply-card p{min-height:85px}.product-icon{height:118px;display:flex;align-items:center;justify-content:center;font-size:65px;color:#e8ce8d;text-shadow:0 0 35px #d6cf6455}.supply-card h3{font-size:15px}.wave-label{font-size:9px;color:#d9d9a3;font-weight:700;letter-spacing:1px}.result-stars{text-align:center;color:#ffe3a3;font-size:32px;letter-spacing:6px}.choice.evolution{border-color:#e6c67b;background:linear-gradient(100deg,#4e5138,#283e34)}.choice.evolution>span{color:#fce7a7;background:#7b693955}.recipe{color:#edcd8e!important}#skills{font-size:13px;max-width:180px;letter-spacing:2px;line-height:1.2}.hero h1{font-size:47px}body:has(#game:not([hidden])) .wallet{display:none}@media(max-width:760px){.supply-grid{grid-template-columns:repeat(2,1fr)}.chapter-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.wallet{gap:9px;font-size:10px;margin-right:10px}.brand{font-size:11px;gap:7px}.brand-small{font-size:5px;letter-spacing:1px}.brand-icon{width:29px;height:29px;line-height:26px;font-size:22px}.header-actions{gap:5px}.icon-btn{font-size:8px;padding:7px}.hero h1{font-size:34px}.chapter-grid{gap:8px}.chapter{padding:11px;min-height:128px}.chapter-number{font-size:19px}.chapter strong{font-size:11px}.chapter small{font-size:8px}.chapter-prize{font-size:7px;margin-top:9px}.subtabs{gap:8px;margin-bottom:20px}.subtabs button{flex:1;font-size:11px;padding:9px}.upgrade-list article,.task-list article,.daily-login{padding:13px;gap:11px}.upgrade-list h3,.task-list h3,.daily-login h3{font-size:12px}.upgrade-list p,.task-list p,.daily-login p{font-size:9px}.upgrade-list .small-button,.task-list .small-button{min-width:75px;font-size:10px}.upgrade-icon{font-size:23px}.socket-grid{gap:8px}.socket{padding:15px 6px}.socket b{font-size:10px}.socket small{font-size:8px}.module-list article{gap:10px}.module-list b{font-size:11px}.module-list small{font-size:8px}.module-list button{font-size:9px}.tier{width:33px;height:33px;font-size:22px}.research-row button{font-size:9px;padding:11px 7px}.milestones{gap:8px}.milestones>div{padding:10px;font-size:10px}.journal-intro{padding:17px;display:block}.journal-intro h2{font-size:22px}.journal-intro p{font-size:10px}.journal-intro button{margin-top:13px}.journal-head,.journal-row{grid-template-columns:33px 1fr 1fr}.journal-row{padding:10px 6px}.journal-row>div{padding:0 7px;gap:6px;display:block;text-align:center}.journal-row b{font-size:9px;display:block;margin-bottom:5px}.journal-row button{padding:5px 10px}.journal-row>strong{font-size:14px}.supply-grid{gap:9px}.supply-card{padding:14px}.supply-card h3{font-size:14px}.supply-card p{font-size:10px;min-height:80px}.supply-card small{font-size:7px}.supply-card .small-button{font-size:10px;padding:10px}.product-icon{font-size:56px;height:110px}.supply-card .weapon-art{height:110px}#time{font-size:25px}.game-top .eyebrow{font-size:7px}.wave-label{font-size:8px}.arena{height:min(63dvh,640px)}.tabs button{font-size:10px}#skills{max-width:170px;font-size:11px}}
/* v0.4 mobile game shell, explorable world and league */
body{background:radial-gradient(ellipse at 50% 15%,#334d48,#081a24 70%)}.shell{max-width:540px;padding:0 14px;background:linear-gradient(#173039,#10252b);box-shadow:0 0 120px #0009;position:relative}header{height:70px;position:sticky;top:0;background:#122c33f5;backdrop-filter:blur(15px);z-index:8;border-bottom:1px solid #d7edbb22}.brand{font-size:12px;gap:8px}.brand-icon{width:31px;height:31px;line-height:28px;font-size:23px;border-radius:9px}.brand-small{font-size:5px;letter-spacing:1px}.wallet{font-size:11px;margin-right:10px;gap:10px}.header-actions{gap:5px}.icon-btn{padding:7px;font-size:9px}.tabs{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(540px,100%);z-index:9;border-radius:0;border:0;border-top:1px solid #a8be7f66;padding:7px 7px max(8px,env(safe-area-inset-bottom));background:linear-gradient(#243c36f5,#12272efb);backdrop-filter:blur(20px);box-shadow:0 -5px 25px #0004;gap:2px}.tabs button{font-size:9px;padding:5px 3px;border-radius:8px;min-width:0;color:#a7baab}.tabs button:before{display:block;font-size:23px;height:30px;line-height:30px;color:#9fb89e;font-weight:400}.tabs button[data-tab=expedition]:before{content:'⌖'}.tabs button[data-tab=hangar]:before{content:'✳'}.tabs button[data-tab=rankings]:before{content:'♜'}.tabs button[data-tab=tasks]:before{content:'☷'}.tabs button[data-tab=journal]:before{content:'▤'}.tabs button[data-tab=supply]:before{content:'◈'}.tabs button.active{background:linear-gradient(#657d4e55,#72975a0a);color:#eef5c8;box-shadow:none}.tabs button.active:before{color:#f2dea1;text-shadow:0 1px 14px #f9cf6270}.mission{position:fixed;left:50%;bottom:72px;transform:translateX(-50%);width:min(540px,100%);z-index:7;display:grid;grid-template-columns:1fr auto;gap:9px 12px;padding:13px 20px 16px;background:linear-gradient(#203a36fa,#142c31);border-top:1px solid #b6cd8766;box-shadow:0 -12px 25px #092028b3}.mission-description{grid-column:1;grid-row:2}.mission-description .eyebrow{font-size:7px;letter-spacing:1px}.mission h2{font-size:19px;margin:3px 0 5px}.mission p{font-size:7px;letter-spacing:0;color:#aec4a8;max-width:230px}.mission .primary{grid-column:2;grid-row:2;align-self:center;min-height:48px;padding:13px 17px;font-size:12px;gap:10px;border-radius:11px}.prep-weapon{grid-column:1/-1;display:flex;align-items:center;gap:9px;padding:0 0 7px;background:none;border:0;border-bottom:1px solid #a4c49622;text-align:left}.prep-thumb{display:block;width:38px;height:38px;background-image:url('assets/units-v2.webp');background-size:300% 200%;border:1px solid #97b17955;border-radius:8px;background-color:#365344}.prep-weapon>div{flex:1}.prep-weapon small{display:block;font-size:6px;color:#a6baa4;letter-spacing:1px}.prep-weapon b{font-size:11px;font-weight:600}.prep-weapon em{font-size:9px;font-style:normal;color:#c9dcb2;margin-left:6px}.prep-weapon>span:last-child{color:#d6e8ba;font-size:20px}#panel{padding:20px 0 100px;min-height:calc(100dvh - 140px)}main:has(.map-viewport) #panel{padding:0 0 218px;margin:0 -14px}.world-toolbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;background:linear-gradient(120deg,#24423d,#172f35);position:relative;z-index:2;border-bottom:1px solid #b6cd8733}.world-toolbar>div{flex:1}.world-toolbar small{display:block;font-size:7px;color:#c3d5ac;letter-spacing:2px}.world-toolbar strong{display:block;font-size:19px;font-weight:800;color:#eef1d3;margin-top:4px;letter-spacing:-.8px}.map-side-button{display:flex;align-items:center;flex-direction:column;gap:3px;border:0;background:none;padding:3px;color:#dfd4a8;font-size:8px;white-space:nowrap}.map-side-button>span{font-size:25px;line-height:29px;color:#f2d391;text-shadow:0 2px 12px #ffd77e4d}.map-viewport{height:calc(100dvh - 70px - 76px - 210px);min-height:290px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain;position:relative;background:#2b5359}.map-viewport::-webkit-scrollbar{display:none}.map-scene{position:relative;width:100%;aspect-ratio:2/3;background:url('assets/world-map-v4.webp') center/100% 100% no-repeat;min-height:740px}.map-scene:before{content:'';position:absolute;inset:0;box-shadow:inset 0 0 40px #0a2b3470;pointer-events:none}.stage-node{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border:2px solid #bbcf9c;border-bottom:5px solid #66784f;border-radius:50%;background:radial-gradient(circle at 40% 30%,#d2e5b6,#899b71);color:#2b422e;box-shadow:0 5px 10px #10272c88,inset 0 1px 0 #eaf4c6;z-index:2;overflow:visible;padding:0}.stage-node>span{font-size:17px;line-height:37px;font-weight:800}.stage-node small{position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);color:#ffe8a2;font-size:10px;white-space:nowrap;letter-spacing:1px;text-shadow:0 1px 4px #143124,0 0 3px #143124}.stage-node.current{border-color:#fff0a9;border-bottom-color:#c09b43;background:radial-gradient(circle at 35% 25%,#fff3bc,#dcb76a);box-shadow:0 0 0 5px #ffe19530,0 0 22px #fff0a75c,0 6px 9px #09262588;z-index:4}.stage-node.current:after{content:'';position:absolute;width:7px;height:7px;transform:rotate(45deg);background:#fff1b3;left:16px;top:-15px;box-shadow:0 0 10px #ffec9c}.stage-node.current b{position:absolute;left:50%;top:-44px;transform:translateX(-50%);white-space:nowrap;font-size:11px;padding:5px 10px;background:#173b3de6;color:#eff3d3;border:1px solid #e0ce9677;border-radius:6px;box-shadow:0 2px 5px #0004}.stage-node.locked{opacity:.9;background:radial-gradient(circle at 35% 25%,#839997,#4f6a70);border-color:#afc3b599;border-bottom-color:#3b545d;color:#c3d0b9;filter:saturate(.6);box-shadow:0 4px 7px #10272c88}.stage-node.cleared{background:radial-gradient(circle at 35% 25%,#d6edb0,#80ae7e)}.map-zone{position:absolute;color:#fff1cb;font-weight:800;letter-spacing:2px;font-size:11px;text-shadow:0 2px 4px #072527,0 0 10px #072527;padding:7px 10px;background:#153a3e88;border-radius:5px;border-left:2px solid #e9daa0}.zone-1{left:7%;top:66%}.zone-2{right:5%;top:39%}.zone-3{left:7%;top:7%}.map-scroll-hint{position:absolute;bottom:12px;width:100%;text-align:center;font-size:7px;color:#e4eacb;letter-spacing:2px;text-shadow:0 1px 4px #092b31}.map-rewards-strip{height:47px;padding:9px 16px;display:flex;align-items:center;gap:10px;background:#203d3a;border-top:1px solid #adc88d44;font-size:8px}.map-rewards-strip>span{font-size:7px;color:#a8c1a6}.map-rewards-strip>b{color:#f0d393;font-size:10px}.map-rewards-strip>small{margin-left:auto;color:#becba9;font-size:7px}footer{display:none}.panel-heading{font-size:9px}.supply-grid{grid-template-columns:repeat(2,1fr)}.journal-intro{display:block}.journal-intro button{margin-top:13px}.journal-intro h2{font-size:22px}.journal-head,.journal-row{grid-template-columns:33px 1fr 1fr}.journal-row>div{display:block;text-align:center;padding:0 7px}.journal-row b{display:block;font-size:10px;margin-bottom:6px}.cards{gap:8px}.card{padding:12px}.card h3{font-size:13px}.card p{font-size:10px}.weapon-art{height:124px}.weapon-sprite{height:128px;width:128px}.socket-grid{gap:8px}.socket b{font-size:11px}.socket small{font-size:8px}.rank-hero{padding:23px 18px 13px;margin:-20px -14px 0;background:radial-gradient(ellipse at 80% 0,#5c6246,#1f3937 75%);border-bottom:1px solid #b1bd7b44}.rank-hero .eyebrow{font-size:8px;color:#e5d8a5}.rank-hero h2{font-size:27px;font-weight:800;letter-spacing:-1px;line-height:1.2;max-width:360px;margin:12px 0}.rank-hero p{font-size:10px;color:#b9c5ab;line-height:1.7}.rank-tabs{display:flex;gap:6px;padding:5px;background:#0c242a80;border-radius:11px;margin:19px 0 10px}.rank-tabs button{flex:1;border:0;background:none;color:#a9bda5;padding:9px;border-radius:7px;font-size:12px}.rank-tabs button.active{background:linear-gradient(#d4dcaa,#aabf89);color:#304333;font-weight:750}.rank-clock{display:flex;justify-content:space-between;font-size:8px;color:#b8c3a4}.rank-clock button{font-size:8px;border:0;background:none;color:#f0d8a0;padding:0}.challenge-entry{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:18px 0 13px}.challenge-entry small{display:block;font-size:8px;letter-spacing:1px;color:#a5bda3}.challenge-entry strong{display:block;font-size:12px;margin-top:4px;color:#edf0d1}.challenge-entry .primary{padding:12px 17px;min-height:44px;font-size:11px;gap:6px}.rank-weapons{display:flex;gap:7px;padding-bottom:17px}.rank-weapons button{display:flex;align-items:center;gap:5px;flex:1;border:1px solid #7d986054;background:#28443a;border-radius:8px;color:#baccae;font-size:9px;padding:6px 3px}.rank-weapons button.active{color:#e8eec3;border-color:#d3dc9c}.rank-weapon-sprite{display:block;width:30px;height:30px;background-image:url('assets/units-v2.webp');background-size:300% 200%}.rank-me{display:flex;align-items:center;gap:15px;border:1px solid #d6cf864d;background:linear-gradient(110deg,#4a5038,#263e35);padding:15px;border-radius:11px}.rank-me>span{font-size:8px;color:#c4d0a5;letter-spacing:1px}.rank-me>b{font-size:23px;color:#f0d899}.rank-me>strong{margin-left:auto;font-size:21px;color:#efe6b4}.rank-me small{font-size:8px;color:#b2c2a0}.board-caption{display:flex;justify-content:space-between;margin:21px 0 9px;font-size:8px;color:#a6bba2;letter-spacing:1px}.leaderboard{border:1px solid #7b945c44;border-radius:12px;overflow:hidden;background:#173233}.leader-row{display:flex;gap:12px;align-items:center;padding:13px 14px;border-top:1px solid #7b945c22}.leader-row:first-child{border:0}.leader-row>b{font-size:15px;color:#a7bca3;width:20px;text-align:center}.leader-row.rank-1{background:linear-gradient(90deg,#b3a45122,transparent)}.leader-row.rank-1>b{color:#f8d37b;font-size:24px}.leader-row.rank-2>b{color:#d2e2df;font-size:22px}.leader-row.rank-3>b{color:#d5ad87;font-size:22px}.avatar-seal{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#4c6441;border:1px solid #a9bd7966;font-size:23px;color:#e2ebb9}.leader-row>div{flex:1}.leader-row strong{font-size:11px;display:block}.leader-row small{font-size:8px;color:#9eb39a;display:block;margin-top:2px}.leader-row em{font-style:normal;font-size:14px;color:#e7d59b;font-variant-numeric:tabular-nums}.rank-empty{text-align:center;padding:38px 25px}.rank-empty>span{font-size:50px;color:#c2bf8399}.rank-empty h3{font-size:15px;color:#dce4c0;margin:10px 0}.rank-empty p{font-size:10px;line-height:1.8;color:#a2b8a0;max-width:320px;margin:0 auto}.rank-note{font-size:9px;line-height:1.8}.rank-awards article,.chest-list article{display:flex;gap:12px;align-items:center;padding:13px;background:#314a3b;border:1px solid #a2b87544;border-radius:10px;margin:8px 0}.rank-awards article>div,.chest-list article>div{flex:1}.rank-awards small,.chest-list small{display:block;font-size:10px;color:#dfd29b;margin-top:5px}.rank-awards b{font-size:12px}.chest-list article>span{font-size:33px;color:#e6ce88}.prize-table{border:1px solid #8ea56355;border-radius:10px;overflow:hidden;font-size:10px;margin-top:20px}.prize-table>div{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;border-top:1px solid #8ea56333;padding:10px 8px;gap:4px;align-items:center;text-align:center}.prize-table>div:first-child{background:#3f553d;border:0;font-size:9px}.prize-table span{color:#e2d6a8;line-height:1.8}.rank-result-score{text-align:center;background:#b3c67e11;border:1px solid #b7c87944;border-radius:13px;padding:16px;margin:20px 0}.rank-result-score small{display:block;font-size:9px;color:#bccca6;letter-spacing:1px}.rank-result-score b{font-size:40px;display:block;color:#f3daa0;font-variant-numeric:tabular-nums;margin-top:5px}body:has(#game:not([hidden])) header{height:50px}#game{padding-top:10px}.game-top .eyebrow{font-size:7px}#time{font-size:25px}@media(max-width:380px){.brand-small{display:none}.wallet{font-size:10px;gap:7px}.world-toolbar strong{font-size:16px}.map-side-button{font-size:7px}.mission{padding:12px 14px}.mission h2{font-size:17px}.mission .primary{padding:12px;font-size:10px}.prep-weapon small{font-size:6px}.rank-hero h2{font-size:24px}}@media(min-width:600px){.shell{border-left:1px solid #a9bf7b33;border-right:1px solid #a9bf7b33}.modal{max-width:510px}.hero h1{font-size:35px}.cards{grid-template-columns:repeat(3,1fr)}}
.tabs{height:72px}.mission{height:145px}.map-viewport{height:calc(100dvh - 410px);min-height:210px}main:has(.map-viewport) #panel{padding-bottom:217px;min-height:0}.map-side-button.reward-ready{position:relative}.map-side-button.reward-ready:after{content:'';width:7px;height:7px;border-radius:50%;background:#edbd69;position:absolute;right:7px;top:1px;box-shadow:0 0 0 2px #254039}.tabs button.has-reward{position:relative}.tabs button.has-reward:after{content:'';position:absolute;width:6px;height:6px;border-radius:50%;right:18px;top:5px;background:#f4c67c;box-shadow:0 0 0 2px #263f36}.owned-title{display:block;font-size:9px;color:#f0d394;letter-spacing:.4px;margin-top:5px}
.campaign-proof{align-self:center;margin-left:auto;color:#b7c9ad;font-size:7px;letter-spacing:.8px}.original-stage-scroll{height:calc(100dvh - 410px);min-height:250px;overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start;background:linear-gradient(#193638,#122d31)}.original-stage{position:relative;min-height:76px;padding:11px 34px 10px 12px;text-align:left;border:1px solid #7f9f7655;border-radius:10px;background:linear-gradient(145deg,#294b3e,#203b39);color:#e7ebce;box-shadow:inset 0 1px #d8e6b014,0 4px 10px #061e2470}.original-stage>span{display:block;font-size:8px;letter-spacing:1.4px;color:#cfbd83}.original-stage>b{display:block;margin-top:5px;font-size:12px}.original-stage>small{display:block;margin-top:5px;color:#9fb79c;font-size:8px}.original-stage>em{position:absolute;right:11px;top:25px;font-style:normal;color:#d9cc8c;font-size:17px}.original-stage.current{border-color:#f0d78b;background:linear-gradient(145deg,#536342,#2a4b3d);box-shadow:0 0 0 2px #e6cf7130,0 6px 16px #041c2477}.original-stage.cleared{border-color:#8bc48a88}.original-stage.locked{filter:saturate(.5);opacity:.56}.stage-loading{grid-column:1/-1;text-align:center;padding:70px 20px;color:#b9c8aa;font-size:11px}.original-stage-scroll+.map-rewards-strip{height:47px}main:has(.original-stage-scroll) #panel{padding-bottom:217px;min-height:0}
#boss-panel{position:absolute;top:11px;left:14px;right:14px;padding:10px 12px;border:1px solid #eab27388;background:linear-gradient(100deg,#492f2beb,#242e32eb);border-radius:9px;box-shadow:0 4px 15px #001b2766;pointer-events:none}#boss-panel>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;color:#f3dab6;font-weight:800;letter-spacing:.5px}.boss-health-track{height:8px;margin-top:7px;border-radius:4px;background:#130f15;border:1px solid #bc8e5c66;overflow:hidden}.boss-health-track i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#d06955,#f4bd75);transition:width .1s}.boss-arena{border-color:#d9a574;box-shadow:0 0 0 1px #f5c38022,0 0 22px #c4793640}#boss-warning{top:29%;padding:22px 0;font-size:18px;letter-spacing:2px;background:linear-gradient(90deg,transparent,#4e2e28e8,transparent)}#boss-warning.victory-banner{color:#f4ffd8;background:linear-gradient(90deg,transparent,#254b34e6,transparent);text-shadow:0 0 15px #b8f3aa}.defeat-reason{padding:13px 15px;border-radius:10px;background:#a9664420;border:1px solid #d9996b55;color:#f2c398;font-size:12px;line-height:1.8;margin:18px 0}.game-top #time{font-size:22px}.wave-label{font-size:8px}

/* v10 · full-screen mobile game hierarchy recovered from the APK prefabs; all artwork is original. */
main:has(.chapter-stage) #panel{margin:0 -14px;padding:0 0 217px;min-height:0}
.chapter-stage{position:relative;height:calc(100dvh - 70px - 217px);min-height:430px;overflow:hidden;background:#254b4c url('assets/campaign-map-v1.webp') center 45%/cover no-repeat;color:#f5f1d7}
.chapter-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#08252bb5 0,#08252b18 31%,#071b2480 72%,#06171fe8 100%),linear-gradient(90deg,#03171f66,transparent 25%,transparent 75%,#03171f66);pointer-events:none}
.chapter-atmosphere{position:absolute;inset:0;background:radial-gradient(circle at 50% 44%,#d6ef9a30,transparent 24%),radial-gradient(circle at 50% 98%,#dbae6233,transparent 30%);mix-blend-mode:screen;pointer-events:none}
.chapter-head{position:absolute;z-index:2;top:0;left:0;right:0;height:85px;padding:14px 18px;display:flex;justify-content:space-between;align-items:flex-start;background:linear-gradient(#0b2a31ee,transparent)}
.chapter-head small{display:block;font-size:7px;letter-spacing:2.2px;color:#c5d8b2}.chapter-head strong{display:block;font:700 28px/1 Georgia,serif;color:#fff1c3;margin-top:4px;text-shadow:0 2px 9px #06171f}.chapter-overview{border:1px solid #d2d7ad66;border-radius:18px;background:#17363aad;color:#eef1d4;padding:7px 12px;font-size:9px;backdrop-filter:blur(8px)}
.chapter-route{position:absolute;z-index:2;top:31%;left:50%;transform:translate(-50%,-50%);width:78%;height:95px;display:flex;align-items:center;justify-content:space-between}.chapter-route:before{content:'';position:absolute;left:7%;right:7%;top:47px;height:2px;background:linear-gradient(90deg,#d7d18e55,#f8e6a6cc,#d7d18e55);box-shadow:0 0 9px #f9df8688}
.route-node{position:relative;z-index:2;width:42px;height:42px;border:2px solid #c3c994;border-radius:50%;background:linear-gradient(145deg,#799a70,#3f665c);color:#edf3cc;box-shadow:0 4px 11px #04171dc0,inset 0 1px #e9f3c788;padding:0}.route-node span{font-size:12px;font-weight:800}.route-node small{position:absolute;left:50%;top:47px;transform:translateX(-50%);font-size:6px;letter-spacing:1px;color:#e8e1b6;white-space:nowrap;text-shadow:0 1px 4px #06191d}
.route-node.current{width:61px;height:61px;border-color:#fff0ad;background:radial-gradient(circle at 34% 27%,#fff4bd,#c3a653 65%,#6f713c);box-shadow:0 0 0 7px #ffeb9b24,0 0 28px #ffdf7499,0 6px 14px #04171d;color:#3b4c32}.route-node.current span{font-size:18px}.route-node.current small{top:65px;color:#fff0b1}.route-node.cleared:after{content:'✓';position:absolute;right:-3px;top:-5px;width:15px;height:15px;border-radius:50%;background:#d8eaa7;color:#294538;font-size:9px;line-height:15px}
.chapter-arrow{position:absolute;z-index:3;top:31%;transform:translateY(-50%);width:41px;height:61px;border:1px solid #e8dfa566;background:#102e34ba;color:#f5e6ad;font:34px/1 Georgia;border-radius:8px;backdrop-filter:blur(7px)}.chapter-arrow.left{left:9px}.chapter-arrow.right{right:9px}
.chapter-focus{position:absolute;z-index:2;left:50%;top:48%;transform:translateX(-50%);width:74%;text-align:center;text-shadow:0 2px 10px #051b22}.chapter-focus>span{font-size:7px;letter-spacing:2.3px;color:#dcd49f}.chapter-focus h2{margin:5px 0 11px;font:700 24px/1.1 Georgia,serif;color:#fff4d1}.chapter-meta{display:flex;justify-content:center;gap:3px}.chapter-meta b{min-width:62px;padding:7px 5px;border:1px solid #dce0b64d;border-radius:7px;background:#102e34ba;font-size:14px;color:#fff1c2}.chapter-meta small{display:block;font-size:5px;letter-spacing:.7px;color:#b9c9ab;margin-top:2px}
.chapter-team{position:absolute;z-index:2;left:15px;right:15px;bottom:14px;height:82px;display:flex;align-items:center;border:1px solid #d6d89e55;background:linear-gradient(100deg,#102e35ed,#244238dc);border-radius:10px;overflow:hidden;box-shadow:0 7px 20px #04161cab}.chapter-team img{align-self:flex-start;width:99px;height:144px;object-fit:contain;object-position:center top;transform:translateY(-8px);filter:drop-shadow(0 4px 9px #00171d)}.chapter-team div{min-width:0;padding-right:8px}.chapter-team small,.chapter-team span{display:block;color:#b6c8aa;font-size:7px;letter-spacing:.6px}.chapter-team strong{display:block;margin:4px 0 5px;color:#f5e9b8;font-size:12px}.chapter-team span{letter-spacing:0;color:#d8e3c6}
.chapter-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:18px 0;max-height:55dvh;overflow:auto}.chapter-picker button{min-height:48px;border:1px solid #577265;border-radius:7px;background:#1b3437;color:#c4d1b4}.chapter-picker b,.chapter-picker small{display:block}.chapter-picker b{font-size:12px}.chapter-picker small{font-size:6px;color:#93aa9a}.chapter-picker button.current{border-color:#f1d78c;background:#586744;color:#fff1ba}.chapter-picker button.cleared{border-color:#8ab281}
main:has(.equipment-screen) #panel,main:has(.task-screen) #panel{margin:0 -14px;padding:0 0 82px;min-height:calc(100dvh - 70px);background:linear-gradient(#18383b,#102a30)}
.screen-title{height:75px;padding:14px 18px 10px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(105deg,#284841,#163139);border-bottom:1px solid #bec98a44}.screen-title small{display:block;font-size:7px;letter-spacing:1.7px;color:#c5d4ae}.screen-title h2{font:700 19px/1.2 Georgia,serif;margin:4px 0 0;color:#f6efd0}.power-score{text-align:right}.power-score b{display:block;font-size:22px;color:#efd18c;font-variant-numeric:tabular-nums}
.character-bay{height:455px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 56%,#bdd99c38 0,#3c665b25 34%,transparent 64%),linear-gradient(#18383b,#102a30)}.character-bay:before{content:'';position:absolute;left:8%;right:8%;bottom:51px;height:72px;border-radius:50%;border:1px solid #cfdb9f38;background:radial-gradient(ellipse,#b2d38a2d,transparent 70%);transform:perspective(300px) rotateX(65deg);box-shadow:0 0 30px #c6d88c1f}.character-halo{position:absolute;left:50%;top:45%;width:265px;height:265px;transform:translate(-50%,-50%);border:1px solid #d1db9b24;border-radius:50%;box-shadow:0 0 0 28px #d1db9b09,0 0 0 67px #d1db9b08}.warden-character{position:absolute;z-index:2;height:420px;width:300px;object-fit:contain;left:50%;bottom:9px;transform:translateX(-50%);filter:drop-shadow(0 10px 18px #00161dcc)}
.gear-slot{position:absolute;z-index:3;width:78px;min-height:72px;border:1px solid #91a97d77;border-radius:9px;background:linear-gradient(145deg,#365447e8,#1b3838e8);box-shadow:0 5px 14px #06191eb8;color:#e8eccb;padding:7px 4px;text-align:center}.gear-slot>span{display:block;font-size:24px;line-height:26px;color:#eacb83}.gear-slot b,.gear-slot small{display:block}.gear-slot b{font-size:9px}.gear-slot small{font-size:7px;color:#adc19e}.gear-slot.equipped{border-color:#f1d185;box-shadow:0 0 0 2px #e7cd7130,0 5px 14px #06191e}.slot-gun{left:12px;top:47px}.slot-core{right:12px;top:47px}.slot-armor{left:12px;top:161px}.slot-module{right:12px;top:161px}.slot-locked{right:12px;top:275px;filter:saturate(.4)}.character-name{position:absolute;z-index:3;left:20%;right:20%;bottom:9px;text-align:center;padding:7px;background:#102c32d9;border:1px solid #b8c98a44;border-radius:8px}.character-name b,.character-name span{display:block}.character-name b{font-size:11px;color:#f2dc9f}.character-name span{font-size:7px;color:#a8bda4}
.loadout-tabs{display:flex;gap:5px;padding:8px;background:#0c252b;border-block:1px solid #849a7040}.loadout-tabs button{flex:1;border:0;border-radius:6px;background:transparent;color:#a6b9a1;padding:9px;font-size:10px}.loadout-tabs button.active{background:linear-gradient(#d6dda9,#a9bd85);color:#2b4034;font-weight:800}.inventory-panel{padding:12px 14px 18px;background:#132f32;min-height:190px}.inventory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.inventory-item{position:relative;min-height:132px;border:1px solid #78906d66;border-radius:9px;background:linear-gradient(#29493f,#1e3837);padding:8px 5px;color:#dce6c5;text-align:center}.inventory-item.selected{border-color:#ead285;background:linear-gradient(#576342,#263f37)}.inventory-item b,.inventory-item small,.inventory-item em{display:block}.inventory-item b{font-size:9px}.inventory-item small{font-size:6px;color:#adc09f;margin-top:2px}.inventory-item em{position:absolute;right:5px;top:5px;font:normal 7px sans-serif;color:#f0d793}.inventory-icon{display:block;width:66px;height:66px;margin:1px auto 4px;background:url('assets/units-v2.webp') center/300% 200%;border-radius:8px}.inventory-icon.sprite-pulse{background-position:0 0}.inventory-icon.sprite-ember{background-position:50% 0}.inventory-icon.sprite-arc{background-position:100% 0}
.enhance-list article{display:flex;align-items:center;gap:11px;padding:11px;margin-bottom:8px;border:1px solid #758d6955;border-radius:8px;background:#223f38}.enhance-list article>span{font-size:26px;color:#e6ca86;width:35px;text-align:center}.enhance-list article>div{flex:1}.enhance-list b,.enhance-list small{display:block}.enhance-list b{font-size:11px}.enhance-list small{font-size:8px;color:#a8baa0;margin-top:3px}.module-rack{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.module-cell{min-height:92px;border:1px dashed #778f6c;border-radius:9px;background:#1b3635;color:#b8c8ad}.module-cell.filled{border-style:solid;border-color:#d6c479}.module-cell span,.module-cell b,.module-cell small{display:block}.module-cell span{font-size:28px;color:#e6c987}.module-cell b{font-size:9px}.module-cell small{font-size:7px;color:#9db397}.module-bag{display:flex;gap:7px;margin-top:11px}.module-bag>span{display:flex;gap:4px;padding:7px;border-radius:7px;background:#29453d;color:#e8d99e;font-size:10px}.module-bag small{color:#aebfa2}
.task-screen{min-height:calc(100dvh - 70px);background:radial-gradient(circle at 90% 0,#60684444,transparent 32%),linear-gradient(#17373b,#10272e);padding-bottom:18px}.task-reset{text-align:right;font-size:6px;letter-spacing:1px;color:#9eb29b}.task-reset b{display:block;font-size:9px;color:#e4d498;margin-top:3px}.task-progress{display:flex;align-items:center;gap:8px;padding:14px 17px;background:#102b31;border-bottom:1px solid #748d6540}.task-progress>div{flex:1}.task-progress>div>span{display:block;text-align:right;font-size:8px;color:#e8d79d}.task-progress-track{height:7px;border-radius:5px;background:#071c22;overflow:hidden;margin-top:4px}.task-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#7eb987,#e5cf83)}.task-chest{border:0;background:none;color:#819281;padding:0}.task-chest span{display:block;font-size:22px}.task-chest small{font-size:7px}.task-chest.ready{color:#f2d278;text-shadow:0 0 12px #f5ce6088}
.checkin-card{display:flex;align-items:center;gap:11px;margin:12px 14px;padding:13px;border:1px solid #d3bc745e;border-radius:10px;background:linear-gradient(110deg,#5c5d3a,#28433b);box-shadow:0 6px 15px #071c21aa}.checkin-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#efd687;color:#6a5630;font-size:24px;box-shadow:0 0 18px #efd47555}.checkin-card>div:nth-child(2){flex:1}.checkin-card small,.checkin-card b,.checkin-card span{display:block}.checkin-card small{font-size:6px;letter-spacing:1px;color:#e6dba7}.checkin-card b{font-size:12px;color:#fff0bc;margin:2px 0}.checkin-card span{font-size:8px;color:#c8d4b4}.checkin-card .small-button{background:#e4d28e;color:#344235;border:0}
.mission-list{display:grid;gap:8px;padding:0 14px}.mission-card{display:flex;align-items:center;gap:10px;min-height:92px;padding:12px;border:1px solid #71896655;border-radius:9px;background:linear-gradient(105deg,#29473d,#1b3736);box-shadow:0 4px 10px #07191e77}.mission-card.done{opacity:.66}.mission-index{font:700 20px Georgia,serif;color:#d2c58066;width:31px}.mission-body{flex:1;min-width:0}.mission-body>b,.mission-body>span,.mission-body>small{display:block}.mission-body>b{font-size:10px}.mission-body>span{font-size:7px;color:#e6cd89;margin:3px 0}.mission-body>div{height:5px;border-radius:4px;background:#0a2025;overflow:hidden}.mission-body i{display:block;height:100%;background:#9bc083}.mission-body>small{text-align:right;font-size:7px;color:#a9baa1;margin-top:3px}
body:has(#game:not([hidden])) .shell{padding:0;max-width:540px}body:has(#game:not([hidden])) header{height:50px;padding:0 12px;background:#0b2027;border:0}body:has(#game:not([hidden])) .brand{font-size:13px;letter-spacing:1.2px}body:has(#game:not([hidden])) .brand-icon{font-size:25px}body:has(#game:not([hidden])) .brand-small{display:none}body:has(#game:not([hidden])) .wallet{display:none}
#game{position:relative;width:100%;max-width:none;height:calc(100dvh - 50px);padding:0;overflow:hidden;background:#091b22}.arena{height:100%;border:0;border-radius:0;background:#142934}.game-top{position:absolute;z-index:4;top:9px;left:11px;right:11px;height:55px;padding:8px 10px;border:1px solid #c3c89b55;border-radius:9px;background:linear-gradient(100deg,#0d2931e8,#203a36d9);backdrop-filter:blur(7px);box-shadow:0 4px 14px #00161d88}.game-top>div:first-child{display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:end}.game-top .eyebrow{grid-column:1/-1}.game-top #time{font-size:20px;line-height:22px;color:#f6e6ad}.wave-label{font-size:7px;color:#bacbab;padding-bottom:2px}.game-right #kills{font-size:18px}.game-right span{font-size:5px}.game-top #pause{width:34px;height:34px;padding:0;background:#18343a}
.health-row{position:absolute;z-index:5;top:72px;left:18px;right:18px;margin:0;padding:6px 9px;border:1px solid #c5c99645;border-radius:7px;background:#102930d9;backdrop-filter:blur(5px)}.health-row>span{font-size:6px;letter-spacing:1px;color:#d6dfbc}.health-row .bar{height:7px}.health-row b{font-size:8px;text-align:right}#boss-panel{top:116px;left:18px;right:18px;z-index:5}.run-bottom{position:absolute;z-index:5;left:12px;right:12px;bottom:max(11px,env(safe-area-inset-bottom));height:62px;margin:0;padding:8px 10px;border:1px solid #d7cc8b55;border-radius:9px;background:linear-gradient(100deg,#102a31eb,#32483ce6);backdrop-filter:blur(8px);box-shadow:0 5px 16px #00151ca8;color:#d2ddbd}.run-bottom>div:first-child{font-size:6px;letter-spacing:1px}.run-bottom #level{display:block;font-size:17px;color:#f0d58c}.run-bottom>.xp{height:6px}.run-bottom #skills{min-width:132px;max-width:160px;padding:9px 10px;border-left:1px solid #d4cc8b44;text-align:center;color:#f4dfa4;font-size:9px;font-weight:700}#hint{bottom:82px;font-size:7px;color:#eff0bb;text-shadow:0 1px 5px #07191d}.boss-arena{border:0;box-shadow:inset 0 0 25px #c4793640}
@media(max-width:380px){.chapter-stage{min-height:400px}.chapter-route{width:76%}.route-node{width:37px;height:37px}.route-node.current{width:55px;height:55px}.chapter-focus{top:49%}.chapter-team{height:76px}.character-bay{height:420px}.warden-character{height:390px}.gear-slot{width:69px}.inventory-panel{padding-inline:9px}.inventory-item{min-height:119px}}

/* v11 · original mobile-app page hierarchy */
.app-header{height:70px;padding:8px 12px;display:flex;align-items:center;gap:9px;background:linear-gradient(180deg,#24423c,#122c32);border-bottom:1px solid #c9ca8e4d;box-shadow:0 4px 18px #06181d88;position:relative;z-index:8}
.profile-avatar{position:relative;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d9e9ad,#628268 62%,#26463e);border:2px solid #e2d18d;color:#2c4b3a;font-size:24px;box-shadow:0 2px 8px #001820}.profile-avatar i{position:absolute;right:-3px;bottom:-2px;width:17px;height:17px;border-radius:50%;background:#e2c471;color:#344332;font:700 9px/17px system-ui;text-align:center;border:1px solid #fff0ae}
.profile-summary{min-width:80px}.profile-summary small,.profile-summary strong,.profile-summary span{display:block}.profile-summary small{font-size:6px;letter-spacing:1.2px;color:#a9bba6}.profile-summary strong{font:700 13px/1.2 Georgia,serif;color:#f5edc8;margin:2px 0}.profile-summary span{font-size:7px;color:#e0ca8c}.profile-summary span b{font-size:6px;color:#9fb49e;margin-right:3px}.app-header .wallet{margin-left:auto;display:flex;gap:5px}.app-header .wallet span{padding:5px 7px;border:1px solid #87986a55;border-radius:12px;background:#0d272dac;color:#e6ce8b;font-size:8px}.app-header .wallet b{color:#f5edc8}.app-header .header-actions{gap:4px}.app-header .icon-btn{width:29px;height:29px;padding:0;border-radius:50%;font-size:7px;background:#0e292f;border-color:#9aaa7760}
body:has(#game:not([hidden])) .app-header{display:none}body:has(#game:not([hidden])) #game{height:100dvh}
.battle-skill-icons{display:flex;gap:4px;justify-content:center;margin-bottom:3px}.battle-skill-icons>span{position:relative;width:24px;height:24px;display:grid;place-items:center;border:1px solid #d8c67b77;border-radius:6px;background:#24473f;color:#f4d78a;font-size:14px}.battle-skill-icons>span.empty{color:#789083}.battle-skill-icons i{position:absolute;right:-3px;bottom:-3px;width:12px;height:12px;border-radius:50%;background:#e0c675;color:#263c31;font:700 7px/12px system-ui}.gun-ammo{display:grid;grid-template-columns:auto auto;gap:0 5px;align-items:end}.gun-ammo small{font-size:5px;letter-spacing:1px;color:#b5c4aa}.gun-ammo b{grid-row:1/3;grid-column:2;font-size:20px;line-height:20px;color:#fff0b2}.gun-ammo b em{font:normal 8px system-ui;color:#aebfa7}.gun-ammo>i{font:normal 5px system-ui;color:#90b692}.loot-counter{font-size:6px;color:#dbc780;margin-top:2px}.run-bottom #skills{display:flex;flex-direction:column;justify-content:center;min-width:146px;padding:5px 7px}
@media(max-width:380px){.profile-summary{min-width:66px}.app-header .wallet span{padding:4px 5px}.app-header{gap:6px}.run-bottom #skills{min-width:132px}}
main:has(.character-screen) #panel{margin:0 -14px;padding:0 0 82px;background:#102a30;min-height:calc(100dvh - 70px)}
.character-profile-hero{position:relative;height:420px;overflow:hidden;background:radial-gradient(circle at 50% 43%,#b9d99b33,transparent 34%),linear-gradient(#1a3b3d,#102a30)}.character-profile-hero>img{position:absolute;height:398px;width:290px;object-fit:contain;left:50%;bottom:0;transform:translateX(-50%);filter:drop-shadow(0 9px 18px #001820)}.profile-rings{position:absolute;width:280px;height:280px;left:50%;top:44%;transform:translate(-50%,-50%);border:1px solid #d4d69b29;border-radius:50%;box-shadow:0 0 0 35px #d4d69b0b,0 0 0 70px #d4d69b08}.profile-level{position:absolute;left:14px;bottom:13px;width:132px;padding:10px;border:1px solid #d9cf8955;border-radius:9px;background:#102c32dc}.profile-level small,.profile-level b,.profile-level span{display:block}.profile-level small{font-size:6px;letter-spacing:1px;color:#afc1a8}.profile-level b{font-size:17px;color:#f1d58f}.profile-level>div{height:5px;background:#071d23;border-radius:3px;overflow:hidden}.profile-level i{display:block;height:100%;background:#b7d68f}.profile-level span{text-align:right;font-size:6px;color:#9eaf99;margin-top:2px}.attribute-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:11px 12px;background:#0d262c;border-block:1px solid #81986b44}.attribute-grid article{text-align:center;padding:8px 3px;border:1px solid #758d6750;border-radius:8px;background:#1c3936}.attribute-grid span,.attribute-grid small,.attribute-grid b{display:block}.attribute-grid span{font-size:18px;color:#e2c982}.attribute-grid small{font-size:5px;color:#9fb29c;letter-spacing:.5px}.attribute-grid b{font-size:12px;color:#eef0d3}.character-growth{padding:13px}.section-label{display:flex;justify-content:space-between;align-items:end;margin-bottom:8px}.section-label span{font-size:9px;color:#e7ddb3;letter-spacing:1px}.section-label small{font-size:6px;color:#93a995}.character-growth>button{width:100%;display:flex;align-items:center;gap:11px;margin-bottom:8px;padding:11px;border:1px solid #718a6555;border-radius:9px;background:linear-gradient(100deg,#29483e,#1a3636);color:#e4e9cc;text-align:left}.character-growth>button>span{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#3a5544;color:#e8cc84;font-size:22px}.character-growth>button>div{flex:1}.character-growth b,.character-growth small{display:block}.character-growth b{font-size:10px}.character-growth small{font-size:7px;color:#9fb49d;margin-top:3px}.character-growth em{font:normal 22px Georgia;color:#d7cd91}
.profile-summary em{font-style:normal}.manual-steps{display:grid;gap:8px;margin:18px 0}.manual-steps p{margin:0;padding:12px;border:1px solid #b5c38b33;border-radius:10px;font-size:12px;line-height:1.7;background:#183734}.manual-steps b{color:#e5ca82;margin-right:8px}.save-actions{display:flex;gap:9px;align-items:center}.save-actions .primary{flex:1;margin:0;padding:12px;font-size:12px}.import-label{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;min-height:48px;padding:12px}.import-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}#save-feedback{font-size:11px;color:#e6cd9a}.app-header .icon-btn{min-width:27px}.chapter-meta small,.profile-summary small{font-size:8px}.chapter-meta b{min-width:70px}.chapter-meta small{letter-spacing:0}.run-bottom{pointer-events:none}.game-top{pointer-events:none}.game-top #pause{pointer-events:auto}.result-stat{flex-wrap:wrap;gap:16px}.tabs button{min-height:48px}
.module-bag{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-bag>article{display:grid;grid-template-columns:25px 1fr auto;gap:4px;align-items:center;padding:10px;border:1px solid #81996b55;border-radius:9px;background:#26453b}.module-bag>article>span{font-size:23px;color:#e5ca86}.module-bag b{font-size:9px}.module-bag small{font-size:9px}.module-bag .small-button{grid-column:1/-1;min-height:34px;margin-top:5px}.task-chest{min-width:40px;min-height:44px}.task-chest small{font-size:9px}.mission-body>b{font-size:12px}.mission-body>span,.mission-body>small{font-size:9px}.enhance-list b{font-size:13px}.enhance-list small{font-size:10px}.enhance-list .small-button{min-height:40px;min-width:54px}
/* 0.14 · transparent, progress-based supply storefront */
main:has(.store-screen) #panel{margin:0 -14px;padding:0 0 85px;background:#112b30}.store-screen{min-height:calc(100dvh - 70px)}.store-title{display:flex;justify-content:space-between;gap:14px;padding:23px 19px 17px;background:radial-gradient(ellipse at 100% 0,#71845a77,transparent 70%),linear-gradient(100deg,#294b3f,#18383a);border-bottom:1px solid #bdc58b44}.store-title small{color:#d1c88b;font-size:9px;letter-spacing:2px}.store-title h2{font:750 23px/1.2 system-ui;margin:9px 0 0;max-width:280px;color:#f7eed0}.store-title>span{font-size:47px;color:#e4ce83;align-self:center}.store-tabs{display:flex;gap:6px;padding:9px 14px;background:#0c252b}.store-tabs button{flex:1;background:none;border:0;border-radius:8px;color:#aec0a7;padding:11px}.store-tabs button.active{background:#d4dda2;color:#2c4334;font-weight:750}.store-test-note{margin:10px 16px;font-size:10px;line-height:1.5;color:#b4c4ae}.store-feature{display:flex;position:relative;overflow:hidden;min-height:205px;margin:13px 14px 16px;padding:20px;border:1px solid #e8cf8055;border-radius:14px;background:radial-gradient(ellipse at 90% 60%,#ac8d3e55,transparent 60%),linear-gradient(110deg,#46573d,#203d37);box-shadow:0 8px 20px #041b2077}.store-feature>div:first-child{position:relative;z-index:2;width:67%}.store-feature small{font-size:8px;letter-spacing:1.5px;color:#e7d59a}.store-feature h3{font-size:22px;line-height:1.2;margin:9px 0;color:#f8efca}.store-feature p{font-size:11px;line-height:1.6;color:#cbd8b8;margin:0 0 14px}.store-feature .primary{font-size:11px;padding:11px;min-height:40px;gap:8px}.store-feature-art{position:absolute;right:6px;top:25%;width:145px;height:145px;display:grid;place-items:center;font-size:90px;color:#e9d385;filter:drop-shadow(0 12px 12px #001b22);opacity:.8}.store-feature-art.ember-art{background:url('assets/units-v2.webp') 50% 0/300% 200%;right:-9px;transform:rotate(-12deg);border-radius:50%;opacity:1}.offer-list{display:grid;gap:10px;padding:0 14px}.offer-card{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:16px 12px;border:1px solid #a0b17b44;border-radius:12px;background:linear-gradient(110deg,#28473d,#183437);box-shadow:0 4px 12px #001b2044}.offer-icon{flex:none;width:43px;height:47px;display:grid;place-items:center;border-radius:10px;background:#61704a55;color:#e7cc82;font-size:28px;border:1px solid #d9c97844}.offer-copy{flex:1;min-width:0}.offer-copy small{font-size:7px;letter-spacing:.8px;color:#c9c68d}.offer-copy h3{margin:4px 0 3px;font-size:13px;color:#eef0d1}.offer-copy p{font-size:9px;color:#aabfa4;line-height:1.5;margin:0}.offer-price{flex:none;align-self:center;text-align:right}.offer-price b{font-size:17px;color:#f2daa0}.offer-price span{display:block;font-size:8px;color:#a9bda2;margin-top:5px}.store-free-path{font-size:10px;color:#98b19b;line-height:1.8;margin:17px}.offer-detail{position:relative;text-align:center}.offer-close{position:absolute;right:-8px;top:-10px;width:32px;height:32px;border:1px solid #a4b18055;border-radius:50%;background:#173039;color:#e7e5bd;font-size:22px}.detail-emblem{margin:0 auto 16px;width:76px;height:76px;display:grid;place-items:center;border-radius:20px;background:radial-gradient(circle,#778252,#294c40);border:1px solid #d8c47788;box-shadow:0 0 30px #cfbc5d22;color:#f4dfa1;font-size:44px}.offer-detail>.eyebrow{justify-content:center;color:#ceca91;font-size:8px}.offer-detail h2{font-size:26px}.offer-detail>p{font-size:12px;line-height:1.7}.offer-contents{margin:20px 0;border:1px solid #a4b47a44;border-radius:11px;background:#0f2b30;text-align:left;overflow:hidden}.offer-contents>div{display:flex;gap:10px;padding:12px;border-top:1px solid #a4b47a22}.offer-contents>div:first-child{border:0}.offer-contents span{color:#d5df99}.offer-contents b{font-size:11px;color:#dce6c5;font-weight:550}.value-preview{text-align:left;padding:15px;margin:16px 0;background:linear-gradient(120deg,#61613c55,#234437);border:1px solid #cdbb6a66;border-radius:10px}.value-preview small,.value-preview b,.value-preview span{display:block}.value-preview small{font-size:8px;letter-spacing:.8px;color:#b9c6a0}.value-preview b{font-size:17px;color:#f2dd9c;margin:6px 0}.value-preview p{font-size:11px;line-height:1.6;color:#d2dcb7}.value-preview span{font-size:9px;color:#a4b69d;line-height:1.6}.offer-detail .free-route{font-size:10px;color:#aabda0;text-align:left}.purchase-footer{display:flex;gap:12px;align-items:center;border-top:1px solid #aab87c33;padding-top:17px;margin-top:18px}.purchase-footer>div{text-align:left;flex:1}.purchase-footer small{display:block;font-size:7px;letter-spacing:.6px;color:#aebd9c}.purchase-footer strong{font-size:27px;color:#f0d795;display:block}.purchase-footer .primary{width:auto;flex:1.5;margin:0;padding:13px 9px;font-size:12px;justify-content:center}.offer-detail .intent-note{font-size:9px;line-height:1.7;color:#99ae97;text-align:left;margin:13px 0 0}#offer-feedback{color:#dbeab2;font-size:11px;line-height:1.7;margin-top:12px}.pass-progress{padding:16px}.pass-progress strong{font-size:13px;color:#e4ddb2}.pass-progress>div{height:8px;background:#071b23;border-radius:5px;overflow:hidden;margin:9px 0}.pass-progress i{display:block;height:100%;background:linear-gradient(90deg,#8fc185,#e5d08b)}.pass-progress small{font-size:9px;color:#9bb399}.pass-heading,.pass-tier{display:grid;grid-template-columns:50px 1fr 1fr;gap:8px;margin:0 14px}.pass-heading{padding:10px 8px;font-size:10px;color:#b5c2a0;text-align:center}.pass-tier{padding:11px 8px;border:1px solid #81976d44;background:#1d3a35;border-radius:9px;margin-bottom:8px;text-align:center;align-items:center}.pass-tier.earned{border-color:#d0c57566}.pass-tier strong{font-size:12px;color:#dfd49c}.pass-tier b{font-size:18px;color:#e9dea6}.pass-tier small{display:block;font-size:8px;color:#abc09f}.pass-tier .small-button{font-size:9px;padding:7px 5px;width:100%;margin-top:5px}.pass-unlock{margin:16px auto;width:calc(100% - 28px);font-size:12px;justify-content:center}.enhance-supply{display:flex;gap:9px;align-items:center;padding:9px;margin-bottom:10px;border:1px solid #bbbd7b44;border-radius:8px;background:#57603b33}.enhance-supply span{flex:1;font-size:10px;color:#b7c7a7}.tabs button[data-tab=supply]:before{content:'◈'}
.monthly-claim{margin:13px 14px;display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #dfc67c66;border-radius:10px;background:#4a583c}.monthly-claim>span{font-size:27px;color:#ecd48e}.monthly-claim>div{flex:1}.monthly-claim b,.monthly-claim small{display:block}.monthly-claim b{font-size:12px}.monthly-claim small{font-size:9px;color:#bac9a7;margin-top:3px}

.audio-setting{padding:18px 0;border-bottom:1px solid #ffffff18;display:grid;gap:14px}.audio-setting label{display:flex;align-items:center;gap:12px}.audio-setting input[type=range]{flex:1;min-width:80px;accent-color:#a3d6ad}.audio-setting input[type=checkbox]{accent-color:#a3d6ad;width:18px;height:18px}.audio-setting output{min-width:40px;font-variant-numeric:tabular-nums}

.enemy-roster-link{color:#c2e8bb;border:0;background:transparent;padding:4px 0;font-size:11px;cursor:pointer}.enemy-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.enemy-roster article{background:radial-gradient(ellipse at 50% 40%,#36525b99,#12262f);border:1px solid #c5e6d122;border-radius:12px;overflow:hidden;padding:6px;text-align:center}.enemy-portrait{aspect-ratio:1;background-image:url('assets/enemies-v17.png');background-size:300% 200%;background-position:calc(var(--col) * 50%) calc(var(--row) * 100%);background-repeat:no-repeat}.enemy-roster small{color:#b4d99e;font-size:8px;letter-spacing:1px}.enemy-roster h3{font-size:12px;margin:5px 0 9px;color:#e9eddb}.modal:has(.enemy-roster){max-width:650px}@media(max-width:450px){.enemy-roster{grid-template-columns:repeat(2,minmax(0,1fr))}}

.enemy-portrait.animated-enemy{width:100%;height:auto;display:block;background-image:none}

/* The battlefield fills the WebView; safe insets apply to controls once. */
:root{--atoshi-safe-top:0px;--game-safe-top:max(env(safe-area-inset-top,0px),var(--atoshi-safe-top))}
body{padding-top:var(--game-safe-top)}
body:has(#game:not([hidden])){padding-top:0;overflow:hidden}
#game{position:fixed;inset:0;width:100%;max-width:540px;margin:0 auto;height:100dvh;z-index:6}
#game .game-top{top:calc(var(--game-safe-top) + 9px)}
#game .health-row{top:calc(var(--game-safe-top) + 72px)}
#game #boss-panel{top:calc(var(--game-safe-top) + 116px)}

/* Fit the expedition to the actual WebView, including its supplied safe inset. */
body:has(#lobby:not([hidden]) .chapter-stage){overflow:hidden}
body:has(#lobby:not([hidden]) .chapter-stage) .shell{height:calc(100dvh - var(--game-safe-top));min-height:0;display:flex;flex-direction:column;padding:0}
body:has(#lobby:not([hidden]) .chapter-stage) .app-header{height:62px;flex:0 0 62px}
#lobby:has(.chapter-stage){display:flex;flex-direction:column;flex:1;min-height:0}
#lobby:has(.chapter-stage) #panel{order:0;flex:1;min-height:0;padding:0;margin:0;overflow:hidden}
#lobby .chapter-stage{height:100%;min-height:0}
#lobby:has(.chapter-stage) .mission{order:1;position:static;transform:none;width:100%;height:128px;flex:0 0 128px;padding:9px 14px;gap:6px 10px}
#lobby:has(.chapter-stage) .tabs{order:2;position:static;transform:none;width:100%;height:calc(60px + env(safe-area-inset-bottom,0px));flex:0 0 calc(60px + env(safe-area-inset-bottom,0px));padding:3px 7px max(3px,env(safe-area-inset-bottom,0px))}
#lobby .chapter-team{height:52px;bottom:10px}
#lobby .chapter-team img{width:72px;height:100px}
#lobby .chapter-focus{top:48%}
#lobby .chapter-head{height:64px;padding:10px 15px}
#lobby .chapter-focus h2{margin:5px 0}
/* Keep the archive's exit outside the flexible three-row monster grid. */
.overlay:has(.roster-dialog){padding:calc(var(--game-safe-top) + 12px) 14px max(12px,env(safe-area-inset-bottom,0px))}
.modal:has(.roster-dialog){height:min(780px,calc(100dvh - var(--game-safe-top) - max(12px,env(safe-area-inset-bottom,0px)) - 12px));max-height:none;overflow:hidden;padding:16px}
.roster-dialog{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px}
.roster-heading{flex:none}
.roster-heading h2{font-size:23px;line-height:1.2;margin:5px 0 7px}
.roster-heading p{font-size:11px;line-height:1.45;margin:0}
.roster-heading .eyebrow{font-size:8px}
.roster-dialog .enemy-roster{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}
.roster-dialog .enemy-roster article{min-height:0;display:flex;flex-direction:column;align-items:center;padding:4px}
.roster-dialog .animated-enemy{min-height:0;flex:1;width:100%;height:0;object-fit:contain;aspect-ratio:auto}
.roster-dialog .enemy-roster small{flex:none;font-size:7px;line-height:1.2;letter-spacing:.4px}
.roster-dialog .enemy-roster h3{flex:none;font-size:11px;line-height:1.2;margin:3px 0 4px}
.roster-dialog>.note{flex:none;font-size:10px;line-height:1.35;margin:0}
#enemy-roster-close{flex:none;min-height:44px;width:100%;margin:0;padding:10px}
@media(max-height:650px){
 #lobby:has(.chapter-stage) .app-header{height:54px;flex-basis:54px}
 #lobby:has(.chapter-stage) .mission{height:112px;flex-basis:112px;padding:7px 12px}
 #lobby .chapter-team{display:none}
 #lobby .chapter-route{top:35%}
 #lobby .chapter-focus{top:55%}
 #lobby .chapter-meta b{padding:5px;min-width:60px}
 .modal:has(.roster-dialog){padding:12px}
 .roster-dialog{gap:6px}
 .roster-heading h2{font-size:20px;margin:3px 0 5px}
 .roster-heading p{font-size:10px}
}
#lobby:has(.chapter-stage) .mission{grid-template-rows:36px minmax(0,1fr)}
#lobby:has(.chapter-stage) #prep-weapon{height:36px;min-height:0;padding:0 0 5px}
#lobby:has(.chapter-stage) .prep-thumb{width:30px;height:30px}
#lobby:has(.chapter-stage) .mission-description{min-width:0;align-self:center}
#lobby:has(.chapter-stage) .mission-description>.eyebrow,#lobby:has(.chapter-stage) #mission-info{display:none}
#lobby:has(.chapter-stage) .mission h2{font-size:17px;line-height:1.2;margin:0 0 3px}
#lobby:has(.chapter-stage) .enemy-roster-link{height:25px;min-height:25px;padding:0;font-size:10px;line-height:25px}
#lobby:has(.chapter-stage) .mission .primary{min-height:44px;padding:10px 12px}
@media(max-height:650px){body:has(#lobby:not([hidden]) .chapter-stage) .app-header{height:54px;flex-basis:54px}}

.account-status{order:-1;flex:none;min-height:25px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 12px;background:#102b30;color:#c6d7b6;font-size:9px;line-height:1.4}.account-status>span{min-width:0}.account-status .small-button{flex:none;min-height:28px;padding:3px 7px;font-size:10px}

/* Compact purchase receipt keeps the return action in view. */
#modal:has(.purchase-result){overflow:hidden;max-height:calc(100dvh - var(--game-safe-top,0px) - 24px);display:flex;padding:20px}
.purchase-result{display:flex;flex-direction:column;min-height:0;width:100%;text-align:center;gap:8px}.purchase-result h2,.purchase-result p{margin:0}.purchase-result p,.purchase-result small{font-size:12px;color:#b1c7bd}.purchase-seal{margin:auto;color:#dcf69b;font-size:28px}.purchase-rewards{overflow:auto;min-height:0;display:grid;gap:8px;text-align:left}.purchase-rewards article{padding:12px;background:#ffffff08;border:1px solid #c6e9b32b;border-radius:12px;display:grid;gap:5px}.purchase-rewards strong{color:#e4f5a7;font-size:18px}.purchase-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex-shrink:0}.purchase-actions button{min-height:44px}.purchase-actions .primary{grid-column:1/-1}
