:root{font-family:ui-rounded,'Segoe UI',sans-serif;color:#21384a;background:#f8f5ed;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:1240px;margin:auto;padding:28px 36px}header{display:flex;align-items:center;gap:26px;border-bottom:1px solid #dddcd2;padding-bottom:24px}.brand{font-size:15px;letter-spacing:2px;font-weight:800;color:inherit;text-decoration:none;display:flex;align-items:center;gap:12px}.brand-icon{background:#f0a457;color:#fff;font-size:27px;display:grid;place-items:center;width:40px;height:40px;border-radius:14px}.tag{font-size:13px;color:#76838a}#totalStars{margin-left:auto;background:#eee9dc;padding:9px 17px;border-radius:22px;color:#a17429;font-weight:700}.heading{display:flex;justify-content:space-between;align-items:center;margin:34px 0 26px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#38867e}h1{font-size:36px;letter-spacing:-1.4px;margin:9px 0 12px}#instruction{color:#75818a;margin:0}.picker{font-size:11px;color:#74818a;text-transform:uppercase;letter-spacing:1px;display:grid;gap:7px}select{padding:11px 34px 11px 13px;border:1px solid #deded5;background:#fffdf8;color:#21384a;border-radius:10px;font:600 14px 'Segoe UI',sans-serif}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.board-card{border:1px solid #dcded4;background:#fffdf8;border-radius:20px;overflow:hidden;box-shadow:0 8px 30px #273b4410}.board-top{display:flex;justify-content:space-between;padding:20px 24px;font-size:11px;letter-spacing:1.4px;font-weight:800}#gateCount{color:#47948b}svg{display:block;width:100%;height:auto}.legend{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;border-top:1px solid #eeede5;padding:18px;font-size:10px;color:#73818a}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:50%;display:inline-block}.launch-dot{background:#efa258}.gate-dot{border:2px solid #429f94}.rock-dot{background:#8b8794}.control-card{background:#fffdf8;border:1px solid #deded4;border-radius:20px;padding:26px}.control-card .eyebrow{margin:0}#equation{font-size:35px;font-weight:750;letter-spacing:-1px;margin-top:22px;min-height:48px}.equation-note{font-size:11px;color:#829098;margin:7px 0 28px}.param{border-top:1px solid #eae9e1;padding:20px 0}.param-title{display:flex;justify-content:space-between;font-size:13px;font-weight:650}.param-title strong{background:#e8f3ef;padding:3px 9px;border-radius:6px;color:#33867c}.slider-row{display:flex;align-items:center;gap:12px;margin-top:15px}button{font:600 14px 'Segoe UI',sans-serif;border:1px solid #deded4;border-radius:10px;cursor:pointer;color:#294251;background:#f8f6f0;min-height:44px;padding:10px 15px;touch-action:manipulation}.slider-row button{font-size:20px;width:40px;padding:3px;flex-shrink:0}input[type=range]{width:100%;min-width:0;accent-color:#38988c;height:36px;cursor:pointer}.param small{display:block;color:#849096;font-size:10px;margin-top:8px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.primary{background:#238e80;color:white;border-color:#238e80;flex:1}.primary span{margin-left:12px}button:disabled,select:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e8a356;outline-offset:3px}#feedback{font-size:12px;line-height:1.6;min-height:52px;margin-top:18px;color:#71818b}#feedback.success{color:#238e80;font-weight:700}#feedback.failure{color:#b45440}.how{padding:24px 17px}.how-icon{color:#da9553;font-size:26px}.how h2{font-size:16px;margin:8px 0 12px}.how p{font-size:12px;line-height:1.8;color:#79858b}.mini-key{font-size:11px;color:#438f84;margin-top:20px}footer{display:flex;justify-content:space-between;margin-top:28px;font-size:9px;letter-spacing:1.6px;color:#909992}footer span{letter-spacing:0}[hidden]{display:none!important}.bird{filter:drop-shadow(0 3px 3px #c46c2630)}.victory .bird{animation:happy .6s ease-in-out infinite alternate}@keyframes happy{to{filter:drop-shadow(0 0 9px #f0b948)}}@media(max-width:850px){main{padding:20px}.game-layout{grid-template-columns:minmax(0,1fr) 280px;gap:15px}.control-card{padding:20px}.tag{display:none}h1{font-size:30px}}@media(max-width:650px){main{padding:16px}.heading{margin:24px 0 20px;gap:12px}h1{font-size:25px}.eyebrow{font-size:9px}#instruction{font-size:12px;max-width:220px}.picker{font-size:9px}select{max-width:115px;padding:10px}.game-layout{grid-template-columns:1fr}.board-top{padding:15px}.legend{gap:12px;padding:12px}.control-card{padding:22px}#equation{margin-top:12px}.equation-note{margin-bottom:15px}#parameters{display:grid;grid-template-columns:1fr 1fr;gap:20px}.param-title{font-size:12px}.slider-row{gap:6px}.slider-row button{width:32px}.how{padding:18px 10px}.how p{margin:6px 0}.mini-key{margin-top:12px}footer{font-size:8px}footer span{display:none}}@media(prefers-reduced-motion:reduce){.victory .bird{animation:none}}
:is(#board){touch-action:manipulation;user-select:none}#flap{background:#e79949;border-color:#e79949}

/* Fit the shared navigation, course and controls into a single screen. */
html,body{height:100%;overflow:hidden}
.shared-game{height:100dvh;min-height:0;display:flex;flex-direction:column;gap:10px;padding:12px 22px!important}
.shared-game .ux-topbar{flex:none;min-height:44px;padding:0}
.shared-game .game-layout{flex:1;min-height:0;display:flex;flex-direction:column;gap:0}
.shared-game .board-card{flex:1;height:100%;min-height:0;display:flex;flex-direction:column;margin:0;max-width:none}
.board-top{flex:none;padding:10px 18px}
#board{flex:1;min-height:0;width:100%;height:100%}
.legend{flex:none;padding:8px;gap:16px}
.flight-bar{flex:none;display:grid;grid-template-columns:minmax(120px,1fr) minmax(280px,2.5fr) minmax(120px,1fr);align-items:center;gap:6px 24px;padding:12px 18px;border:1px solid #deded4;border-radius:16px;background:#fffdf8}
.flight-level{display:grid;justify-items:start;gap:6px;min-width:0}
.flight-level>strong{font-size:11px;letter-spacing:1px;color:#38867e}
.shared-game .flight-level .ux-picker{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:0;font-size:10px}
.flight-level select{max-width:140px;width:100%;padding:6px 10px}
.flight-parameters{min-width:0}
.shared-game .flight-parameters #equation{font-size:22px;min-height:26px;margin:0 0 4px}
.flight-parameters #parameters{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.flight-parameters .param{padding:0;border:0;min-width:0}
.flight-parameters .param small{display:none}
.flight-parameters .slider-row{margin-top:3px;gap:6px}
.flight-parameters .slider-row button{width:32px}
.flight-actions{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0}
.flight-actions .actions{margin:0;flex-wrap:nowrap}
.flight-actions .primary{flex:1}
.shared-game .flight-actions .ux-level{width:100%;min-width:0;border:0;border-radius:10px;padding:10px;font-size:13px}
.flight-actions .ux-level:disabled{display:none}
.flight-actions:has(.ux-level:not(:disabled)) .actions{display:none}
.flight-bar #feedback{grid-column:1/-1;text-align:center;min-height:0;margin:0;font-size:11px;line-height:1.4}
.shared-game .ux-congratulations{flex:none;font-size:18px;margin:0}
.shared-game dialog{width:min(720px,calc(100vw - 24px));max-width:720px;max-height:calc(100dvh - 24px);padding:20px;overflow:hidden}
.guide-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.guide-heading h2{font-size:22px;margin:0}.guide-heading button{font-size:22px;padding:4px 12px}
.scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.scenario-grid article{background:#f0f3e9;border:1px solid #dce3d6;border-radius:12px;padding:12px;text-align:center}
.scenario-grid h3{font-size:13px;margin:0 0 6px}.scenario-grid svg{width:100%;height:clamp(60px,16dvh,115px)}
.guide-grid{fill:none;stroke:#dce3d6;stroke-width:1}.guide-axes{fill:none;stroke:#879b9c;stroke-width:1.5}.guide-line{fill:none;stroke:#238e80;stroke-width:3;stroke-linecap:round}
.scenario-grid svg text{font-size:10px;fill:#73838e}.scenario-grid strong{font-size:15px;color:#238e80}
.shared-game .scenario-grid p{font-size:11px;line-height:1.4;margin:6px 0 0;color:#71818b}
.shared-game .guide-note{font-size:12px;line-height:1.5;margin:14px 0 0}
@media(max-width:680px) and (orientation:portrait){
.shared-game{padding:8px!important;gap:6px}
.flight-bar{grid-template-columns:minmax(65px,.8fr) minmax(160px,2fr) minmax(60px,.7fr);padding:8px;gap:6px 8px}
.flight-level>strong{font-size:9px;letter-spacing:0}
.shared-game .flight-level .ux-picker{font-size:9px}
.flight-level select{max-width:80px;padding:4px;font-size:11px}
.shared-game .flight-parameters #equation{font-size:18px;margin:0}
.flight-parameters #parameters{gap:8px}
.flight-parameters .param-title{font-size:10px;flex-wrap:wrap;gap:2px}
.flight-parameters .param-title strong{padding:2px 4px}
.flight-parameters .slider-row{gap:1px}
.flight-parameters .slider-row button{width:24px;font-size:16px}
.flight-actions button{padding:8px 4px;font-size:12px}
.shared-game .flight-actions .ux-level{font-size:11px;padding:8px 4px}
.flight-bar #feedback{font-size:10px}
.board-top{padding:6px 10px}.legend{padding:5px;font-size:9px;gap:12px}
.scenario-grid{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}.scenario-grid article{padding:7px}
.scenario-grid svg{height:clamp(40px,10dvh,80px)}
}
@media(max-height:560px) and (orientation:landscape){
.shared-game{padding:6px 14px!important;gap:4px}
.flight-bar{padding:6px 12px;gap:2px 18px}
.shared-game .flight-parameters #equation{font-size:18px;min-height:22px}
.board-top,.legend{padding:4px 12px}
.scenario-grid{margin-top:6px;gap:6px}.scenario-grid article{padding:6px}.scenario-grid svg{height:60px}
.shared-game dialog{padding:12px}.shared-game .guide-note{margin-top:6px;font-size:11px}
}

/* Forest flight: a single landscape scene above the control strip. */
:root{background:#e9eddf;color:#2d433a}
.shared-game{max-width:1440px!important}
.shared-game .board-card{background:#29483b;border-color:#58725a;box-shadow:0 8px 28px #1d392518}
.board-top{color:#e1edd6;background:#29483b;letter-spacing:1.6px}
#gateCount{color:#c7e4ae}
#board{background:#29483b}
.legend{border-color:#59704b;color:#d3dec0;background:#29483b}
.safe-dot{background:#69ceff;box-shadow:0 0 5px #a0e7ff}
.toxic-dot{background:#afbc55}
.flight-bar{background:#f6f7ed;border-color:#cdd6c0}
.bird{filter:drop-shadow(0 3px 4px #203c3880)}
.rotate-screen{display:none}
@media(orientation:portrait){
body>main{display:none!important}
.rotate-screen{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;background:#29483b;color:#ecf3de}
.rotate-device{font-size:72px;color:#c7df9f;line-height:1}
.rotate-screen h2{font-size:27px;margin:20px 0 8px}
.rotate-screen p{max-width:270px;font-size:14px;line-height:1.6;color:#bdcdb1}
.rotate-screen a{color:#ecf3de;margin-top:18px;padding:12px 20px;border:1px solid #78916b;border-radius:10px;text-decoration:none}
body:has(.rotate-screen) dialog[open]{display:none}
}
@media(max-height:500px) and (orientation:landscape){
.shared-game{padding:4px 10px!important;gap:4px}
.shared-game .ux-topbar{min-height:36px}
.shared-game .ux-icon{height:36px;min-height:36px}
.flight-bar{grid-template-columns:minmax(100px,1fr) minmax(260px,3fr) minmax(100px,1fr);padding:5px 12px;gap:2px 16px}
.shared-game .flight-level .ux-picker{flex-direction:row;align-items:center;gap:5px}
.flight-level select{max-width:75px;min-height:36px}
.flight-level{gap:3px}
.flight-parameters .slider-row button{min-height:36px}
.flight-parameters .slider-row input{height:30px}
.shared-game .flight-parameters #equation{font-size:17px;min-height:20px;margin:0}
.board-top{font-size:9px;padding:4px 12px}.legend{font-size:9px;padding:4px 10px}
.flight-bar #feedback{font-size:10px}
}

/* A quiet, compact instrument strip that belongs to the forest scene. */
.shared-game .flight-bar{
  grid-template-columns:minmax(105px,1fr) minmax(360px,560px) minmax(110px,1fr);
  gap:3px 22px;padding:8px 16px;border-radius:11px;
  background:#eef1e5;border-color:#cbd5bf;
  font-family:'Segoe UI',sans-serif;
}
.flight-level{gap:3px}
.flight-level>strong{font-size:10px;font-weight:600;letter-spacing:.08em;color:#637958}
.shared-game .flight-level .ux-picker{flex-direction:row;align-items:center;gap:7px;font-size:10px;color:#77846c}
.shared-game .flight-level select{width:65px;max-width:65px;min-height:30px;padding:3px 7px;border-radius:6px;background:#f7f8ef;border-color:#d5ddcb;font:500 11px 'Segoe UI',sans-serif}
.flight-parameters{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:16px}
.shared-game .flight-parameters #equation{font:500 17px/1.3 'Segoe UI',sans-serif;letter-spacing:-.3px;color:#526a50;min-height:0;margin:0;text-align:left;white-space:nowrap}
.flight-parameters #parameters{gap:20px}
.flight-parameters .param-title{font-size:10px;font-weight:500;color:#63765b;align-items:center}
.flight-parameters .param-title>span{font-size:9px;color:#8a967f}
.flight-parameters .param-title strong{font-size:11px;font-weight:600;color:#496b4c;background:transparent;padding:0 0 0 3px;border-radius:0;font-variant-numeric:tabular-nums}
.flight-parameters .slider-row{gap:5px;margin-top:0}
.flight-parameters .slider-row button{width:24px;height:30px;min-height:30px;flex:0 0 24px;padding:0;border:0;border-radius:5px;background:transparent;color:#637c58;font:400 16px 'Segoe UI',sans-serif}
.flight-parameters .slider-row button:hover:not(:disabled){background:#dfe7d6}
.flight-parameters input[type=range]{appearance:none;-webkit-appearance:none;height:30px;margin:0;background:transparent;accent-color:#718d60}
.flight-parameters input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:#c9d5bd;border:0}
.flight-parameters input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:11px;height:11px;margin-top:-4px;border-radius:50%;background:#738e61;border:2px solid #eef1e5;box-shadow:0 0 0 1px #738e61}
.flight-parameters input[type=range]::-moz-range-track{height:3px;border-radius:3px;background:#c9d5bd;border:0}
.flight-parameters input[type=range]::-moz-range-thumb{width:8px;height:8px;border-radius:50%;background:#738e61;border:2px solid #eef1e5;box-shadow:0 0 0 1px #738e61}
.flight-parameters .slider-row button:disabled,.flight-parameters input:disabled{opacity:.38}
.flight-actions{align-items:flex-end;justify-self:end;width:130px}
.flight-actions .actions,.flight-actions #flightNext{width:100%}
.shared-game .flight-actions button,.shared-game .flight-actions .ux-level{width:100%;min-height:34px;padding:6px 12px;border-radius:7px;font:600 12px 'Segoe UI',sans-serif;letter-spacing:0;background:#607c50;border-color:#607c50;color:#f6f7ed}
.shared-game .flight-actions button:hover:not(:disabled){background:#526e43}
.flight-bar #feedback{font:400 10px/1.35 'Segoe UI',sans-serif;color:#7e8c73}
.flight-bar #feedback.success{color:#617d51;font-weight:500}
.flight-bar #feedback.failure{color:#a2694b}
@media(max-width:900px) and (orientation:landscape){
.shared-game .flight-bar{grid-template-columns:105px minmax(300px,1fr) 105px;gap:2px 12px;padding:6px 12px}
.flight-parameters{grid-template-columns:74px minmax(0,1fr);gap:10px}
.shared-game .flight-parameters #equation{font-size:15px}
.flight-parameters #parameters{gap:12px}
.flight-actions{width:105px}
.shared-game .flight-level .ux-picker{font-size:0;gap:0}
}

/* Edit the coefficients where they appear in y = mx + c. */
.flight-parameters{display:flex;justify-content:center;align-items:center}
.shared-game .flight-parameters #equation.equation-summary{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.flight-parameters #parameters{display:flex;align-items:flex-start;justify-content:center;gap:12px}
.equation-symbol{font:500 21px/34px 'Segoe UI',sans-serif;color:#49614b;white-space:nowrap}
.coefficient{display:flex;flex-direction:column;align-items:center;gap:3px}
.coefficient-stepper{display:flex;align-items:center;border:1px solid #c4d1b9;border-radius:8px;background:#f7f9f0;overflow:hidden}
.coefficient-stepper input[type=number]{appearance:textfield;-moz-appearance:textfield;width:55px;height:32px;border:0;background:transparent;color:#3e6344;text-align:center;font:600 17px 'Segoe UI',sans-serif;padding:0 2px;border-radius:0;font-variant-numeric:tabular-nums}
.coefficient-stepper input::-webkit-inner-spin-button,.coefficient-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.coefficient-stepper button{width:28px;min-height:32px;height:32px;padding:0;border:0;border-radius:0;background:transparent;color:#6e865f;font:400 16px 'Segoe UI',sans-serif}
.coefficient-stepper button:hover:not(:disabled){background:#e1e9d7}
.coefficient-stepper:focus-within{outline:2px solid #91aa79;outline-offset:2px}
.coefficient-stepper input:focus-visible{outline:none}
.coefficient-stepper:has(input:disabled){background:#e6ebdf;border-color:transparent}
.coefficient-stepper input:disabled{color:#7b8973;opacity:.7}
.coefficient label{font:500 9px/1.2 'Segoe UI',sans-serif;color:#718266;white-space:nowrap}
.coefficient label span{font-weight:400;color:#8a9780;margin-left:3px}
@media(max-width:900px) and (orientation:landscape){
.flight-parameters #parameters{gap:8px}
.coefficient-stepper input[type=number]{width:46px;font-size:16px}
.coefficient-stepper button{width:26px}
.equation-symbol{font-size:19px}
}

.flight-bar #feedback:empty{display:none}

/* Rich forest instruments, with warm accents echoing the birds. */
.shared-game .flight-bar{background:linear-gradient(110deg,#203e35,#2d5040);border-color:#52745b;box-shadow:0 3px 12px #19362924;color:#f0f3df}
.flight-level>strong{color:#e8cf95}
.shared-game .flight-level .ux-picker{color:#bbceb7}
.shared-game .flight-level select{background:#385745;color:#f4f3dc;border-color:#668163;color-scheme:dark}
.equation-symbol{color:#f4ecd0}
.coefficient-stepper{background:#17382e;border-color:#708768;box-shadow:inset 0 1px 3px #102b2b44}
.coefficient-stepper input[type=number]{color:#ffdfa1}
.coefficient-stepper button{color:#c8dbb9;background:#2c4c3b}
.coefficient-stepper button:hover:not(:disabled){background:#476547;color:#fff1c3}
.coefficient-stepper:focus-within{outline-color:#e3bd76;border-color:#e3bd76}
.coefficient label{color:#d5e0c6}
.coefficient label span{color:#aabd9f}
.coefficient-stepper:has(input:disabled){background:#284338;border-color:#536c55}
.coefficient-stepper input:disabled{color:#c9d6b9;opacity:.65}
.shared-game .flight-actions button,.shared-game .flight-actions .ux-level{background:#e6be79;border-color:#efd097;color:#294332;box-shadow:0 2px 0 #bd9658}
.shared-game .flight-actions button:hover:not(:disabled){background:#f3d298}
.flight-bar #feedback{color:#c1d0b6}
.flight-bar #feedback.success{color:#f2d99c}
.flight-bar #feedback.failure{color:#ffbf9f}
.chick{filter:drop-shadow(0 2px 2px #283c3255)}
.bird{filter:drop-shadow(0 3px 3px #18372870)}

.shared-game .flight-bar{grid-template-columns:minmax(105px,1fr) minmax(360px,660px) minmax(110px,1fr);gap:3px 16px}
.flight-level{position:relative;padding-top:0}
.sound-toggle{position:absolute;bottom:calc(100% + 16px);left:0;min-height:28px;padding:4px 9px;border-radius:7px;background:#264b3be6;border:1px solid #a6bd8c66;color:#edf2d9;font:500 10px 'Segoe UI',sans-serif}
.flight-parameters #parameters{gap:8px}
.coefficient-stepper input[type=number]{width:48px;font-size:16px}
.coefficient-stepper button{width:24px}
.equation-symbol{font-size:19px}
.nest-target{filter:drop-shadow(0 0 5px #ffe1a055)}
@media(max-width:1000px) and (orientation:landscape){
.shared-game .flight-bar{grid-template-columns:95px minmax(340px,1fr) 90px;gap:2px 10px;padding:6px 10px}
.flight-parameters #parameters{gap:5px}
.coefficient-stepper input[type=number]{width:40px;font-size:14px}
.coefficient-stepper button{width:20px}
.equation-symbol{font-size:16px}
.flight-actions{width:90px}
.coefficient label{font-size:8px}
}

.coefficient.lesson-focus label{color:#f1d99b}

/* Visual coefficient comparisons: each card varies only its named coefficient. */
.shared-game #guide{width:min(820px,calc(100vw - 24px));max-width:820px;overflow-y:auto;overscroll-behavior:contain}
#guide .guide-heading{position:sticky;top:-20px;z-index:1;background:#f8f5ed;padding:10px 0}
#guide .guide-equation{font-size:21px;text-align:center;font-weight:600;margin:18px 0 10px;color:#294b43}
#guide .guide-equation em{font-style:normal;color:#257d73}
#guide .scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px;gap:12px}
#guide .scenario-grid article{padding:12px;min-width:0}
#guide .scenario-grid h3{font-size:14px;color:#294b43}
#guide .scenario-grid svg{height:auto;aspect-ratio:280/176}
#guide .curve-legend{display:flex;gap:8px 14px;justify-content:center;flex-wrap:wrap;font-size:12px}
#guide .curve-legend span{color:var(--curve-color);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#guide .curve-swatch{display:inline-block;width:16px;border-top:3px solid var(--curve-color)}
#guide .swatch-1{border-top-style:dashed}#guide .swatch-2{border-top-style:dotted}
@media(max-width:480px){#guide .scenario-grid{grid-template-columns:1fr}#guide .guide-heading h2{font-size:18px}}

#guide .comparison-equation{font-size:12px;color:#60756c;margin:3px 0 4px}
