:root {
  --bg-deep: #020214;
  --bg-mid: #05052a;
  --neon: #4dff80;
  --gold: #ffbf33;
  --panel: rgba(8, 12, 40, 0.85);
  --border: rgba(77, 255, 128, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #101045 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  color: var(--neon);
  font-family: "Press Start 2P", monospace;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem;
}

.frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
}

.brand {
  text-align: center;
}

.brand h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: 0.18em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 191, 51, 0.45);
}

.brand p {
  margin: 0;
  font-size: 0.45rem;
  line-height: 1.7;
  color: rgba(77, 255, 128, 0.75);
  max-width: 36rem;
}

#game {
  display: block;
  width: min(960px, 96vw);
  height: auto;
  aspect-ratio: 960 / 900;
  background: #050514;
  border: 2px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(40, 80, 255, 0.25),
    inset 0 0 80px rgba(0, 0, 40, 0.5);
  outline: none;
  image-rendering: pixelated;
  cursor: crosshair;
}

#game:focus {
  border-color: var(--neon);
}

@media (max-height: 900px) {
  #game {
    width: min(960px, 96vw, calc(96vh * 960 / 980));
  }
}
