/* Spaceship Orchestra (/arcade/spaceship-orchestra). Built from the approved prototype (Nov 2026).
   This page also loads /app.css and /games/games.css, so the header, footer, colors and fonts come from the main site.
   Every game rule is scoped under .so-game, because the game reuses short names (btn, card, stage, staff, row, fine)
   that mean something else in the main site's styles. Keyframes carry an so- prefix for the same reason. */
.so-page .gp-body{max-width:1120px}
.so-hero{padding:22px 0 14px}
.so-hero h1{font-size:clamp(2rem,5vw,3rem);font-weight:800}
.so-hero .lede{margin:8px 0 0;color:var(--muted);max-width:44em}
.so-hero .gp-kicker{margin-bottom:6px}
/* the main site's text spacing does not apply inside the game */
.so-game p,.so-game h2,.so-game h3{margin:0}
.so-game{position:relative;border-radius:18px;overflow:hidden;background:#0B0614;border:1px solid var(--line);user-select:none;-webkit-user-select:none;touch-action:manipulation}
.so-game .box{position:relative;container-type:inline-size;aspect-ratio:16/9;overflow:hidden}
.so-game #stars,.so-game #fx{position:absolute;inset:0;width:100%;height:100%;display:block}
.so-game #fx{pointer-events:none;z-index:2}
.so-game .so-stage{position:absolute;inset:0;z-index:1}
.so-game #ship{position:absolute;inset:0;width:100%;height:100%;display:block}
.so-game #flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;z-index:6}
.so-game .so-stage.broken #ship{animation:so-flick 1.4s steps(1,end) 1 forwards}
@keyframes so-flick{0%{filter:brightness(.35)}10%{filter:brightness(1)}18%{filter:brightness(.3)}30%{filter:brightness(.85)}38%{filter:brightness(.25)}55%{filter:brightness(.7)}70%{filter:brightness(.3) sepia(.4) hue-rotate(-30deg)}100%{filter:brightness(.42) sepia(.5) hue-rotate(-30deg) saturate(1.6)}}
.so-game .sys{cursor:pointer;outline:none}
.so-game .halo{fill:none;stroke:#FF3B3B;stroke-width:5;opacity:0;pointer-events:none}
.so-game .sys.fault .halo{animation:so-halo .55s ease-in-out infinite alternate}
.so-game .sys.fixing .halo{opacity:.9;stroke:#FFC93C}
.so-game .sys.fixed .halo{opacity:1;stroke:#7CFFB2}
.so-game .sys:focus-visible .halo{opacity:1;stroke:#7FF6FF}
@keyframes so-halo{from{opacity:.15}to{opacity:1}}
.so-game .stat{fill:#5CFF7A;stroke:#123;stroke-width:2}
.so-game .cell{fill:#E6F23A;stroke:#8FA020;stroke-width:2}
.so-game .cell.cy{fill:#3CC8F0;stroke:#1D7FA0}
.so-game .cell.off{fill:#5E6A26;stroke:#3E4818}
.so-game .sys.fault .stat,.so-game .sys.fault .cell{fill:#FF3B3B;stroke:#8A1414;animation:so-blink .5s steps(1,end) infinite}
.so-game .sys.fixing .stat,.so-game .sys.fixing .cell{fill:#FFC93C;stroke:#8A6214}
.so-game .sys.fixed .stat,.so-game .sys.fixed .cell{fill:#7CFFB2;stroke:#1C7A4A}
@keyframes so-blink{50%{fill:#6A0E0E}}
.so-game .lev{transition:transform .13s ease-in}
.so-game .lev.pulled{transform:translateY(46px)}
.so-game .pb .top{transition:transform .07s}
.so-game .pb.down .top{transform:translateY(5px)}
.so-game .sb{transition:transform .07s}
.so-game .sb.down{transform:translate(0,2px);filter:brightness(.75)}
.so-game .knob .kn,.so-game .fader{cursor:grab}
.so-game .plbl{font:400 13px Silkscreen,monospace;fill:#9FD3FF;letter-spacing:.06em}
.so-game .scr{font:400 15px Silkscreen,monospace;fill:#E9DEFF;letter-spacing:.06em}
.so-game .scr.sm{font-size:11px}
.so-game .badge{opacity:0;pointer-events:none;transition:opacity .15s}
.so-game .badge.on{opacity:1;pointer-events:auto;cursor:pointer}
.so-game .ring{fill:none;stroke:#FFD25A;stroke-width:4;stroke-dasharray:138.2;stroke-linecap:round}
.so-game .ring.hot{stroke:#FF4B4B}
.so-game .bx{font:700 22px Silkscreen,monospace;fill:#fff;text-anchor:middle}
.so-game .bl{font:400 12px Silkscreen,monospace;fill:#FFE3DE;text-anchor:middle;letter-spacing:.04em}
.so-game .fun{cursor:pointer}
.so-game .rim{stroke:#3D2A55}
.so-game .trim{stroke:#6E6140}
.so-game .lip{stroke:#DCD1A2}
.so-game .tuft{opacity:0;transition:opacity .5s;pointer-events:none}
.so-game #ship.plush .trim{stroke:#B39552}
.so-game #ship.plush .lip{stroke:#D6BE80}
.so-game #ship.plush .tuft{opacity:.75}
.so-game #ship.plush .fr0{stop-color:#5C4140}
.so-game #ship.plush .fr1{stop-color:#80605A}
.so-game #ship.plush .fr2{stop-color:#8E6E66}
.so-game #ship.plush .dt0{stop-color:#8E625C}
.so-game #ship.plush .dt1{stop-color:#6E4A46}
.so-game #ship.plush .dd0{stop-color:#654440}
.so-game #ship.plush .dd1{stop-color:#453029}
.so-game #ship.plush .wg0{stop-color:#8A625B}
.so-game #ship.plush .wg1{stop-color:#553B36}
.so-game #ship.plush .rc0{fill:#3F2B27}
.so-game #ship.plush .rc1{fill:#30211D}
.so-game #ship.plush .tw0{fill:#6E4C47}
.so-game #ship.plush .tw1{fill:#80605A}
.so-game #ship.plush .hd0{fill:#80605A}
.so-game #ship.plush .hd1{fill:#E3D5B4}
.so-game #ship.plush .bz{fill:#33231F}
.so-game .h-mallet{display:none}
.so-game #ship.mallets .h-mallet{display:inline}
.so-game #ship.mallets .h-lever{display:none}
.so-game .box.baton,.so-game .box.baton *{cursor:var(--baton)!important}
.so-game .hstr{stroke:#F3E7C4;stroke-width:1.5}
.so-game .hstr.twang{animation:so-twang .45s linear}
@keyframes so-twang{0%,40%,80%{transform:translateX(1.6px)}20%,60%{transform:translateX(-1.6px)}100%{transform:none}}
.so-game .hhit{stroke:transparent;stroke-width:12;cursor:pointer}
.so-game #target,.so-game #pat{display:none}
.so-game #ship.aligning #target,.so-game #ship.aligning #pat{display:inline}
.so-game #ship.aligning #eq{display:none}
.so-game .knob.nav>circle:first-child{stroke:#19F0F5;stroke-width:4}
.so-game .knob.nav .kn circle{fill:#DFFBFF}
.so-game .knob.nav.match>circle:first-child{stroke:#7CFFB2}
.so-game .fader.nav rect{fill:#DFFBFF;stroke:#19F0F5;stroke-width:2.5}
.so-game .fader.nav.match rect{stroke:#7CFFB2}
.so-game .sys.ready .halo{stroke:#19F0F5;animation:so-halo .45s ease-in-out infinite alternate}
.so-game .sys.syncing .halo{stroke:#19F0F5;opacity:.85;animation:none}
.so-game .sys.synced .halo{stroke:#7CFFB2;opacity:.9;animation:none}
.so-game .aprompt{opacity:0;transition:opacity .3s;pointer-events:none}
.so-game #ship.aligning .aprompt{opacity:1}
.so-game .aprompt rect{fill:rgba(6,30,34,.9);stroke:#19F0F5;stroke-width:2}
.so-game .aprompt text{font:400 14px Silkscreen,monospace;fill:#CFFFFF;text-anchor:middle;letter-spacing:.05em}
.so-game .aprompt.done rect{stroke:#7CFFB2}
.so-game .aprompt.done text{fill:#7CFFB2}
.so-game .aprompt.nudge>*{animation:so-nudge .45s ease-in-out}
@keyframes so-nudge{0%,100%{transform:translateX(0)}20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}
.so-game .sys.burnt{filter:brightness(.45) saturate(.3);transition:filter .6s}
.so-game .juke{position:absolute;right:2.2%;top:14.5%;width:19%;z-index:3;font-family:Silkscreen,monospace;color:#FFE9C4}
.so-game .jtog{position:absolute;right:0;top:0;width:2.8cqw;height:2.8cqw;border-radius:50%;border:1px solid rgba(255,214,140,.55);background:rgba(40,18,10,.7);color:#FFD68C;font:700 1.4cqw Figtree,sans-serif;cursor:pointer;opacity:.75}
.so-game .jtog:hover{opacity:1}
.so-game .jbox{position:relative;overflow:hidden;background:linear-gradient(#6A3820,#3A1C0E 70%,#2A140A);border:.25cqw solid #E8B54A;border-radius:50% 50% .8cqw .8cqw/5.2cqw 5.2cqw .8cqw .8cqw;padding:2.5cqw .9cqw .8cqw;box-shadow:0 0 1.4cqw rgba(255,110,190,.45),inset 0 0 1.2cqw rgba(0,0,0,.5);animation:so-jIn .2s ease-out}
@keyframes so-jIn{from{transform:scale(.8);opacity:0}to{transform:none;opacity:1}}
.so-game .jarch{position:absolute;inset:0;pointer-events:none}
.so-game .jarch i{position:absolute;width:.62cqw;height:.62cqw;margin:-.31cqw 0 0 -.31cqw;border-radius:50%;background:#FF7AD0;box-shadow:0 0 .35cqw #FF7AD0;animation:so-bub 1.4s ease-in-out infinite}
.so-game .jarch i:nth-child(3n){background:#7FF6FF;box-shadow:0 0 .35cqw #7FF6FF}
.so-game .jarch i:nth-child(3n+1){animation-delay:.3s}
.so-game .jarch i:nth-child(2n){animation-delay:.7s}
@keyframes so-bub{50%{opacity:.35}}
.so-game .jhead{text-align:center;font-size:1.15cqw;letter-spacing:.12em;color:#FFD68C;text-shadow:0 0 .5cqw rgba(255,180,80,.6)}
.so-game .jhide{position:absolute;left:-.4cqw;top:-.4cqw;z-index:1;appearance:none;border:1px solid rgba(255,214,140,.6);background:rgba(40,18,10,.85);color:#FFD68C;font:400 .75cqw Silkscreen,monospace;padding:.2cqw .45cqw;border-radius:.3cqw;cursor:pointer}
.so-game .jnow{margin:.45cqw 0;font-size:.72cqw;color:#7FF6FF;background:rgba(0,0,0,.45);border-radius:.3cqw;padding:.3cqw .45cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.so-game .jlist{display:grid;gap:.35cqw}
.so-game .jt{appearance:none;display:grid;text-align:left;width:100%;border:1px solid rgba(255,214,140,.4);background:rgba(0,0,0,.32);color:#FFE9C4;font:400 .82cqw Silkscreen,monospace;padding:.3cqw .5cqw;border-radius:.3cqw;cursor:pointer;letter-spacing:.03em}
.so-game .jt small{font-size:.62cqw;opacity:.7}
.so-game .jt:hover{background:rgba(255,214,140,.16)}
.so-game .jt.on{background:#E8B54A;color:#2A140A;border-color:#FFE3A0}
.so-game .jt.lock{opacity:.6}
.so-game .jmsg{margin:.45cqw 0 0;font:600 .8cqw/1.3 Figtree,sans-serif;color:#FFE9C4;background:rgba(0,0,0,.4);border:1px solid #E8B54A;border-radius:.4cqw;padding:.45cqw .55cqw}
.so-game .jmsg a{color:#FFD68C;font-weight:800}
.so-game .jmsg.nudge{animation:so-nudgeH .4s}
@keyframes so-nudgeH{25%{transform:translateX(-4%)}75%{transform:translateX(4%)}}
.so-game .banner small{display:block;text-align:center;font-size:.55em;color:#FFE7A0;margin-top:.4em;text-shadow:0 0 .8cqw rgba(240,180,41,.7)}
.so-game .hud{position:absolute;left:0;right:0;top:1.3%;display:flex;justify-content:center;gap:.8cqw;pointer-events:none;z-index:3;font:400 1.15cqw Silkscreen,monospace;color:#E9F7FF;letter-spacing:.05em}
.so-game .pill{background:rgba(10,6,25,.66);border:1px solid rgba(160,220,255,.35);border-radius:999px;padding:.35cqw 1.1cqw;white-space:nowrap}
.so-game .pill .on{color:#7CFFB2}
.so-game .pill .x{color:#FF6A6A}
.so-game .pausebtn{position:absolute;right:1.2%;top:1.2%;z-index:3;appearance:none;border:1px solid rgba(160,220,255,.45);background:rgba(10,6,25,.66);color:#E9F7FF;font:700 1.2cqw Silkscreen,monospace;border-radius:999px;padding:.3cqw 1cqw;cursor:pointer}
.so-game .banner{position:absolute;left:50%;top:15%;transform:translateX(-50%);z-index:3;font:700 2.2cqw Silkscreen,monospace;color:#CFFFFF;text-shadow:0 0 1cqw rgba(25,240,245,.8);opacity:0;transition:opacity .4s;pointer-events:none;white-space:nowrap;letter-spacing:.06em}
.so-game .banner.show{opacity:1}
.so-game .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.so-game .diag{position:absolute;left:24%;top:12%;width:52%;height:66%;z-index:4;font-family:Silkscreen,Figtree,monospace;color:#D9FFFF;--dc:#19F0F5;transform-origin:50% 70%}
.so-game .diag.in{animation:so-dIn .2s ease-out}
@keyframes so-dIn{from{transform:scale(.55);opacity:0}to{transform:scale(1);opacity:1}}
.so-game .diag.ok{--dc:#7CFFB2}
.so-game .diag.bad{--dc:#FF6A6A}
.so-game .diag.bad{animation:so-dShake .35s}
@keyframes so-dShake{20%{transform:translateX(-1.2%)}40%{transform:translateX(1.2%)}60%{transform:translateX(-.8%)}80%{transform:translateX(.6%)}}
.so-game .dframe{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.so-game .dframe .fo{fill:#0A3739;stroke:var(--dc);stroke-width:6;filter:drop-shadow(0 0 10px rgba(25,240,245,.45))}
.so-game .dframe .fi{fill:#0D4C50;stroke:var(--dc);stroke-width:3}
.so-game .dframe .ft{fill:#0A3739;stroke:var(--dc);stroke-width:3}
.so-game .dbody{position:absolute;left:5.5%;right:7%;top:18.5%;bottom:7%;display:flex;flex-direction:column;align-items:center;gap:.8cqw}
.so-game .diag.veil .dbody{filter:blur(14px)}
.so-game .dtop{width:100%;display:flex;justify-content:space-between;gap:1cqw;font-size:1.05cqw;letter-spacing:.06em;color:#8FF6F8}
.so-game .dtop .alert{color:#FF8A7A;animation:so-blinkTx .6s steps(1,end) infinite}
@keyframes so-blinkTx{50%{opacity:.3}}
.so-game .dbar{width:100%;height:.8cqw;background:rgba(25,240,245,.12);border:1px solid var(--dc)}
.so-game .dbar i{display:block;height:100%;background:var(--dc);width:100%}
.so-game .dbar i.low{background:#FF5A5A}
.so-game .dstage{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;gap:.6cqw}
.so-game .staff{height:100%;max-height:17cqw;max-width:86%;color:#E8FFFF;overflow:visible}
.so-game .sl{stroke:#E8FFFF;stroke-width:1.5}
.so-game .clef path{fill:none;stroke:#E8FFFF;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.so-game .cdot{fill:#E8FFFF}
.so-game .acc{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.so-game .acc.thick{stroke-width:2.8;stroke-linecap:butt}
.so-game .ledger{stroke:currentColor;stroke-width:1.5}
.so-game .nh{fill:none;stroke:currentColor;stroke-width:2.8}
.so-game .ghn{opacity:.4}
.so-game .okn{color:#7CFFB2}
.so-game .badn{color:#FF7A7A}
.so-game .hitz{fill:transparent;cursor:crosshair}
.so-game .slide{transition:transform .22s cubic-bezier(.2,.8,.3,1)}
.so-game .dprompt{margin:0;font-size:1.85cqw;letter-spacing:.05em;text-align:center;line-height:1.3}
.so-game .dprompt sup,.so-game .dbtn sup{font-size:.6em}
.so-game .diag.ok .dprompt{color:#7CFFB2}
.so-game .diag.bad .dprompt{color:#FF9A8A}
.so-game .dans{display:flex;flex-wrap:wrap;gap:.6cqw;justify-content:center}
.so-game .dbtn{appearance:none;font:400 1.45cqw Silkscreen,monospace;color:#D9FFFF;background:rgba(25,240,245,.08);border:.18cqw solid #19F0F5;padding:.45cqw .9cqw;min-width:3.6cqw;cursor:pointer;letter-spacing:.04em;clip-path:polygon(0 0,calc(100% - .7cqw) 0,100% .7cqw,100% 100%,.7cqw 100%,0 calc(100% - .7cqw))}
.so-game .dbtn:hover:not(:disabled){background:rgba(25,240,245,.28)}
.so-game .dbtn:disabled{cursor:default}
.so-game .dbtn.on{background:#19F0F5;color:#06292B}
.so-game .dbtn.right{background:#1C7A4A;border-color:#7CFFB2;color:#fff}
.so-game .dbtn.wrong{background:#8A2424;border-color:#FF7A7A;color:#fff}
.so-game .dbtn.tx{border-color:#FFD25A;color:#FFE7A0}
.so-game .dbtn.small{font-size:1.1cqw}
.so-game .ac{font-family:"Segoe UI Symbol","Apple Symbols","Noto Sans Symbols 2","DejaVu Sans",serif;font-weight:700}
.so-game .ear{display:flex;align-items:center;gap:1.6cqw}
.so-game .ear svg{height:8cqw}
.so-game .wv rect{fill:#19F0F5;transform-box:fill-box;transform-origin:center}
.so-game .ear.playing .wv rect{animation:so-wv .5s ease-in-out infinite alternate}
.so-game .wv rect:nth-child(2){animation-delay:.1s!important}
.so-game .wv rect:nth-child(3){animation-delay:.2s!important}
.so-game .wv rect:nth-child(4){animation-delay:.3s!important}
.so-game .wv rect:nth-child(5){animation-delay:.15s!important}
@keyframes so-wv{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
.so-game .ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:2.5%;background:rgba(8,4,20,.42);z-index:5}
.so-game .card{background:var(--surface);color:var(--ink);border-radius:20px;padding:22px 24px;width:min(580px,100%);max-height:100%;overflow:auto;box-shadow:0 20px 50px rgba(10,16,35,.4);display:grid;gap:12px}
.so-game .card h2{font:800 1.7rem "Bricolage Grotesque",sans-serif;margin:0;letter-spacing:-.02em;line-height:1.1}
.so-game .card p{margin:0}
.so-game .kick{font-weight:700;color:var(--accent);font-size:.8rem;text-transform:uppercase;letter-spacing:.07em}
.so-game .fine{font-size:.88rem;color:var(--muted)}
.so-game .lbl{font-weight:700;margin-bottom:-4px}
.so-game .story{font:600 1.15rem/1.45 "Bricolage Grotesque",Figtree,sans-serif}
.so-game .seg{display:flex;flex-wrap:wrap;gap:8px}
.so-game .seg button,.so-game .lvls button{appearance:none;border:2px solid var(--line);background:var(--surface);color:var(--ink);font:600 .92rem Figtree,sans-serif;padding:7px 14px;border-radius:999px;cursor:pointer;min-height:40px}
.so-game .seg button.on,.so-game .lvls button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.so-game .lvls{display:grid;grid-template-columns:repeat(10,1fr);gap:6px}
.so-game .lvls button{padding:6px 0;border-radius:10px;font-weight:800}
.so-game .lvls button.lock{color:var(--muted)}
.so-game .row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.so-game .btn{appearance:none;border:2px solid var(--ink);background:var(--ink);color:var(--bg);font:700 1rem Figtree,sans-serif;padding:10px 22px;border-radius:4px;cursor:pointer;min-height:46px;box-shadow:4px 4px 0 var(--gold);transition:transform .06s,box-shadow .06s;text-decoration:none;display:inline-flex;align-items:center}
.so-game .btn:active{transform:translate(4px,4px);box-shadow:0 0 0 var(--gold)}
.so-game .btn.ghost{background:none;border:0;border-bottom:3px solid var(--gold);color:var(--ink);box-shadow:none;border-radius:0;padding:6px 2px;min-height:0}
.so-game .btn.big{min-height:52px;font-size:1.08rem;padding:12px 28px}
.so-game .chk{display:inline-flex;gap:7px;align-items:center;font-weight:600;cursor:pointer}
.so-game .chk input{width:18px;height:18px;accent-color:var(--accent)}
.so-game .tip{background:var(--surface2);border-radius:12px;padding:10px 12px;font-size:.95rem}
.so-game .stats{display:flex;gap:18px;flex-wrap:wrap}
.so-game .stats div{display:grid}
.so-game .stats b{font:800 1.5rem "Bricolage Grotesque",sans-serif;line-height:1.1}
.so-game .stats span{font-size:.82rem;color:var(--muted)}
.so-game :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (max-width:620px){.so-game .card{padding:16px}.so-game .card h2{font-size:1.35rem}.so-game .lvls{grid-template-columns:repeat(5,1fr)}}
body.fs{overflow:hidden}
body.fs .so-game{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:#05030B;border:0;border-radius:0}
body.fs .so-game .box{width:min(100vw,calc(100vh*16/9));width:min(100vw,calc(100dvh*16/9))}
.so-game .fsx{display:none;position:absolute;left:1.2%;top:1.2%;z-index:7;appearance:none;border:1px solid rgba(255,255,255,.5);background:rgba(10,6,25,.6);color:#fff;font:700 1.1cqw Figtree,sans-serif;border-radius:999px;padding:.3cqw .9cqw;cursor:pointer}
body.fs .so-game .fsx{display:block}

/* phones held upright: the cockpit is too small inside the page, so it asks to go full screen (as Staff Runner does);
   in full screen, a phone held upright is asked to turn sideways */
.so-game .so-phone{display:none}
@media (max-width:640px){
  body:not(.fs) .so-game .so-phone{display:flex;position:absolute;inset:0;z-index:7;flex-direction:column;align-items:center;justify-content:center;gap:12px;
    background:rgba(11,6,20,.72);color:#fff;text-align:center;padding:12px;font:700 .95rem Figtree,sans-serif}
  body:not(.fs) .so-game .ov{display:none!important}
}
.so-game .rotate{display:none}
.so-game #rotOk{margin-top:14px;color:#fff}
@media (orientation:portrait) and (max-width:900px){body.fs:not(.fs-ok) .so-game .rotate{display:flex;position:absolute;inset:0;z-index:8;align-items:center;justify-content:center;background:rgba(5,3,11,.9);color:#fff;text-align:center;font:700 1.2rem Figtree,sans-serif;padding:24px}.so-game .rotate span{display:block;font-size:3rem;margin-bottom:8px}}

/* How to play: the same layout as Staff Runner's page */
.gp-body .howto{margin:22px 0 44px;padding:26px 30px 22px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.howto h2{font:800 1.4rem "Bricolage Grotesque",sans-serif;margin:0 0 14px}
.howto h3{font:800 1.05rem "Bricolage Grotesque",sans-serif;margin:0 0 8px}
.gp-body .ctl-grid{list-style:none;padding:0;margin:0 0 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gp-body .ctl{margin:0;background:var(--surface2);border-radius:14px;padding:12px 14px;display:grid;gap:4px;align-content:start}
.ctl-k{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-weight:700;color:var(--muted);min-height:26px}
.ctl b{font:800 1rem "Bricolage Grotesque",sans-serif}
.ctl span:last-child{font-size:.9rem;color:var(--muted);line-height:1.35}
.howgrid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:8px 40px}
.howgrid > div > h3 + p + h3,.howgrid > div > h3 + ul + h3{margin-top:18px}
.gp-body .howto ul:not(.ctl-grid){margin:0;padding-left:1.2em}
.gp-body .howto li{margin:5px 0}
.gp-body .howto p{margin:0}
.howto kbd{font:700 .85em Figtree,sans-serif;border:1.5px solid var(--line);border-bottom-width:3px;border-radius:6px;padding:0 .45em;background:var(--surface);color:var(--ink)}
@media (max-width:860px){.gp-body .ctl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.gp-body .howto{padding:20px 18px}.howgrid{grid-template-columns:minmax(0,1fr)}.howgrid > div + div{margin-top:14px}}
@media (max-width:340px){.gp-body .ctl-grid{grid-template-columns:minmax(0,1fr)}}

/* 2.1.1: touch mode, for small touch screens (phones). The game adds .touch to #game when the pointer is a finger
   and the cockpit is under 560 px tall. Computers and tablets keep the full cockpit. */
/* drags on dials, faders and the staff stay with the finger instead of scrolling the page */
.so-game #ship,.so-game .dstage{touch-action:none}
.so-game .khit{fill:transparent;pointer-events:none}
.so-game.touch .khit{pointer-events:all}
.so-game.touch .hud{font-size:1.45cqw;gap:.8cqw;left:14%;right:7%} /* centered between Exit full screen and pause */
.so-game.touch .pausebtn{font-size:2.1cqw;padding:1cqw 2.2cqw}
.so-game.touch .fsx{font-size:1.5cqw;padding:.7cqw 1.3cqw}
.so-game .zback{position:absolute;left:1.2%;top:11%;z-index:6;appearance:none;border:2px solid #19F0F5;background:rgba(6,30,34,.9);color:#CFFFFF;font:400 2.2cqw Silkscreen,monospace;letter-spacing:.05em;border-radius:999px;padding:1.3cqw 2.6cqw;cursor:pointer}
.so-game .zback[hidden]{display:none}
/* diagnostics fill the screen: the music on the left, the question and big answer buttons on the right */
.so-game.touch .diag{left:1.5%;top:8.5%;width:97%;height:90%} /* below the top bar, which stays in view */
.so-game.touch .dbody{left:4.5%;right:8.5%;top:15%;bottom:7%;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);column-gap:3cqw;row-gap:1.2cqw;align-items:start}
.so-game.touch .dtop,.so-game.touch .dbar{grid-column:1/-1}
.so-game.touch .dtop{font-size:1.9cqw}
.so-game.touch .dbar{height:1.3cqw}
.so-game.touch .dstage{grid-column:1;grid-row:3/5;height:100%;justify-content:center}
.so-game.touch .staff{max-height:30cqw;max-width:100%}
.so-game.touch .ear svg{height:12cqw}
.so-game.touch .dprompt{grid-column:2;grid-row:3;font-size:2.5cqw;margin-top:1cqw}
.so-game.touch .dans{grid-column:2;grid-row:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4cqw;align-content:start}
.so-game.touch .dans:has(>:nth-child(7)){grid-template-columns:repeat(3,minmax(0,1fr))} /* the seven note names: three across */
.so-game.touch .dbtn{font-size:2.3cqw;min-height:6.6cqw;padding:1cqw 1.2cqw;border-width:.3cqw;clip-path:polygon(0 0,calc(100% - 1.1cqw) 0,100% 1.1cqw,100% 100%,1.1cqw 100%,0 calc(100% - 1.1cqw))}
.so-game.touch .dbtn.small{font-size:1.9cqw;min-height:6cqw}
/* spelling an interval: a wider staff, and up and down buttons to move the note one line or space at a time */
.so-game.touch .dbody:has(.hitz){grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.so-game.touch .dbody:has(.hitz) .staff{max-height:36cqw}
.so-game.touch .dbtn .ac{font-size:1.6em;line-height:1}
.so-game.touch .dbtn.tx{font-size:1.9cqw}
.so-game .tstep{display:none}
.so-game.touch .tstep{display:block}
