:root {
  --bg: #0a0a14;
  --ink: #f4efe4;
  --dim: #7a7a8c;
  --line: #1c1c28;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", "Courier New", monospace;
  height: 100%;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}
#wrap {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 10px;
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(255, 120, 40, 0.10), transparent 55%),
    radial-gradient(700px 380px at 70% 0%, rgba(80, 140, 255, 0.08), transparent 50%),
    var(--bg);
}
#game {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #05050c;
  box-shadow:
    0 0 0 2px #12121c,
    0 0 0 3px #3a3040,
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(255, 140, 60, 0.10);
  width: min(100vw - 16px, calc((100dvh - 42px) * 480 / 270));
  height: auto;
  max-height: calc(100dvh - 42px);
  touch-action: none;
  outline: none;
}
.credit {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-height: 420px) {
  .credit { display: none; }
  #wrap { padding: 0; }
  #game {
    width: min(100vw, calc(100dvh * 480 / 270));
    max-height: 100dvh;
  }
}
