:root {
  color-scheme: dark;
  --ink: #080910;
  --paper: #f2eee3;
  --blue: #4b6fff;
  --lime: #c9ff4d;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.game-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 177.7778vh);
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  outline: none;
  touch-action: none;
  image-rendering: pixelated;
  filter: saturate(1.14) contrast(1.05);
}

canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--lime); }

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 5vw, 42px);
  text-align: center;
  background: linear-gradient(rgba(9, 10, 16, .72), rgba(9, 10, 16, .9));
}

.game-overlay[hidden] { display: none; }

.eyebrow {
  margin: 0;
  color: var(--lime);
  font: 700 clamp(7px, 1.4vw, 10px)/1 var(--mono);
  letter-spacing: .16em;
}

h1 {
  margin: clamp(8px, 2vw, 16px) 0 10px;
  font: 900 clamp(44px, 12vw, 102px)/.8 var(--display);
  letter-spacing: -.03em;
  text-transform: uppercase;
}

#game-description {
  max-width: 520px;
  margin: 0;
  color: #b9b9bd;
  font-size: clamp(12px, 2vw, 15px);
  line-height: 1.5;
}

button {
  margin-top: clamp(14px, 3vw, 24px);
  padding: 14px 20px;
  border: 1px solid var(--lime);
  color: var(--ink);
  background: var(--lime);
  box-shadow: 7px 7px 0 var(--blue);
  cursor: pointer;
  font: 800 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .15s, box-shadow .15s;
}

button:hover,
button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--blue);
  outline: none;
}

button span { margin-left: 8px; }

@media (max-height: 320px) {
  h1 { font-size: 48px; }
  #game-description { max-width: 620px; font-size: 11px; }
  button { margin-top: 12px; padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
