: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: #e0f72f;
  --text-muted: rgba(224, 247, 47, 0.5);
  --text-body: rgba(224, 247, 47, 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-body);
  overflow: hidden;
}

.game-container {
  max-width: 500px;
  width: 100%;
}

.game-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.score-display,
.high-score-display {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.score-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 20px var(--accent);
}

.game-board-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

#gameCanvas {
  width: 100%;
  height: auto;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 39, 0.8);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.2), inset 0 0 60px rgba(0, 0, 0, 0.5);
  display: block;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-content {
  text-align: center;
  padding: 2rem;
}

.overlay-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--accent);
}

.overlay-text {
  color: var(--text-body);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn-start {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(34, 197, 94, 0.5);
  background: #1ea34d;
}

.btn-start:active {
  transform: translateY(0);
}

.game-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.control-row {
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  width: 60px;
  height: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.control-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.control-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

@media (max-width: 640px) {
  .game-container {
    max-width: 100%;
  }

  .overlay-title {
    font-size: 2rem;
  }

  .score-value {
    font-size: 1.5rem;
  }

  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .btn-start {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .game-controls {
    display: none;
  }
}
