﻿:root {
  --bg: #06050d;
  --cab: #181028;
  --cab-edge: #3f2a62;
  --text: #f9f871;
  --accent: #39ffb6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 20%, #1b1538 0, #090711 50%, #030207 100%);
  color: var(--text);
  font-family: "Courier New", monospace;
}

.cabinet {
  width: min(920px, 100vw - 16px);
  background: linear-gradient(#23193b, var(--cab));
  border: 4px solid var(--cab-edge);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 30px #000a;
}

h1 {
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: 2px;
  color: #ff5ea8;
  text-shadow: 0 0 8px #ff5ea877;
  font-size: clamp(20px, 4vw, 34px);
}

.hud,
.controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 2px solid #3f2a62;
  background: #0f0b1f;
  margin-bottom: 8px;
}

.screen-wrap {
  position: relative;
  border: 3px solid #5b418a;
  background: #000;
}

canvas {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    #00000033 3px,
    #00000033 4px
  );
}

button,
input {
  border: 2px solid #4e3c7c;
  background: #141027;
  color: var(--accent);
  font: inherit;
  padding: 6px 8px;
}

button { cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.panel {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  border: 2px solid #4e3c7c;
  background: #0f0b1f;
  padding: 8px;
}

.hidden { display: none; }

#highScores {
  margin: 0;
  padding-left: 18px;
}

.help {
  text-align: center;
  color: #88ffd7;
  margin: 8px 0 2px;
  font-size: 12px;
}
