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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  touch-action: none;
}

#game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

#hud {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

#timer {
  font-size: 32px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

#score {
  font-size: 20px;
  color: #fff;
}

#canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

#result-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#result-modal.hidden {
  display: none;
}

.modal-content {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 2px solid #ffcc00;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

.modal-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffcc00;
}

#final-score {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
  color: #fff;
}

#analysis {
  font-size: 16px;
  margin-bottom: 30px;
  color: #ccc;
  line-height: 1.6;
}

#retry-btn {
  background: #ffcc00;
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

#retry-btn:hover {
  transform: scale(1.05);
}

#retry-btn:active {
  transform: scale(0.95);
}