*{box-sizing:border-box}html{background:#182a30}body{margin:0;min-height:100svh;color:#f2f0de;font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif;background:radial-gradient(ellipse at 50% 10%,#334b50,#182a30 65%);overscroll-behavior:none}main{max-width:490px;margin:auto;padding:12px 14px max(15px,env(safe-area-inset-bottom))}header{display:flex;align-items:center;gap:8px;margin-bottom:10px}.brand{text-decoration:none;color:#f5efd9;font-weight:950;letter-spacing:2px;font-size:20px;line-height:1}.brand span{color:#e7b75d;font-size:8px;display:block;letter-spacing:5px;margin-top:4px}.edition{font-size:8px;letter-spacing:1.8px;color:#93abae;flex:1;padding-left:5px}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.icon{background:#294149;border:1px solid #4b6367;color:#dfebeb;border-radius:9px;font-size:11px;min-width:44px;height:34px}.title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}h1{font-size:22px;margin:0;letter-spacing:-1px}.version{border:1px solid #8b8055;color:#edcd85;font-size:10px;padding:3px 7px;border-radius:4px}.hud{display:grid;grid-template-columns:1fr 1.2fr .8fr 1fr;border:1px solid #4d6164;background:#243b43;border-radius:12px 12px 0 0;padding:9px 2px}.stat{text-align:center;border-right:1px solid #43565c}.stat:last-child{border:0}.stat>span{display:block;font-size:9px;color:#afc4c7;margin-bottom:2px}.stat b{font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums}.stat small{font-size:10px;margin-left:4px}.army b{color:#7dd9fd}.gun b{font-size:19px;color:#f8d080}.shield b{font-size:12px;letter-spacing:1px;color:#edbb71}.arena{position:relative;height:min(70svh,690px);min-height:320px;overflow:hidden;border:1px solid #4d6164;border-top:0;border-radius:0 0 13px 13px;background:#6b8d83;box-shadow:0 18px 55px #08141b66}canvas{display:block;width:100%;height:100%;touch-action:none}.banner{position:absolute;top:13px;left:50%;transform:translateX(-50%);max-width:96%;width:max-content;padding:7px 14px;border-radius:6px;background:#172a30dd;color:#fff7d6;font-size:11px;font-weight:750;pointer-events:none;opacity:0;transition:opacity .15s}.banner.show{opacity:1}.overlay{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:20px 20px 48px;background:linear-gradient(180deg,#13283300,#14262c44 22%,#14262ce8 60%)}.overlay.hidden{display:none}.panel{width:100%;max-width:350px;text-align:left}.eyebrow{font-size:10px;color:#f9ce78;letter-spacing:2px;font-weight:800}.panel h2{font-size:43px;letter-spacing:-2px;line-height:1.2;margin:12px 0 14px;color:#fff7df;text-shadow:0 3px 0 #142a2f}.panel p{font-size:13px;line-height:1.85;color:#d9e3dc;margin:12px 0 20px}.steps{display:flex;justify-content:space-between;gap:6px;margin-bottom:20px;font-size:10px}.steps i{display:block;font-style:normal;font-size:9px;color:#deb56a;border-bottom:1px solid #74877a;padding-bottom:4px;margin-bottom:5px}.primary{border:1px solid #ffe3a2;border-radius:10px;width:100%;background:linear-gradient(#ffe0a0,#edb558);box-shadow:0 5px 0 #876133,0 9px 20px #0003;color:#26373a;font-weight:900;font-size:17px;min-height:55px;padding:0 18px;display:flex;align-items:center;justify-content:space-between}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #876133}.hint{font-size:10px;color:#aabfbd;text-align:center;margin-top:14px}.weapon-strip{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.1px;color:#d4d6c8;background:#193138d9;border:1px solid #758b85;border-radius:20px;padding:6px 12px;pointer-events:none;white-space:nowrap}.weapon-strip i{width:12px;height:1px;background:#93aaa3}.weapon-strip .on{color:#ffe4a7;font-weight:900}.timeline{height:4px;position:relative;background:#3d5358;margin-top:10px;border-radius:4px;overflow:hidden}.timeline div{height:100%;background:#eabe74;width:0}.timeline>span{position:absolute;left:83.3%;top:0;bottom:0;width:2px;background:#ff7771}footer{display:flex;justify-content:space-between;gap:4px;font-size:9px;color:#a6b8b5;margin-top:10px}#best{color:#e6c789;white-space:nowrap}details{font-size:11px;color:#a5b9b8;margin-top:15px}summary{cursor:pointer}details p{line-height:1.8;margin:10px 0}.result{display:flex;gap:35px;margin:22px 0}.result b{display:block;font-size:30px;color:#ffe2a0}.result span{font-size:10px;color:#b7cbc4}.stamp{font-size:11px;color:#ffe2a0;letter-spacing:2px}.secondary{width:100%;background:transparent;border:0;color:#c7d8cf;padding:15px;font-size:12px}@media(max-height:700px){main{padding-top:7px}header{margin-bottom:6px}.title{margin-bottom:6px}h1{font-size:19px}.hud{padding:5px 2px}.stat b{font-size:20px}.shield b{font-size:11px}.arena{height:67svh}.panel h2{font-size:34px}.panel p{margin:8px 0 12px}.steps{margin-bottom:12px}.overlay{padding-bottom:40px}.eyebrow{font-size:9px}.primary{min-height:48px}details{margin-top:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.stage-label{font-size:9px;color:#dfc494;letter-spacing:1.2px;margin:-3px 0 8px}.build{font-size:10px;color:#b8cbc4;margin-top:9px}.upgrade-list{display:grid;gap:8px;margin-top:14px}.upgrade{border:1px solid #6e8583;background:linear-gradient(120deg,#2a464f,#1c323b);padding:13px 14px;border-radius:10px;text-align:left;color:#fff4da;min-height:72px}.upgrade b{display:flex;justify-content:space-between;font-size:15px}.upgrade em{font-style:normal;color:#f4c87b}.upgrade span{display:block;font-size:11px;line-height:1.6;color:#bcd1cb;margin-top:5px}.upgrade:hover,.upgrade:focus-visible{border-color:#f9d18b;background:#38544f}.panel{max-height:100%;overflow-y:auto;scrollbar-width:thin}.overlay{padding-bottom:44px}.shield b{font-size:17px;letter-spacing:0}.timeline>span{left:33.33%;width:1px;background:#d7d4ad;box-shadow:none}button[hidden]{display:none}button:focus-visible,a:focus-visible{outline:3px solid #82d9ef;outline-offset:3px}@media(max-height:740px){.panel h2{font-size:30px}.panel p{font-size:12px;margin-bottom:12px}.upgrade{padding:10px 12px;min-height:66px}.stage-label{margin-bottom:5px}.arena{height:65svh}}

.timeline:after{content:"";position:absolute;left:66.66%;top:0;bottom:0;width:1px;background:#d7d4ad}

/* Elite combat UI */
body{background:radial-gradient(ellipse at 50% 0%,#273e49,#101d26 75%)}main{max-width:500px}.arena{height:min(65svh,670px);border-color:#648188;box-shadow:0 18px 70px #020b1477}.combat-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0 0}.combat-bar>div{flex:1;min-width:0}.combat-bar>div span{display:block;font-size:12px;font-weight:900;color:#9addeb;letter-spacing:1.2px}.combat-bar>div small{display:block;font-size:8px;color:#809ca6;margin-top:4px}.break-button{position:relative;overflow:hidden;min-width:151px;min-height:52px;border:1px solid #5a929e;border-radius:9px;color:#e2f8f7;background:linear-gradient(90deg,#275363 var(--charge),#1a2d37 var(--charge));padding:8px 13px;box-shadow:inset 0 1px #bce8ef33;text-align:left}.break-button b{font-size:13px;letter-spacing:.8px;display:block}.break-button small{font-size:8px;color:#a3ced3;display:block;margin-top:3px}.break-button.ready{background:linear-gradient(115deg,#baeff2,#68c2d1);color:#173743;border-color:#d4ffff;box-shadow:0 0 18px #83dce538,inset 0 1px #e8ffff}.break-button.ready small{color:#255466}.break-button:disabled{cursor:default}.break-button.ready:active{transform:scale(.97)}.version{color:#f2a284;border-color:#916858;background:#57382f33}.panel h2{font-size:38px}.steps i{color:#f9a77b}.primary{background:linear-gradient(115deg,#fddca1,#e7a966)}.overlay{background:linear-gradient(180deg,#0b172400,#0e21384d 24%,#091c2bf0 64%)}.hud{background:linear-gradient(120deg,#233d49,#1b303c)}.stage-label{color:#9fc5ce}.edition{letter-spacing:1.2px;font-size:7px}.stat.gun b{color:#ffdca7}details{padding-bottom:12px}@media(max-height:760px){main{padding-top:6px}.arena{height:59svh;min-height:295px}.title{margin-bottom:5px}.panel h2{font-size:29px}.panel p{font-size:11px;margin:8px 0 10px}.combat-bar{padding-top:7px}.break-button{min-height:45px}.timeline{margin-top:7px}.overlay{padding:15px 18px 39px}.stage-label{font-size:8px}.hint{font-size:9px;margin-top:10px}.steps{margin-bottom:11px}.build,details{margin-top:7px}}

/* Horde telemetry: one compact row, stable counters, no extra touch targets. */
.battle-stats{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:7px 11px;background:#172e38;border:1px solid #4d6164;border-top:0;font-size:9px;color:#9fb9be;font-variant-numeric:tabular-nums}.battle-stats b{font-size:13px;color:#ffc795;margin-left:4px}.battle-stats span:nth-child(2) b{color:#bcefee}.battle-stats label{display:flex;align-items:center;gap:6px}.battle-stats i{display:block;width:49px;height:5px;background:#41525a;overflow:hidden;border-radius:4px}.battle-stats em{display:block;width:0;height:100%;background:linear-gradient(90deg,#d2bc71,#ff866d)}.version{color:#a6ece9;border-color:#538c97;background:#21444e}.arena{height:min(62svh,650px)}@media(max-height:760px){.arena{height:56svh}.battle-stats{padding:5px 9px}}

.return-links{display:flex;justify-content:space-between;gap:12px;margin-bottom:4px}.return-links a{display:flex;align-items:center;min-height:44px;color:#c9dee1;font-size:12px;text-decoration:none;padding:0 5px}.return-links a:hover{text-decoration:underline}
