/* The marquee, projected scores and controls share the same centerline. */
.score-screen.scene {
  --score-roll-height:clamp(112px,37dvh,470px);
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:max(clamp(10px,2.5dvh,38px),env(safe-area-inset-top)) max(clamp(10px,3.5vw,70px),env(safe-area-inset-right)) max(clamp(10px,2.5dvh,38px),env(safe-area-inset-bottom)) max(clamp(10px,3.5vw,70px),env(safe-area-inset-left));
  overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;gap:0;
}
.score-stage {width:min(100%,max(78vw,910px),1600px);min-width:0;flex:none;margin:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(8px,1.55dvh,23px)}
.score-screen .rankings-dock {width:100%;min-width:0;margin:0}
.cabinet-mast,.report-mast,.cabinet-menu,.report-controls,.report-extra {display:flex;align-items:center;justify-content:space-between;gap:12px 22px}
.cabinet-mast .title-block {width:auto;min-width:0;margin:0}
.cabinet-mast .brand {display:flex;align-items:baseline;gap:.20em;font-size:clamp(29px,min(4.8vw,7.8dvh),87px);letter-spacing:-.055em}
.cabinet-mast .brand span,.cabinet-mast .brand span:last-child {font-size:1em;line-height:.96;letter-spacing:inherit;margin:0}
.cabinet-mast .campaign-line {font-size:clamp(10px,1.1vw,15px);margin:.45em 0 0 .32em}
.launch-slot {display:grid;justify-items:end;gap:4px}
.score-screen .blade {flex:none;white-space:nowrap;min-height:clamp(36px,5.3vh,65px);font-size:clamp(18px,2vw,34px)}
.rush-launch {display:flex;align-items:center;justify-content:center;gap:.6em;min-height:34px;padding:4px 12px;color:#ffe7bc;border-bottom:2px solid #fe986d;background:linear-gradient(105deg,#332035d9,#612b3aca);font:900 clamp(15px,1.45vw,22px)/1.05 var(--body);text-transform:uppercase;letter-spacing:.055em}
.rush-launch span {color:#ffc49b;font-size:.73em;letter-spacing:.075em}
.rush-launch:hover {background:#71323e;color:white}
@media(any-pointer:coarse){.rush-launch{min-height:44px}}
.launch-slot #title-best {margin:0;color:#fff0ba;font-size:clamp(12px,1.2vw,17px);text-shadow:0 1px 4px #090717}
.cabinet-menu,.report-extra {flex-wrap:wrap}
.sector-routes,.cabinet-utilities,.report-links {display:flex;align-items:center;gap:clamp(5px,1.2vw,20px)}
.score-stage .menu-link,.report-extra summary {
  color:#edf4ff;width:auto;min-height:35px;padding:5px 8px;line-height:1.1;background:linear-gradient(100deg,#141329bc,#1512255e);
  font-size:clamp(15px,1.38vw,22px);font-weight:800;text-transform:uppercase;letter-spacing:.035em;text-shadow:0 1px 3px #100a20;
}
.score-stage .sector-launch {border-left:2px solid #feab70;padding-left:10px}
.score-stage .sector-launch span {display:inline;color:#ffd594}
.score-stage .menu-link:hover,.report-extra summary:hover {color:#b6fff7;background:#192c46cc}
.score-screen.result,[data-ending="arcade"] .score-screen.result {background:linear-gradient(0deg,#080c2096,transparent 37%,#080c2075)}
.report-mast {align-items:flex-end}
.report-outcome {min-width:0}
.report-mast .result-reason {font-size:clamp(14px,1.3vw,21px);line-height:1.15;text-shadow:0 1px 5px #09091e}
.report-mast #result-title {font-size:clamp(28px,min(4.7vw,6.8vh),78px);line-height:1;margin:3px 0}
.report-mast .result-score {flex:none;margin:0;text-align:right;gap:1px}
.report-mast #result-score {font-size:clamp(31px,min(5.4vw,7.3vh),90px)}
.report-mast #result-best {margin:0;font-size:clamp(12px,1.25vw,18px)}
.report-controls {align-items:center}
.report-controls>.blade {margin-left:auto}
.report-controls #callsign-form {width:min(62%,410px);margin:0}
#name-status:empty {display:none}
.report-extra {align-items:flex-start;gap:2px 12px}
.report-extra summary {cursor:pointer;width:fit-content;font-size:clamp(14px,1.23vw,20px)}
.report-extra summary:focus-visible {outline:2px solid var(--ice);outline-offset:2px}
.report-links {margin-left:auto}
.score-screen #flight-stats .result-stats {margin:6px 0 0;gap:10px 22px;padding:8px 12px;background:#10142dc7;display:flex;flex-wrap:wrap}
.score-screen #flight-stats .result-stats dd {font-size:clamp(18px,2vw,30px)}
@media(max-width:820px) {
  .score-stage {width:100%}
  .cabinet-menu {gap:6px;justify-content:center}
  .cabinet-utilities,.sector-routes {justify-content:center;gap:5px}
  .score-stage .menu-link {font-size:15px}
}
@media(max-width:540px) {
  .score-stage {gap:10px}
  .score-screen.scene {padding-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right))}
  .score-screen .cabinet-mast {gap:7px}
  .cabinet-mast .brand {font-size:clamp(24px,6.7vw,36px);gap:.08em}
  .cabinet-mast .campaign-line {gap:.4em;font-size:9px;letter-spacing:.10em}
  .cabinet-mast .campaign-line i {width:8px}
  .score-screen .blade {font-size:clamp(14px,3.5vw,19px);padding:8px 12px 8px 9px;gap:6px;border-left-width:3px}
  .score-stage .menu-link,.report-extra summary {min-height:36px;padding:5px;font-size:14px}
  .cabinet-menu {flex-direction:column}
  .report-mast {align-items:flex-start;gap:6px}
  .report-mast .result-reason {font-size:14px}
  .report-mast #result-score {font-size:clamp(26px,7vw,37px)}
  .report-mast #result-best {font-size:12px}
  .report-mast .result-score span,.report-mast .eyebrow {font-size:10px}
  .report-controls {gap:7px}
}
@media(max-height:650px) {
  .score-screen.scene {padding-block:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-bottom));--score-roll-height:clamp(82px,27dvh,160px)}
  .score-stage {gap:5px}
  .score-screen .cabinet-mast .brand {font-size:clamp(23px,5.25dvh,35px)}
  .cabinet-mast .campaign-line {font-size:9px;margin-top:2px}
  .report-mast #result-title,.report-mast #result-score {font-size:clamp(22px,5.8dvh,36px)}
  .report-mast .eyebrow,.report-mast .result-score span {font-size:10px}
  .cabinet-menu .menu-link,.report-extra .menu-link,.report-extra summary {min-height:28px}
}
@media(any-pointer:coarse) and (min-height:541px) {
  .score-screen .blade,.score-stage .menu-link,.report-extra summary {min-height:44px}
}

@media(max-width:480px) {
  .score-screen .cabinet-mast .brand {display:block;font-size:clamp(20px,5.9vw,28px)}
  .cabinet-mast .brand span,.cabinet-mast .brand span:last-child {display:block;line-height:.90}
  .score-stage .sector-routes {flex-wrap:wrap}
}

/* Keep the name entry and replay controls in view around a populated roll. */
.score-screen.result {--score-roll-height:clamp(100px,27dvh,390px)}

@media(max-height:480px) and (min-width:520px) {
  .score-screen.result {--score-roll-height:clamp(54px,19dvh,88px)}
  .score-screen .high-scores {
    display:grid;grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr);
    align-items:center;column-gap:10px;
  }
  .score-screen .rankings-head {justify-self:center}
  .score-screen .high-scores .rankings-head h2 {font-size:clamp(24px,min(5.4vw,9dvh),43px)}
  .score-screen .ranking-tabs {margin:2px 0;grid-template-columns:.95fr .9fr .82fr 1.04fr 1.2fr}
  .score-screen .ranking-tabs button {padding-inline:2px;font-size:clamp(14px,2.3cqi,19px)}
  .score-screen .ranking-columns,.score-screen #ranking-roll,
  .score-screen #ranking-empty,.score-screen .ranking-foot {grid-column:1/-1}
  .report-controls #callsign-form {
    display:grid;grid-template-columns:6rem minmax(0,1fr);grid-template-rows:auto auto;
    align-items:center;column-gap:5px;
  }
  .report-controls #callsign-form label {grid-area:1/1;align-self:end;margin:0;font-size:12px}
  .report-controls .name-slot {grid-area:1/2/3/3}
  .report-controls #name-status {grid-area:2/1;align-self:start;font:700 12px/1.05 var(--body)}
}
@media(max-width:420px) {
  .report-mast {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 6px}
  .report-outcome {display:contents}
  .report-mast .eyebrow {align-self:end}
  .report-mast #result-title {font-size:clamp(24px,7.3vw,31px);margin:0}
  .report-mast .result-score {grid-column:2;grid-row:1/3}
  .report-mast #result-score {font-size:clamp(24px,6.9vw,32px)}
  .report-mast .result-reason {grid-column:1/-1;grid-row:3}
  .report-controls #callsign-form {flex:1;min-width:0}
  .report-controls .name-slot input {font-size:17px;padding-inline:5px}
  .report-controls .name-slot button {width:48px;padding:3px;font-size:14px;line-height:1}
  .report-extra,.report-links {gap:2px}
  .report-extra summary,.report-links .menu-link {font-size:13px;letter-spacing:0;padding-inline:3px;white-space:normal}
  .report-extra:has(details[open]) {display:grid;grid-template-columns:minmax(0,1fr)}
}
@media(max-width:420px) and (max-height:650px) {
  .score-screen.result {--score-roll-height:clamp(73px,17dvh,110px)}
  .report-ranking {padding-block:8px}
}
