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

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

:root {
  --bg1: #001133;
  --bg2: #003366;
  --cyan: #00e5ff;
  --yellow: #ffe600;
  --red: #ff3030;
  --green: #00ff66;
  --magenta: #ff00ff;
  --purple: #8800ff;
  --dark: #000;
  --panel: #08111e;
  --panel2: #112233;
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  min-height: -webkit-fill-available;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: linear-gradient(var(--bg1), var(--bg2));
  color: #fff;
  font-family: 'Press Start 2P', system-ui, monospace;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  font-smooth: never;
  touch-action: none;
}

button { font-family: inherit; }

#game {
  position: relative; width: 100vw; overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

#scene-root {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}

#particles-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 88;
}

.scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 3px,
    rgba(0,0,0,0.14) 3px, rgba(0,0,0,0.14) 6px
  );
}

.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 89;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.55);
}

.hidden { display: none !important; }

.fallback {
  font-size: 11px; text-align: center; line-height: 1.5;
  color: #fff; text-shadow: 2px 2px 0 #000; padding: 10px;
}

.scene-fade-in { animation: fadeIn 0.35s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes glow { from { filter: brightness(1); } to { filter: brightness(1.4); } }

.app-header {
  background: linear-gradient(#140000, #000);
  border-bottom: 6px solid var(--red);
  padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 0 24px var(--cyan); z-index: 5;
}

.app-header .title {
  font-size: 14px; letter-spacing: 2px; color: var(--yellow);
  text-transform: uppercase; text-shadow: 2px 2px 0 #000;
}

.app-header .vs {
  font-size: 30px; color: var(--red);
  text-shadow: 0 0 10px var(--yellow), 2px 2px 0 #000;
  animation: glow 1s infinite alternate;
}

.app-footer {
  background: #000; padding: 8px 16px; font-size: 10px;
  display: flex; justify-content: space-between;
  border-top: 4px solid var(--cyan); z-index: 5;
}

.app-footer .left { color: var(--yellow); }
.app-footer .right { color: var(--red); }

@media (max-width: 768px) {
  .app-header { padding: 6px 10px; }
  .app-header .title { font-size: 9px; letter-spacing: 1px; }
  .app-header .vs { font-size: 18px; }
  .app-footer { font-size: 7px; padding: 5px 8px; }
}
