:root{--ink:#293354;--purple:#7052e2;--deep:#5039b5;--gold:#ffcd78;--edge:#eae5f2;--glass:#ffffffec;--shadow:0 4px 16px #2a1f5d2e;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body,html{margin:0;width:100%;height:100%;min-width:0;overflow:hidden;overscroll-behavior:none}body{font-family:'Trebuchet MS',Arial,'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC','Noto Sans SC','Noto Sans Devanagari','Nirmala UI',Mangal,'Noto Sans Arabic','Noto Kufi Arabic','Segoe UI',Tahoma,sans-serif;background:#2a2547;color:var(--ink);-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}html:lang(ja) body{font-family:'Trebuchet MS',Arial,'Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,'Noto Sans CJK JP','Noto Sans JP',sans-serif}html:lang(ar) *,html:lang(hi) *{letter-spacing:0!important}html:lang(ar) body,html:lang(hi) body{line-height:1.25}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}button:focus-visible,canvas:focus-visible{outline:3px solid #ffbe72;outline-offset:-3px}button:disabled{cursor:not-allowed;opacity:.45}.game-app{position:relative;width:100%;height:100%;height:100dvh;display:grid;overflow:hidden;background:#2a2547;isolation:isolate;--gap:clamp(6px,1vw,12px);gap:var(--gap);padding:max(var(--gap),env(safe-area-inset-top)) max(var(--gap),env(safe-area-inset-right)) max(var(--gap),env(safe-area-inset-bottom)) max(var(--gap),env(safe-area-inset-left));grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}#gameCanvas{position:absolute;left:0;top:0;width:100%;height:100%;display:block;z-index:0;touch-action:none;cursor:crosshair;outline:0}.board-area{grid-column:1;grid-row:2/4;min-height:0;pointer-events:none}.hud{display:flex;grid-column:1;grid-row:1;align-items:center;justify-content:space-between;gap:12px;min-width:0}.dock{display:flex;grid-column:1;grid-row:3;align-items:flex-end;justify-content:space-between;gap:12px;min-width:0}.board-buttons,.chips,.dock,.goal-bar,.hazard-chip,.hud,.ident,.ink-status,.tools{position:relative;z-index:3;pointer-events:none}.bank-pill,.journey-pill,button{pointer-events:auto}.ident{display:flex;flex:0 1 auto;align-items:center;gap:10px;min-width:0;max-width:100%;padding:6px 16px 6px 6px;border-radius:18px;background:var(--glass);box-shadow:var(--shadow)}.stage-badge{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:13px;background:#efe9ff;color:#6950dc;font-weight:1000;font-size:19px;letter-spacing:-.8px}.stage-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.stage-overline{font-size:9px;letter-spacing:1.3px;font-weight:1000;color:#a690ba;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stage-copy strong{font-size:clamp(14px,1.5vw,19px);line-height:1.15;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tools{display:flex;flex:none;align-items:center;gap:8px;min-width:0}.bank-pill,.journey-pill{display:flex;align-items:center;gap:6px;height:44px;padding:0 13px;border-radius:14px;background:var(--glass);box-shadow:var(--shadow);font-size:12px;font-weight:1000;white-space:nowrap}.journey-pill{color:#735ad6}.journey-glyph{color:#e5ac5f;font-size:16px}.journey-track{direction:ltr;width:44px;height:5px;border-radius:5px;background:#e2d6fa;overflow:hidden}.journey-track>span{display:block;width:1.7%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffb17e,#ef70a2)}.bank-pill{color:#b9791f;font-size:14px}.bank-glyph{color:#f0a63c;font-size:17px}.hud-button,.hud-icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;border:0;border-radius:14px;background:var(--glass);box-shadow:var(--shadow);color:#685d84;font-size:12px;font-weight:1000;white-space:nowrap}.hud-button{padding:0 12px}.heroes-button,.levels-button,.rush-button{min-width:44px}.hud-icon{width:44px;font-size:20px;color:#766b93}.hud-button:hover,.hud-icon:hover{background:#fff}.pet-preview{width:30px;height:30px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.pet-preview svg{width:100%;height:100%;display:block}.hud-emoji{color:#7760dc;font-size:19px}.rush-button{position:relative;background:linear-gradient(135deg,#ff9a5c,#ef5fa0);color:#fff;box-shadow:0 3px 0 #c8456f,0 6px 18px #ef5fa066;animation:rushglow 2.6s ease-in-out infinite}.rush-button:hover{background:linear-gradient(135deg,#ffa86e,#f56fae)}.rush-button .hud-emoji{color:#fff;display:inline-block;animation:rushbolt 2.6s ease-in-out infinite}.rush-button.fresh::after{content:'';position:absolute;top:-4px;inset-inline-end:-4px;width:12px;height:12px;border-radius:50%;background:#ffe14d;border:2px solid #fff;box-shadow:0 0 0 0 #ffe14d99;animation:rushdot 1.6s ease-out infinite}@keyframes rushglow{0%,100%{box-shadow:0 3px 0 #c8456f,0 6px 16px #ef5fa055}50%{box-shadow:0 3px 0 #c8456f,0 6px 26px 3px #ef5fa0b3}}@keyframes rushbolt{0%,100%,70%{transform:rotate(0) scale(1)}78%{transform:rotate(-12deg) scale(1.18)}86%{transform:rotate(10deg) scale(1.18)}94%{transform:rotate(-4deg) scale(1.05)}}@keyframes rushdot{0%{box-shadow:0 0 0 0 #ffe14d99}100%{box-shadow:0 0 0 9px #ffe14d00}}.chips{display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-width:0}.goal-bar{display:flex;gap:8px;min-width:0}.goal-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 12px 6px 8px;border-radius:99px;background:var(--glass);color:#6b5e91;font-size:12px;font-weight:1000;white-space:nowrap;box-shadow:var(--shadow);transition:background .25s,opacity .25s,transform .25s}.goal-chip i{font-style:normal;font-size:16px;color:#d3cae4;line-height:1;transition:color .25s}.goal-chip[data-state=done]{background:#fff3d2;color:#946018;transform:scale(1.05)}.goal-chip[data-state=done] i{color:#ffae1f;text-shadow:0 0 8px #ffc93d}.goal-chip[data-state=fail]{opacity:.6}.goal-chip[data-state=fail] b{text-decoration:line-through}.hazard-chip{display:flex;align-items:center;gap:7px;border-radius:999px;background:var(--glass);box-shadow:var(--shadow);padding:6px 13px;font-size:12px;font-weight:1000;color:#7f7194;white-space:nowrap}.hazard-chip span:first-child{font-size:19px}.ink-status{position:relative;display:flex;align-items:center;gap:10px;flex:none;width:clamp(270px,28vw,360px);padding:8px 14px 9px 9px;border-radius:18px;background:var(--glass);box-shadow:var(--shadow)}.ink-body{flex:1 1 0;min-width:0;padding-top:4px;container-type:inline-size}@container (max-width:262px){.ink-label{display:none}}.hero-button{position:relative;flex:none;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:15px;background:linear-gradient(160deg,#fff,#efe9ff);box-shadow:inset 0 0 0 2px #e4dbfb;transition:transform .12s}.hero-button:not(:disabled):hover{transform:translateY(-2px)}.hero-button:disabled{opacity:.7}.hero-button .pet-preview{width:36px;height:36px}.power-badge{position:absolute;inset-inline-end:-6px;bottom:-6px;min-width:21px;height:21px;display:grid;place-items:center;padding:0 3px;border-radius:99px;background:#fff;box-shadow:0 2px 7px #3c2c7a44;font-size:12px;line-height:1}.hero-button.borrowed{box-shadow:inset 0 0 0 2px #ffb62e,0 0 0 4px #ffcf5c66;animation:borrowed 1.6s ease-in-out infinite}@keyframes borrowed{0%,100%{box-shadow:inset 0 0 0 2px #ffb62e,0 0 0 3px #ffcf5c55}50%{box-shadow:inset 0 0 0 2px #ffb62e,0 0 0 7px #ffcf5c22}}.ink-line{display:flex;align-items:center;gap:8px;margin-bottom:9px;color:#8f84ad;font-size:11px;font-weight:1000;letter-spacing:.6px;white-space:nowrap}.ink-title{display:inline-flex;align-items:center;gap:5px;margin-inline-end:auto;min-width:0;overflow:hidden}.ink-glyph{font-size:13px;color:#7455de}.ink-label{overflow:hidden;text-overflow:ellipsis}.stroke-count{font-size:8px;letter-spacing:1px;color:#7455de}.ink-line strong{color:#6a4bd9;font-size:13px;letter-spacing:0}.ink-bar{direction:ltr;position:relative;height:11px;background:#e9e4f6;border-radius:40px}.ink-bar>#inkFill{height:100%;width:100%;border-radius:40px;background:linear-gradient(90deg,#ae91fc,#7054e3);transition:width .12s}.par-mark{position:absolute;top:-13px;transform:translateX(-50%);font-size:14px;line-height:1;color:#ffae1f;text-shadow:0 1px 0 #fff,0 0 6px #ffd36b;pointer-events:none}.par-mark::after{content:'';position:absolute;left:50%;top:14px;width:2px;height:13px;margin-left:-1px;background:#ffae1f;border-radius:2px}.board-buttons{display:flex;flex:none;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.control-button{height:clamp(46px,6.4vh,56px);display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;border-radius:15px;padding:0 clamp(12px,1.5vw,18px);font-weight:1000;font-size:12px;line-height:1.12}.control-button.subtle{border:0;background:var(--glass);box-shadow:var(--shadow);color:#7a6f92}.control-button.subtle:not(:disabled):hover{background:#fff;color:#674ace}.btn-symbol{font-size:22px;line-height:1}.control-button.primary{min-width:clamp(150px,19vw,230px);border:0;background:linear-gradient(132deg,#8065f0,#5c40ce);color:#fff;box-shadow:0 5px 0 #4d36af,0 8px 20px #2a1f5d44;transition:transform .13s}.control-button.primary:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 #4d36af}.control-button.primary.strike{overflow:hidden;background:linear-gradient(90deg,#ff9a3d calc(var(--cd,0)*100%),#6a55d8 calc(var(--cd,0)*100%));box-shadow:0 5px 0 #4d36af,0 8px 20px #2a1f5d44;transition:none}.control-button.primary.strike .play-icon{display:none}.control-button.primary.strike.ready{background:linear-gradient(132deg,#ffb14d,#ff8a3d);box-shadow:0 5px 0 #b8631c,0 8px 22px #ff8a3d77}.control-button.primary.strike.advice{animation:strikepulse .65s ease-in-out infinite}.control-button.primary.strike.nope{animation:strikenope .28s}.control-button.primary.strike.tapped{animation:striketap .16s ease-out}.control-button.primary.strike.boost:not(.ready){box-shadow:0 5px 0 #4d36af,0 0 20px 4px #ffc46b99}.control-button.primary.strike.fired{animation:strikefired .28s ease-out}.control-button.primary.strike.ready:not(.advice):not(.fired){animation:strikeready .4s ease-out}@keyframes strikepulse{50%{transform:scale(1.07);filter:brightness(1.14)}}@keyframes striketap{40%{transform:scale(.955);filter:brightness(1.12)}}@keyframes strikenope{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}@keyframes strikefired{0%{transform:scale(.92)}55%{transform:scale(1.05)}100%{transform:none}}@keyframes strikeready{0%{transform:scale(.97);filter:brightness(1.3)}45%{transform:scale(1.07)}100%{transform:none;filter:none}}.control-button.primary.ending:disabled{opacity:1;background:linear-gradient(132deg,#a99cf0,#8f81e0);box-shadow:0 5px 0 #7466c2,0 8px 20px #2a1f5d33;cursor:default;animation:endingpulse 1.1s ease-in-out infinite}.control-button.primary.ending .play-icon{display:none}@keyframes endingpulse{50%{filter:brightness(1.1)}}.play-icon{width:23px;height:23px;display:grid;place-items:center;background:#ffffff32;border-radius:50%;font-size:10px;padding-left:1px}.stroke-count:empty{display:none}.hint-cost{margin-inline-start:4px;font-size:11px;font-weight:1000;color:#b9791f;background:#fff1d0;border-radius:99px;padding:2px 7px}.control-button:disabled .hint-cost{opacity:.6}@keyframes nudge{0%,100%{transform:none}50%{transform:translateY(-3px);box-shadow:0 0 0 4px #ffcf5c88}}.control-button.nudge{background:#fff8e1;animation:nudge 1.1s ease-in-out infinite}.board-instruction,.survival-badge{position:absolute;left:calc(var(--bl,0px) + var(--bw,100%)/ 2);top:calc(var(--bt,0px) + 10px);transform:translateX(-50%);z-index:4;pointer-events:none}.board-instruction{display:flex;align-items:center;gap:7px;max-width:calc(100% - 24px);padding:6px 14px 6px 6px;border-radius:99px;background:#fffffff2;color:#5f5681;box-shadow:0 6px 22px #45357a22;font-size:clamp(11px,1.2vw,13px);font-weight:900;transition:opacity .3s}.board-instruction span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-instruction.is-hidden{opacity:0}.instruction-bubble{width:25px;height:25px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e8deff;color:#785cdd;font-size:17px}.survival-badge{display:flex;align-items:center;gap:8px;padding:7px 16px;border-radius:99px;background:#fffffff2;color:#6b5e91;font-weight:1000;letter-spacing:.5px;font-size:11px;opacity:0;transition:opacity .2s;white-space:nowrap}.survival-badge.low{background:#fff0f2f2}.survival-badge.low strong{color:#e0405e;animation:lowpulse .6s ease-in-out infinite}@keyframes lowpulse{50%{transform:scale(1.22)}}.survival-badge.visible{opacity:1}.survival-badge strong{color:#704de6;font-size:17px}.badge-heart{color:#f487a3;font-size:18px}body[data-fight="1"] .board-instruction,body[data-fight="1"] .survival-badge{top:max(36px,calc(var(--bar-top,44px) - 6px));transform:translate(-50%,-100%)}.ink-refill{position:absolute;left:calc(var(--bl,0px) + var(--bw,100%)/ 2);top:calc(var(--bt,0px) + 54px);transform:translateX(-50%);z-index:5;display:inline-flex;align-items:center;gap:7px;border:0;border-radius:99px;padding:9px 16px;background:linear-gradient(132deg,#8065f0,#5c40ce);color:#fff;font-size:12px;font-weight:1000;box-shadow:0 4px 0 #4d36af,0 8px 20px #2a1f5d44;white-space:nowrap;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;animation:nudge 1.3s ease-in-out infinite}.ink-refill[hidden]{display:none}.hero-pouch{color:#a2650c!important;font-weight:1000!important}.board-countdown{position:absolute;left:calc(var(--bl,0px) + var(--bw,100%)/ 2);top:calc(var(--bt,0px) + var(--bh,100%) * .42);transform:translate(-50%,-50%);font-size:clamp(65px,14vw,170px);font-weight:1000;color:#fff;text-shadow:0 7px 0 #634abd,0 15px 45px #39265b87;pointer-events:none;z-index:5;opacity:0}.board-countdown.pop{animation:countpop .38s both}.rotate-hint{position:absolute;left:calc(var(--bl,0px) + var(--bw,100%)/ 2);top:calc(var(--bt,0px) + var(--bh,100%) + 12px);transform:translateX(-50%);z-index:4;max-width:calc(100% - 24px);border:0;border-radius:99px;padding:8px 14px;background:#302d53dd;color:#fff;font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.boot-loading{position:absolute;inset:0;z-index:30;display:grid;place-items:center;background:#2a2547;color:#b9a9f0;font-weight:1000;letter-spacing:.5px}body[data-mode=rush] #hintBtn,body[data-mode=rush] #restartBtn,body[data-mode=rush] #undoBtn,body[data-mode=rush] .goal-bar,body[data-mode=rush] .journey-pill,body[data-mode=rush] .par-mark{display:none}@media (max-width:1500px){.journey-pill{display:none}}@media (max-width:1100px){.hazard-chip span:last-child{max-width:15ch;overflow:hidden;text-overflow:ellipsis}.heroes-button .hud-label,.levels-button .hud-label{display:none}}@media (max-width:860px){.hud-label{display:none}.hazard-chip span:last-child{display:none}.hazard-chip{padding:6px 9px}}@media (min-aspect-ratio:11/10) and (min-height:431px) and (max-height:600px){.ink-status{padding:4px 12px 5px 5px;border-radius:14px}.ink-line{margin-bottom:5px}.ink-body{padding-top:2px}.hero-button{width:36px;height:36px;border-radius:12px}.hero-button .pet-preview{width:29px;height:29px}.control-button{height:42px}.control-button.primary{min-width:150px}.btn-symbol{font-size:19px}.stage-badge{width:36px;height:36px;font-size:17px}.ident{padding:4px 12px 4px 4px}.bank-pill,.hud-button,.hud-icon{height:38px}.hud-icon{width:38px}}@media (max-aspect-ratio:11/10){.game-app{--gap:8px}.hud{flex-wrap:wrap;row-gap:var(--gap)}.ident{order:1;flex:1 1 0;max-width:max-content}.tools{order:2}.chips{order:3;flex:1 0 100%;justify-content:space-between;flex-wrap:nowrap;gap:8px}.board-area{grid-row:2;--board-v:1}.dock{flex-direction:column;align-items:stretch;gap:8px}.ink-status{width:auto}.board-buttons{justify-content:stretch;width:100%}.board-buttons>.subtle{flex:0 0 auto;min-width:0;padding:0 14px}.board-buttons>.primary{flex:1 1 0;min-width:0;padding:0 10px;white-space:normal;text-align:center;line-height:1.1;font-size:13px}.control-button{height:clamp(50px,7.5vh,60px)}.control-label{display:none}.hud-label,.journey-pill{display:none}.hint-cost{margin-inline-start:0}.board-instruction,.survival-badge{top:calc(var(--bt,0px) - 44px)}.rotate-hint{top:calc(var(--bt,0px) - 88px)}.ink-refill{top:calc(var(--bt,0px) - 8px)}}@media (max-aspect-ratio:11/10) and (min-width:700px){.control-label{display:inline}.hud-label{display:inline}.dock{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:12px}.ink-status{flex:1 1 220px;width:auto}.board-buttons{width:auto;flex:1 1 auto;min-width:0}.board-buttons>.primary{flex:0 1 230px;min-width:150px}.board-buttons>.subtle{flex:0 1 auto}}@media (max-aspect-ratio:11/10) and (min-width:700px) and (max-width:900px){.control-label{display:none}.hud-label{display:none}}@media (max-aspect-ratio:11/10) and (max-width:420px){.hero-button{width:42px;height:42px}.hero-button .pet-preview{width:33px;height:33px}.stage-badge{width:38px;height:38px;font-size:17px}.ident{padding:5px 12px 5px 5px;gap:8px}.stage-overline{display:none}.stage-copy strong{font-size:14px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tools{gap:8px}.bank-pill,.hud-button,.hud-icon{height:40px}.heroes-button,.hud-icon,.levels-button,.rush-button{width:40px;min-width:40px}.hud-icon{font-size:18px}.bank-pill{padding:0 10px;font-size:13px}.goal-chip{padding:5px 9px 5px 6px;font-size:11px}.goal-chip i{font-size:14px}.hazard-chip span:last-child{display:none}.hazard-chip{padding:5px 9px}.board-buttons{gap:8px}.board-buttons>.subtle{padding:0 11px}.btn-symbol{font-size:20px}}@media (max-aspect-ratio:11/10) and (max-width:350px){.ink-label{display:none}.play-icon{display:none}.board-buttons>.primary{font-size:12px}.chips{flex-wrap:wrap;row-gap:8px}.goal-bar{flex-wrap:wrap;row-gap:8px}.bank-pill,.hud-button,.hud-icon{height:38px}.heroes-button,.hud-icon,.levels-button,.rush-button{width:38px;min-width:38px}}@media (max-aspect-ratio:11/10) and (max-width:379px){.ident{flex:1 1 100%;max-width:none}.tools{flex:1 1 100%;justify-content:space-between}}@media (min-aspect-ratio:11/10) and (max-height:430px){.game-app{--side:clamp(92px,14vw,128px);--gap:clamp(8px,2.2vh,10px);grid-template-columns:var(--side) minmax(0,1fr) var(--side);grid-template-rows:auto auto minmax(0,1fr) auto}.chips,.dock,.hud{display:contents}.board-area{grid-column:2;grid-row:1/5}.ident{grid-column:1;grid-row:1;align-self:start;flex-direction:column;align-items:flex-start;gap:4px;padding:6px;border-radius:14px;width:100%}.stage-badge{width:34px;height:34px;font-size:16px;border-radius:10px}.stage-overline{display:none}.stage-copy strong{white-space:normal;font-size:12px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.goal-bar{grid-column:1;grid-row:2;flex-direction:column;align-self:start;gap:var(--gap)}.goal-chip{padding:4px 7px 4px 5px;font-size:10.5px;white-space:normal;line-height:1.12;border-radius:13px;box-shadow:0 2px 8px #2a1f5d26}.goal-chip i{font-size:14px}.hazard-chip{grid-column:3;grid-row:1/3;align-self:end;justify-self:end;padding:4px 8px;font-size:10px}.hazard-chip span:last-child{display:none}.tools{grid-column:3;grid-row:1/3;margin-bottom:calc(var(--gap) + 31px);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);justify-items:stretch;align-self:start;gap:var(--gap);max-width:100%}.tools #settingsBtn,.tools>.hud-button{width:100%}.tools #settingsBtn{grid-column:1/-1}.hud-label,.journey-pill{display:none}.bank-pill,.hud-button,.hud-icon{height:38px;border-radius:11px}.heroes-button,.hud-icon,.levels-button,.rush-button{width:38px;min-width:38px}.hud-icon{font-size:18px}.bank-pill{padding:0 9px;font-size:12px}.hud-button{padding:0 8px}.ink-status{grid-column:1;grid-row:4;width:100%;flex-direction:column;align-items:stretch;gap:10px;padding:7px 9px 9px;border-radius:14px}.ink-body{padding-top:0}.hero-button{align-self:flex-start;width:38px;height:38px;border-radius:12px}.hero-button .pet-preview{width:30px;height:30px}.ink-line{margin-bottom:7px;font-size:10px;gap:5px}.ink-label{display:none}.ink-bar{height:9px}.board-buttons{grid-column:3;grid-row:4;display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap);align-self:end}.board-buttons>#hintBtn{grid-column:1/-1;grid-row:3}.board-buttons>.primary{grid-column:1/-1;grid-row:1;min-width:0;height:46px;padding:0 6px;font-size:11px;white-space:normal;line-height:1.1;text-align:center}.board-buttons>.primary .play-icon{display:none}.board-buttons>.primary{margin-bottom:5px}.board-buttons>.subtle{grid-row:2;height:40px;min-width:0;padding:0}.board-buttons>#hintBtn{padding:0 8px;gap:4px}.control-label{display:none}.btn-symbol{font-size:18px}.hint-cost{margin-inline-start:0}.board-instruction,.survival-badge{top:calc(var(--bt,0px) + 6px);font-size:10px;padding:4px 10px 4px 5px}.instruction-bubble{width:20px;height:20px;font-size:14px}}@media (min-aspect-ratio:11/10) and (max-height:340px){.game-app{--gap:6px}.ident{padding:4px;gap:3px;align-items:center}.stage-badge{width:30px;height:30px;font-size:15px}.stage-copy{display:none}.goal-bar{gap:6px}.goal-chip{padding:3px 6px 3px 4px;font-size:10px}.goal-chip i{font-size:12px}.ink-status{padding:5px 8px 7px}.ink-line{margin-bottom:5px}.hero-button{width:36px;height:36px}.hero-button .pet-preview{width:29px;height:29px}.ink-status{gap:8px}.tools{gap:6px}.tools #settingsBtn{grid-column:auto}#heroesBtn{display:none}.bank-pill,.hud-button,.hud-icon{height:36px}.heroes-button,.hud-icon,.levels-button,.rush-button{width:100%;min-width:0}.bank-pill{padding:0 4px;gap:3px;justify-content:center;font-size:12px}.board-buttons{gap:6px}.board-buttons>.primary{height:40px;font-size:10.5px}.board-buttons>.subtle{height:36px}.hazard-chip{padding:3px 7px}}.overlay{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#2525408c;backdrop-filter:blur(7px);animation:fadein .2s both}.modal{position:relative;background:#fffdfb;width:min(100%,500px);max-height:min(94svh,850px);max-height:calc(100dvh - 18px);display:flex;flex-direction:column;overflow:hidden;border:2px solid #fff;border-radius:28px;box-shadow:0 28px 100px #11122e60;text-align:center;animation:modalpop .3s ease both}.modal-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;padding:38px 32px 31px}.modal-body::-webkit-scrollbar{display:none;width:0;height:0}.modal:focus,.modal:focus-visible{outline:0}.modal-body:focus{outline:0}.modal-body:focus-visible{box-shadow:inset 0 0 0 3px #d9ccff}.scroll-rail{position:absolute;inset-block:24px;inset-inline-end:5px;width:12px;border-radius:99px;opacity:0;pointer-events:none;transition:opacity .25s;z-index:4;touch-action:none}.scroll-rail::before{content:'';position:absolute;inset:0 4px;border-radius:99px;background:#7b60df17}.modal.scrollable .scroll-rail{opacity:.5;pointer-events:auto}.modal.scrollable:hover .scroll-rail,.modal.scrolling .scroll-rail,.scroll-rail.drag{opacity:1}.scroll-thumb{position:absolute;top:0;inset-inline:2px;min-height:34px;border-radius:99px;background:linear-gradient(180deg,#a28cf6,#7357de);box-shadow:inset 0 0 0 1px #ffffff59,0 1px 3px #4b34a533;cursor:grab;will-change:transform;transition:filter .15s}.scroll-rail:hover .scroll-thumb{filter:brightness(1.07)}.scroll-rail.drag .scroll-thumb{cursor:grabbing;filter:brightness(.94)}.modal::after,.modal::before{content:'';position:absolute;inset-inline:0;height:26px;z-index:3;pointer-events:none;opacity:0;transition:opacity .2s}.modal::before{top:0;border-radius:26px 26px 0 0;background:linear-gradient(#fffdfb,#fffdfb00)}.modal::after{bottom:0;border-radius:0 0 26px 26px;background:linear-gradient(#fffdfb00,#fffdfb)}.modal.can-down::after,.modal.can-up::before{opacity:1}.modal.wide{width:min(100%,780px);text-align:start}.modal-close{position:absolute;inset-inline-end:16px;top:13px;width:34px;height:34px;border:none;background:#f5f2f6;border-radius:10px;font-size:23px;color:#9b8eaa;display:grid;place-items:center;z-index:5;transition:background .15s,color .15s,transform .1s}.modal-close:active{transform:scale(.94)}.modal-close:hover{background:#eee7ff;color:#7756dc}.modal-kicker{color:#8970d7;font-size:11px;letter-spacing:2.1px;font-weight:1000;margin:0 0 8px}.modal h2{font-size:clamp(28px,6vw,39px);letter-spacing:-1.8px;margin:0 0 10px;line-height:1.12}.modal-desc{color:#9990a4;font-size:13px;line-height:1.55;max-width:380px;margin:0 auto 22px}.modal-foot{text-align:center;color:#aaa0b0;font-size:11px;margin:16px 0 0}.result-illustration{font-size:63px;margin-bottom:12px;filter:drop-shadow(0 8px 7px #8c6dca21);animation:bob 2s infinite}.goal-stars{display:flex;justify-content:center;gap:12px;margin:12px 0 16px}.goal-star{flex:1;max-width:130px;display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 6px 9px;border-radius:16px;background:#f7f4fb}.goal-star .gs-star{font-size:46px;line-height:1.05;color:#e2dce9;text-shadow:0 3px 0 #b0a7b91c}.goal-star strong{font-size:11px;color:#8c82a0;letter-spacing:.2px}.goal-star small{font-size:10px;color:#b5abc0;min-height:12px;font-weight:900}.goal-star.earned{background:#fff6de}.goal-stars.still .goal-star.earned .gs-star{animation:none!important}.goal-star.earned .gs-star{color:#ffc358;text-shadow:0 4px 0 #e79c3d,0 5px 13px #f4aa53a3;animation:starpop .5s backwards;animation-delay:calc(var(--i)*.22s + .15s)}.goal-star.earned strong{color:#946018}.goal-star.earned small{color:#c08a35}.result-stats{display:flex;justify-content:center;gap:10px;margin-bottom:23px;flex-wrap:wrap}.result-stats>div{min-width:105px;border-radius:13px;background:#f7f4ff;padding:12px 12px;display:flex;flex-direction:column;gap:5px}.result-stats>div.bank{background:#fff6e3}.result-stats>div.bank strong{color:#c8841e}.result-stats span{font-size:9px;letter-spacing:1px;color:#aaa1b8;font-weight:900}.result-stats strong{font-size:20px;color:#6252c0}.modal-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.modal-actions.stack{flex-direction:column;align-items:stretch;max-width:340px;margin:0 auto}.skip-offer{margin:14px auto 0;padding-top:12px;border-top:1px dashed #e0d8ee;max-width:340px}.skip-offer p{margin:0 0 9px;font-size:12px;line-height:1.45;color:#8f86a3;text-wrap:balance}.skip-offer .modal-button{width:100%}.modal-button{transition:opacity .28s,filter .28s,transform .06s}.modal.arming .hero-teaser,.modal.arming .modal-actions .modal-button,.modal.arming .skip-offer .modal-button{opacity:.5;filter:saturate(.55);pointer-events:none}.modal-actions.eq>.modal-button{flex:1 1 210px}.modal-actions.sub{margin-top:10px}.modal-actions.stack.eq>.modal-button{flex:none}.modal-button small{display:block;font-size:10px;font-weight:900;opacity:.85;margin-top:1px}.modal-button.mult{padding-top:6px;padding-bottom:6px;line-height:1.15}.mult-done{flex:1 1 210px;min-height:48px;display:grid;place-items:center;border-radius:13px;background:#e9f9ee;color:#2f8f55;font-size:13px;font-weight:1000}.result-note{margin:-10px 0 14px;font-size:12px;font-weight:900;color:#b27a2a}.result-note.pet{color:#8a5fd0}.hint-cost-line{margin:-8px 0 16px;font-weight:1000;color:#8b6a20;font-size:13px}.modal-button{border:0;border-radius:13px;min-height:48px;padding:0 24px;font-size:13px;font-weight:1000}.modal-button.main{background:#7359df;box-shadow:0 5px 0 #5340b9;color:#fff}.modal-button.main.alt{background:#e8823f;box-shadow:0 5px 0 #b9622a}.modal-button.main:hover{filter:brightness(1.06)}.modal-button.light{background:#eee9fa;color:#6e5aba}.modal-button.danger{background:#e5496a;color:#fff;box-shadow:0 5px 0 #b3314d}.modal-button:active{transform:translateY(2px)}.level-modal-heading{padding-inline-end:30px}.level-modal-heading h2{margin-bottom:9px}.level-modal-heading .modal-desc{margin:0;max-width:none}.level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.level-tile{position:relative;border:1px solid #ebe6ef;border-radius:13px;background:#f9f7fb;min-height:89px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#a99eb3;transition:transform .12s,border-color .12s}.level-tile:not(:disabled):hover{transform:translateY(-3px);border-color:#ad9cf9}.level-tile.current{border:2px solid #745bdc;background:#f1ecff;color:#7259dc}.level-tile.completed{background:#fff8eb;border-color:#f0dfbf;color:#79614a}.level-tile-num{font-size:20px;font-weight:1000}.level-tile-icon{font-size:19px}.level-tile-stars{font-size:13px;color:#e9aa4c;letter-spacing:1px}.chapter-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:17px 0 9px}.chapter-tab{min-width:0;border:1px solid #eee7f3;border-radius:12px;background:#faf8fc;padding:10px 7px;color:#9085aa;display:flex;flex-direction:column;align-items:center;gap:3px}.chapter-tab strong{font-size:11px;font-weight:1000;letter-spacing:.3px;white-space:nowrap}.chapter-tab span{font-size:10px;font-weight:800}.chapter-tab.is-current{background:#f0eaff;border-color:#a48aef;color:#7053ce}.world-strip{position:relative;margin:11px 0 15px}.world-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;gap:7px;padding:4px 3px;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch}.world-tabs::-webkit-scrollbar{display:none;width:0;height:0}.world-strip::after,.world-strip::before{content:'';position:absolute;top:0;bottom:0;width:44px;z-index:2;pointer-events:none;opacity:0;transition:opacity .2s}.world-strip::before{inset-inline-start:0;background:linear-gradient(to var(--end),#fffdfb 22%,#fffdfb00)}.world-strip::after{inset-inline-end:0;background:linear-gradient(to var(--start),#fffdfb 22%,#fffdfb00)}.world-strip{--start:left;--end:right}[dir=rtl] .world-strip{--start:right;--end:left}.world-strip.can-next::after,.world-strip.can-prev::before{opacity:1}.strip-btn{position:absolute;top:50%;margin-top:-15px;z-index:3;width:30px;height:30px;border:0;border-radius:50%;background:#fff;color:#7357de;font-size:20px;line-height:1;display:none;place-items:center;box-shadow:0 2px 9px #4b34a52e,inset 0 0 0 1px #e6defa;transition:transform .12s,background .15s,opacity .2s;padding:0 0 3px}.strip-btn:hover{background:#f1ebff}.strip-btn:active{transform:scale(.92)}.strip-btn.prev{inset-inline-start:2px}.strip-btn.next{inset-inline-end:2px}[dir=rtl] .strip-btn{transform:scaleX(-1)}[dir=rtl] .strip-btn:active{transform:scaleX(-1) scale(.92)}.world-strip.can-next .strip-btn.next,.world-strip.can-prev .strip-btn.prev{display:grid}@media (pointer:coarse){.strip-btn{display:none!important}}.world-tab{flex:0 0 auto;scroll-snap-align:center;display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:1px solid #e9e3eb;background:#fff;padding:9px 13px;border-radius:10px;color:#9489a0;font-size:11px;font-weight:900}.world-tab small{font-size:9px;opacity:.72}.world-tab.active{background:#7259dc;color:#fff;border-color:#7259dc}.guide-list{display:flex;flex-direction:column;gap:11px;text-align:start;margin:20px 0}.guide-step{display:flex;align-items:flex-start;gap:15px;border-radius:16px;background:#f9f6ff;padding:13px}.guide-icon{flex-shrink:0;display:grid;place-items:center;border-radius:13px;width:43px;height:43px;background:#ece5ff;color:#755bd6;font-size:23px}.guide-step strong{display:block;margin-bottom:4px;font-size:14px}.guide-step p{margin:0;color:#968ba1;font-size:12px;line-height:1.5}.settings-list{display:flex;flex-direction:column;gap:9px;margin:18px 0 6px;text-align:start}.setting{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:start;border:1px solid #ece6f4;border-radius:14px;background:#faf8fe;padding:13px 16px;font-size:14px;font-weight:900;color:#4a3f78}.setting-note{margin:2px 4px;font-size:11px;color:#b3858f}.switch{position:relative;width:44px;height:25px;border-radius:99px;background:#d8d1e6;transition:background .2s}.switch::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0003;transition:transform .2s}.switch.on{background:#7359df}.switch.on::after{transform:translateX(19px)}[dir=rtl] .switch.on::after{transform:translateX(-19px)}.lang-title{margin:16px 0 9px;text-align:start;font-size:11px;font-weight:1000;letter-spacing:1px;color:#a398b7;text-transform:uppercase}.lang-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:20px}.lang{border:1px solid #e9e3eb;background:#fff;padding:0 6px;height:37px;line-height:1;border-radius:11px;color:#7d7090;font-size:12px;font-weight:900}.lang.active{background:#7259dc;border-color:#7259dc;color:#fff}.pet-modal-heading{text-align:start}.hero-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:20px;text-align:start}.hero-card{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto 1fr;gap:4px 12px;align-items:start;padding:12px;border:2px solid #efebf4;border-radius:20px;background:linear-gradient(160deg,#fff,#faf8fd)}.hero-card.selected{border-color:#8d6de6;background:linear-gradient(155deg,#fcf9ff,#efe8ff);box-shadow:0 7px 20px #8d6de62b}.hero-card.armed{border-color:#ffb62e;background:linear-gradient(155deg,#fffdf6,#fff3d6)}.hero-card.locked .hero-avatar{filter:grayscale(.8) brightness(1.06);opacity:.75}.hero-avatar{grid-row:span 2;width:64px;height:64px;display:grid;place-items:center;border-radius:18px;background:radial-gradient(circle at 53% 53%,#fff 3%,#fff5 64%,transparent 75%)}.hero-avatar svg{width:100%;height:100%}.hero-info{min-width:0;display:flex;flex-direction:column;gap:3px}.hero-name strong{font-size:15px;font-weight:1000;margin-inline-end:6px}.hero-name small{font-size:11px;font-weight:800;color:#a69cb2}.hero-power{display:flex;align-items:center;gap:6px;color:#7153d7;font-size:12px;font-weight:1000}.hero-power i{font-style:normal;font-size:16px;line-height:1}.hero-info p{margin:0;color:#9a8fae;font-size:11.5px;line-height:1.4;font-weight:700}.hero-actions{grid-column:1/-1;align-self:end;display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:6px}.hero-actions .modal-button{flex:1 1 120px;min-height:40px;padding:0 12px;font-size:12px}.hero-state{flex:1 1 100%;font-size:11px;font-weight:1000;color:#8f84a3;background:#f3eff8;border-radius:99px;padding:7px 12px;text-align:center}.hero-state.on{color:#7153d7;background:#ece4ff}.hero-state.armed{color:#a2650c;background:#ffe9b8}.hero-have{flex:1 1 100%;font-size:10.5px;font-weight:800;color:#a69cb2;text-align:center}.hero-teaser{display:flex;align-items:center;gap:10px;width:100%;margin:18px 0 0;padding:8px 12px;border:1.5px dashed #d9cdf3;border-radius:16px;background:#faf7ff;color:#6b5e91;text-align:start;font-size:12px;font-weight:900}.hero-teaser .pet-preview{width:34px;height:34px;flex:none}.hero-teaser span.txt{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:1px}.hero-teaser small{font-size:10.5px;font-weight:800;color:#a398b7}.hero-teaser em{font-style:normal;flex:none;color:#b9791f;font-weight:1000}.hero-teaser.ready{border-style:solid;border-color:#ffb62e;background:#fff8e4;animation:nudge 1.4s ease-in-out infinite}.pet-footer-note{font-size:12px;color:#9990a9;text-align:center;margin:16px 0 0}.toast{position:fixed;bottom:calc(var(--dock-h,0px) + 22px);left:50%;transform:translate(-50%,15px);background:#302d53;color:#fff;border-radius:30px;padding:12px 19px;box-shadow:0 12px 35px #211a4c50;font-size:12px;font-weight:900;opacity:0;pointer-events:none;z-index:25;transition:opacity .2s,transform .2s;white-space:normal;text-align:center;max-width:min(92vw,520px)}.toast.show{opacity:1;transform:translate(-50%,0)}@media (max-aspect-ratio:11/10){.toast{bottom:auto;top:max(118px,calc(var(--bt,0px) - 132px))}}.ad-shield{position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:#1b1a33d9;color:#fff;font-weight:1000;letter-spacing:.6px}.banner-slot{position:absolute;inset-inline:0;bottom:max(8px,env(safe-area-inset-bottom));margin-inline:auto;width:min(470px,calc(100% - 24px));height:60px;border-radius:12px;overflow:hidden;z-index:2}.account-row{display:flex;align-items:center;gap:12px;text-align:start;border:1px solid #ece6f4;border-radius:14px;background:#faf8fe;padding:11px 14px;margin-bottom:6px}.account-row.compact{margin:6px 0 0;padding:8px 12px;font-size:13px;color:#5b4d8a}.account-row>div{flex:1;min-width:0}.account-row strong{display:block;font-size:14px;color:#4a3f78}.account-row small{display:block;font-size:11px;color:#a398b7;margin-top:2px}.account-row .modal-button{min-height:38px;padding:0 14px;font-size:12px;flex:none}.avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#e9e1fa}.account-row.compact .avatar{width:28px;height:28px}@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes modalpop{from{opacity:0;transform:scale(.92) translateY(15px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes countpop{0%{opacity:0;transform:translate(-50%,-50%) scale(1.4)}20%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(.9)}}@keyframes starpop{from{opacity:0;transform:scale(.25) rotate(-20deg)}to{opacity:1;transform:scale(1) rotate(0)}}@media(prefers-reduced-motion:reduce){*,:after,:before{animation-duration:NaNs!important;transition-duration:NaNs!important}}@media(max-width:700px){.modal{border-radius:20px}.modal-body{padding:33px 16px 20px}.modal.wide .modal-body{padding:32px 13px 19px}.modal h2{font-size:clamp(24px,5vw,32px)}.modal-desc{margin-bottom:12px;font-size:12px}.world-tabs{gap:5px;margin:7px 0 10px}.world-tab{padding:7px 9px;font-size:10px}.chapter-tabs{gap:4px;margin:10px 0 7px}.chapter-tab{padding:8px 2px;border-radius:8px}.chapter-tab span,.chapter-tab strong{font-size:8px}.level-grid{gap:5px}.level-tile{min-width:0;min-height:62px;border-radius:10px}.level-tile-num{font-size:14px}.level-tile-icon{font-size:15px}.level-tile-stars{font-size:9px}.hero-list{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:11px}.hero-card{padding:9px;border-radius:15px}.guide-list{gap:7px;margin:13px 0}.guide-step{padding:8px;gap:9px}.guide-icon{height:34px;width:34px;font-size:19px}.guide-step p{font-size:11px}.result-illustration{font-size:43px;margin-bottom:5px}.goal-stars{gap:6px}.goal-star .gs-star{font-size:34px}.goal-star strong{font-size:10px}.result-stats{gap:5px;margin-bottom:12px}.result-stats>div{padding:8px;min-width:78px}.result-stats strong{font-size:16px}.modal-actions{gap:7px}.modal-button{min-height:42px;padding:0 13px;font-size:12px}.lang-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (orientation:landscape) and (max-height:530px){.modal-body{padding:19px 19px 15px}.modal h2{font-size:23px;margin-bottom:5px}.modal-kicker{font-size:9px;margin-bottom:4px}.modal-desc{font-size:10px;margin-bottom:8px}.hero-list{gap:6px;margin-top:9px}.pet-footer-note{margin:8px 0 0}.guide-list{margin:8px 0;gap:5px}.guide-step{padding:6px}.guide-step p{font-size:10px}.chapter-tabs{margin:6px 0 5px}.chapter-tab{flex-direction:row;justify-content:center;padding:5px}.world-tabs{padding:2px 0 5px;margin:4px 0 6px}.level-tile{min-height:57px}.result-illustration{font-size:33px}.goal-star .gs-star{font-size:28px}.result-stats{margin-bottom:8px}.modal-button{min-height:34px}}.victory{position:absolute;left:calc(var(--bl,0px) + var(--bw,100%)/ 2);top:calc(var(--bt,0px) + var(--bh,100%) * .4);transform:translate(-50%,-50%);z-index:6;pointer-events:none;display:grid;justify-items:center;gap:8px;width:min(94%,680px)}.victory[hidden]{display:none}.victory-rays{position:absolute;left:50%;top:50%;width:150%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:repeating-conic-gradient(from 0deg,rgba(255,236,170,.36) 0 7deg,transparent 7deg 20deg);-webkit-mask:radial-gradient(circle,#000 0,transparent 60%);mask:radial-gradient(circle,#000 0,transparent 60%);animation:raysspin 16s linear infinite;opacity:0}.victory.in .victory-rays{opacity:1;transition:opacity .6s}.victory-card{position:relative;display:flex;align-items:center;justify-content:center;gap:.4em;padding:.25em .85em .3em;border-radius:28px;background:linear-gradient(180deg,#8d70f5,#5f43d4);color:#fff;font-size:clamp(18px,calc(var(--bw,100vw) * .045),44px);font-weight:1000;letter-spacing:.4px;text-align:center;text-shadow:0 3px 0 #3f2b9a;box-shadow:0 6px 0 #3c2894,0 18px 44px #2a1f5d66,inset 0 2px 0 #ffffff44;animation:victorypop .75s cubic-bezier(.2,1.4,.4,1) both;max-width:100%}.victory-trophy{font-size:1.15em;animation:trophy 1.4s ease-in-out .5s infinite}.victory-reward{position:relative;font-size:clamp(16px,calc(var(--bw,100vw) * .034),32px);font-weight:1000;color:#ffe29a;text-shadow:0 3px 0 #8a5a16,0 8px 22px #00000055;animation:victoryreward .6s .35s cubic-bezier(.2,1.5,.4,1) both}.victory-reward small{font-size:.7em;color:#fff;background:#5f43d4;border-radius:99px;padding:.05em .5em;text-shadow:none;vertical-align:.12em}.victory.out{animation:victoryout .3s ease-in both}.star-layer{position:fixed;inset:0;z-index:8;pointer-events:none;overflow:hidden}.fly-star{position:absolute;left:0;top:0;font-size:24px;line-height:1;color:#ffcf5c;text-shadow:0 2px 0 #b9791f,0 0 12px #ffe29aaa;will-change:transform,opacity}.bank-pill.pulse{animation:bankpulse .34s ease-out}@keyframes victorypop{0%{opacity:0;transform:scale(.3) rotate(-7deg)}55%{opacity:1;transform:scale(1.14) rotate(1.4deg)}78%{transform:scale(.97) rotate(-.4deg)}100%{opacity:1;transform:scale(1) rotate(0)}}@keyframes victoryreward{from{opacity:0;transform:translateY(10px) scale(.6)}to{opacity:1;transform:none}}@keyframes victoryout{to{opacity:0;transform:translate(-50%,-62%) scale(1.04)}}@keyframes trophy{0%,100%{transform:rotate(-8deg) scale(1)}50%{transform:rotate(8deg) scale(1.12)}}@keyframes raysspin{to{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes bankpulse{0%{transform:scale(1)}40%{transform:scale(1.14);box-shadow:0 0 0 5px #ffcf5c66}100%{transform:scale(1)}}@media (prefers-reduced-motion:reduce){.control-button.primary.strike.fired,.control-button.primary.strike.ready,.control-button.primary.strike.tapped,.survival-badge.low strong{animation:none}.victory-rays,.victory-trophy{animation:none}.victory-card,.victory-reward{animation:fadein .3s both}.bank-pill.pulse{animation:none}}@media (pointer:coarse){.modal.scrollable .scroll-rail{opacity:0}.modal.scrolling .scroll-rail,.scroll-rail.drag{opacity:.9}}@media (max-height:760px) and (min-width:560px){.modal-body{padding:30px 30px 22px}.modal h2{font-size:clamp(26px,4.6vh,34px);margin-bottom:6px;letter-spacing:-1.4px}.modal-desc{margin-bottom:14px;line-height:1.45}.settings-list{margin:12px 0 4px;gap:7px}.setting{padding:10px 15px}.account-row{padding:8px 12px}.lang-title{margin:12px 0 7px}.lang-grid{gap:6px;margin-bottom:14px}.lang{height:34px}.guide-list{margin:12px 0;gap:8px}.guide-step{padding:10px}.result-illustration{font-size:52px;margin-bottom:6px}.goal-stars{margin:8px 0 10px}.result-stats{margin-bottom:14px}}.dlg-a,.dlg-b,.dlg-grid{display:block}@media (orientation:landscape) and (max-height:530px){.modal[data-mode=help],.modal[data-mode=hint],.modal[data-mode=lost],.modal[data-mode=menu],.modal[data-mode=rush-over],.modal[data-mode=rush],.modal[data-mode=settings],.modal[data-mode=won]{width:min(100%,720px)}.dlg-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:22px;align-items:center}.dlg-a,.dlg-b{min-width:0}.dlg-b{padding-top:28px}.dlg-a .modal-desc{max-width:none;margin-bottom:6px}.dlg-a .modal-foot{margin-top:8px}.dlg-a .hint-cost-line{margin:0 0 6px}.dlg-a h2{margin-bottom:6px}.dlg-b .modal-actions{flex-direction:column;align-items:stretch;flex-wrap:nowrap;max-width:none;margin:0;gap:7px}.dlg-b .modal-actions>.modal-button,.dlg-b .modal-actions>.mult-done{flex:none}.dlg-b .modal-actions.sub{flex-direction:row;margin-top:7px}.dlg-b .modal-actions.sub>.modal-button{flex:1 1 0;padding:0 8px}.dlg-b .skip-offer{max-width:none;margin-top:8px;padding-top:7px}.dlg-b .skip-offer p{margin-bottom:5px;font-size:10px}.dlg-b .result-note{margin:0 0 7px;font-size:10px}.dlg-b .hero-teaser{margin-top:7px}.dlg-a .goal-stars{margin:6px 0 8px;gap:7px}.dlg-a .goal-star{padding:5px 4px 6px;border-radius:12px}.dlg-a .goal-star small{min-height:11px}.dlg-a .result-stats{gap:6px;margin-bottom:0}.dlg-a .result-stats>div{flex:1 1 0;min-width:0;padding:7px 6px;gap:3px}.dlg-a .result-stats strong{font-size:15px}.modal-button.mult{padding-top:4px;padding-bottom:4px}.settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0 4px}.setting{padding:7px 12px}.account-row{padding:6px 10px}.lang-title{margin:8px 0 5px}.lang-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:9px}.lang{height:34px;font-size:11px}.guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin:8px 0}.guide-step{padding:5px 7px}.guide-icon{width:28px;height:28px;font-size:15px}.level-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.level-tile{min-height:42px;border-radius:9px;gap:0}.level-tile-num{font-size:13px}.level-tile-icon{font-size:12px}.level-tile-stars{font-size:8px}.hero-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (orientation:landscape) and (max-height:350px){.modal-body{padding:12px 16px 9px}.modal h2{font-size:20px;margin-bottom:3px}.modal-kicker{margin-bottom:2px}.modal-close{top:6px;inset-inline-end:8px;width:28px;height:28px;font-size:20px}.dlg-b{padding-top:26px}.result-illustration{font-size:26px;margin-bottom:2px}.modal-button{min-height:34px}.modal-actions{gap:5px}.dlg-b .modal-actions{gap:5px}.settings-list{gap:4px;margin:5px 0 2px}.setting{padding:4px 10px}.lang-title{margin:5px 0 3px}.lang-grid{gap:4px;margin-bottom:6px}.dlg-a .goal-stars{margin:3px 0 5px}.dlg-a .goal-star .gs-star{font-size:22px}.dlg-a .result-stats>div{padding:4px 5px;gap:1px}.dlg-a .result-stats strong{font-size:13px}.dlg-a .result-stats span{font-size:8px}.dlg-b .hero-teaser{margin-top:5px;padding:5px 9px}.modal-desc{font-size:10px;margin-bottom:5px}}