:root {
  color-scheme: dark;
  --bg: #120a1f;
  --bg-2: #26103f;
  --panel: rgba(22, 14, 41, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --paper: #fff3d8;
  --muted: #c1adff;
  --hot: #ff8d6d;
  --gold: #ffd166;
  --mint: #63f7c8;
  --cyan: #67d8ff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "VT323", monospace;
  background:
    radial-gradient(circle at top, rgba(103, 216, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 141, 109, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.masthead {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.15;
  text-shadow: 0 0 24px rgba(103, 216, 255, 0.28);
}

.lede {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--muted);
}

.arcade-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.hud,
.playfield,
.sidecopy {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.hud {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.hud-block {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
}

.hud strong {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--paper);
}

.playfield {
  position: relative;
  border-radius: 28px;
  padding: 18px;
  overflow: hidden;
}

canvas {
  width: 100%;
  display: block;
  border-radius: 18px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #090414;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.screen-overlay {
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 2px,
      transparent 2px,
      transparent 6px
    );
  mix-blend-mode: screen;
  opacity: 0.32;
}

.status-banner {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 14px;
  background: rgba(14, 9, 30, 0.84);
  color: var(--paper);
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.sidecopy {
  border-radius: 28px;
  padding: 22px 20px;
  display: grid;
  gap: 18px;
}

.sidecopy p {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: 1.45rem;
  line-height: 1.15;
}

kbd {
  display: inline-block;
  min-width: 2ch;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
}

@media (max-width: 960px) {
  .shell {
    padding: 28px 16px 40px;
  }

  .arcade-stage {
    grid-template-columns: 1fr;
  }

  .hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hud {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hud-block {
    padding: 12px;
  }

  .status-banner {
    left: 26px;
    right: 26px;
    bottom: 22px;
  }
}
