@font-face {
  font-family: Anton;
  src: url('/vector-skies/fonts/anton-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #eeeae0;
  background: #161716;
  font-synthesis: none;
  --paper: #eeeae0;
  --muted: #b6b6ad;
  --red: #dc493c;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: #161716; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
.shell { max-width: 1500px; margin: auto; padding: 0 28px; }
header { height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 11px var(--mono); letter-spacing: .07em; }
header a { color: var(--paper); text-decoration: none; }
header small { color: #aaa99f; font-size: 10px; }
header > span { border-left: 3px solid var(--red); padding-left: 10px; }
header > div { display: flex; gap: 12px; }
header button { background: none; border: 1px solid #686960; padding: 8px 10px; font: 10px var(--mono); }
.flight { height: min(80vh, 860px); min-height: 560px; position: relative; overflow: hidden; background: #58615f; }
canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); text-shadow: 0 1px 4px #111c20; }
.mission { position: absolute; top: 26px; left: 28px; display: grid; gap: 7px; padding-left: 12px; border-left: 3px solid var(--red); }
.mission small { color: var(--paper); font-size: 10px; letter-spacing: .12em; }
.mission strong { font-family: var(--display); font-weight: 400; font-size: 27px; letter-spacing: .02em; }
.mission > span { font-size: 11px; color: #e2dfd4; }
.vitals { position: absolute; top: 26px; right: 28px; display: grid; gap: 8px; font-size: 12px; color: #eeeae0; }
.telemetry { position: absolute; left: 28px; bottom: 30px; display: grid; gap: 8px; color: var(--paper); font-size: 12px; }
.target-info { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 240px; text-align: center; display: grid; gap: 6px; font-size: 11px; }
.target-info > span { color: #ffe1a3; letter-spacing: .06em; }
.target-info strong { font-size: 13px; color: #edf4df; }
.track { height: 3px; background: #1d2427a0; }
.track i { display: block; height: 100%; width: 0; background: #e6edce; }
.target-info small { font-size: 10px; }
.radio { position: absolute; top: 118px; left: 50%; transform: translateX(-50%); max-width: 70%; padding: 9px 14px; font: 13px/1.4 Arial, sans-serif; text-align: center; background: #141716d9; border-left: 2px solid #d3cbbb; color: var(--paper); }
.radio:empty { display: none; }
.warning { position: absolute; top: 166px; left: 50%; transform: translateX(-50%); background: #ae3127; color: #fff4e8; padding: 10px 15px; font-size: 12px; white-space: nowrap; }
.style-label { position: absolute; right: 28px; bottom: 30px; color: var(--paper); font-size: 10px; letter-spacing: .08em; }
.overlay { position: absolute; inset: 0; display: flex; align-items: safe center; justify-content: center; padding: 40px; overflow: auto; background: linear-gradient(90deg, #111313f2 5%, #171a19df 52%, #1a1d1bb8); }
.overlay::before { content: ''; position: absolute; top: 0; left: 0; height: 5px; width: 100%; background: var(--red); }
.briefing { width: min(1060px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.eyebrow { font: 10px/1.5 var(--mono); letter-spacing: .12em; color: var(--muted); margin: 0 0 24px; }
h1 { font-family: var(--display); font-size: clamp(90px, 11vw, 154px); line-height: .96; letter-spacing: -.025em; margin: 0 0 28px; font-weight: 400; }
h1 em { font-style: normal; color: var(--red); }
p { line-height: 1.6; }
.intro { color: #dedbd2; font-size: 16px; margin: 0; line-height: 1.45; }
.selection { padding-top: 30px; }
.modes { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; }
.modes button { position: relative; text-align: left; background: transparent; border: 0; border-top: 1px solid #74746a; padding: 18px 18px 18px 24px; display: grid; gap: 8px; min-height: 116px; }
.modes button:last-child { border-bottom: 1px solid #74746a; }
.modes button:hover { background: #ece8dc0c; }
.modes button[aria-pressed=true] { color: var(--paper); background: #ece8dc10; box-shadow: inset 3px 0 var(--red); }
.modes button[aria-pressed=true]::after { content: ''; position: absolute; right: 16px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.modes button > span { font: 10px var(--mono); letter-spacing: .08em; color: #c4c1b5; }
.modes strong { font-family: var(--display); font-size: 29px; line-height: 1.15; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.modes small { font-size: 13px; line-height: 1.45; color: #c8c7bc; }
.primary { background: var(--paper); color: #181a18; border: 0; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 40px; font: 400 24px/1.2 var(--display); letter-spacing: .025em; min-width: 250px; width: 100%; }
.primary:hover { background: var(--red); color: #111; }
.primary > span { font: 24px Arial, sans-serif; }
.brief-controls { display: grid; gap: 7px; font: 11px/1.5 var(--mono); color: #c8c7bc; margin-top: 20px; }
.mission-note { font-size: 12px; color: #b8b9af; margin: 18px 0 0; }
.touch-brief { display: none; font-size: 13px; color: #d5d2c9; line-height: 1.6; margin: 15px 0 0; }
.pause-panel, .end-panel { width: min(480px, 100%); }
h2 { font: 400 70px/1.05 var(--display); letter-spacing: -.015em; text-transform: uppercase; margin: 0 0 24px; }
.quiet { display: block; width: 100%; background: none; border: 0; border-bottom: 1px solid #686b61; padding: 14px 0; color: #dedbd2; font-size: 13px; margin-top: 9px; text-align: left; }
.quiet:hover { color: #fff; border-color: var(--red); }
.stats { display: flex; gap: 28px; margin: 24px 0; padding-block: 18px; border-block: 1px solid #676a61; }
.stats strong { display: block; font: 400 36px var(--display); }
.stats span { display: block; font: 10px var(--mono); color: #c1c2b6; margin-top: 5px; }
.end-panel > p:not(.eyebrow) { font-size: 14px; }
footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #b9b9af; font: 10px/1.5 var(--mono); }
.touch { position: absolute; inset: auto 16px 20px; justify-content: space-between; align-items: end; pointer-events: none; display: none; }
.pad { width: 112px; height: 112px; border: 1px solid #d7d7c980; border-radius: 50%; background: #171b1b88; touch-action: none; pointer-events: auto; position: relative; }
.pad i { position: absolute; left: 39px; top: 39px; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 2px solid #a1a79a; }
.pad > span { position: absolute; bottom: 10px; width: 100%; text-align: center; font: 9px var(--mono); color: var(--paper); }
.touch-weapons { display: grid; grid-template-columns: repeat(2, 68px); gap: 8px; pointer-events: auto; }
.touch button { min-height: 46px; font: 10px var(--mono); border: 1px solid #cecec1; background: #191e1de8; touch-action: none; }
.touch button.fire { background: var(--paper); color: #191b19; }
.touch button:active { background: #a73d32; color: white; }
@media (pointer: coarse), (max-width: 600px) {
  .touch { display: flex; }
  .hud .target-info { bottom: 160px; }
  .telemetry, .style-label { bottom: 148px; }
  .brief-controls { display: none; }
  .touch-brief { display: block; }
}
@media (max-width: 600px) {
  .shell { padding: 0 12px; }
  header { height: 56px; font-size: 10px; gap: 9px; }
  header small { display: none; }
  header > span { font-size: 9px; padding-left: 7px; }
  header > div { gap: 7px; }
  header button { font-size: 9px; padding: 8px; }
  .flight { height: calc(100svh - 105px); min-height: 610px; }
  .overlay { padding: 28px 20px; }
  .briefing { grid-template-columns: 1fr; gap: 22px; }
  .title-block { position: relative; }
  .eyebrow { margin-bottom: 16px; font-size: 9px; }
  h1 { font-size: clamp(76px, 23vw, 110px); margin-bottom: 16px; }
  .intro { font-size: 14px; }
  .selection { padding-top: 0; }
  .modes { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
  .modes button { padding: 13px 8px 13px 12px; min-height: 120px; border-bottom: 1px solid #74746a; gap: 7px; }
  .modes button > span { font-size: 9px; letter-spacing: 0; }
  .modes button[aria-pressed=true]::after { display: none; }
  .modes strong { font-size: 22px; }
  .modes small { font-size: 12px; }
  .primary { padding: 14px 18px; font-size: 24px; min-width: 0; }
  .mission-note { font-size: 12px; margin-top: 12px; }
  .mission { top: 18px; left: 16px; padding-left: 8px; }
  .mission strong { font-size: 19px; }
  .mission small { font-size: 9px; }
  .mission > span { font-size: 10px; }
  .vitals { top: 18px; right: 14px; font-size: 10px; }
  .telemetry { left: 16px; font-size: 11px; }
  .style-label { right: 14px; font-size: 9px; }
  .radio { top: 105px; max-width: 90%; width: max-content; font-size: 12px; }
  .warning { top: 160px; font-size: 11px; }
  .target-info { width: 190px; }
  h2 { font-size: 54px; }
  .stats { gap: 22px; }
  footer { min-height: 45px; font-size: 9px; }
  #help { max-width: 82%; }
}
@media (max-height: 550px) and (min-width: 601px) {
  header { height: 42px; }
  .flight { height: calc(100svh - 75px); min-height: 300px; }
  footer { min-height: 33px; }
  .overlay { padding: 20px 30px; }
  .briefing { grid-template-columns: .85fr 1.4fr; gap: 35px; max-width: 850px; }
  .eyebrow { margin-bottom: 12px; font-size: 9px; }
  h1 { font-size: 70px; margin-bottom: 14px; }
  .intro { font-size: 13px; }
  .selection { padding: 0; }
  .modes { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .modes button { padding: 12px; min-height: 114px; border-bottom: 1px solid #74746a; }
  .modes button > span { font-size: 9px; }
  .modes button[aria-pressed=true]::after { display: none; }
  .modes strong { font-size: 24px; }
  .modes small { font-size: 12px; }
  .primary { padding: 10px 16px; font-size: 22px; }
  .brief-controls { font-size: 10px; margin-top: 12px; gap: 4px; }
  .touch-brief { margin-top: 10px; font-size: 12px; }
  .touch-brief br { display: none; }
  .mission-note { font-size: 11px; margin-top: 10px; }
  .mission { top: 16px; }
  .mission strong { font-size: 23px; }
  .radio { top: 93px; }
  .warning { top: 135px; }
  .hud .target-info, .telemetry, .style-label { bottom: 25px; }
  .touch .pad { width: 95px; height: 95px; }
  .touch .pad i { left: 31px; top: 31px; }
  .touch-weapons { grid-template-columns: repeat(2, 64px); gap: 6px; }
  .touch button { min-height: 40px; }
  h2 { font-size: 42px; margin-bottom: 14px; }
  .stats { margin: 12px 0; padding-block: 10px; }
  .quiet { padding: 8px 0; margin-top: 5px; }
  .end-panel .eyebrow, .pause-panel .eyebrow { margin-bottom: 8px; }
}
