/* Fit the console to the available viewport, including short browser panels.
   Only the display scrolls; navigation and physical controls stay reachable. */
.utility-nav{display:flex;align-items:center;justify-content:flex-end;gap:22px;font:12px/1.4 'DM Sans',sans-serif;letter-spacing:0}
.machine-header .header-cta{background:var(--green);color:#192518;border:1px solid #657e43;border-radius:4px;box-shadow:3px 3px 0 #718254;min-height:44px;gap:19px;padding:9px 15px;font-weight:700;transition:transform .16s,box-shadow .16s,background .16s}
.header-cta .stonks-icon{width:25px;height:25px;flex-shrink:0;transition:transform .2s cubic-bezier(.23,1,.32,1)}
.machine-header .header-cta:hover{background:#dcffa5;color:#192518;transform:translateY(-1px);box-shadow:3px 4px 0 #718254}.header-cta:hover .stonks-icon{transform:translate(1px,-2px)}
.machine-header .header-cta:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #718254}.machine-header .header-cta:focus-visible{outline:2px solid #263b22;outline-offset:4px}
@media(max-width:700px){.machine-header .header-cta{gap:12px;padding:8px 11px;font-size:12px}.header-cta .stonks-icon{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){.machine-header .header-cta,.header-cta .stonks-icon{transition:none}}
.utility-nav a{display:inline-flex;align-items:center;min-height:36px;color:inherit;text-decoration:underline;text-decoration-color:#7e92626b;text-underline-offset:5px;white-space:nowrap;transition:color .18s,text-decoration-color .18s}
.utility-nav a:hover,.utility-nav a[aria-current="page"]{color:var(--green);text-decoration-color:currentColor}
.utility-nav a:focus-visible,.context-help a:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:2px}
.inner-screen>.utility-nav{margin-top:10px;color:#c3d5b0}
.context-help{font-size:15px;line-height:1.8;color:#bcccaf;margin:24px 0 36px;max-width:800px}
.context-help a{color:var(--green);text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){body[data-page="home"] .screen-top{flex-wrap:wrap}body[data-page="home"] .screen-top>.utility-nav{order:3;width:100%;justify-content:center;gap:24px}body[data-page="home"] .screen-top>#sound{margin-left:auto}.utility-nav{font-size:12px;gap:20px}.utility-nav a{min-height:36px}.inner-screen>.utility-nav{justify-content:flex-start}.context-help{font-size:14px}}
@media(prefers-reduced-motion:reduce){.utility-nav a{transition:none}}
body[data-page="home"]{height:100svh;height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto}
body[data-page="home"]>.console{height:auto;min-height:0;max-height:none;margin:10px 18px 0;display:grid;grid-template-rows:clamp(54px,8dvh,78px) minmax(0,1fr) clamp(104px,15dvh,145px);padding:0 26px;min-width:0}
body[data-page="home"] .machine-header{height:auto;min-height:0;gap:20px}
body[data-page="home"] .bezel{min-height:0;display:flex;flex-direction:column;padding:10px 12px 12px;overflow:hidden}
body[data-page="home"] .screen-top{flex:0 0 auto;min-height:44px;padding:0 3px 10px;gap:10px}
body[data-page="home"] .hero-screen{flex:1;min-height:0;height:auto;max-height:none;overflow:hidden}
body[data-page="home"] .screen-content{height:100%;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#738b5b #18261b;padding:clamp(15px,3dvh,35px) clamp(20px,3.7vw,55px) 42px;align-items:center;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
body[data-page="home"] .hero-copy{min-width:0}
body[data-page="home"] .hero-copy h1{font-size:clamp(44px,min(6.1vw,10dvh),104px)}
body[data-page="home"] .hero-art{min-width:0;padding-top:0}
body[data-page="home"] .character-stage{max-width:min(100%,58dvh)}
body[data-page="home"] .control-deck{height:auto;min-height:0;gap:25px;z-index:2;padding:0 14px}
body[data-page="home"] .system-buttons{margin-bottom:28px}
body[data-page="home"] .under-machine{min-width:0;padding:9px 30px;font-size:9px;line-height:1.4;align-items:center}
.brand{white-space:nowrap;letter-spacing:-2px}.brand small{white-space:normal}
.screen-top #sound{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:36px;padding:8px 13px;border:1px solid #ffb09a;border-radius:5px;background:var(--coral);color:#251810;font:700 12px/1 var(--mono);letter-spacing:.4px;box-shadow:0 3px 0 #914b3e,0 0 16px #e7775f20;transition:background .18s,box-shadow .18s,transform .18s}
.screen-top #sound:hover{background:#ffa086;box-shadow:0 3px 0 #914b3e,0 0 22px #e7775f55;transform:translateY(-1px)}
.screen-top #sound:active{transform:translateY(2px);box-shadow:0 1px 0 #914b3e}
.screen-top #sound[aria-pressed="true"]{background:var(--green);border-color:#dcffad;color:var(--screen);box-shadow:0 3px 0 #71894d,0 0 18px #c6ef8730}
.screen-top #sound .sound-label{font:inherit;margin:0;white-space:nowrap}
.screen-top #sound .sound-icon{display:flex;align-items:center;gap:3px;height:17px;margin:0;position:relative}
.sound-icon i{display:block;width:3px;border-radius:1px;background:currentColor;height:8px}.sound-icon i:nth-child(2){height:16px}.sound-icon i:nth-child(3){height:12px}
#sound[aria-pressed="false"] .sound-icon:after{content:'';position:absolute;width:22px;height:2px;background:currentColor;transform:rotate(-45deg);left:-3px;box-shadow:0 2px var(--coral)}
#sound[aria-pressed="true"] .sound-icon i{animation:equalizer .7s ease-in-out infinite alternate}#sound[aria-pressed="true"] .sound-icon i:nth-child(2){animation-delay:-.3s}#sound[aria-pressed="true"] .sound-icon i:nth-child(3){animation-delay:-.5s}
@keyframes equalizer{to{transform:scaleY(.35)}}
@media(min-width:701px) and (max-width:1100px){.machine-header .brand small{display:none}.machine-header nav{gap:23px}.brand{font-size:36px}body[data-page="home"]>.console{padding:0 20px;margin:8px 12px 0}body[data-page="home"] .hero-copy h1{font-size:clamp(43px,6vw,66px)}body[data-page="home"] .character-stage{max-width:100%}body[data-page="home"] .console-signature small{display:none}body[data-page="home"] .control-deck{gap:18px}}
@media(min-width:701px) and (max-height:850px){body[data-page="home"] .screen-content{padding:12px 25px 30px;align-items:start}body[data-page="home"] .hero-copy>.eyebrow{font-size:9px;letter-spacing:.2px;margin-bottom:10px;line-height:1.4}body[data-page="home"] .hero-copy h1{font-size:clamp(43px,min(5.7vw,9dvh),65px);margin-bottom:13px}body[data-page="home"] .hero-description{font-size:15px;line-height:1.4;margin-bottom:13px}body[data-page="home"] .menu-option{min-height:39px;padding:7px 13px;font-size:24px}body[data-page="home"] .game-menu{gap:7px}body[data-page="home"] .menu-helper{margin-top:10px;font-size:9px}body[data-page="home"] .hero-art{align-self:start;justify-content:center;padding-top:15px}body[data-page="home"] .character-stage{max-width:min(100%,44dvh)}body[data-page="home"] .character-label{font-size:8px}body[data-page="home"] .level-bar{margin-top:12px}body[data-page="home"] .intro-link{margin-top:10px}body[data-page="home"] .screen-bottom{padding:7px 16px;font-size:8px}body[data-page="home"] .title-star{font-size:38px}body[data-page="home"] .console-signature small{display:none}body[data-page="home"] .action-buttons button{width:50px;height:50px}body[data-page="home"] .action-buttons span{bottom:-24px}body[data-page="home"] .dpad{grid-template-columns:28px 28px 28px;grid-template-rows:28px 28px 28px}body[data-page="home"] .speaker i{height:53px}}
@media(min-width:701px) and (max-height:660px){body[data-page="home"] .menu-helper{display:none}body[data-page="home"] .hero-copy>.eyebrow .pixel-star{font-size:13px}body[data-page="home"] .screen-content{padding-bottom:28px}}
@media(max-width:700px){body[data-page="home"]>.console{margin:6px 6px 0;padding:0 10px;grid-template-rows:60px minmax(0,1fr) 112px}body[data-page="home"] .bezel{padding:8px 7px}body[data-page="home"] .screen-top{min-height:42px;gap:6px;padding:0 2px 8px}.screen-top #sound{font-size:10px;min-height:33px;padding:7px 9px;gap:8px}.screen-top #sound .sound-icon{transform:scale(.85)}body[data-page="home"] .screen-content{height:100%;min-height:0;max-height:100%;display:flex;gap:0;padding:24px 22px 34px;align-items:stretch}body[data-page="home"] .screen-content>*{flex-shrink:0}body[data-page="home"] .hero-copy{display:contents}body[data-page="home"] .hero-copy h1{font-size:clamp(43px,13.5vw,74px)}body[data-page="home"] .hero-art{position:relative;align-self:stretch;min-height:130px;max-height:none;height:130px;width:100%;margin:0 0 10px;padding:0}body[data-page="home"] .character-stage{width:190px;max-width:100%;right:0;top:0}body[data-page="home"] .control-deck{gap:10px;padding:0 6px}body[data-page="home"] .system-buttons{margin:0 auto 24px}body[data-page="home"] .under-machine{font-size:7px;padding:7px 13px}.brand{font-size:31px}.brand>span{margin-right:9px}.machine-header .brand small{display:none}body[data-page="home"] .menu-helper{display:block;font-size:8px}body[data-page="home"] .screen-bottom{font-size:6px;padding:7px 10px}}
@media(max-height:450px){body[data-page="home"]>.console{grid-template-rows:48px minmax(0,1fr) 92px}body[data-page="home"] .under-machine{display:none}body[data-page="home"] .dpad{grid-template-columns:25px 25px 25px;grid-template-rows:25px 25px 25px}body[data-page="home"] .action-buttons button{width:40px;height:40px}body[data-page="home"] .screen-content{align-items:start}body[data-page="home"] .control-deck{padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){.screen-top #sound,.sound-icon i{transition:none!important;animation:none!important}}

@media(max-width:700px){body[data-page="home"] .game-menu{order:3;margin:0 0 18px}body[data-page="home"] .hero-description{order:4}body[data-page="home"] .hero-art{order:5}body[data-page="home"] .menu-helper{order:6}}

/* Keep captions in normal flow, within the shell, instead of rotating them
   below the cabinet. Only the decorative button recess is diagonal. */
body[data-page="home"]{grid-template-rows:minmax(0,1fr)}
body[data-page="home"]>.console{margin-bottom:10px}
body[data-page="home"] .action-buttons{position:relative;transform:translateY(-3px);isolation:isolate;background:none;box-shadow:none;margin:0 14px 0;padding:8px 12px;gap:22px;flex-shrink:0}
body[data-page="home"] .action-buttons:before{content:'';position:absolute;inset:12px 0 8px;background:#c8cdbe;box-shadow:inset 0 2px 4px #b5bcaa;border-radius:60px;transform:rotate(-14deg);z-index:-1}
body[data-page="home"] .action-buttons>div{display:flex;flex-direction:column;align-items:center;gap:7px}
body[data-page="home"] .action-buttons>div:nth-child(2){transform:none}
body[data-page="home"] .action-buttons button{transform:none}
body[data-page="home"] .action-buttons button:active{transform:translateY(3px)}
body[data-page="home"] .action-buttons span{position:static;inset:auto;width:auto;font:10px/1.3 var(--mono);letter-spacing:1px}
body[data-page="home"] .hero-screen{container-type:size}
@media(min-width:701px){
 body[data-page="home"] .screen-content{overflow-x:hidden;overflow-y:auto;padding:clamp(8px,2cqh,20px) clamp(20px,3.7vw,55px) 32px;align-items:safe center}
 body[data-page="home"] .hero-copy h1{font-size:clamp(43px,min(6.1vw,14cqh),104px);margin-bottom:clamp(8px,2cqh,16px)}
 body[data-page="home"] .hero-copy>.eyebrow{margin-bottom:clamp(8px,2cqh,14px)}
 body[data-page="home"] .hero-description{margin-bottom:clamp(8px,2cqh,16px)}
 body[data-page="home"] .hero-art{align-self:center;padding-top:0}
 body[data-page="home"] .character-stage{max-width:min(100%,68cqh)}
 @container (max-height:440px){body[data-page="home"] .hero-copy>.menu-helper{display:none}}
}
@media(max-width:700px){body[data-page="home"]>.console{margin-bottom:6px}body[data-page="home"] .action-buttons{margin:0 2px 0;padding:7px 8px;gap:14px}body[data-page="home"] .action-buttons span{font-size:8px;letter-spacing:.4px}body[data-page="home"] .action-buttons>div{gap:6px}}
@media(max-height:450px){body[data-page="home"] .action-buttons{padding:6px 8px}body[data-page="home"] .action-buttons span{font-size:8px}}

.plan-advice{margin:35px 0;padding:28px 30px;border:1px solid #688647;border-left:4px solid var(--green);background:#1c2e20;color:#c6d7b8}.plan-advice>.eyebrow{font-size:10px;line-height:1.7;color:var(--green);margin:0 0 14px}.inner-screen .plan-advice h2{font-size:39px;margin:0 0 15px}.plan-advice>p:not(.eyebrow){max-width:750px;font-size:16px;line-height:1.75;margin:0 0 15px}.plan-advice .advice-close{color:#def4cb;font-weight:600}.plan-advice .text-link{display:inline-block;font-size:14px;line-height:1.6;margin-top:4px}
@media(max-width:700px){.plan-advice{padding:23px 19px;margin:28px 0}.plan-advice>.eyebrow{font-size:9px}.inner-screen .plan-advice h2{font-size:34px}.plan-advice>p:not(.eyebrow){font-size:15px}}
