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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a6fcc;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#game-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2e95ff;
}

#game-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#score-container {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

#start-button-container {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

#start-button {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s, background 0.15s;
}

#start-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.04);
}

#start-button:active {
  transform: scale(0.98);
}

#countdown-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#countdown-label {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.hidden {
  display: none !important;
}
