:root {
  color-scheme: dark;
  --bg: #060a12;
  --panel: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 90% 110%, rgba(168, 85, 247, 0.09), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  padding: 28px 16px 40px;
}

.shell {
  width: 100%;
  max-width: 640px;
}

.site-header {
  text-align: center;
  margin-bottom: 18px;
}

.logo {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  line-height: 1;
  display: flex;
  justify-content: center;
  gap: 0.08em;
}

.logo span:nth-child(1) {
  color: #22d3ee;
}
.logo span:nth-child(2) {
  color: #3b82f6;
}
.logo span:nth-child(3) {
  color: #f59e0b;
}
.logo span:nth-child(4) {
  color: #facc15;
}
.logo span:nth-child(5) {
  color: #22c55e;
}
.logo span:nth-child(6) {
  color: #ef4444;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-frame {
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(160deg, rgba(148, 163, 184, 0.12), rgba(15, 23, 42, 0.35));
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #05080f;
  touch-action: none;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 18px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
}

.control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.control span {
  margin-left: 3px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom-width: 2px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1;
}
