:root {
  color-scheme: dark;
  color: #eef4f1;
  font: 14px/1.35 system-ui, sans-serif;
  background: #101923;
  --mint: #a7fad5;
  --ink: #0c1518;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:not(.embedded) { min-height: 100svh; display: grid; place-items: center; padding: 18px; }
.arcade { width: min(100%, 850px); margin: auto; }
.embedded .arcade { width: 100%; }
.status, .controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; }
.status { min-height: 40px; }
.brand, .telemetry { display: flex; align-items: center; gap: 9px; }
.brand { letter-spacing: .16em; text-transform: uppercase; }
.orbit-mark { width: 14px; height: 14px; border: 1px solid var(--mint); border-radius: 50%; position: relative; }
.orbit-mark::after { content: ''; position: absolute; width: 16px; height: 6px; border: 1px solid var(--mint); border-radius: 50%; top: 3px; left: -2px; transform: rotate(-35deg); }
.telemetry, .phase { font: 12px/1.2 ui-monospace, monospace; }
.telemetry output { min-width: 4ch; text-align: end; }
.phase { color: #a9bdc6; }
.health { color: #fbc697; letter-spacing: .08em; }
.viewport { position: relative; isolation: isolate; overflow: hidden; background: #111b26; border-block: 1px solid #2c4350; }
canvas { display: block; width: 100%; aspect-ratio: 8 / 5; touch-action: none; }
button { font: inherit; cursor: pointer; }
.start { position: absolute; inset: auto 0 8%; display: grid; justify-items: center; gap: 6px; text-align: center; margin-inline: 8px; }
.start p, .start h1 { margin: 0; }
.start p { color: #c4d2d3; font-size: 13px; }
.start h1 { font-size: clamp(22px, 5vw, 39px); line-height: 1.03; font-weight: 720; letter-spacing: -.05em; }
.best { font: 12px/1.3 ui-monospace, monospace; }
.play { margin-top: 6px; background: var(--mint); color: var(--ink); min-width: 124px; min-height: 44px; padding: 6px 15px; border: 1px solid var(--mint); border-radius: 2px; font-weight: 700; }
.play:hover { background: #d3ffe9; transform: translateY(-2px); }
.play:active { transform: translateY(1px); }
.play:disabled { opacity: .7; cursor: wait; transform: none; }
.controls { min-height: 42px; color: #a9bdc6; font-size: 12px; }
.controls button, .dash { color: #eef4f1; background: #12282b; border: 1px solid #486767; border-radius: 2px; min-height: 44px; padding-inline: 11px; }
.controls button:hover, .dash:hover { border-color: var(--mint); }
.dash { position: absolute; right: 10px; bottom: 10px; touch-action: manipulation; }
.dash[aria-disabled="true"] { opacity: .65; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.touch-help { display: none; }
[hidden] { display: none !important; }
@media (pointer: coarse) {
  .desktop-help { display: none; }
  .touch-help { display: inline; }
}
@media (max-width: 440px) {
  .status, .controls { padding-inline: 9px; }
  .start { bottom: 7%; gap: 4px; }
  .start p { font-size: 12px; }
  .play { margin-top: 4px; }
  .brand { letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transform: none !important; }
}
