/* Road Shooter - Styles */
:root {
  --primary: #00e5ff;
  --bg: #0a0a1f;
  --surface: #111827;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050510;
  color: var(--text);
  font-family: 'Outfit', 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Hide cross-promo for fullscreen canvas game */
.cp-section,
.cp-grid,
.cp-card,
[class*="cross-promo"],
[id*="cross-promo"],
.cross-promo-sidebar {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

/* App Loader */
#app-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050510;
}

#app-loader .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skip Link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100001;
  background: var(--primary);
  color: var(--bg);
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* Canvas Container - fullscreen, centered */
#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050510;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 99999;
  overflow: hidden;
}

#gameCanvas {
  display: block;
  box-shadow: 0 0 60px rgba(0,229,255,0.08);
}

/* Light mode - game stays dark */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
  }
  html, body { background: #050510; }
  #app-loader { background: #050510; }
  #game-container { background: #050510; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #app-loader .spinner { animation: none; opacity: 0.5; }
}
