:root {
  --bg: #0a0e27;
  --surface: rgba(34, 197, 94, 0.08);
  --surface-hover: rgba(34, 197, 94, 0.12);
  --border: rgba(34, 197, 94, 0.2);
  --border-hover: rgba(34, 197, 94, 0.35);
  --text: #e0f2fe;
  --text-muted: rgba(224, 242, 254, 0.5);
  --text-body: rgba(224, 242, 254, 0.75);
  --accent: #22c55e;
  --accent-2: #06b6d4;
  --radius: 0.5rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
}
.font-heading {
  font-family: 'Space Grotesk', sans-serif;
}
.font-body {
  font-family: 'Inter', sans-serif;
}
.neon-text {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 30px var(--accent);
}
.neon-text-red {
  color: #ef4444;
  text-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444, 0 0 30px #ef4444;
}
.game-container {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-container:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 60px rgba(34, 197, 94, 0.25);
}
.score-display {
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
}
.canvas-wrapper {
  position: relative;
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
}
#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(10, 14, 39, 0.8);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.overlay.hidden {
  display: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}
.btn-primary:active {
  transform: translateY(0);
}
.kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  min-width: 2.5rem;
  display: inline-block;
  text-align: center;
  margin: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.ao {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.ao.v {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 640px) {
  .canvas-wrapper {
    width: 100%;
  }
  #gameCanvas {
    width: 100%;
    height: auto;
  }
  .game-container {
    padding: 1rem;
  }
  .score-display {
    padding: 0.75rem 1rem;
  }
  .score-display .text-4xl {
    font-size: 2rem;
  }
}
