* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

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

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#rules {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: bold;
  z-index: 10;
  background: rgba(255, 68, 68, 0.8);
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
}

#score, #timer {
  position: absolute;
  top: 60px;
  font-size: 20px;
  font-weight: bold;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
}

#score {
  left: 20px;
}

#timer {
  right: 20px;
}

#game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  z-index: 100;
}

#game-over h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#game-over p {
  font-size: 24px;
  margin-bottom: 30px;
}

#restart-btn {
  font-size: 18px;
  padding: 12px 32px;
  background: white;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

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

.hidden {
  display: none;
}