/* Designer launch choices and Sky Run. */
.prototype-badge{margin-left:12px;padding:5px 8px;border-radius:5px;font-size:8px;letter-spacing:.12em;font-weight:800;color:#526b84;background:#e4edf5}.site-header{justify-content:center}.header-right{display:none}

@media screen{
 .editor-navigation{position:absolute;z-index:4;bottom:12px;left:12px;right:12px;top:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:580px;margin:auto;pointer-events:auto}
 .editor-navigation .editor-tabs{display:contents}
 .editor-tab[data-editor-tab="paper"],.editor-tab[data-editor-tab="aircraft"],.editor-tab[data-editor-tab="identity"]{position:static;transform:none;width:auto;height:44px;min-height:44px;max-width:none;padding:6px}
 .flight-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;padding:12px;max-width:620px;margin:0 auto;width:100%;background:#e8eff7;z-index:8}
 .booth-action,.play-action{min-height:49px;border-radius:8px;font:700 14px Arial,sans-serif;cursor:pointer}
 #nextStep.booth-action{position:static;inset:auto;transform:none;width:100%;min-height:49px;background:#fff;color:#011e41;border:1px solid #b7c9db;box-shadow:none;max-width:none;padding:9px 5px}
 .play-action{border:1px solid #eda400;background:#f5a800;color:#011e41;box-shadow:0 2px 0 #ca8c00}.play-action span{margin-left:5px;font-size:20px}
 .play-action:focus-visible,.booth-action:focus-visible{outline:3px solid #3478b9;outline-offset:3px}.play-action:disabled{opacity:.7;cursor:wait}
 .orbit-hint{bottom:68px}.canvas-wrap{display:flex;flex-direction:column}#planeCanvas{min-height:0;flex:1}.workspace{position:relative}#view3d{overflow:visible}
 #confirmPrint{display:none}.prototype-notice{padding:10px;background:#eaf1f8;border-radius:6px;font-size:13px!important;color:#52677e}
}
/* The launch choices sit directly below the airplane, outside the rotating stage. */
.flight-actions{position:absolute;bottom:0;left:0;right:0;transform:translateY(100%)}
@media screen and (min-width:650px){main{grid-template-rows:minmax(300px,59%) minmax(0,1fr)}.settings{padding-top:88px}}
@media screen and (max-width:649px){.workspace{margin-bottom:74px!important}.flight-actions{padding:11px 12px}.prototype-badge{font-size:7px;letter-spacing:.08em;margin-left:8px}.booth-action,.play-action{font-size:13px}.editor-tab span{font-size:12px}}
#flightGame{padding:0;border:0;border-radius:22px;background:#e1edf7;color:#102e4e;width:min(100vw,490px);height:min(100dvh,950px);max-width:100vw;max-height:100dvh;overflow:hidden;box-shadow:0 25px 120px #001c4460}
#flightGame::backdrop{background:#071c36df;backdrop-filter:blur(8px)}
#flightGame[open]{display:flex}.game-shell{height:100%;width:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;font-family:Arial,Helvetica,sans-serif}
.game-top{display:flex;align-items:center;justify-content:space-between;padding:13px 18px 8px;background:#e6f0f8;flex:none}.game-top>div{text-align:center}.game-kicker{font-size:9px;letter-spacing:.2em;font-weight:800;color:#65829b}.game-top h2{margin:2px 0 0;font-size:24px;letter-spacing:-.06em;font-weight:800;line-height:1.05}
.game-icon{width:42px;height:42px;display:grid;place-items:center;background:#fff8;border:1px solid #adc3d75c;border-radius:50%;font-size:21px;color:#143655;cursor:pointer}
.game-hud{display:grid;grid-template-columns:1fr .8fr 1.3fr;padding:8px 20px 12px;gap:15px;background:#e6f0f8;flex:none}.game-hud>div{display:flex;flex-direction:column;gap:3px}.game-hud>div+div{border-left:1px solid #b3c9d778;padding-left:18px}.game-hud span{font-size:9px;color:#5d7991;font-weight:600;white-space:nowrap}.game-hud b{font-size:24px;letter-spacing:-.05em;line-height:1}.game-hud b small{font-size:12px;color:#5d7991;margin-left:2px}
#gameStage{position:relative;flex:1;min-height:180px;overflow:hidden;background:#81a9ce;touch-action:none}#gameCanvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.game-lives{position:absolute;top:14px;left:18px;color:#fff6d1;text-shadow:0 1px 3px #315179;letter-spacing:5px;font-size:13px;pointer-events:none}
.game-controls{flex:none;padding:13px 18px max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:8px;background:#e6f0f8}.game-controls button{width:100%;border:0;border-radius:11px;min-height:51px;background:#102f52;color:#fff;font-size:15px;font-weight:800;box-shadow:0 3px 0 #081c32;touch-action:none;cursor:pointer}.game-controls button span{margin-left:14px;font-size:21px}.game-controls>span{font-size:10px;color:#617c92}.game-controls button:disabled{opacity:.5;box-shadow:none;cursor:default}
.game-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:#6f9cbd30}.game-overlay[hidden]{display:none!important}.game-card{width:100%;max-width:340px;background:#f7fcfff5;border:1px solid #fff;border-radius:22px;padding:22px;text-align:center;box-shadow:0 15px 45px #153a5c30}.game-card h3{font-size:30px;line-height:1.04;letter-spacing:-.055em;margin:9px 0 12px;color:#102f52}.game-card p{font-size:13px;line-height:1.7;color:#5b7286;margin:0 0 20px}.game-primary{min-height:50px;width:100%;padding:8px 16px;border-radius:10px;border:1px solid #e6a00b;background:#f5af18;color:#102e4e;font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:space-between;cursor:pointer;box-shadow:0 2px 0 #d0920e}.game-primary span{font-size:22px}.game-secondary{border:0;background:transparent;color:#385b77;font-size:13px;text-decoration:underline;padding:15px 8px 0;cursor:pointer}.game-card>span:last-child{display:block;font-size:10px;color:#71899d;margin-top:13px}.game-card button:focus-visible,.game-icon:focus-visible,.game-controls button:focus-visible{outline:3px solid #216eaa;outline-offset:3px}
#gameResults>div{display:flex;flex-direction:column;margin:12px 0 8px}#gameResults strong{font-size:68px;line-height:1;letter-spacing:-.07em}#gameResults span{font-size:9px;letter-spacing:.18em;color:#6b8195;margin-top:5px}#gameResults p{margin-bottom:22px}#gameResults[hidden]{display:none}
#gameToast{position:absolute;top:25%;left:0;right:0;text-align:center;font-size:20px;color:#fff7d7;font-weight:800;text-shadow:0 2px 8px #325c81;opacity:0;pointer-events:none}#gameToast.is-visible{opacity:1}.sr-game{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
#gamePlanePreview{display:block;width:170px;height:100px;object-fit:contain;margin:-8px auto 7px;filter:drop-shadow(0 6px 4px #193c5930)}
@media(max-width:649px){#flightGame{border-radius:0;width:100vw;height:100dvh;margin:0}.game-top{padding-top:max(13px,env(safe-area-inset-top))}}
@media(max-height:600px){.game-top{padding:7px 14px}.game-top h2{font-size:20px}.game-hud{padding:4px 16px 8px}.game-hud b{font-size:19px}.game-controls{padding:8px 14px;gap:5px}.game-controls button{min-height:40px}.game-card{padding:15px}.game-card h3{font-size:24px;margin:4px 0 8px}.game-card p{font-size:11px;line-height:1.5;margin-bottom:12px}#gamePlanePreview{width:115px;height:60px}.game-primary{min-height:42px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#gamePause[hidden]{display:grid;visibility:hidden}
#gamePlanePreview{margin:8px auto 9px}
#gamePlanePreview[hidden]{display:none}
@media screen and (max-width:649px){.settings{padding-top:12px!important}.workspace{margin-bottom:0!important}.flight-actions{position:static;transform:none;flex:none}.canvas-wrap{overflow:visible}#planeCanvas{order:0}.flight-actions{order:2}.editor-navigation{bottom:86px}.orbit-hint{bottom:140px}.canvas-wrap{padding-bottom:74px}.flight-actions{position:absolute;bottom:0;left:0;right:0}.settings{margin-top:0!important}}

@media screen{#printDialog{max-width:440px}}
.game-top{position:relative;min-height:67px}.game-top>div{position:absolute;left:50%;transform:translateX(-50%)}
@media(max-height:600px){.game-top{min-height:52px}}
@media screen and (min-width:650px){.canvas-wrap{overflow:visible}}
/* Shared flight board and the public landing field. */
 .game-social-nav{display:flex;gap:8px;padding:2px 16px 10px;background:#e6f0f8;flex:none}.game-social-nav button{flex:1;min-height:44px;font:700 13px Arial;border:1px solid #b6ccdb;border-radius:9px;background:#fff;color:#234d6b;padding:8px;cursor:pointer}.game-social-nav #openBoard{flex:1.4;background:#143b59;color:white;border-color:#143b59}.game-social-nav button:focus-visible{outline:3px solid #e4a20f;outline-offset:2px}
#pilotEntry{margin:8px 0 12px;padding:10px;background:#e5eff5;border-radius:9px}#pilotEntry[hidden]{display:none}#flightPilotName{display:block;font-size:17px;overflow-wrap:anywhere}#pilotEntry #pilotNotice{font-size:11px;line-height:1.45;margin:6px 0 0}#pilotEntry .game-secondary{padding:8px 0 0;min-height:36px;font-size:12px}#pilotNameStatus{display:block;color:#933c28;font-size:12px;line-height:1.4}#flightHelp{margin:10px 0 14px;text-align:left}#flightHelp[hidden]{display:none}#flightHelp summary{font-size:12px;color:#345972;cursor:pointer;min-height:30px;padding:7px 0}#gameSaveStatus{font-size:12px;line-height:1.5;margin:9px 0 12px}
#flightGame .game-card{max-height:100%;overflow:auto}#flightGame .game-overlay{padding:14px}#gameResults strong{font-size:52px}#gameResults>div{margin:6px 0}#gameResults p{margin-bottom:8px}#flightGame .game-card h3{font-size:27px}
#flightBoard{width:min(100vw,520px);height:min(100dvh,900px);max-height:100dvh;max-width:100vw;padding:0;border:0;border-radius:20px;background:#eaf1f7;color:#14344f;overflow:hidden}#flightBoard::backdrop{background:#071d35d9;backdrop-filter:blur(5px)}.board-shell{height:100%;display:flex;flex-direction:column;padding:20px}.board-shell header{display:flex;justify-content:space-between;align-items:center;flex:none}.board-shell h2{font-size:28px;letter-spacing:-.045em;margin:5px 0 16px}.board-shell header button{width:40px;height:40px;border:1px solid #b9ccda;border-radius:50%;background:white;color:#153855;font-size:24px;cursor:pointer}.board-tabs{display:flex;gap:8px;flex:none}.board-tabs button{flex:1;padding:12px 8px;border:1px solid #bdcedb;border-radius:8px;background:white;color:#3d617b;font-size:13px;font-weight:700;cursor:pointer}.board-tabs button[aria-selected=true]{background:#123755;color:white;border-color:#123755}#boardStatus{font-size:12px;color:#5a7589;line-height:1.5;flex:none}#boardRows{overflow:auto;flex:1;min-height:0}.leader-list{display:flex;flex-direction:column;gap:9px}.leader-row{display:flex;align-items:center;gap:9px;padding:12px 10px;border:1px solid #d0dce5;background:#fff;border-radius:10px;min-height:80px}.leader-rank{width:18px;color:#7790a5;font-size:13px}.leader-row img{width:64px;height:44px;object-fit:contain}.leader-row>div{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.leader-row strong{font-size:13px;word-break:break-word}.leader-row span{font-size:10px;color:#6b8498}.leader-distance{font-size:17px;white-space:nowrap}.landing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start;background:#d8d0b6;border-radius:12px;padding:12px}.landed-card{display:flex;flex-direction:column;align-items:center;padding:14px 8px;background:#f9f5e9a8;border-radius:10px;min-width:0}.landed-card img{width:115px;height:75px;object-fit:contain;transform:rotate(-9deg);filter:drop-shadow(0 4px 2px #6d684c30)}.landed-card>div{display:flex;flex-direction:column;align-items:center;gap:4px;margin:6px 0}.landed-card strong{font-size:13px;text-align:center;word-break:break-word}.landed-card span{font-size:10px;color:#76816c}.board-footnote{font-size:10px;line-height:1.5;color:#6e8595;flex:none;margin:13px 0 0}
@media(max-width:649px){#flightBoard{width:100vw;height:100dvh;border-radius:0;margin:0}.board-shell{padding:max(18px,env(safe-area-inset-top)) 16px 16px}}

.public-name-entry{display:flex;gap:7px}.public-name-entry input{min-width:0;flex:1}.public-name-entry button{background:white;border:1px solid #b7cad9;border-radius:7px;color:#193d57;padding:6px 10px;font-size:12px;font-weight:700}

/* Scenery is a visual choice; it does not change the course or its score. */
#gameToast{top:36%;font-size:17px}.game-lives{display:flex;gap:6px;line-height:0;filter:drop-shadow(0 1px 2px #142f5f)}.game-lives svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}.game-lives .is-lost{opacity:.2}.game-hud{grid-template-columns:1fr 1fr 1.3fr;gap:9px}.game-hud>div+div{padding-left:12px}

.flight-weather{position:absolute;right:15px;top:12px;display:flex;align-items:flex-end;flex-direction:column;gap:6px;pointer-events:none}.flight-weather>span{font:700 9px Arial;color:#eaf8ff;letter-spacing:.035em;background:#14395675;border:1px solid #e1f3ff40;padding:5px 8px;border-radius:20px}.flight-weather>b{font:800 10px Arial;color:#183f4a;background:#b5f0db;border-radius:6px;padding:6px 9px;box-shadow:0 2px 10px #102b4e25}.flight-weather>b[data-effect=wind]{background:#ffdfa0;color:#5a4226}.flight-weather>b[hidden]{display:none}
.flight-instructions{margin:6px 0 15px;text-align:left;background:#e5eff5;border:1px solid #d7e5ee;border-radius:11px;padding:8px 10px}.flight-instructions[hidden]{display:none}.flight-instructions>div{display:flex;align-items:center;gap:9px;min-height:48px;padding:4px 0}.flight-instructions canvas{width:48px;height:32px;background:#447594;border-radius:7px;flex:none}.flight-instructions p{margin:0!important;font-size:11px!important;line-height:1.4!important;display:flex;flex-direction:column;gap:2px}.flight-instructions b{color:#23465e;font-size:11px}.flight-instructions span{font-size:10px;color:#57768d}.flight-instructions small{display:block;font-size:9px;color:#6c879a;text-align:center;padding:6px 0 1px;border-top:1px solid #cfdee8;margin-top:5px}
#flightGame .game-card:has(.flight-instructions:not([hidden])){padding:18px}#flightGame .game-card:has(.flight-instructions:not([hidden])) h3{margin:7px 0;font-size:25px}#flightGame .game-card:has(.flight-instructions:not([hidden])) #gamePlanePreview{height:65px;width:125px;margin:2px auto 5px}#flightGame .game-card:has(.flight-instructions:not([hidden])) #gameExplanation{font-size:12px;line-height:1.5;margin-bottom:9px}
@media(max-height:750px){#flightGame .game-card:has(.flight-instructions:not([hidden])) #gamePlanePreview{display:none}.flight-instructions>div{min-height:43px}.flight-instructions{margin-bottom:10px;padding:5px 8px}#flightGame .game-card:has(.flight-instructions:not([hidden])){padding:14px}}

#flightGame .game-board-action{display:block;width:100%;min-height:44px;margin:10px 0 0;border:1px solid #adbfce;border-radius:8px;background:#e4eef7;font-weight:700;text-decoration:none}#flightGame .game-board-action[hidden]{display:none}

#gameDesign.game-design-action{width:auto;min-width:98px;max-width:110px;border-radius:12px;display:flex;gap:6px;padding:7px 9px;font-size:11px;font-weight:700;line-height:1.2;text-align:left;flex:none}#gameDesign.game-design-action>span:first-child{font-size:20px;line-height:1}
@media(max-width:350px){#gameDesign.game-design-action{min-width:88px;padding:7px 6px;gap:4px;font-size:10px}.game-top h2{font-size:21px}}

.board-flight-result{display:grid;grid-template-columns:86px 1fr;align-items:center;gap:6px 12px;padding:12px;margin:0 0 12px;border:1px solid #afc8d9;border-radius:12px;background:#fff;flex:none}.board-flight-result[hidden]{display:none}.board-flight-result img{width:86px;height:54px;object-fit:contain}.board-flight-result>div{display:flex;flex-direction:column;gap:3px;min-width:0}.board-flight-result span{font-size:9px;letter-spacing:.12em;color:#54758e}.board-flight-result strong{font-size:17px;overflow-wrap:anywhere}.board-flight-result b{font-size:24px;color:#123755}.board-flight-result p{grid-column:1/-1;font-size:12px;line-height:1.4;color:#35634f;margin:4px 0 0}.board-flight-result button{grid-column:1/-1;min-height:36px;border:1px solid #adc5d7;border-radius:7px;background:#eaf3fa;color:#143b59;font-weight:700;cursor:pointer}.board-flight-result button[hidden]{display:none}.is-your-flight{border-color:#c68d16;background:#fff6de;box-shadow:inset 3px 0 #e9a820}.board-actions{flex:none;padding-top:12px;text-align:center}.board-actions .game-primary{justify-content:center}.board-actions .game-secondary{min-height:40px;padding:10px}.board-shell{box-sizing:border-box}.board-shell button:focus-visible{outline:3px solid #397db1;outline-offset:2px}@media(max-height:650px){.board-shell{padding:12px}.board-shell h2{font-size:23px;margin-bottom:10px}.board-flight-result{padding:8px;margin-bottom:8px}.board-flight-result img{height:40px}.board-flight-result b{font-size:20px}.board-footnote{margin-top:6px}.board-actions{padding-top:7px}.board-actions .game-primary{min-height:42px}}

#playFeedback{grid-column:1/-1;font:12px/1.4 Arial;color:#8b3026;margin:0;text-align:center}#playFeedback:empty{display:none}
