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

:root {
  --bg-color: #000;
  --cabinet-bg: #1a1a1a;
  --neon-blue: #4facfe;
  --neon-red: #ff3333;
}

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

body {
  width: 100vw;
  height: 100vh;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Press Start 2P', cursive;
  overflow: hidden;
}

#arcade-cabinet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#marquee {
  color: var(--neon-blue);
  font-size: 32px;
  text-shadow: 0 0 10px var(--neon-blue);
  letter-spacing: 5px;
}

#screen-container {
  position: relative;
  width: 560px; /* Scaled up from 224 */
  height: 640px; /* Scaled up from 256 */
  background-color: #000;
  border: 4px solid #333;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

#scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.2)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.5;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

#insert-coin {
  color: #ff3333; /* Arcade red */
  font-size: 24px;
  text-shadow: 2px 2px 0 #000;
}

.blink {
  animation: blink 1s infinite;
}

#controls-hint {
  color: #888;
  font-size: 12px;
  margin-top: 10px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
