/* Native CSS. Existing dark-tech palette; game HUD and controls, without external assets. */
:root { color-scheme: dark; --bg:#07111f; --surface:#0c1a2b; --text:#ecf5ff; --muted:#9aafc4; --line:rgba(163,196,224,.17); --mint:#7af2c4; --blue:#82c6ff; }
* { box-sizing:border-box; }
html { min-width:320px; background:var(--bg); }
body { margin:0; min-height:100dvh; color:var(--text); background:radial-gradient(ellipse at 10% 38%,rgba(28,103,180,.12),transparent 48%),radial-gradient(ellipse at 94% 65%,rgba(36,166,135,.07),transparent 40%),var(--bg); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased; }
button,a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; cursor:pointer; }
button:disabled { opacity:.4; cursor:default; }
a { color:inherit; text-decoration:none; }
a:focus-visible,button:focus-visible,canvas:focus-visible { outline:3px solid var(--mint); outline-offset:4px; }
.shell { width:min(1080px,calc(100% - 64px)); margin:auto; }
.site-header { min-height:84px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.brand { font-size:19px; font-weight:750; letter-spacing:-.04em; }
.brand span { margin-left:10px; font:11px ui-monospace,SFMono-Regular,Consolas,monospace; color:var(--mint); letter-spacing:.1em; }
.home-link { display:flex; align-items:center; min-height:44px; font-size:13px; color:var(--muted); gap:12px; }
.home-link:hover { color:var(--text); }
.layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,500px); gap:clamp(40px,7vw,96px); align-items:center; padding:36px 0 42px; }
.intro { padding:24px 0; }
.eyebrow { margin:0 0 18px; color:var(--mint); font-size:12px; letter-spacing:.14em; }
h1 { margin:0; font-weight:750; font-size:clamp(42px,4.8vw,62px); line-height:1.16; letter-spacing:-.04em; }
h1 span { color:var(--mint); }
.lead { margin:24px 0 18px; font-size:23px; line-height:1.6; font-weight:500; letter-spacing:.025em; }
.description { max-width:330px; margin:0; color:var(--muted); font-size:14px; line-height:1.9; }
.instructions { margin:36px 0 26px; padding-top:24px; border-top:1px solid var(--line); }
.instructions h2 { margin:0 0 20px; font-size:13px; font-weight:600; color:var(--text); }
.instruction-row { display:grid; grid-template-columns:42px 1fr; gap:16px; margin:0 0 18px; align-items:baseline; font-size:13px; }
.instruction-row p { margin:0; line-height:1.8; }
.instruction-row p span { color:var(--muted); font-size:12px; }
.key-label { color:var(--blue); font-weight:600; }
kbd { display:inline-block; min-width:24px; margin-inline:2px; text-align:center; border:1px solid var(--line); border-radius:4px; background:rgba(255,255,255,.04); font:12px ui-monospace,SFMono-Regular,Consolas,monospace; line-height:22px; }
.legend { display:flex; flex-wrap:wrap; gap:12px 20px; font-size:11px; color:var(--muted); }
.legend span { display:flex; align-items:center; gap:7px; }
.legend-dot { display:inline-block; width:7px; height:7px; border-radius:2px; }
.meteor { background:#ff7b91; }.energy { background:var(--mint); transform:rotate(45deg); }
.game-section { width:100%; max-width:500px; min-width:0; }
.game-toolbar { display:flex; justify-content:space-between; align-items:center; min-height:50px; padding:0 3px 8px; }
.game-label { display:flex; align-items:center; gap:9px; font-size:12px; color:var(--muted); }
.status-light { width:6px; height:6px; border-radius:50%; background:var(--mint); box-shadow:0 0 12px rgba(122,242,196,.4); }
.pause-button { min-height:36px; min-width:65px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.025); color:var(--text); font-size:12px; }
.pause-button:not(:disabled):hover { background:rgba(122,242,196,.08); border-color:rgba(122,242,196,.5); }
.console { overflow:hidden; border:1px solid rgba(130,198,255,.25); border-radius:20px; background:#081321; box-shadow:0 24px 80px rgba(0,8,22,.35),0 0 40px rgba(56,156,177,.035); }
.hud { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:16px 12px; background:linear-gradient(110deg,#12253a,#102330); border-bottom:1px solid var(--line); text-align:center; }
.hud>div+div { border-left:1px solid var(--line); }
.hud-label { display:block; color:var(--muted); font-size:10px; margin-bottom:5px; }
.hud strong { display:block; font:600 20px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; color:var(--text); white-space:nowrap; }
.hud>div:first-child strong { color:var(--mint); }
.arena { position:relative; aspect-ratio:4/5; isolation:isolate; }
canvas { display:block; width:100%; height:100%; touch-action:none; }
.overlay { position:absolute; inset:0; display:grid; place-items:center; padding:28px; background:linear-gradient(180deg,rgba(7,17,31,.40),rgba(7,17,31,.84)); }
.overlay[hidden] { display:none; }
.overlay-content { max-width:310px; text-align:center; }
.overlay-eyebrow { font-size:11px; letter-spacing:.17em; color:var(--mint); margin:0 0 16px; }
.overlay h2 { margin:0 0 16px; font-size:27px; line-height:1.4; letter-spacing:-.025em; }
.overlay-content>p:not(.overlay-eyebrow):not(.start-hint) { margin:0 0 26px; color:#b4c7d9; font-size:14px; line-height:1.9; }
.start-button { display:inline-flex; align-items:center; justify-content:center; gap:28px; width:100%; max-width:230px; min-height:50px; border:1px solid #92ffdb; border-radius:10px; background:var(--mint); color:#082a20; font-weight:750; font-size:15px; box-shadow:0 8px 26px rgba(32,193,143,.12); }
.start-button:hover { background:#a0ffde; }.start-button:active { transform:translateY(1px); }
.start-hint { margin:14px 0 0; color:var(--muted); font-size:11px; }
.game-status { min-height:22px; margin:12px 4px 0; font-size:12px; line-height:1.8; color:var(--muted); }
.touch-controls { display:none; align-items:center; grid-template-columns:1fr auto 1fr; gap:20px; padding:10px 14px; background:#0d1c2e; border-top:1px solid var(--line); }
.touch-controls button { min-height:46px; color:var(--blue); font-size:22px; background:#122a40; border:1px solid #29465b; border-radius:9px; touch-action:none; user-select:none; -webkit-user-select:none; }
.touch-controls button:active { background:#1f4258; border-color:var(--mint); }
.touch-controls button span { font-size:12px; margin-inline:4px; vertical-align:middle; }
.touch-hint { font-size:10px; color:var(--muted); }
.noscript { color:#ffb4b4; font-size:13px; }
.site-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 24px; border-top:1px solid var(--line); padding:20px 0 28px; color:var(--muted); font-size:11px; }
.site-footer p { margin:0; }
@media (pointer:coarse) { .touch-controls { display:grid; } }
@media (max-width:820px) {
  .shell { width:min(540px,calc(100% - 32px)); }
  .site-header { min-height:64px; }.brand { font-size:17px; }.brand span { margin-left:6px; font-size:10px; }
  .layout { grid-template-columns:1fr; gap:16px; padding:26px 0 28px; }
  .intro { padding:0; }.eyebrow { margin-bottom:9px; font-size:10px; }
  h1 { font-size:36px; }.lead { display:none; }
  .description { max-width:none; margin-top:12px; font-size:12px; line-height:1.8; }
  .instructions { margin:0; padding:0; border:0; position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .legend { margin-top:14px; gap:16px; font-size:10px; }
  .game-section { max-width:500px; margin-inline:auto; }.game-toolbar { min-height:44px; }
  .console { border-radius:16px; }.hud { padding:12px 6px; }.hud strong { font-size:18px; }
  .touch-controls { display:grid; gap:14px; }
  .overlay { padding:24px; }.overlay h2 { font-size:25px; }
  .overlay-content>p:not(.overlay-eyebrow):not(.start-hint) { font-size:13px; }
  .site-footer { flex-direction:column; font-size:10px; }
}
@media (max-width:360px) { .shell { width:calc(100% - 24px); }.overlay { padding:18px; }.overlay h2 { font-size:22px; }.hud strong { font-size:16px; }.touch-controls { gap:10px; } }
@media (prefers-reduced-motion:reduce) { .start-button:active { transform:none; } }
