* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #121212;
  color: #ffffff;
  overflow: hidden;
  touch-action: manipulation;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
}

#hud {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #0a0a0a;
  touch-action: none;
}

#controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 20;
}

button {
  padding: 10px 20px;
  background: #3498db;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: #2980b9;
}

#countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  z-index: 30;
}

.hidden {
  display: none;
}

#leaderboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  z-index: 30;
}

#leaderboard h2 {
  text-align: center;
  margin-bottom: 15px;
}

#leaderboardList {
  list-style: none;
}

#leaderboardList li {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #333;
}

#leaderboardList li:nth-child(1) {
  color: gold;
  font-weight: bold;
}

#leaderboardList li:nth-child(2) {
  color: silver;
}

#leaderboardList li:nth-child(3) {
  color: #cd7f32; /* bronze */
}

.rush-time {
  color: #ff0000 !important;
  animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.8; }
  to { opacity: 1; }
} 