.stack-tools{display:flex;align-items:center;gap:7px;margin-left:auto}.stack-tools .sound{margin:0}.stack-trophy,.stack-board-control{color:#ffe5ab;display:grid;place-items:center;border:1px solid #cbe9e364;background:#083047b0;border-radius:50%;width:44px;height:44px;padding:0}.stack-trophy svg{width:21px}.stack-tools .stack-account{min-height:44px;border:1px solid #d4f5f65e;border-radius:999px;color:#f2ffff;background:#183952b5;font-size:12px;padding:0 10px;min-width:44px}.stack-tools .stack-account.has-avatar{padding:0 6px}.stack-tools .stack-account.has-avatar span:not(.np-avatar){display:none}.stack-actions{display:grid;grid-template-columns:48px 1fr;gap:7px;align-items:center}.stack-actions .stack-trophy{width:48px;min-height:48px;color:#ffe5a4;background:#254561;border:1px solid #e8e5a46b}.stack-settled{white-space:pre-line}.card .stack-settled{font-size:12px;text-align:center;color:#b9eee4;margin:0 0 12px}#stack-save{margin-top:8px;min-height:44px;background:#264460;color:#e2fcfd;border:1px solid #9fdfdd73;font-weight:650;box-shadow:none}.online-stat{display:block;color:#f0e1a7;font-size:11px;line-height:1.4;margin-top:3px;max-width:126px}.milestone{position:absolute;z-index:2;bottom:65px;left:50%;translate:-50%;margin:0;max-width:92%;width:max-content;border:1px solid #ecf8b4a0;border-radius:999px;background:#14304dea;padding:7px 13px;color:#f7ebba;font-size:12px;pointer-events:none}.stack-board{max-height:calc(100dvh - 28px);overflow:auto}.stack-board header h2{margin-right:auto}.stack-board-control{margin-left:6px;font-size:20px}.stack-board ol{margin:8px 0;padding:0;list-style:none}.stack-board li{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:8px 4px;border-bottom:1px solid #c4dddb}.stack-board li span{overflow-wrap:anywhere}.stack-board li:nth-child(-n+3) b{color:#85631f}.stack-board li strong{font-variant-numeric:tabular-nums}.stack-board [role=status]{min-height:1.2em}
@media(max-width:420px){.brand-logo{width:88px}.brand-note{letter-spacing:.02em;padding-left:8px}.top{gap:8px;padding-inline:12px}.stack-tools{gap:5px}}@media(max-width:340px){.brand-note{display:none}}
#stack-pending{margin-top:7px;min-height:42px;background:#2c4b67;color:#e7fffb;border:1px solid #b5e9e35c;box-shadow:none}.recovery{display:block;margin-top:8px;color:#c5e4e9;font-size:11px}
.stack-board-rule{font-size:12px;color:#55727c;line-height:1.5}.stack-board .stack-board-control{color:#294651;background:#e1f3f0;border-color:#b1d4d0}
.card .stack-previous{font-size:11px;margin:0 0 9px;color:#b3cfdd}
/* Wallet is in the absolute right HUD, never consumes board space or taps. */
.stack-hud-right{position:relative;display:flex;align-items:stretch;min-width:0}.stack-hud-extras{position:absolute;top:calc(100% + 6px);right:0;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:max-content;max-width:min(230px,calc(100vw - 58px))}.stack-hud-extras .online-stat{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 6px;border-radius:999px;background:#102c44d9;border:1px solid #e6deb04d}.stack-hud-extras .stack-wallet{flex:none}.stack-wallet{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:59px;max-width:128px;min-height:29px;padding:4px 8px 4px 6px;border:1px solid #8eebcf78;border-radius:999px;background:linear-gradient(155deg,#0b354eea,#102a42ef);box-shadow:inset 0 1px 0 #dbfff01b;color:#edfff4;font-size:13px;font-weight:780;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap}.stack-wallet img{width:18px;height:18px;flex:none;object-fit:contain}.stack-wallet span:first-of-type{overflow:hidden;text-overflow:ellipsis}.stack-wallet [data-earned],#stack-wallet-gain{position:absolute;right:0;top:calc(100% + 4px);border-radius:999px;background:#103046ed;border:1px solid #74e8bb69;padding:3px 7px;font-size:11px;color:#a8ffe2;text-shadow:0 1px 4px #071a30;font-weight:800}.stack-wallet.is-arriving{border-color:#aeffdf;box-shadow:0 0 13px #55f3bc60}.stack-coin-flight{position:absolute;z-index:5;width:21px;height:21px;margin:-10.5px 0 0 -10.5px;object-fit:contain;pointer-events:none;user-select:none;transform-origin:center;filter:drop-shadow(0 2px 5px #122538b3) drop-shadow(0 0 5px #ffdf736e)}.reaction{top:132px}
@media(min-width:800px){.reaction{top:145px}.stack-wallet{min-width:72px}}
@media(max-height:520px){.reaction{top:105px}.stack-wallet{min-height:25px;padding-block:3px}}
.top .stack-nav-home,.top .stack-nav-explore{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;white-space:nowrap}.top .stack-nav-explore{min-width:44px}.top .stack-nav-home:focus-visible,.top .stack-nav-explore:focus-visible{outline:2px solid #f7edb3;outline-offset:2px;border-radius:6px}.top .stack-nav-explore:hover{color:#e6fffc}
@media(max-width:340px){.top .stack-nav-home .brand-logo{width:68px}.top .stack-nav-explore{padding-left:5px;font-size:10px}.stack-tools{gap:3px}}

/* Desktop portrait playfield; below the breakpoint this wrapper is transparent to the old flex layout. */
.stack-layout{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}
.stack-desktop-intro{display:none}
@media(min-width:960px) and (min-height:521px) and (pointer:fine){
 .shell{max-width:1440px;background:radial-gradient(ellipse at 69% 53%,#24506a 0%,#163653 45%,#0c2238 100%)}
 .stack-layout{display:grid;grid-template-columns:minmax(240px,340px) minmax(400px,460px);grid-template-rows:minmax(0,1fr);align-items:center;justify-content:center;gap:clamp(56px,8vw,124px);padding:16px 32px 20px}
 .stack-desktop-intro{display:grid;align-self:center;justify-items:start;align-content:center;min-width:0;padding:0 0 8px;color:#edffff}
 .stack-desktop-kicker{margin:0 0 9px;font-size:12px;font-weight:780;letter-spacing:.22em;color:#9decd9}.stack-desktop-intro h1{margin:0;font-size:clamp(48px,4.5vw,66px);line-height:1.08;letter-spacing:-.045em;font-weight:840}
 .stack-desktop-mascot{position:relative;isolation:isolate;width:clamp(142px,31vh,282px);aspect-ratio:1;margin:4px 0 7px -12px}
 .stack-desktop-mascot::before{content:"";z-index:-1;position:absolute;inset:8% 5% 5%;border-radius:50%;background:radial-gradient(ellipse at center,#75fce340,#69d4db15 49%,transparent 72%)}
 .stack-desktop-mascot img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 14px 19px #071f36a1)}
 .stack-desktop-help{margin:0;padding:0;list-style:none;counter-reset:stack-help;display:grid;gap:9px;color:#d4eef4;font-size:14px;line-height:1.4}
 .stack-desktop-help li{display:flex;align-items:center;gap:9px}
 .stack-desktop-help li::before{counter-increment:stack-help;content:"0" counter(stack-help);display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;border:1px solid #9de9dc5c;color:#a9f2df;font-size:10px;font-weight:720;font-variant-numeric:tabular-nums}
 .stack-layout>.stage{width:100%;height:100%;max-height:720px;min-width:0;border-radius:24px;border:1px solid #b5f8f26b;box-shadow:0 17px 42px #08182b70}
 .stack-layout>.stage #intro>.intro-mascot,.stack-layout>.stage #intro>.kicker,.stack-layout>.stage #intro>h1,.stack-layout>.stage #intro>p{display:none}
 .stack-layout>.stage #intro{bottom:30px;max-width:278px;padding:11px;border-radius:18px}
}
@media(min-width:960px) and (max-height:520px) and (pointer:fine){
 .stack-layout{align-items:center;padding:4px 18px 8px}
 .stack-layout>.stage{width:min(440px,100%);border-radius:17px;border:1px solid #b5f8f25c}
}

@keyframes stack-coin-icon-arrive{0%,100%{transform:scale(1)}34%{transform:scale(1.19)}}
.stack-wallet.is-arriving img{animation:stack-coin-icon-arrive .28s ease-out}
@media(prefers-reduced-motion:reduce){.stack-wallet.is-arriving img{animation:none}}
