/* Responsive lesson composition: full-width section, proportionate film, adjacent instructions. */
.section:not(.hero):not(.squad):not(.final){padding-block:clamp(32px,4vw,64px);padding-inline:clamp(16px,4vw,64px)}
.section h2{font-size:clamp(30px,3.4vw,52px)}
#guide{padding:24px clamp(12px,2.2vw,32px) 36px}
#guide>.section-heading,#guide>.guide-economy-links,#guide>.lesson-starter336{margin-inline:0}
#guide>.section-heading{margin-bottom:12px}
#guide>.section-heading h2{font-size:clamp(26px,3vw,36px)}
#guide .guide-economy-links{margin-top:8px}
#guide .lesson-starter336{padding:10px 12px;gap:8px 16px;margin-bottom:14px;border-radius:10px}
#guide .lesson-starter336 p{font-size:13px}
#guide .lesson-starter336 button{padding:8px 12px;min-height:44px}
#guide .lesson-starter-actions337{flex:1 1 auto;gap:8px}
#guide .lesson-starter-actions337 button{flex:1 1 110px;font-size:13px}
#guide .howto-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:0 clamp(20px,4vw,64px);padding:20px;border-radius:14px;align-items:start;overflow:visible}
#guide .lesson-copy342{grid-column:2;grid-row:1/span 2;min-width:0;max-width:680px;align-self:start}
#guide .lesson-copy342>*{margin-inline:0}
#guide .howto-scene{grid-column:1;grid-row:1;justify-self:center;width:min(100%,calc(var(--stage-height342)*var(--lesson-ratio)))!important;height:auto!important;aspect-ratio:var(--lesson-ratio)!important;min-height:0;max-height:none;margin:0;background:transparent}
#guide .howto-panel{--stage-height342:clamp(220px,calc(100svh - var(--lesson-entry342,360px)),660px)}
#guide .howto-scene #howto-original{width:100%!important;height:100%;min-height:0}
#guide .howto-scene:has(#howto-shop:not([hidden])){width:100%!important;aspect-ratio:auto!important;height:var(--stage-height342)!important}
#guide .howto-progress{grid-column:1;grid-row:2;width:100%;margin:10px 0 0}
#guide .howto-panel-heading{font-size:11px;line-height:1.5}
#guide .lesson-action341{margin:12px 0;padding:12px;font-size:16px}
#guide .howto-actions{gap:6px;margin:12px 0}
#guide .howto-actions button{font-size:13px;padding:10px 8px;min-height:44px}
#guide .howto-control-grid{gap:16px;margin-top:20px;padding-top:16px}
#guide .howto-control-grid p,#guide .howto-description{font-size:15px;line-height:1.6}
#guide .howto-note{font-size:12px;line-height:1.6;margin-top:16px}
#guide .howto-play{margin-top:18px;gap:12px;flex-wrap:wrap}
#guide .howto-options{margin-bottom:12px}
#guide .howto-panel.howto-expanded{--stage-height342:calc(100svh - 40px);padding:20px!important}
#trading>.section-heading{max-width:900px;margin-bottom:24px}
#trading>.section-heading h2{max-width:20ch;font-size:clamp(30px,3.4vw,50px);margin:14px 0}
#trading .trade-practice{margin-top:0;padding:clamp(16px,2vw,24px)}
#loadbar{height:2px!important}
@media(min-width:1301px){header.has-section-menu{padding-inline:24px;gap:16px}header #section-navigation{gap:clamp(8px,1vw,18px);min-width:0}header .brand{max-width:180px}header .wordmark-main{font-size:29px}header .wordmark-sub{font-size:14px}header .tools{gap:8px}header .small-play{padding-inline:16px;font-size:13px}header .motion-preference{max-width:120px;white-space:normal}header #section-navigation>a,header .nav-more340 summary{font-size:12px}}
@media(max-width:760px){
 #guide{padding-top:20px}
 #guide .lesson-starter336{flex-direction:row;align-items:center}
 #guide .lesson-starter336>p{flex:1 1 45%;font-size:12px}
 #guide .lesson-starter336>button{width:auto;font-size:12px}
 #guide .lesson-starter-actions337{flex-basis:100%}
 #guide .lesson-starter-actions337 button{padding:8px 5px;font-size:12px;flex-basis:75px}
 #guide .howto-panel{display:flex;flex-direction:column;gap:0;padding:12px!important;--stage-height342:clamp(240px,calc(100svh - 230px),620px)}
 #guide .lesson-copy342{display:contents}
 #guide .lesson-copy342>*{width:100%}
 #guide .howto-panel-heading{order:0}
 #guide #howto-title{order:1}
 #guide #howto-lesson-picker{order:2}
 #guide .lesson-action341{order:3;font-size:14px;padding:10px;margin:8px 0}
 #guide .howto-actions{order:4;width:100%;margin:0 0 10px}
 #guide .howto-options{order:5}
 #guide .howto-scene{order:6;align-self:center;flex:none}
 #guide .howto-progress{order:7;flex:none}
 #guide .howto-description{order:8}
 #guide #howto-practice{order:9}
 #guide .howto-control-grid{order:10}
 #guide #howto-status{order:11}
 #guide .howto-note{order:12}
 #guide .howto-play{order:13}
 #guide .howto-panel.howto-expanded{--stage-height342:clamp(200px,calc(100svh - 190px),720px)}
}
@media(orientation:landscape) and (max-height:500px) and (min-width:761px){#guide .howto-panel{--stage-height342:calc(100svh - 100px)}#guide .howto-panel.howto-expanded{--stage-height342:calc(100svh - 40px)}}

@media(min-width:761px){#guide>.section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 20px}#guide>.section-heading .eyebrow{display:none!important}#guide>.section-heading h2{grid-column:1;margin:0;font-size:30px}#guide>.section-heading>p:not(.eyebrow){grid-column:1;margin:0;font-size:14px}#guide>.section-heading .guide-economy-links{grid-column:2;grid-row:1/span 3;margin:0}#guide .lesson-copy342 .howto-note{margin-top:12px}#guide .lesson-copy342 .howto-play{margin-top:12px}}

/* Lesson bootstrap must not move the chosen page anchor when its controls arrive. */
html{overflow-anchor:none}

@media(max-width:760px){#guide>.section-heading .eyebrow{display:none!important}#guide .howto-actions{order:8;margin:12px 0 4px}#guide .howto-description{order:9}#guide #howto-practice{order:10}#guide .howto-control-grid{order:11}#guide #howto-status{order:12}#guide .howto-note{order:13}#guide .howto-play{order:14}}

#loadbar[aria-valuenow="100"]{visibility:hidden}
@media(max-width:760px){#guide{padding-top:12px}#guide .lesson-starter336{margin-bottom:10px}}

/* Align section edges to the sticky header: no strip of the preceding section. */
html{scroll-padding-top:var(--site-header-height)!important}
