:root {
  color-scheme: dark;
  --ink: #ecf8ff;
  --muted: #91abc1;
  --panel: rgba(11, 25, 43, .86);
  --line: rgba(153, 211, 236, .16);
  --mint: #4be0c2;
  --gold: #f7c95f;
  --coral: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #050c17;
  color: var(--ink);
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 28px; }
.intro { display: flex; align-items: end; gap: 28px; margin-bottom: 24px; }
.eyebrow, .objective-kicker { color: var(--mint); font-size: 11px; letter-spacing: .16em; font-weight: 750; }
.eyebrow { margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: .95; letter-spacing: -.06em; margin: 0; }
.lede { max-width: 520px; margin: 0 0 2px auto; color: var(--muted); font-size: 15px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 274px; gap: 14px; align-items: stretch; }
.stage-wrap { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #071524; box-shadow: 0 24px 80px rgba(0,0,0,.32); }
#game { display: block; width: 100%; height: auto; aspect-ratio: 900 / 560; cursor: crosshair; }
.panel { display: flex; flex-direction: column; padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); backdrop-filter: blur(14px); }
.panel-top { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.status-dot.warn { background: var(--coral); box-shadow: 0 0 14px var(--coral); }
.status-dot.gold { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.round { margin-left: auto; color: #c3d7e6; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.metric-row strong { color: var(--ink); font-size: 22px; letter-spacing: -.04em; }
.meter-label { display: block; margin: 14px 0 5px; color: var(--muted); font-size: 11px; }
.meter { height: 7px; overflow: hidden; border-radius: 10px; background: rgba(150, 200, 220, .12); }
.meter-fill { height: 100%; width: 100%; border-radius: inherit; transition: width .2s ease; }
.meter-fill.hull { background: linear-gradient(90deg, var(--coral), var(--gold), var(--mint)); }
.meter-fill.boost { background: linear-gradient(90deg, #6ea8ff, #b3d7ff); }
.objective { margin-top: 22px; padding: 14px; border: 1px solid rgba(75, 224, 194, .22); border-radius: 12px; background: rgba(75, 224, 194, .05); }
.objective-kicker { display: block; font-size: 9px; }
.objective p { min-height: 43px; margin: 8px 0 0; color: #d6eaf3; }
.controls { margin-top: 22px; color: var(--muted); font-size: 12px; }
.controls p { margin: 7px 0; }
kbd { display: inline-block; min-width: 23px; padding: 1px 5px; border: 1px solid rgba(170, 220, 240, .3); border-bottom-width: 2px; border-radius: 4px; color: #dff7ff; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.launch, .share { padding: 13px 14px; border: 0; border-radius: 10px; cursor: pointer; font: 750 14px inherit; transition: transform .16s ease, filter .16s ease, opacity .16s ease; }
.launch { background: var(--mint); color: #06201e; }
.launch:hover { filter: brightness(1.1); transform: translateY(-1px); }
.launch span { float: right; font-size: 18px; line-height: 14px; }
.share { border: 1px solid rgba(158, 203, 255, .34); background: rgba(158, 203, 255, .08); color: #d8ecff; }
.share:hover:not(:disabled) { border-color: #9ecbff; background: rgba(158, 203, 255, .15); transform: translateY(-1px); }
.share:disabled { cursor: default; opacity: .38; }
.share-status { min-height: 16px; margin: 8px 0 0; color: var(--mint); font-size: 10px; }
.fine-print { margin: 12px 0 0; color: #71899f; font-size: 10px; }
footer { display: flex; justify-content: space-between; gap: 20px; margin: 17px 2px 0; color: #688198; font-size: 11px; }
footer a { color: #9ec3d4; text-decoration: none; }
footer a:hover { color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .shell { width: min(100% - 24px, 620px); padding-top: 28px; }
  .intro { display: block; }
  .lede { margin: 12px 0 0; }
  .game-layout { grid-template-columns: 1fr; }
  .panel { min-height: 360px; }
}
