/* One painted control family across menus, overlays and the speaker switch. */
.shell :is(#main-codex,#open-codex,#open-backup,#export-progress,#copy-progress,#import-progress){display:flex;align-items:center;justify-content:center;border:0;background:transparent url('assets/launch-button.webp') center/100% 100% no-repeat;color:#eff9ff;font:700 10px 'Chakra Petch';padding:0 18px;min-height:48px;cursor:pointer;filter:var(--chrome-filter,saturate(1));transition:filter .16s,transform .16s}
.shell :is(#main-codex,#open-codex,#open-backup,#export-progress,#copy-progress,#import-progress):hover{filter:var(--chrome-filter,saturate(1)) brightness(1.15)}.shell :is(#main-codex,#open-codex,#open-backup,#export-progress,#copy-progress,#import-progress):focus-visible{outline:0;filter:var(--chrome-filter,saturate(1)) drop-shadow(0 0 7px #ffce85)}
.shell #main-codex{flex:1;min-width:0;margin:0;width:105px}.shell .main-links :is(#main-options,#main-about){--button-width:105px;padding:0 15px;font-size:9px}
.shell :is(#open-codex,#open-backup){width:200px;margin:4px auto;min-height:60px}
.journal-tabs{display:flex;gap:6px}.shell .journal-tabs button{flex:1;min-height:48px;padding:8px;font-size:9px;border:0;background:transparent url('assets/launch-button.webp') center/100% 100% no-repeat;color:#bfd8e5}.shell .journal-tabs button[aria-pressed="true"]{color:#ffe0a9}
#journal-count{font:11px 'Chakra Petch';color:#96bed2;margin:12px 0}.journal-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #294d64}.journal-row canvas{flex-shrink:0;width:80px;height:72px}.journal-row strong{font:700 14px 'Chakra Petch';color:#fff0d9}.journal-row p{font-size:12px;color:#a9c6d5;margin:5px 0;line-height:1.4}.journal-row small{font:10px 'Chakra Petch';color:#78d8e8}
#backup-panel label{font:12px 'Chakra Petch';color:#a9c6d5}#progress-code{display:block;width:100%;margin:8px 0 12px;resize:vertical;min-height:90px;background:#051326;color:#d8f5ff;border:1px solid #477b95;padding:10px;font:14px monospace;overflow-wrap:anywhere}.backup-actions{display:flex;gap:6px}.backup-actions button{flex:1;min-width:0}#backup-message{font-size:12px;color:#baffd3;line-height:1.4}
@media(max-width:420px){.journal-row{gap:8px}.journal-row canvas{width:64px;height:58px}.journal-row strong{font-size:12px}.journal-row p{font-size:11px}}
.shell :is(.pause-content,.debrief-panel){
  width:min(530px,100%);border:solid transparent;border-width:32px 40px;
  border-image:url('assets/launch-button.webp') 250 450 fill / 32px 40px / 0 stretch;
  border-radius:0;background:none;padding:16px 16px 12px;
  box-shadow:none;filter:var(--chrome-filter,saturate(1)) drop-shadow(0 8px 18px rgba(0,0,0,.55));
  scrollbar-width:thin;scrollbar-color:#5da9bd #06132a;
}
.shell .overlay{z-index:6;display:grid;place-items:center;padding:20px;background:rgba(2,8,20,.76);overflow:auto}
.shell .overlay.hidden{display:none}
.shell .debrief-panel{max-height:calc(100dvh - 40px);overflow:auto;text-align:center;animation:none}
.shell .debrief-panel .eyebrow{font-size:10px;color:#9ab8ce;letter-spacing:.14em;margin:0 0 12px}
.shell .debrief-panel h2{font:700 clamp(26px,4vw,36px)/1.1 'Chakra Petch',sans-serif;letter-spacing:0;color:#fff0d9;text-shadow:none;-webkit-text-stroke:0;margin:0}
.shell .mission-results{display:grid;grid-template-columns:1fr 1fr;gap:22px 16px;border:0;padding:0;margin:28px 0 20px}
.shell .mission-results div{gap:6px;align-items:center}
.shell .mission-results div:first-child{grid-column:1/-1}
.shell .mission-results span{font-size:10px;letter-spacing:.08em;color:#9ab8ce}
.shell .mission-results strong{font-size:28px;line-height:1.1;color:#b3f1ff}
.shell .mission-results div:first-child strong{font-size:clamp(44px,7vw,68px);color:#fff0d9;letter-spacing:.025em}
.shell .debrief-panel #restart{margin:0 auto;--button-height:96px}
.shell .debrief-panel #back-menu{--button-width:230px;--button-height:70px;font-size:10px;padding:0 24px;margin:0 auto}
.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle){
  --button-width:320px;--button-height:102px;
  display:flex;align-items:center;justify-content:center;gap:16px;
  width:var(--button-width);max-width:100%;height:var(--button-height);flex-shrink:0;
  padding:0 32px;border:0;border-radius:0;clip-path:none;outline:none;
  background:transparent url('assets/launch-button.webp') center/100% 100% no-repeat;
  color:#eff9ff;font:700 13px 'Chakra Petch',sans-serif;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;
  text-shadow:0 2px 2px #020918;box-shadow:none;cursor:pointer;
  filter:var(--chrome-filter,saturate(1)) drop-shadow(0 3px 5px rgba(0,0,0,.5));
  transition:filter .16s,transform .16s;
}
.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle) b{margin:0;font-size:20px;color:#ffc17a}
.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle):hover{
  background-color:transparent;color:#fff7e7;border:0;box-shadow:none;
  filter:var(--chrome-filter,saturate(1)) brightness(1.12) drop-shadow(0 0 7px rgba(98,217,249,.45));transform:translateY(-1px);
}
.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle):focus-visible{
  outline:none;border:0;box-shadow:none;color:#fff2cb;
  filter:var(--chrome-filter,saturate(1)) brightness(1.2) drop-shadow(0 0 5px #ffce85) drop-shadow(0 0 10px rgba(255,195,96,.5));
}
.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle):active{transform:translateY(1px) scale(.98)}
.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle):disabled{filter:grayscale(.8);opacity:.5;cursor:wait}
.shell .main-links{width:320px;max-width:100%;gap:10px;margin-top:0}
.shell :is(#main-options,#main-about){--button-width:155px;--button-height:52px;font-size:10px;padding:0 22px;margin:0;flex:1;min-width:0}
.shell #audio-mute{--button-width:200px;--button-height:66px;font-size:10px;padding:0 26px;margin:0 auto}
.shell #resume{--button-height:96px;margin:0}
.shell #pause-restart{--button-width:230px;--button-height:74px;font-size:10px;padding:0 28px;margin:0}
.shell #pause-restart[hidden]{display:none}
.shell #audio-toggle{--button-width:74px;--button-height:34px;font-size:9px;gap:6px;padding:0 10px;opacity:.9;letter-spacing:0}
.shell #audio-toggle[aria-checked="false"]{color:#ffb777}
.shell .pause-actions{gap:0;margin-top:6px}
.shell .pause-author{margin-top:12px}
.pause-content #audio-panel input[type="range"]{
  --fill:0%;appearance:none;-webkit-appearance:none;height:24px;outline:none;border:0;border-radius:0;background:transparent;margin:9px 0 15px;
}
.pause-content input[type="range"]::-webkit-slider-runnable-track{
  height:9px;border:1px solid #9eaeb4;border-top-color:#f0e5c7;border-bottom-color:#3b586d;border-radius:2px;
  background:linear-gradient(90deg,#75e7fa var(--fill),#0b1a2b var(--fill));box-shadow:0 2px 0 #020813,inset 0 1px 3px #091323;
}
.pause-content input[type="range"]::-webkit-slider-thumb{
  appearance:none;-webkit-appearance:none;width:22px;height:23px;margin-top:-8px;border:2px solid #0a1b31;border-radius:4px;
  background:linear-gradient(90deg,#f7ebcf 0 34%,#ffb56a 35% 65%,#e1dccd 66%);box-shadow:0 1px 0 #7493ad,0 0 0 1px #e4e6da,0 0 7px rgba(92,231,255,.25);
}
.pause-content input[type="range"]::-moz-range-track{height:7px;border:1px solid #c9ccb9;background:#0b1a2b;border-radius:2px}
.pause-content input[type="range"]::-moz-range-progress{height:7px;background:#75e7fa}
.pause-content input[type="range"]::-moz-range-thumb{width:18px;height:20px;border:2px solid #0a1b31;border-radius:4px;background:linear-gradient(90deg,#f7ebcf,#ffb56a,#e1dccd)}
.pause-content #audio-panel input[type="range"]:focus-visible{filter:var(--chrome-filter,saturate(1)) drop-shadow(0 0 5px #ffce85);outline:none}
@media(max-height:660px){.shell :is(#start,#restart){--button-height:88px;--button-width:290px}.shell .pause-content{padding-top:22px;padding-bottom:18px}.shell #resume{--button-height:84px}.shell #pause-restart{--button-height:64px}.shell #audio-mute{--button-height:60px}}
@media(max-width:420px){.shell #resume{font-size:11px;padding:0 25px}.shell :is(#main-options,#main-about){--button-height:46px;font-size:9px;padding:0 18px}}
@media(max-width:420px){.shell :is(.pause-content,.debrief-panel){border-width:24px;border-image-width:24px;padding:14px 12px 10px}.shell .pause-content h2{font-size:24px}.shell .debrief-panel #restart{font-size:10px;padding:0 22px;--button-height:80px}}
@media(prefers-reduced-motion:reduce){.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle){transition:none}.shell :is(#start,#restart,#back-menu,#open-hangar,#redeem-code,.ship-select,#resume,#pause-restart,#audio-mute,#main-options,#main-about,#audio-toggle):is(:hover,:active){transform:none}}
@media(max-height:500px) and (min-width:600px){
 .shell #boss-reward .pause-content{padding:6px 16px}.shell #boss-reward h2{font-size:22px}.shell #boss-reward .eyebrow{margin-bottom:4px}.shell #boss-reward .pause-hint{margin:6px 0 10px}.shell .reward-options{flex-direction:row;gap:8px}.shell .reward-options button{min-height:62px;padding:12px 18px;font-size:10px;flex:1}.shell #boss-reward .pause-keys{margin:8px 0 0}
 .shell .debrief-panel{width:min(680px,100%);padding:6px 14px}.shell .debrief-panel h2{font-size:22px}.shell .debrief-panel .eyebrow{margin-bottom:6px}.shell .mission-results{grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.shell .mission-results div:first-child{grid-column:auto}.shell .mission-results div:first-child strong,.shell .mission-results strong{font-size:24px}.shell .run-details{grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0;padding-top:10px}.shell .run-details strong{font-size:16px}.shell .debrief-panel #restart,.shell .debrief-panel #back-menu{display:inline-flex;--button-width:240px;--button-height:58px;font-size:10px}
}
