:root{--ink-950:#0e0b08;--ink-900:#1a1611;--ink-800:#241f18;--ink-700:#332b21;--stone-600:#4a4237;--stone-400:#8e8676;--stone-200:#d9d2c3;--gold:#f2c14e;--gold-light:#f9dc8a;--gold-deep:#b8862b;--gold-dark:#7e5712;--cream:#f7efdc;--ink:#241a0f;--royal:#2f6fd1;--royal-light:#8fb6ff;--danger:#d0452f;--good:#8fdc5a;--radius:12px;--font-display:"Trajan Pro", "Cinzel", Georgia, "Times New Roman", 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);--hud-h:clamp(40px, 11vh, 52px);--spell-size:clamp(46px, 14vh, 62px)}*,:before,:after{box-sizing:border-box}html,body{background:var(--ink-900);height:100%;color:var(--cream);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.4;overflow:hidden}button,select{font:inherit;color:inherit}[hidden]{display:none!important}[dir=rtl] .icon-directional{transform:scaleX(-1)}:lang(ja),:lang(zh-Hans),:lang(zh-Hant){line-break:strict;word-break:auto-phrase}:lang(ko){word-break:keep-all}:lang(ar) .setting__label,:lang(ja) .setting__label,:lang(ko) .setting__label,:lang(zh-Hans) .setting__label,:lang(zh-Hant) .setting__label{-webkit-hyphens:manual;hyphens:manual;overflow-wrap:normal}.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{pointer-events:none}.boot{background:var(--ink-900);place-items:center;display:grid;position:fixed;inset:0}.boot__spinner{border:4px solid #f2c14e40;border-top-color:var(--gold);border-radius:50%;width:42px;height:42px;animation:.9s linear infinite spin}.fatal{text-align:center;background:var(--ink-900);color:var(--cream);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(.94)}}.btn{border:2px solid var(--gold-deep);background:linear-gradient(180deg, var(--stone-600), #2a241c);min-height:44px;color:var(--cream);text-align:center;box-shadow:0 3px 0 var(--ink-950), inset 0 1px 0 #fff0c826;cursor:pointer;touch-action:manipulation;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-weight:800;line-height:1.15;transition:transform 80ms,filter .15s,box-shadow 80ms;display:inline-flex}.btn__label{text-wrap:balance}.btn:hover{filter:brightness(1.1)}.btn:active{box-shadow:0 1px 0 var(--ink-950);transform:translateY(2px)}.btn:focus-visible,.icon-btn:focus-visible,.spell-btn:focus-visible,.day:focus-visible,.switch:focus-visible,.select:focus-visible,.link:focus-visible{outline-offset:2px;outline:3px solid #fff3c4}.btn__icon{flex:none;display:inline-flex}.btn__icon svg{width:20px;height:20px}.btn--primary{background:linear-gradient(180deg, var(--gold-light), #d9a33a);border-color:var(--gold-dark);color:var(--ink)}.btn--night{background:linear-gradient(#45559a,#1d2550);border-color:#8b9be0}.btn--danger{background:linear-gradient(#d4553f,#962a1c);border-color:#5e170e}.btn--big{min-height:52px;padding:10px 22px;font-size:1.1rem}.btn--small{min-height:36px;padding:5px 12px;font-size:.88rem}.btn--small .btn__icon svg{width:17px;height:17px}.btn.is-unaffordable{filter:grayscale(.7)brightness(.8)}.btn:disabled{filter:grayscale(.5)brightness(.8);transform:none}.btn--reward{color:#102808;background:linear-gradient(#8fe25a,#3f9a24);border-color:#23590f}.icon-btn{border:2px solid var(--gold-deep);background:linear-gradient(180deg, var(--stone-600), var(--ink-800));width:42px;height:42px;color:var(--gold);cursor:pointer;box-shadow:0 2px 0 var(--ink-950);touch-action:manipulation;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{transform:translateY(1px)}.icon-btn:disabled{opacity:.4;cursor:default}.icon-btn--small{width:36px;height:36px}.icon-btn--more{border-color:var(--royal-light);color:#dce8ff;background:linear-gradient(#3d5f9e,#1d2f58)}.pill{color:var(--cream);font-variant-numeric:tabular-nums;white-space:nowrap;background:#0e0b08cc;border:1px solid #f2c14e73;border-radius:999px;align-items:center;gap:6px;margin:0;padding:4px 12px 4px 8px;font-weight:800;display:inline-flex}.pill__icon{display:inline-flex}.pill__icon svg{width:20px;height:20px}.pill--coins .pill__value{color:#ffe28a}.pill--center{align-self:center}.pill--big{padding:6px 16px 6px 10px;font-size:1.15rem}.pill--big .pill__icon svg{width:24px;height:24px}.pill.is-doubled{border-color:var(--good);animation:.4s cubic-bezier(.2,1.4,.4,1) both pop-in}.panel{color:var(--cream);background:linear-gradient(#332b21f7,#18140ff7);border:2px solid #b9974a;border-radius:14px;box-shadow:0 12px 30px #00000073,inset 0 0 0 1px #ffe6aa1a}.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;animation:.25s fade-in;display:flex;position:absolute;inset:0}.screen__header{flex:none;align-items:center;gap:10px;min-height:46px;display:flex}.screen__heading{flex:1;min-width:0}.screen__title{min-width:0;font-family:var(--font-display);letter-spacing:.03em;text-shadow:0 2px 6px #000000b3;text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:clamp(1.2rem,5.5vh,1.9rem);line-height:1.1;overflow:hidden}.screen__subtitle{color:var(--royal-light);margin:0;font-size:.8rem;font-weight:700}.eyebrow{color:var(--gold);letter-spacing:.08em;text-transform:uppercase;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:.8rem;font-weight:900;display:flex}.badge{letter-spacing:.04em;border-radius:999px;padding:1px 8px;font-size:.7rem}.badge--boss{color:#ffd9cf;background:#8c1f1a}.stars{gap:2px;display:inline-flex}.stars svg{width:20px;height:20px}.stars--big svg{width:30px;height:30px}.screen--menu{background:linear-gradient(90deg,#0a0805b8 0%,#0a080573 45%,#0000 75%);justify-content:center;align-items:flex-start}.menu__panel{flex-direction:column;gap:clamp(8px,2.6vh,18px);width:min(470px,60vw);margin-inline-start:clamp(0px,3vw,40px);display:flex}[dir=rtl] .screen--menu{align-items:flex-end}[dir=rtl] .menu__panel{margin-inline:0 clamp(0px,3vw,40px)}.menu__brand{align-items:center;gap:12px;display:flex}.menu__emblem{color:var(--gold);filter:drop-shadow(0 3px 0 var(--ink-950));flex:none;display:inline-flex}.menu__emblem svg{width:clamp(36px,12vh,64px);height:clamp(36px,12vh,64px)}.logo{font-family:var(--font-display);letter-spacing:.05em;text-transform:uppercase;background:linear-gradient(180deg, #fff6d0 0%, var(--gold) 50%, #b8762b 100%);color:#0000;filter:drop-shadow(0 3px #2a1608)drop-shadow(0 8px 18px #0009);-webkit-background-clip:text;background-clip:text;margin:0;font-size:clamp(1.8rem,11vh,4.4rem);font-weight:900;line-height:1}.menu__tagline{text-shadow:0 2px 6px #000000d9;margin:4px 0 0;font-size:clamp(.8rem,3.2vh,1.05rem);font-weight:700}.menu__buttons{flex-direction:column;gap:clamp(6px,1.8vh,10px);display:flex}.menu__row{grid-template-columns:1fr 1fr;gap:clamp(6px,1.8vh,10px);display:grid}.menu__stats{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.menu__tools{gap:8px;margin-inline-start:auto;display:inline-flex}.menu__footer{bottom:calc(6px + var(--safe-bottom));right:calc(12px + var(--safe-right));opacity:.75;text-shadow:0 1px 3px #000;gap:10px;font-size:.72rem;display:flex;position:absolute}.screen--map,.screen--shop,.screen--achievements{background:#0c0a07b8;gap:8px}.map{flex:1;gap:12px;min-height:0;display:flex}.map__grid{flex:1;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:clamp(4px,1.2vh,8px);min-width:0;max-height:100%;display:grid}.day{cursor:pointer;touch-action:manipulation;background:linear-gradient(#4a4237f2,#241f18f2);border:2px solid #c9a24a8c;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-height:0;padding:2px;display:flex;position:relative}.day.is-won{border-color:var(--gold)}.day.is-boss{background:linear-gradient(#78241ef2,#32100ef2)}.day.is-locked{opacity:.45;cursor:default}.day.is-selected{border-color:#fff3c4;box-shadow:0 0 0 2px #fff3c4,0 0 14px #ffe69699}.day__number{font-variant-numeric:tabular-nums;font-size:clamp(.85rem,4vh,1.2rem);font-weight:900;line-height:1;display:inline-flex}.day__number svg{width:16px;height:16px}.day__stars{display:inline-flex}.day__stars svg{width:clamp(9px,2.6vh,14px);height:clamp(9px,2.6vh,14px)}.day__boss{top:1px;color:#ffb4a6;display:inline-flex;position:absolute;inset-inline-end:1px}.day__boss svg{width:clamp(8px,2.4vh,12px);height:clamp(8px,2.4vh,12px)}.map__panel{touch-action:pan-y;flex-direction:column;flex:none;gap:8px;width:clamp(200px,32vw,300px);padding:12px;display:flex;overflow-y:auto}.map__fact{align-items:center;gap:8px;margin:0;font-size:.9rem;font-weight:700;display:flex}.map__fact--new{color:#ffcf9a}.map__fact-icon{color:var(--gold);flex:none;display:inline-flex}.map__fact-icon svg{width:20px;height:20px}.map__actions{flex-wrap:wrap;gap:8px;margin-top:auto;display:flex}.map__actions .btn{flex:auto}.shop__start{flex:none}.shop__tip{border-color:var(--royal-light);flex:none;align-items:center;gap:10px;padding:8px 12px;display:flex}.shop__tip p{flex:1;margin:0;font-size:.9rem;font-weight:700}.shop__tip-icon{color:var(--royal-light);display:inline-flex}.shop{touch-action:pan-y;overscroll-behavior:contain;flex:1;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));align-content:start;align-items:start;gap:10px;min-height:0;padding:2px 2px 8px;display:grid;overflow-y:auto}.card{flex-direction:column;gap:7px;padding:10px 12px;display:flex}.card.is-new{border-style:dashed}.card__head{align-items:center;gap:10px;display:flex}.card__art{width:44px;height:44px;color:var(--stone-200);background:#0000004d;border-radius:10px;flex:none;place-items:center;display:grid}.card__art svg{width:30px;height:30px}.card__titles{flex-direction:column;gap:4px;min-width:0;display:flex}.card__name{margin:0;font-size:1rem;line-height:1.15}.card__desc,.card__note{opacity:.88;margin:0;font-size:.82rem}.card__note{font-style:italic}.card__stat{color:var(--gold-light);flex-wrap:wrap;gap:2px 8px;margin:0;font-size:.8rem;font-weight:700;display:flex}.card__next{color:var(--good);gap:4px;display:inline-flex}.card__arrow{display:inline-block}.card__max{color:var(--good);margin:0;font-size:.9rem;font-weight:800}.card__actions{flex-wrap:wrap;gap:6px;display:flex}.card>.btn{align-self:flex-start}.shop__offers{display:contents}.card--offer{border-color:var(--gold);background:linear-gradient(160deg,#f2c14e2e,#18140ff7 60%)}.card--offer .card__art{color:var(--gold)}.card--free .card__art{color:var(--good)}.offer__row{flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;display:flex}.pips{flex-wrap:wrap;gap:3px;display:flex}.pips span{background:#ffffff29;border-radius:2px;width:10px;height:6px}.pips span.is-on{background:var(--gold)}.hpbar{background:#00000073;border-radius:8px;height:24px;position:relative;overflow:hidden}.hpbar__fill{transform-origin:0;background:linear-gradient(#a9e872,#4f9b2f);position:absolute;inset:0}.hpbar.is-mid .hpbar__fill{background:linear-gradient(#ffd66b,#c58c1d)}.hpbar.is-low .hpbar__fill{background:linear-gradient(#ff8b6b,#b4321f)}.hpbar__text{text-shadow:0 1px 2px #000;font-variant-numeric:tabular-nums;padding:0 8px;font-size:.8rem;font-weight:900;line-height:24px;display:block;position:relative}.pit{border-top:1px solid #ffffff1f;flex-direction:column;gap:6px;padding-top:6px;display:flex}.pit__space{color:#a6ffc6;margin:0;font-size:.85rem;font-weight:800}.pit__roles{flex-direction:column;gap:6px;display:flex}.pit__role{align-items:center;gap:8px;display:flex}.pit__role>div{flex-direction:column;flex:1;min-width:0;line-height:1.2;display:flex}.pit__role small{opacity:.8;font-size:.75rem}.pit__icon{color:var(--gold);display:inline-flex}.achievements{touch-action:pan-y;overscroll-behavior:contain;flex:1;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));align-content:start;gap:8px;min-height:0;padding:2px 2px 8px;display:grid;overflow-y:auto}.achievement{opacity:.85;align-items:flex-start;gap:10px;padding:10px 12px;display:flex;position:relative}.achievement.is-unlocked{opacity:1;border-color:var(--gold)}.achievement__icon{width:40px;height:40px;color:var(--stone-400);background:#00000059;border-radius:50%;flex:none;place-items:center;display:grid}.achievement.is-unlocked .achievement__icon{color:var(--ink);background:radial-gradient(circle,#ffe9a6,#c88f22)}.achievement__body{flex:1;min-width:0}.achievement__name{margin:0;font-size:.95rem}.achievement__desc{opacity:.85;margin:2px 0 6px;font-size:.8rem}.achievement__check{color:var(--good);display:inline-flex}.progress{background:#0006;border-radius:6px;height:16px;position:relative;overflow:hidden}.progress__fill{background:var(--gold-deep);transform-origin:0;position:absolute;inset:0}.progress__text{font-variant-numeric:tabular-nums;padding:0 6px;font-size:.7rem;font-weight:800;line-height:16px;display:block;position:relative}[dir=rtl] .hpbar__fill,[dir=rtl] .progress__fill{transform-origin:100%}.hud{position:absolute;inset:0}.hud__top{top:calc(6px + var(--safe-top));left:calc(8px + var(--safe-left));right:calc(8px + var(--safe-right));height:var(--hud-h);align-items:center;gap:8px;display:flex;position:absolute}.hud__top>*{pointer-events:auto}.hud__group{flex:none;align-items:center;gap:6px;display:flex}.hud__group--end{justify-content:flex-end}.hud .pill{padding:3px 10px 3px 6px;font-size:clamp(.8rem,3.4vh,1rem)}.wallbar{background:#0e0b08cc;border:1px solid #f2c14e73;border-radius:999px;flex:1;align-items:center;gap:6px;min-width:90px;max-width:360px;margin-inline:auto;padding:4px 10px 4px 6px;display:flex}.wallbar__icon{color:var(--stone-200);display:inline-flex}.wallbar__icon svg{width:20px;height:20px}.wallbar__track{background:#ffffff1f;border-radius:6px;flex:1;height:12px;position:relative;overflow:hidden}.wallbar__fill{transform-origin:0;background:linear-gradient(#b6f07f,#4f9b2f);transition:transform .2s;position:absolute;inset:0}.wallbar.is-mid .wallbar__fill{background:linear-gradient(#ffd66b,#c58c1d)}.wallbar.is-low .wallbar__fill{background:linear-gradient(#ff8b6b,#b4321f)}.wallbar.is-low{animation:1s ease-in-out infinite pulse-red}.wallbar__value{font-variant-numeric:tabular-nums;text-align:end;min-width:2.6em;font-weight:900}@keyframes pulse-red{50%{box-shadow:0 0 0 4px #ff5a3c66}}.hud__spells{top:calc(var(--hud-h) + 14px + var(--safe-top));left:calc(8px + var(--safe-left));pointer-events:auto;flex-direction:column;gap:clamp(6px,2vh,10px);display:flex;position:absolute}.spell-btn{width:var(--spell-size);height:var(--spell-size);border:2px solid var(--stone-400);box-shadow:0 3px 0 var(--ink-950);cursor:pointer;touch-action:manipulation;background:radial-gradient(circle at 50% 35%,#4b4338,#1c1813);border-radius:50%;place-items:center;padding:0;display:grid;position:relative;overflow:hidden}.spell-btn__icon{filter:grayscale(.8)brightness(.7);display:inline-flex}.spell-btn__icon svg{width:62%;min-width:26px;height:62%;min-height:26px}.spell-btn.is-ready{border-color:var(--gold);box-shadow:0 3px 0 var(--ink-950), 0 0 14px #ffd26e8c}.spell-btn.is-ready .spell-btn__icon{filter:none}.spell-btn--fireball.is-ready{background:radial-gradient(circle at 50% 35%,#7a3a18,#2a130a)}.spell-btn--ice.is-ready{background:radial-gradient(circle at 50% 35%,#2d5a7a,#0f2030)}.spell-btn--lightning.is-ready{background:radial-gradient(circle at 50% 35%,#5e5220,#211c0a)}.spell-btn__charge{transform-origin:bottom;pointer-events:none;background:#0000008c;position:absolute;inset:0;transform:scaleY(0)}.spell-btn__key{opacity:.85;font-size:.62rem;font-weight:900;position:absolute;bottom:2px;right:50%;transform:translate(50%)}.spell-btn:active{transform:scale(.94)}.hint{top:calc(var(--hud-h) + 14px + var(--safe-top));left:calc(var(--spell-size) + 26px + var(--safe-left));pointer-events:auto;border-color:var(--royal-light);align-items:center;gap:10px;width:max-content;max-width:min(480px,48vw);padding:8px 10px 8px 14px;animation:.3s hint-in;display:flex;position:absolute}.hint .btn{flex:none}.hint__text{margin:0;font-size:clamp(.78rem,3.4vh,.95rem);font-weight:700}@keyframes hint-in{0%{opacity:0;transform:translateY(-8px)}}.is-highlighted{z-index:1;animation:1.1s ease-in-out infinite highlight}@keyframes highlight{0%,to{box-shadow:0 0 0 0 #ffe68ce6, 0 3px 0 var(--ink-950)}50%{box-shadow:0 0 0 6px #ffe68c00,0 0 18px 4px #ffdc78e6}}.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:min(560px,80vw);display:flex;position:fixed;left:50%;transform:translate(-50%)}.app.is-battle .toasts{top:calc(var(--hud-h) + 14px + var(--safe-top));left:auto;right:calc(10px + var(--safe-right));align-items:flex-end;max-width:min(380px,40vw);transform:none}.toast{text-align:center;background:#0e0b08e0;border:1px solid #f2c14e8c;border-radius:14px;padding:7px 14px;font-size:clamp(.76rem,3.2vh,.92rem);font-weight:800;line-height:1.25;transition:opacity .3s,transform .3s;animation:.25s toast-in;box-shadow:0 6px 16px #0006}.toast--warn{color:#ffdcd0;border-color:#ff8a6a}.toast--good{color:#ecffdc;border-color:#a7e86f}.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:#06050399;place-items:center;animation:.2s fade-in;display:grid;position:fixed;inset:0}.modal__panel{width:min(94vw,520px);max-height:calc(100vh - 16px);touch-action:pan-y;max-height:calc(100dvh - 16px);padding:14px 16px;animation:.22s cubic-bezier(.2,1.4,.4,1) pop-in;position:relative;overflow-y:auto}.modal__panel--narrow{width:min(94vw,360px)}.modal__panel--wide{width:min(96vw,680px)}.modal__panel--night{background:linear-gradient(#283464fa,#0e1228fa);border-color:#8b9be0}.modal__title{font-family:var(--font-display);letter-spacing:.02em;margin:0 0 8px;padding-inline-end:44px;font-size:clamp(1.25rem,6vh,1.8rem);line-height:1.15}.modal__close{top:8px;position:absolute;inset-inline-end:8px}.modal__text{margin:0 0 10px}.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:repeat(2,minmax(0,1fr));gap:6px;display:grid}.setting{background:#00000038;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{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;min-width:0;font-weight:700;line-height:1.2}.switch{cursor:pointer;background:0 0;border:0;flex:none;align-items:center;gap:8px;min-height:40px;padding:0;display:inline-flex}.switch__track{background:#ffffff2e;border-radius:13px;width:46px;height:26px;transition:background .15s;position:relative}.switch__thumb{top:3px;background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;position:absolute;inset-inline-start:3px}.switch[aria-checked=true] .switch__track{background:var(--gold)}.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:.82rem;font-weight:800}.select{border:2px solid var(--gold-deep);background:var(--ink-800);max-width:60%;min-height:40px;color:var(--cream);border-radius:8px;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(--gold-light);font-weight:700}.help{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.help__item{background:#00000038;border-radius:10px;gap:10px;padding:8px 10px;display:flex}.help__icon{color:var(--gold);flex:none;display:inline-flex}.help__icon svg{width:28px;height:28px}.help__title{margin:0;font-size:.95rem}.help__text{opacity:.9;margin:2px 0 0;font-size:.82rem}.help__keys{color:var(--gold-light);margin:10px 0 0;font-size:.85rem;font-weight:700}.modal__panel--result{text-align:center}.modal__panel--result .modal__title{padding-inline-end:0;font-size:clamp(1.6rem,8vh,2.5rem)}.modal__panel--result.is-victory .modal__title{color:var(--gold);text-shadow:0 0 18px #f2c14e99}.modal__panel--result.is-defeat .modal__title{color:#ff8a6a}.modal__panel--result .eyebrow,.modal__panel--result .modal__actions{justify-content:center}.result__stars{justify-content:center;gap:6px;margin:4px 0 8px;display:flex}.result__star svg{width:clamp(34px,11vh,52px);height:clamp(34px,11vh,52px)}.result__star.is-on{animation:star-in .5s var(--delay,0s) both cubic-bezier(.2, 1.6, .4, 1)}@keyframes star-in{0%{opacity:0;transform:scale(.2)rotate(-40deg)}}.result__stats{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px;margin:8px 0;display:grid}.result__stat{background:#00000040;border-radius:8px;padding:6px}.result__stat dt{opacity:.85;justify-content:center;align-items:center;gap:4px;font-size:.74rem;display:flex}.result__icon{display:inline-flex}.result__icon svg{width:15px;height:15px}.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;margin:0 0 8px;display:flex}.modal__panel--revive{text-align:center}.modal__panel--revive .modal__actions{justify-content:center}.revive__icon{color:#ff8a6a;justify-content:center;margin:2px 0 8px;display:flex}.revive__icon svg{width:56px;height:56px}.result__badge{color:var(--gold-light);align-items:center;gap:6px;margin:0;font-weight:800;animation:.4s cubic-bezier(.2,1.4,.4,1) .3s both pop-in;display:inline-flex}.result__badge svg{width:22px;height:22px}.result__hint{opacity:.9;margin:4px 0 0;font-size:.88rem;font-weight:700}.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(--gold);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;font-weight:900}.rotate__text{opacity:.85;margin:0}@keyframes rotate-phone{0%,20%{transform:rotate(0)}60%,to{transform:rotate(-90deg)}}@media (orientation:portrait) and (pointer:coarse){.rotate{display:flex}}.only-fine{display:none}@media (pointer:fine){.only-fine{display:block}}@media (pointer:coarse){.spell-btn__key{display:none}}@media (max-height:430px){.menu__tagline,.shop__tip-icon{display:none}.btn{min-height:40px;padding:6px 12px;font-size:.92rem}.btn--big{min-height:46px;font-size:1rem}.btn--small{min-height:34px;font-size:.82rem}.icon-btn{width:38px;height:38px}.modal__panel{padding:10px 12px}.modal__title{margin-bottom:6px}.modal__actions{margin-top:8px}.result__stat dd{font-size:.95rem}.result__stats{margin:4px 0}.setting{min-height:38px}.switch{min-height:34px}.help__text{font-size:.76rem}.screen__header{min-height:40px}.card{gap:5px;padding:8px 10px}.card__art{width:36px;height:36px}.card__art svg{width:24px;height:24px}.map__panel{gap:5px;padding:8px 10px}.map__fact{font-size:.8rem}.stars--big svg{width:24px;height:24px}}@media (max-height:340px){.result__stat dt{font-size:.68rem}.settings{gap:4px}.setting{min-height:34px}.switch,.select{min-height:30px}.settings__footer{gap:6px;margin-top:6px}.settings__footer .btn{min-height:32px}.help{gap:5px}.help__item{padding:5px 8px}}@media (max-width:700px){.hud .pill{gap:4px;padding:2px 8px 2px 5px}.hud .pill__icon svg{width:17px;height:17px}.wallbar{padding:3px 8px 3px 5px}.menu__footer{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
