:root {
  color-scheme: dark;
  --bg: #0b0720;
  --frame: #05030d;
  --panel: #140e2b;
  --text: #ffe45e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, #143e77 0%, #0b0720 50%, #04030a 100%);
  font-family: monospace;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.page {
  width: min(100%, 1240px);
}

.screen-shell {
  position: relative;
  width: 100%;
  border: 8px solid var(--frame);
  background: #000;
  box-shadow:
    0 0 0 6px #1a1239,
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 214, 10, 0.14);
  overflow: hidden;
}

#screen {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
}

.scanlines,
.screen-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scanlines {
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 4px
  );
  mix-blend-mode: multiply;
}

.screen-glow {
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.22);
}

.help {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.52);
  border: 2px solid #33e8ff;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  image-rendering: pixelated;
}

@media (max-width: 800px) {
  body {
    padding: 12px;
  }

  .help {
    font-size: 10px;
    right: 8px;
    bottom: 8px;
  }
}
