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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  overflow: hidden;
  touch-action: none;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#hud {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 24px;
  font-weight: bold;
  z-index: 10;
}

#timer {
  color: #f39c12;
}

#score {
  color: #2ecc71;
}

#game-canvas {
  background: #16213e;
  border-radius: 8px;
  max-width: 100%;
  max-height: 80vh;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.overlay.hidden {
  display: none;
}

.overlay h1, .overlay h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.8;
}

button {
  padding: 12px 40px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #3498db;
  color: white;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}

button:hover {
  background: #2980b9;
}

button:active {
  transform: scale(0.95);
}

#repo-link {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 14px;
  color: #7f8c8d;
  text-decoration: none;
  z-index: 10;
}

#repo-link:hover {
  color: #95a5a6;
}
