/* FOSSIL FURY — Streets of Neo-Cretaceous : cabinet styling */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: #07060a radial-gradient(1200px 600px at 50% -10%, #1a1220 0%, #07060a 60%);
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
}

#cabinet {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px;
}

#screen-wrap {
  position: relative;
  width: min(1100px, 96vw, 160vh);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #241a20,
    0 0 0 6px #0d090d,
    0 0 60px 8px rgba(255, 120, 40, 0.14),
    0 30px 80px rgba(0, 0, 0, 0.8);
  background: #000;
}

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

/* CRT scanlines */
#scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
}

/* Vignette + glass glare */
#vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.45) 100%),
    linear-gradient(115deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.03) 12%,
      rgba(255,255,255,0) 30%);
}

#controls {
  color: #8d7f74;
  font-size: clamp(8px, 1.35vh, 12px);
  letter-spacing: 0.08em;
  text-align: center;
  user-select: none;
  white-space: nowrap;
}
#controls b { color: #ffc46b; font-weight: bold; }
#controls .sep { color: #453a35; margin: 0 8px; }

@media (max-width: 720px) {
  #controls { white-space: normal; line-height: 2; }
  #controls .sep { margin: 0 4px; }
}
