:root{--ink-950:#0b0c12;--ink-900:#14161f;--ink-800:#1c1f2c;--ink-700:#262a3b;--ink-600:#333850;--line:#ffffff24;--text:#f4f5fa;--muted:#b5b9cc;--yellow:#ffd23a;--yellow-deep:#e3a600;--red:#ff4d4d;--red-deep:#c21f2f;--blue:#3fa9ff;--good:#7ee06a;--radius:12px;--font-display:"Arial Black", "Segoe UI Black", "Helvetica Neue", system-ui, -apple-system, sans-serif;--font-ui:system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}*,:before,:after{box-sizing:border-box}html,body{background:var(--ink-900);height:100%;color:var(--text);font-family:var(--font-ui);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;overscroll-behavior:none;touch-action:none;margin:0;font-size:16px;line-height:1.35;overflow:hidden}:lang(ja){word-break:auto-phrase;line-break:strict}:lang(ko),:lang(zh-Hans),:lang(zh-Hant){word-break:keep-all;line-break:strict}:lang(ar){line-break:strict}button,select{font:inherit;color:inherit}img{-webkit-user-drag:none}[hidden]{display:none!important}[dir=rtl] .icon-directional{transform:scaleX(-1)}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.app{position:fixed;inset:0;overflow:hidden}.stage{touch-action:none;width:100%;height:100%;display:block;position:absolute;inset:0}.layer{pointer-events:none;position:absolute;inset:0}.layer>*{pointer-events:auto}.layer>.hud,.layer>.coach{pointer-events:none}.boot{background:var(--ink-900);place-items:center;display:grid;position:fixed;inset:0}.boot__spinner{border:4px solid #ffd23a40;border-top-color:var(--yellow);border-radius:50%;width:42px;height:42px;animation:.9s linear infinite spin}.fatal{text-align:center;background:var(--ink-900);color:var(--text);place-items:center;margin:0;padding:24px;font-weight:700;display:grid;position:fixed;inset:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}}@keyframes pop-in{0%{opacity:0;transform:scale(.92)}}.btn{border:3px solid var(--ink-950);min-height:44px;color:var(--text);letter-spacing:.01em;box-shadow:0 4px 0 var(--ink-950), inset 0 2px 0 #ffffff1f;white-space:nowrap;cursor:pointer;touch-action:manipulation;background:linear-gradient(#3b4160,#262a3d);border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:8px 18px;font-weight:800;transition:transform 80ms,filter .15s,box-shadow 80ms;display:inline-flex}.btn:hover{filter:brightness(1.12)}.btn:active{box-shadow:0 1px 0 var(--ink-950);transform:translateY(3px)}.btn:disabled{cursor:default;filter:none;transform:none}.btn:focus-visible,.icon-btn:focus-visible,.chip:focus-visible,.tab:focus-visible,.rival:focus-visible,.switch:focus-visible,.select:focus-visible,.link:focus-visible{outline-offset:2px;outline:3px solid #fff}.btn__icon{flex:none;display:inline-flex}.btn__icon svg{width:20px;height:20px}.btn--primary{background:linear-gradient(180deg, #ffe680, var(--yellow) 45%, var(--yellow-deep));color:#1a1306}.btn--danger{background:linear-gradient(180deg, #ff6b6b, var(--red-deep))}.btn--hero{min-width:min(320px,60vw);min-height:60px;font-family:var(--font-display);letter-spacing:.04em;text-transform:uppercase;box-shadow:0 6px 0 var(--ink-950), inset 0 2px 0 #ffffff80;padding:10px 30px;font-size:clamp(1.3rem,7vh,1.9rem)}.btn--hero .btn__icon svg{width:28px;height:28px}.btn--small{min-height:36px;box-shadow:0 3px 0 var(--ink-950);border-width:2px;padding:4px 12px;font-size:.88rem}.btn--reward{background:linear-gradient(180deg, #b8f5a6, var(--good) 45%, #3f9a2c);color:var(--ink-900)}.btn--reward:disabled,.btn--primary:disabled{filter:grayscale(.6)brightness(.8);cursor:progress}.btn.is-unaffordable{filter:grayscale(.7)brightness(.8)}.btn.is-equipped{opacity:1;background:linear-gradient(#5bd16a,#2f8f3e)}.icon-btn{border:3px solid var(--ink-950);width:44px;height:44px;color:var(--text);cursor:pointer;box-shadow:0 3px 0 var(--ink-950);touch-action:manipulation;background:linear-gradient(#3b4160,#262a3d);border-radius:50%;flex:none;place-items:center;padding:0;display:inline-grid;position:relative}.icon-btn svg{width:20px;height:20px}.icon-btn:active{box-shadow:0 1px 0 var(--ink-950);transform:translateY(2px)}.icon-btn--more{color:var(--blue)}.pill{border:2px solid var(--ink-950);color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;background:#14161fe0;border-radius:999px;align-items:center;gap:6px;padding:4px 12px 4px 8px;font-weight:800;display:inline-flex}.pill__icon{display:inline-flex}.pill__icon svg{width:20px;height:20px}.pill__label{opacity:.85;font-size:.8rem;font-weight:700}.pill--coins .pill__value{color:var(--yellow)}.pill--big{padding:6px 16px 6px 10px;font-size:1.1rem}.tabs{scrollbar-width:none;flex:none;gap:6px;display:flex;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tab{border:2px solid var(--ink-950);background:var(--ink-700);min-height:38px;color:var(--muted);cursor:pointer;white-space:nowrap;border-radius:10px;flex:none;align-items:center;gap:6px;padding:4px 14px;font-weight:800;display:inline-flex}.tab .btn__icon svg{width:16px;height:16px}.tab.is-active{background:var(--yellow);color:#1a1306}.tab.is-locked{opacity:.6}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:2px solid var(--ink-950);background:var(--ink-700);min-height:38px;color:var(--text);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-size:.9rem;font-weight:700;display:inline-flex}.chip .btn__icon svg{width:18px;height:18px}.chip.is-active{background:var(--yellow);color:#1a1306}.panel{border:3px solid var(--ink-950);color:var(--text);background:linear-gradient(#2a2e42f7,#1a1c28f7);border-radius:16px;box-shadow:0 10px 28px #00000073,inset 0 2px #ffffff12}.screen{padding:calc(8px + var(--safe-top)) calc(12px + var(--safe-right)) calc(8px + var(--safe-bottom)) calc(12px + var(--safe-left));flex-direction:column;gap:8px;animation:.2s fade-in;display:flex;position:absolute;inset:0}.screen:not(.screen--menu){-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:linear-gradient(#0b0c12d1,#0b0c12eb)}.screen__header{flex:none;align-items:center;gap:10px;display:flex}.screen__title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--font-display);letter-spacing:.02em;flex:1;margin:0;font-size:clamp(1.15rem,6vh,1.8rem);overflow:hidden}.screen__body{touch-action:pan-y;flex-direction:column;flex:1;gap:10px;min-height:0;display:flex;overflow-y:auto}.screen--menu{background:radial-gradient(55% 60% at 50% 48%,#0b0c129e,#0b0c1233 70%,#0000);justify-content:space-between;align-items:center}.menu__top{align-self:stretch;align-items:center;gap:8px;display:flex}.menu__spacer{flex:1}.menu__brand{text-align:center;flex-direction:column;align-items:center;display:flex}.logo{font-family:var(--font-display);letter-spacing:.02em;text-transform:uppercase;color:#fff;-webkit-text-stroke:3px var(--ink-950);paint-order:stroke fill;text-shadow:0 5px 0 var(--ink-950), 0 0 30px #ff4d4d8c;margin:0;font-size:clamp(2.2rem,15vh,5rem);line-height:1;transform:rotate(-3deg)}.logo__stick{background:linear-gradient(180deg, #fff 40%, var(--yellow) 41%, var(--yellow-deep));color:#0000;-webkit-background-clip:text;background-clip:text}.menu__tagline{background:var(--red);color:#fff;box-shadow:0 3px 0 var(--ink-950);border-radius:999px;margin:6px 0 0;padding:3px 14px;font-size:clamp(.8rem,3.6vh,1.05rem);font-weight:900;transform:rotate(-3deg)}.menu__actions{flex-direction:column;align-items:center;gap:clamp(8px,2.6vh,14px);display:flex}.menu__row{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.menu__row .btn{min-width:140px}.menu__meta{color:var(--muted);text-shadow:0 1px 2px #000;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin:0;font-size:.8rem;font-weight:700;display:flex}.menu__version{opacity:.6;margin-inline-start:8px}.story__hint{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;flex:none;margin:0;font-size:.85rem;font-weight:600;overflow:hidden}.rivals{flex:1;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-height:0;display:grid}.rival{border:3px solid var(--ink-950);cursor:pointer;background:linear-gradient(#343a55,#22263a);border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:0;padding:6px 4px;display:flex;position:relative;overflow:hidden}.rival.is-selected{background:linear-gradient(180deg, #fff2b0, var(--yellow));color:#1a1306;box-shadow:0 0 0 3px #fff}.rival.is-boss{border-color:var(--red-deep)}.rival.is-locked{opacity:.6}.rival__portrait{object-fit:contain;flex:auto;width:auto;max-width:100%;height:min(80px,100%);min-height:0}.rival__lock{color:var(--muted);flex:1;place-items:center;display:grid}.rival__lock svg{width:30px;height:30px}.rival__name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:.85rem;font-weight:900;overflow:hidden}.rival__stars{gap:1px;display:flex}.rival__stars svg{width:14px;height:14px}.rival__boss{top:4px;background:var(--red);color:#fff;text-transform:uppercase;border-radius:6px;padding:0 6px;font-size:.65rem;font-weight:900;position:absolute;inset-inline-start:4px}.story__footer{flex:none;align-items:center;gap:10px;padding:8px 10px;display:flex}.story__info{flex:1;min-width:0}.story__rival{text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.story__rival strong{font-size:1.05rem}.story__rival span{color:var(--muted);font-weight:600}.story__meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:0 12px;margin:0;font-size:.85rem;font-weight:700;display:flex}.story__reward{color:var(--yellow);flex:none;align-items:center;gap:4px;display:inline-flex}.story__reward svg{width:16px;height:16px}.loadout{flex-direction:column;flex:none;gap:2px;display:flex}.loadout__label{color:var(--muted);font-size:.72rem;font-weight:800}.btn--fight{flex:none}.field{flex-direction:column;gap:6px;display:flex}.field--inline{flex-direction:row;justify-content:space-between;align-items:center;max-width:420px}.field__label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.85rem;font-weight:900}.versus__players{grid-template-columns:1fr 1fr;gap:8px;display:grid}.versus__player{border:2px solid var(--ink-950);border-radius:12px;flex-direction:column;gap:2px;padding:8px 12px;font-size:.85rem;font-weight:600;display:flex}.versus__player--p1{border-inline-start:6px solid var(--red);background:#ff4d4d38}.versus__player--p2{border-inline-start:6px solid var(--blue);background:#3fa9ff38}.shop{flex:1;grid-template-columns:minmax(120px,22%) 1fr;gap:10px;min-height:0;display:grid}.shop__preview{flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:0;padding:8px;display:flex}.shop__fighter{object-fit:contain;width:100%;max-width:160px;height:auto;min-height:0}.shop__loadout{color:var(--muted);text-align:center;margin:0;font-weight:800}.shop__main{flex-direction:column;gap:8px;min-width:0;min-height:0;display:flex}.shop__hint{color:var(--muted);margin:0;font-size:.82rem;font-weight:600}.items{touch-action:pan-y;flex:1;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));align-content:start;gap:8px;min-height:0;padding-bottom:6px;display:grid;overflow-y:auto}.item{border:3px solid var(--ink-950);text-align:center;background:linear-gradient(#343a55,#22263a);border-radius:14px;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;display:flex}.item.is-equipped{box-shadow:0 0 0 3px var(--good)}.item__art{background:#ffffff14;border-radius:50%;place-items:center;width:72px;height:72px;display:grid}.item__art img{width:72px;height:72px}.item__name{font-size:.85rem;font-weight:900;line-height:1.15}.item__desc{color:var(--muted);font-size:.72rem;line-height:1.2}.item .btn{width:100%;margin-top:auto}.items--offers{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.shop__slot{display:contents}.offer{border-color:var(--yellow-deep);background:linear-gradient(#4a4330,#22263a 70%)}.offer--free{background:linear-gradient(#2f4a35,#22263a 70%);border-color:#3f9a2c}.offer__art{width:56px;height:56px;color:var(--yellow)}.offer--free .offer__art{color:var(--good)}.offer__art svg{width:34px;height:34px}.offer__desc{flex:1}.offer__owned{color:var(--good);margin-top:auto;font-size:.85rem;font-weight:900}.tab--offers .btn__icon svg{width:18px;height:18px}.aura--ember{background:radial-gradient(circle,#ff8c2899,#ff501414 70%)}.aura--spark{background:radial-gradient(circle,#fff07899,#ffdc3c14 70%)}.aura--shadow{background:radial-gradient(circle,#8246c8a6,#3c14641a 70%)}.aura--prism{background:conic-gradient(#ff50508c,#ffdc3c8c,#50e6788c,#3caaff8c,#be5aff8c,#ff50508c)}.shop__preview.aura--ember,.shop__preview.aura--spark,.shop__preview.aura--shadow,.shop__preview.aura--prism{border-color:var(--ink-950)}.achievements{touch-action:pan-y;flex:1;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));align-content:start;gap:8px;min-height:0;display:grid;overflow-y:auto}.achievement{border:3px solid var(--ink-950);background:linear-gradient(#2e334b,#20243a);border-radius:14px;align-items:center;gap:10px;padding:8px 10px;display:flex}.achievement.is-done{background:linear-gradient(#4a4220,#2c2814)}.achievement__icon{width:40px;height:40px;color:var(--muted);background:#0000004d;border-radius:50%;flex:none;place-items:center;display:grid}.achievement.is-done .achievement__icon{color:var(--yellow)}.achievement__text{flex-direction:column;flex:1;gap:2px;min-width:0;font-size:.8rem;display:flex}.achievement__text strong{font-size:.95rem}.achievement__text span{color:var(--muted)}.achievement__side{flex-direction:column;flex:none;align-items:flex-end;gap:2px;font-size:.78rem;font-weight:800;display:flex}.achievement__reward{color:var(--yellow);align-items:center;gap:3px;display:inline-flex}.achievement__reward svg{width:14px;height:14px}.progress{background:#0006;border-radius:3px;height:6px;margin-top:3px;overflow:hidden}.progress__fill{background:var(--yellow);height:100%;display:block}.hud{pointer-events:none;direction:ltr;position:absolute;inset:0}[dir=rtl] .hud__name,[dir=rtl] .hud__streak,[dir=rtl] .hud__keys,[dir=rtl] .pad__badge,[dir=rtl] .banner{direction:rtl}.hud__top{top:calc(6px + var(--safe-top));left:calc(10px + var(--safe-left));right:calc(10px + var(--safe-right));pointer-events:none;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:10px;display:grid;position:absolute}.hud__card{flex-direction:column;gap:3px;min-width:0;max-width:340px;display:flex}.hud__card--right{text-align:right;justify-self:end;align-items:flex-end;width:100%}.hud__card--left{text-align:left;width:100%}.hud__name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;text-shadow:0 2px 0 var(--ink-950), 0 0 6px #0009;font-size:clamp(.78rem,3.6vh,1rem);font-weight:900;overflow:hidden}.hpbar{border:3px solid var(--ink-950);width:100%;height:clamp(12px,4.2vh,18px);box-shadow:0 2px 0 var(--ink-950);background:#3a1016;border-radius:8px;position:relative;overflow:hidden}.hpbar__fill,.hpbar__ghost{transform-origin:0;will-change:transform;position:absolute;inset:0}.hud__card--right .hpbar__fill,.hud__card--right .hpbar__ghost{transform-origin:100%}.hpbar__ghost{background:#fff3c4}.hpbar__fill{background:linear-gradient(180deg, #ff8080, var(--red) 55%, var(--red-deep));transition:transform .12s ease-out}.hud__card--right .hpbar__fill{background:linear-gradient(180deg, #8ccbff, var(--blue) 55%, #1f6fc0)}.hud__card.is-low .hpbar{animation:.8s ease-in-out infinite low-pulse}@keyframes low-pulse{50%{box-shadow:0 0 0 3px #ff4d4d99}}.hud__row{align-items:center;gap:8px;display:flex}.hud__card--right .hud__row{flex-direction:row-reverse}.pips{gap:4px;display:flex}.hud__card--right .pips{flex-direction:row-reverse}.pip{border:2px solid var(--ink-950);background:#ffffff40;border-radius:50%;width:clamp(10px,3.4vh,14px);height:clamp(10px,3.4vh,14px)}.pip.is-on{background:var(--yellow);box-shadow:0 0 6px #ffd23ae6}.ammo{gap:3px;display:flex}.ammo__round{border:1px solid var(--ink-950);background:#fff3;border-radius:2px 2px 1px 1px;width:5px;height:12px}.ammo__round.is-on{background:#ffcf6a}.hud__center{pointer-events:none;align-items:center;gap:6px;display:flex}.hud__timer{border:3px solid var(--ink-950);background:var(--ink-900);min-width:clamp(40px,13vh,54px);height:clamp(32px,11vh,44px);font-family:var(--font-display);font-variant-numeric:tabular-nums;box-shadow:0 3px 0 var(--ink-950);border-radius:10px;place-items:center;padding:0 6px;font-size:clamp(1rem,6vh,1.5rem);display:grid}.hud__timer.is-urgent{color:var(--red);animation:1s ease-in-out infinite low-pulse}.hud__streak{border:2px solid var(--ink-950);background:var(--yellow);color:#1a1306;white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:.85rem;font-weight:900}.hud__pause{pointer-events:auto;width:clamp(36px,11vh,44px);height:clamp(36px,11vh,44px)}.hud__keys{bottom:calc(8px + var(--safe-bottom));color:var(--muted);white-space:nowrap;background:#0b0c1299;border-radius:999px;margin:0;padding:4px 12px;font-size:.78rem;font-weight:700;display:none;position:absolute;left:50%;transform:translate(-50%)}@media (hover:hover) and (pointer:fine){.hud__keys{display:block}}.pad{pointer-events:auto;cursor:pointer;touch-action:none;-webkit-touch-callout:none;background:0 0;border:0;margin:0;padding:0;position:absolute;top:0;bottom:0}.pad:focus{outline:none}.pad--full{left:0;right:0}.pad--left{width:50%;left:0}.pad--right{width:50%;right:0}.pad--left.is-down{background:linear-gradient(90deg,#ff4d4d1f,#0000 60%)}.pad--right.is-down{background:linear-gradient(270deg,#3fa9ff1f,#0000 60%)}.pad__badge{bottom:calc(10px + var(--safe-bottom));border:2px solid var(--ink-950);opacity:.85;border-radius:12px;flex-direction:column;align-items:center;padding:4px 12px;font-size:.72rem;font-weight:800;line-height:1.15;display:flex;position:absolute}.pad__badge strong{font-size:.85rem}.pad--left .pad__badge{left:calc(12px + var(--safe-left));background:#ff4d4dbf}.pad--right .pad__badge{right:calc(12px + var(--safe-right));background:#3fa9ffbf}.hud--versus .hud__keys{bottom:calc(10px + var(--safe-bottom))}.banner{max-width:90vw;font-family:var(--font-display);text-align:center;text-transform:uppercase;color:#fff;-webkit-text-stroke:3px var(--ink-950);paint-order:stroke fill;text-shadow:0 5px 0 var(--ink-950);opacity:0;pointer-events:none;text-wrap:balance;overflow-wrap:anywhere;width:max-content;margin:0;font-size:clamp(1.6rem,11vh,3.6rem);line-height:1.1;position:absolute;top:42%;left:50%;transform:translate(-50%,-50%)scale(.6)}.banner.is-visible{animation:.35s cubic-bezier(.2,1.5,.4,1) forwards banner-in}.banner--big{color:var(--yellow);font-size:clamp(2.2rem,16vh,5rem)}.banner--gold{color:var(--yellow)}@keyframes banner-in{to{opacity:1;transform:translate(-50%,-50%)scale(1)rotate(-3deg)}}.coach{bottom:calc(12px + var(--safe-bottom));border:3px solid var(--ink-950);color:#1a1306;width:max-content;max-width:min(560px,86vw);box-shadow:0 4px 0 var(--ink-950);background:#fff5cdf5;border-radius:14px;align-items:center;gap:10px;padding:8px 10px 8px 14px;animation:.25s coach-in;display:flex;position:absolute;left:50%;transform:translate(-50%)}@keyframes coach-in{0%{opacity:0;transform:translate(-50%)translateY(10px)}}@media (hover:hover) and (pointer:fine){.coach{bottom:calc(46px + var(--safe-bottom))}}.coach__text{margin:0;font-size:clamp(.82rem,3.8vh,1rem);font-weight:800}.coach__ok{pointer-events:auto;flex:none}.toasts{top:calc(12px + var(--safe-top));z-index:30;pointer-events:none;flex-direction:column;align-items:center;gap:6px;width:max-content;max-width:80vw;display:flex;position:fixed;left:50%;transform:translate(-50%)}.app.is-match .toasts{top:calc(clamp(58px, 19vh, 86px) + var(--safe-top))}.toast{border:2px solid var(--ink-950);text-align:center;box-shadow:0 4px 0 var(--ink-950);background:#14161feb;border-radius:999px;padding:6px 16px;font-size:clamp(.78rem,3.4vh,.95rem);font-weight:800;transition:opacity .3s,transform .3s;animation:.25s toast-in}.toast--warn{color:#fff;background:#c21f2ff2}.toast--good{color:#1a1306;background:#ffd23af5}.toast.is-leaving{opacity:0;transform:translateY(6px)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.modal{z-index:40;padding:calc(8px + var(--safe-top)) calc(10px + var(--safe-right)) calc(8px + var(--safe-bottom)) calc(10px + var(--safe-left));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#05060a9e;place-items:center;animation:.2s fade-in;display:grid;position:fixed;inset:0}.modal__panel{width:min(94vw,540px);max-height:calc(100vh - 16px);touch-action:pan-y;max-height:calc(100dvh - 16px);padding:14px 18px;animation:.22s cubic-bezier(.2,1.4,.4,1) pop-in;position:relative;overflow-y:auto}.modal__panel--narrow{width:min(94vw,360px)}.modal__title{font-family:var(--font-display);letter-spacing:.02em;margin:0 0 10px;padding-inline-end:44px;font-size:clamp(1.25rem,6vh,1.8rem)}.modal__close{top:10px;position:absolute;inset-inline-end:10px}.modal__text{margin:0 0 12px}.modal__actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.stack{flex-direction:column;gap:8px;display:flex}.settings{grid-template-columns:1fr 1fr;gap:6px;display:grid}.setting{background:#00000040;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:2px 10px;display:flex}.setting--wide{grid-column:1/-1}.setting__label{font-weight:700}.switch{cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;min-height:40px;padding:0;display:inline-flex}.switch__track{border:2px solid var(--ink-950);background:#ffffff2e;border-radius:13px;flex:none;width:46px;height:26px;transition:background .15s;position:relative}.switch__thumb{top:2px;background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;inset-inline-start:2px}.switch[aria-checked=true] .switch__track{background:var(--yellow)}.switch[aria-checked=true] .switch__thumb{transform:translate(20px)}[dir=rtl] .switch[aria-checked=true] .switch__thumb{transform:translate(-20px)}.switch__state{text-align:end;min-width:2.6em;font-size:.85rem;font-weight:800}.select{border:2px solid var(--ink-950);background:var(--ink-700);max-width:100%;min-height:40px;color:var(--text);border-radius:10px;padding:6px 10px;font-weight:700}.settings__footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;display:flex}.link{color:var(--yellow);font-weight:700}.survival__facts{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;display:flex}.modal__panel--result{width:min(94vw,560px)}.modal__panel--result .modal__title{text-align:center;text-transform:uppercase;padding-inline-end:0;font-size:clamp(1.6rem,9vh,2.6rem)}.modal__panel--result.is-victory .modal__title{color:var(--yellow);text-shadow:0 3px 0 var(--ink-950), 0 0 18px #ffd23a80}.modal__panel--result.is-defeat .modal__title{color:#ff8080}.modal__panel--result .modal__actions{justify-content:center}.result{align-items:center;gap:14px;display:flex}.result__portrait{border:3px solid var(--ink-950);background:radial-gradient(circle,#fff3,#ffffff0a);border-radius:50%;flex:none;width:clamp(64px,24vh,110px);height:clamp(64px,24vh,110px)}.result__body{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.result__stars{justify-content:center;gap:4px;display:flex}.result__star svg{width:clamp(26px,10vh,40px);height:clamp(26px,10vh,40px)}.result__star.is-on{animation:.4s cubic-bezier(.2,1.6,.4,1) both pop-in}.result__star:nth-child(2){animation-delay:.15s}.result__star:nth-child(3){animation-delay:.3s}.result__stats{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px;margin:0;display:grid}.result__stat{text-align:center;background:#00000047;border-radius:10px;padding:4px 8px}.result__stat dt{color:var(--muted);font-size:.72rem;font-weight:700}.result__stat dd{font-variant-numeric:tabular-nums;margin:0;font-size:1.1rem;font-weight:900}.result__rewards{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.pill.is-doubled{animation:.4s cubic-bezier(.2,1.4,.4,1) both pop-in}.modal__panel--revive{text-align:center}.modal__panel--revive .modal__actions{justify-content:center}.revive__icon{justify-content:center;margin-bottom:6px;display:flex}.revive__icon svg{width:clamp(40px,14vh,56px);height:clamp(40px,14vh,56px)}.revive__streak{margin:0}.result__badge{background:var(--red);color:#fff;border-radius:999px;margin:0;padding:3px 12px;font-size:.85rem;font-weight:900;animation:.4s cubic-bezier(.2,1.4,.4,1) .3s both pop-in}.rotate{z-index:60;text-align:center;background:var(--ink-900);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:none;position:fixed;inset:0}.rotate__phone{border:4px solid var(--yellow);border-radius:10px;width:54px;height:90px;animation:1.8s ease-in-out infinite rotate-phone}.rotate__title{font-family:var(--font-display);margin:12px 0 0;font-size:1.4rem}.rotate__text{color:var(--muted);margin:0}@keyframes rotate-phone{0%,20%{transform:rotate(0)}60%,to{transform:rotate(-90deg)}}@media (orientation:portrait) and (pointer:coarse){.rotate{display:flex}}@media (max-height:430px){.btn{min-height:40px;padding:6px 14px}.btn--hero{min-height:50px}.icon-btn{width:40px;height:40px}.modal__panel{padding:10px 14px}.modal__actions{margin-top:8px}.setting{min-height:40px}.tab,.chip{min-height:34px;padding:3px 10px}.story__footer{padding:6px 8px}.result__stat dd{font-size:.95rem}}@media (max-height:340px){.screen{gap:6px}.menu__tagline,.story__hint{display:none}.rival__name{font-size:.75rem}.item__art,.item__art img{width:56px;height:56px}.item__desc{display:none}}@media (max-width:700px){.menu__row .btn{min-width:0}.settings{grid-template-columns:1fr}.story__meta{column-gap:8px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
