:root { color-scheme: dark; --bg: #0b171c; --surface: #122228; --line: #2d4046; --text: #f0f4ed; --muted: #a9bbbc; --accent: #d9ee85; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 16px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); display: flex; flex-direction: column; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.masthead { min-height: 100px; padding: 24px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 16px; font-size: .875rem; font-weight: 700; letter-spacing: .07em; }
.brand-mark { font-size: 20px; font-weight: 800; letter-spacing: -.05em; border: 1px solid #789088; width: 52px; height: 44px; display: flex; justify-content: center; align-items: center; }
.brand-mark span { color: var(--accent); font-size: 21px; margin-left: 1px; }
.edition, .eyebrow, .card-heading, .card-footer, .footer-index { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; font-size: .75rem; }
.edition { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
#play-area { flex: 1; display: grid; align-items: center; position: relative; }
#start-screen { width: 100%; max-width: 1640px; margin: auto; padding: 76px 7vw 88px; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 8vw; }
.eyebrow { margin: 0 0 30px; color: var(--accent); }
h1 { font-size: clamp(3.5rem, 6.7vw, 7rem); letter-spacing: -.065em; font-weight: 600; line-height: .99; margin: 0 0 30px; }
h1 span { color: var(--accent); }
.description { font-size: 1.125rem; line-height: 1.7; color: var(--muted); margin: 0 0 38px; }
.launch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.play-button { background: var(--accent); color: #14241d; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 208px; border: 0; border-radius: 3px; padding: 19px 24px; font-size: 1.25rem; font-weight: 700; transition: background .15s, transform .15s; }
.play-button:hover { background: #e8f6b6; transform: translateY(-2px); }
.play-button > span:first-child { font-size: .875rem; }
.button-arrow { margin-left: auto; font-size: 1.4rem; }
.device-note { font-size: .875rem; line-height: 1.6; margin: 0; }
.device-note span { color: var(--muted); }
.flight-card { border: 1px solid var(--line); background: var(--surface); transform: translateY(12px); }
.card-heading { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
ol { list-style: none; margin: 0; padding: 0 24px; }
li { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
li:last-child { border: 0; }
.step-number { font-family: "SFMono-Regular", Consolas, monospace; color: var(--accent); font-size: .75rem; padding-top: 4px; }
h2 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
li p { color: var(--muted); margin: 0; font-size: .9375rem; line-height: 1.6; }
.card-footer { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: var(--muted); }
.footer { margin: 0 5vw; border-top: 1px solid var(--line); min-height: 84px; display: flex; align-items: center; gap: 36px; }
.footer p { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.footer > p { flex: 1; }
.footer-index { color: var(--muted); }
summary { cursor: pointer; list-style: none; font-size: .875rem; padding: 15px 0; white-space: nowrap; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--accent); margin-left: 24px; }
.controls-panel { position: absolute; bottom: 78px; left: 5vw; background: #16292f; border: 1px solid #526a70; padding: 26px; width: min(450px, 90vw); z-index: 5; box-shadow: 0 16px 60px #0006; max-height: 75svh; overflow-y: auto; }
.footer .controls-title { font-size: 1.25rem; color: var(--text); margin: 0 0 24px; }
dl { margin: 0; }
dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: .875rem; }
dd { margin: 0; }
kbd { display: inline-block; font: .8125rem "SFMono-Regular", Consolas, monospace; padding: 4px 6px; border: 1px solid #62777b; border-bottom-width: 2px; border-radius: 3px; min-width: 25px; text-align: center; }
.quiet-button { border: 1px solid #61777b; background: transparent; color: var(--text); border-radius: 3px; padding: 10px 16px; font-size: .875rem; }
.quiet-button:hover { border-color: var(--accent); color: var(--accent); }
#notice:empty { display: none; }
#notice { font-size: .9375rem; line-height: 1.6; color: #ffcfb8; max-width: 520px; }
#loading { max-width: 420px; margin-top: 24px; font-size: .875rem; color: var(--muted); }
progress { display: block; margin-top: 12px; width: 100%; height: 6px; accent-color: var(--accent); }
.noscript-notice { padding: 20px 7vw; color: #ffcfb8; }
#game-frame { position: relative; width: min(100vw, calc((100dvh - 124px) * 1.6)); aspect-ratio: 16 / 10; margin: auto; }
#canvas { width: 100%; height: 100%; display: block; background: #091015; touch-action: none; }
body[data-state="loading"] #game-frame { position: absolute; visibility: hidden; pointer-events: none; }
body[data-state="running"] { height: 100dvh; min-height: 0; overflow: hidden; }
body[data-state="running"] .masthead { min-height: 62px; padding: 9px 24px; }
body[data-state="running"] .brand-mark { width: 40px; height: 34px; font-size: 16px; }
body[data-state="running"] .edition { display: none; }
body[data-state="running"] .footer { min-height: 62px; margin: 0 24px; }
body[data-state="running"] #play-area { min-height: 0; overflow: hidden; background: #060d11; }
body:fullscreen .masthead, body:fullscreen .footer { display: none; }
body:fullscreen #game-frame { width: min(100vw, calc(100dvh * 1.6)); }
@media (min-width: 900px) and (max-height: 800px) {
  .masthead { min-height: 80px; padding-top: 18px; padding-bottom: 18px; }
  #start-screen { padding-top: 32px; padding-bottom: 32px; }
  h1 { font-size: clamp(3.5rem, 6vw, 6rem); margin-bottom: 24px; }
  .eyebrow { margin-bottom: 24px; }
  .description { margin-bottom: 28px; }
  .card-heading, .card-footer { padding-top: 18px; padding-bottom: 18px; }
  li { padding-top: 18px; padding-bottom: 18px; }
  li p { line-height: 1.5; }
  h2 { margin-bottom: 4px; }
  .flight-card { transform: none; }
  .footer { min-height: 68px; }
}
@media (min-width: 1800px) { #start-screen { gap: 120px; } }
@media (max-width: 900px) { #start-screen { gap: 40px; padding: 56px 6vw; } .flight-card { transform: none; } .edition { font-size: .6875rem; } .footer { gap: 24px; } .footer-index { display: none; } }
@media (max-width: 680px) { .masthead { min-height: 80px; padding: 18px 6vw; } .wordmark { font-size: .75rem; gap: 12px; } .edition { display: none; } #start-screen { grid-template-columns: 1fr; padding-top: 44px; gap: 44px; } h1 { font-size: 4.1rem; } .eyebrow { font-size: .6875rem; } .footer { align-items: flex-start; flex-direction: column; padding: 12px 0 18px; gap: 0; } .footer p { margin: 4px 0; } .footer p span { display: block; } .controls-panel { position: fixed; bottom: 100px; } body[data-state="running"] .footer { min-height: 62px; flex-direction: row; align-items: center; gap: 16px; } body[data-state="running"] .footer > p { display: none; } body[data-state="running"] .wordmark > span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
