
:root {
  --bg: #0b0f14;
  --card: #121824;
  --text: #e1e8f5;
  --muted: #9bb0d1;
  --accent: #58f287;
  --danger: #ff4d6d;
  --warn: #ffd166;
  --grid: #1b2436;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
.header { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.logo { width:40px; height:40px; background:linear-gradient(135deg, #58f287, #42c3ff); border-radius:12px; display:grid; place-items:center; color:#0b0f14; font-weight:800; }
h1,h2,h3 { margin: 12px 0; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:16px; margin-top: 16px;}
.card { background:var(--card); border:1px solid #1e2638; border-radius:16px; padding:16px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.card h3 { margin-top:0 }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; background:#11203a; border:1px solid #24324d; color:var(--muted); }
.btn { display:inline-block; padding:10px 14px; background:linear-gradient(135deg, #58f287, #42c3ff); color:#0b0f14; border-radius:12px; font-weight:700; border:none; cursor:pointer; }
.btn.secondary { background:#1a2235; color:var(--text); border:1px solid #2b3854; }
.footer { color:var(--muted); margin: 40px 0 80px; font-size:14px; }
.hero { background: radial-gradient(1000px 400px at 10% -10%, rgba(88,242,135,0.12), transparent), radial-gradient(800px 300px at 90% -20%, rgba(66,195,255,0.12), transparent); border:1px solid #1e2638; padding: 24px; border-radius:18px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); }
.kbd { padding:2px 6px; border:1px solid #2b3854; border-bottom-width:3px; border-radius:6px; background:#0f1522; color:#bcd0f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
hr.sep { border:0; border-top:1px solid #222c41; margin: 20px 0; }
.flex { display:flex; gap:12px; align-items:center; flex-wrap: wrap; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align:center; }
.canvas-wrap { display:grid; place-items:center; padding:16px; background: #0c1320; border:1px solid #1e2638; border-radius: 16px; }
canvas { background: #050910; border:1px solid #1b2335; border-radius: 12px; width: min(92vw, 600px); height: min(92vw, 600px); image-rendering: pixelated; }
.controls { display:grid; grid-template-columns:repeat(3, 64px); gap:10px; justify-content:center; margin-top:12px; }
.touch-btn { background:#121a2d; border:1px solid #23304e; border-radius:12px; width:64px; height:64px; display:grid; place-items:center; font-weight:900; color:#9bb0d1; }
.scorebar { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.scorebar .pill { background:#10192a; border:1px solid #23304e; padding:6px 10px; border-radius:999px; color:#b7c9ec; }
.list { line-height:1.7; color:#cfe0ff; }
