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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0C0D14;
  color: #e0e0e0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hud {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 480px;
  font-size: 20px;
  font-weight: 600;
  padding: 8px 16px;
}

#score-display {
  color: #4ade80;
}

#combo-display {
  color: #facc15;
}

#accuracy-display {
  color: #60a5fa;
}

#game-canvas {
  border: 2px solid #2a2d3a;
  border-radius: 4px;
  display: block;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 13, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#overlay.hidden {
  display: none;
}

#overlay-box {
  background: #161822;
  border: 2px solid #2a2d3a;
  border-radius: 12px;
  padding: 40px 48px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

#screen-start h1 {
  color: #f472b6;
  font-size: 36px;
  margin-bottom: 16px;
}

#screen-gameover h1 {
  color: #4ade80;
  font-size: 32px;
  margin-bottom: 16px;
}

#overlay-box p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #c0c0c0;
}

.controls-hint {
  color: #888 !important;
  font-size: 15px !important;
}

.action-hint {
  color: #60a5fa !important;
  margin-top: 20px !important;
  animation: pulse 2s ease-in-out infinite;
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 600px) {
  #hud {
    font-size: 16px;
    padding: 6px 10px;
  }

  #overlay-box {
    padding: 28px 24px;
  }

  #screen-start h1 {
    font-size: 28px;
  }

  #screen-gameover h1 {
    font-size: 26px;
  }

  #overlay-box p {
    font-size: 16px;
  }
}
