/* RemixMii Arcade — Dark Neon Theme
   (c) 2024 Paul Adcock, OwlLogics
   Inspired by Just Shapes & Beats */

:root {
  --bg: #0a0a12;
  --bg2: #14141e;
  --neon-pink: #ff2e63;
  --neon-blue: #08d9d6;
  --neon-green: #22c55e;
  --neon-purple: #a855f7;
  --neon-orange: #ff6b35;
  --neon-yellow: #eab308;
  --text: #e4e4e7;
  --text-dim: #71717a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#app { position: relative; width: 100vw; height: 100vh; }

#canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

#overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.screen {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.screen.active { display: flex; }

/* Loading */
.loading-content { text-align: center; }
.logo {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.logo.big { font-size: 48px; }
.loading-bar {
  width: 300px;
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}
.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
  transition: width 0.3s;
}
.loading-text {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* Title */
.title-content { text-align: center; }
.subtitle {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Buttons */
.arcade-btn {
  background: transparent;
  border: 2px solid var(--neon-pink);
  color: var(--text);
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 6px;
  font-family: var(--font);
  box-shadow: 0 0 20px rgba(255, 46, 99, 0.15);
}
.arcade-btn:hover {
  background: var(--neon-pink);
  color: white;
  box-shadow: 0 0 30px var(--neon-pink);
}
.arcade-btn.secondary {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(8, 217, 214, 0.15);
}
.arcade-btn.secondary:hover {
  background: var(--neon-blue);
  box-shadow: 0 0 30px var(--neon-blue);
}

/* Mental Health Banner */
.mental-health-banner {
  margin-top: 48px;
  padding: 16px;
  color: var(--text-dim);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* How To Play */
.howto-content { max-width: 800px; text-align: center; }
.howto-content h2 {
  font-size: 28px;
  color: var(--neon-blue);
  margin-bottom: 24px;
}
.howto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.howto-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}
.howto-icon { font-size: 32px; margin-bottom: 8px; }
.howto-card h3 { font-size: 16px; color: var(--neon-blue); margin-bottom: 6px; }
.howto-card p { font-size: 13px; color: var(--text-dim); }

/* Song Selection */
.select-header { position: absolute; top: 24px; width: 100%; text-align: center; }
.select-controls { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

.song-wheel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 40px;
  max-width: 1200px;
}
.song-card {
  flex-shrink: 0;
  width: 200px;
  height: 280px;
  background: var(--bg2);
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.song-card:hover, .song-card.selected {
  border-color: var(--neon-pink);
  box-shadow: 0 0 30px rgba(255, 46, 99, 0.3);
  transform: scale(1.05);
}
.song-card.selected {
  border-color: var(--neon-blue);
  box-shadow: 0 0 40px var(--neon-blue);
}
.song-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.song-card-artist { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.song-card-style {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--neon-purple);
  display: inline-block;
  margin: 2px;
}
.song-card-bpm { font-size: 12px; color: var(--neon-orange); }
.song-card-difficulty {
  font-size: 14px;
  margin-top: 8px;
}

/* Game HUD */
#game-hud { pointer-events: none; }
.hud-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hud-lives { font-size: 24px; }
.hud-song { font-size: 16px; font-weight: 700; color: var(--neon-blue); }
.hud-score { font-size: 16px; font-weight: 700; color: var(--neon-orange); }
.hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  text-align: center;
}
.hud-artist { font-size: 14px; color: var(--text-dim); }

/* Game Over */
.gameover-content { text-align: center; }
.gameover-title {
  font-size: 64px;
  font-weight: 900;
  color: var(--neon-pink);
  text-shadow: 0 0 40px var(--neon-pink);
  margin-bottom: 16px;
}
.gameover-score { font-size: 24px; color: var(--neon-orange); margin-bottom: 8px; }
.gameover-message { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* Victory */
.victory-content { text-align: center; }
.victory-title {
  font-size: 64px;
  font-weight: 900;
  color: var(--neon-green);
  text-shadow: 0 0 40px var(--neon-green);
  margin-bottom: 16px;
}
.victory-score { font-size: 24px; color: var(--neon-orange); margin-bottom: 8px; }
.victory-message { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* Mental Health */
.mental-content {
  max-width: 500px;
  text-align: center;
  padding: 40px;
  background: var(--bg2);
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.mental-content h2 { font-size: 28px; color: var(--neon-purple); margin-bottom: 16px; }
.mental-affirmation {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.donation-links h3, .crisis-resources h3 {
  font-size: 14px;
  color: var(--neon-blue);
  margin-bottom: 12px;
}
.donate-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 4px;
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.donate-btn:hover {
  background: var(--neon-blue);
  color: var(--bg);
}
.crisis-resources {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.crisis-resources p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* Pause */
.pause-content { text-align: center; }
.pause-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--neon-yellow);
  margin-bottom: 32px;
}
