:root {
  color-scheme: dark;
  --gold: #f4b844;
  --ink: #080a0e;
  --panel: #121820;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 184, 68, 0.16), transparent 28rem),
    linear-gradient(180deg, #10131a 0%, #06070a 100%);
  color: #f4ead7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 22px;
}

.game-frame {
  position: relative;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  border: 3px solid #242a32;
  box-shadow:
    0 0 0 4px #06070a,
    0 24px 80px rgba(0, 0, 0, 0.55);
  background: #05070a;
  overflow: hidden;
}

.game-frame canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.controls {
  width: min(100%, 1180px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: #d9c6a2;
  font-size: clamp(12px, 1.6vw, 15px);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin: 0 2px;
  border: 1px solid #7a5d2e;
  background: #16100b;
  color: var(--gold);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5);
}
