@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-0: #06030f;
  --bg-1: #120a24;
  --panel: rgba(19, 13, 43, 0.88);
  --line: #6b4cff;
  --cyan: #58f7ff;
  --pink: #ff57c7;
  --text: #e9f7ff;
  --muted: #a2b6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, #2b1a66 0, transparent 28%),
    radial-gradient(circle at 90% 82%, #2b0f3d 0, transparent 34%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
  opacity: 0.32;
}

.page {
  width: min(980px, 94vw);
  margin: 0 auto;
  padding: 26px 0 44px;
}

.top-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  padding: 10px 12px;
  color: var(--cyan);
  border: 2px solid #2f2a66;
  background: rgba(9, 8, 28, 0.8);
  box-shadow: 0 0 0 1px rgba(88, 247, 255, 0.2) inset;
  transition: 120ms ease;
}

.top-nav a:hover {
  border-color: var(--pink);
  color: #fff;
  transform: translateY(-1px);
}

h1 {
  margin: 0 0 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.35;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(88, 247, 255, 0.38);
}

h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1.5;
  margin: 0 0 10px;
  color: #ffd8ff;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 2px solid #2f2a66;
  border-radius: 0;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(107, 76, 255, 0.35) inset;
}

.card p {
  margin: 0 0 14px;
  color: #bfd0ff;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #12051d;
  background: linear-gradient(180deg, #87fbff, #58f7ff);
  border: 2px solid #b7fbff;
  padding: 10px 12px;
  box-shadow: 0 0 14px rgba(88, 247, 255, 0.4);
}

.button:hover {
  background: linear-gradient(180deg, #ffa5ed, #ff57c7);
  border-color: #ffd0f6;
}

.game-shell {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 14px;
  box-shadow: 0 0 22px rgba(107, 76, 255, 0.26);
}

#game {
  width: min(100%, 720px);
  margin: 0 auto;
  border: 2px solid #2e2d5a;
  background: #05040d;
}

#game canvas {
  width: 100% !important;
  height: auto !important;
  image-rendering: pixelated;
}

.meta {
  margin-top: 12px;
  color: #97a6e2;
  text-align: center;
  font-size: 13px;
}

ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #cad8ff;
}

@media (max-width: 640px) {
  .top-nav a,
  .button {
    font-size: 10px;
  }

  .meta {
    font-size: 12px;
  }
}
