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

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

body {
  background: radial-gradient(circle at center, #040404 0%, #000 100%);
  font-family: "Press Start 2P", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
  color: #00ff9f;
}

/* CRT scanlines overlay */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0px,
    rgba(0,0,0,0.15) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 999;
}

.game-container {
  position: relative;
  display: inline-block;
  border: 4px solid #00ff9f;
  box-shadow: 0 0 25px #00ff9f88;
}

canvas {
  display: block;
  background: radial-gradient(circle at center, #000010, #000);
}

#ui {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  line-height: 1.4;
  text-shadow: 0 0 4px #00ff9f, 0 0 8px #00ff9f;
}

#overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10;
}

.panel {
  text-align: center;
  border: 3px solid #00ff9f;
  width: 70%;
  max-width: 600px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4);
  animation: glowPulse 3s infinite ease-in-out;
  box-shadow: 0 0 25px #00ff9f, inset 0 0 10px #00ff9f;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 20px #00ff9f, inset 0 0 6px #00ff9f; border-color: #00ff9f; }
  25% { box-shadow: 0 0 25px #ff00c8, inset 0 0 8px #ff00c8; border-color: #ff00c8; }
  50% { box-shadow: 0 0 25px #00ffff, inset 0 0 8px #00ffff; border-color: #00ffff; }
  75% { box-shadow: 0 0 25px #ff00c8, inset 0 0 8px #ff00c8; border-color: #ff00c8; }
  100% { box-shadow: 0 0 20px #00ff9f, inset 0 0 6px #00ff9f; border-color: #00ff9f; }
}

.arcade-title {
  font-size: 14px;
  margin-bottom: 20px;
  text-shadow:
    0 0 4px #00ff9f,
    0 0 8px #ff00c8,
    0 0 12px #00ffff;
  animation: titleGlow 4s infinite ease-in-out;
}

@keyframes titleGlow {
  0% { color: #00ff9f; text-shadow: 0 0 8px #00ff9f; }
  33% { color: #ff00c8; text-shadow: 0 0 8px #ff00c8; }
  66% { color: #00ffff; text-shadow: 0 0 8px #00ffff; }
  100% { color: #00ff9f; text-shadow: 0 0 8px #00ff9f; }
}

#owlPreview {
  display: block;
  margin: 0 auto 20px auto;
  background: transparent;
}

.help {
  font-size: 9px;
  color: #ffffffbb;
  margin-bottom: 20px;
}

.sub {
  font-size: 10px;
  color: #ffffffcc;
  margin-bottom: 15px;
}

.flicker { animation: flicker 1.3s infinite alternate; }

@keyframes flicker {
  0% { opacity: 1; }
  40% { opacity: 0.6; }
  100% { opacity: 1; }
}

.btn {
  background-color: #00ff9f;
  color: #000;
  font-family: "Press Start 2P", monospace;
  border: none;
  padding: 8px 16px;
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 0 12px #00ff9f;
  transition: transform 0.15s;
}

.btn:hover { transform: scale(1.1); }
