@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
}

#game-container {
  position: relative;
  width: min(960px, 100vw);
  aspect-ratio: 3 / 2;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  /* Taps are game input — no scrolling, no double-tap zoom */
  touch-action: none;
}

/* Footer links (privacy policy is required before real users).
   Plain monospace — Press Start 2P reads oversized at any legible size. */
#site-footer {
  margin-top: 8px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #2e2e2e;
  display: flex;
  gap: 8px;
}

#site-footer a {
  color: #4a4a4a;
  text-decoration: none;
}

#site-footer a:hover {
  color: #00FF5A;
}

/* Honeypot field — visually gone, still in the DOM for bots */
#email-website {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* CRT scanline overlay */
#game-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 10;
}

/* Subtle CRT vignette */
#game-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: 11;
}

/* Mute button */
#mute-btn {
  position: absolute;
  top: 2px;
  right: 8px;
  z-index: 20;
  background: none;
  border: 1px solid #444;
  color: #444;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

#mute-btn:hover {
  border-color: #fff;
  color: #fff;
}

/* Touch devices: the fixed-size MUTE button covers ~120 canvas px of the
   scaled-down canvas (it sat on top of the PAUSE button) — park it below
   the footer instead */
@media (hover: none) and (pointer: coarse) {
  #mute-btn {
    top: calc(100% + 34px);
    right: 8px;
  }
}

/* Email overlay */
#email-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
}

#email-box {
  text-align: center;
  color: #fff;
}

.email-title {
  font-size: 14px;
  color: #00FF5A;
  margin-bottom: 16px;
}

.email-sub {
  font-size: 8px;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 20px;
}

#email-input {
  background: #111;
  border: 2px solid #444;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 10px 16px;
  width: 320px;
  text-align: center;
  outline: none;
  display: block;
  margin: 0 auto 16px;
}

#email-input:focus {
  border-color: #00FF5A;
}

.email-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.email-btns button {
  background: none;
  border: 2px solid #444;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 8px 20px;
  cursor: pointer;
}

.email-btns button:hover {
  border-color: #00FF5A;
  color: #00FF5A;
}

#email-submit {
  border-color: #00FF5A;
  color: #00FF5A;
}

.email-status {
  font-size: 8px;
  margin-top: 12px;
  min-height: 16px;
  color: #00FF5A;
}
