body {
  margin: 0;
  background: #050608;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: system-ui, sans-serif;
}

.game {
  width: 320px;
  height: 560px;
  background: #111;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* HUD */
.hud {
  position: absolute;
  top: 16px;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

#time {
  font-size: 32px;
  color: #e8e8e8;
}

#best {
  font-size: 18px;
  color: #a0a0a0;
}

/* Start screen */
.start-screen {
  position: absolute;
  inset: 0;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: opacity 0.3s ease-out;
}

.start-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-text {
  color: #e8e8e8;
  font-size: 24px;
}

/* Safe zone */
.safe-zone {
  width: 200px;
  height: 200px;
  border: 2px solid #7cffb4;
  border-radius: 50%;
  position: absolute;
  left: calc(50% - 100px);
  top: calc(50% - 100px);
  opacity: 0.25;
  transition: transform 0.1s ease-out, border-color 0.1s ease-out, opacity 0.1s ease-out;
}

.safe-zone.danger {
  border-color: #ff7a7a;
  opacity: 0.45;
  transform: scale(0.98);
}

/* Center dot */
.center-dot {
  width: 3px;
  height: 3px;
  background: #ffffff15;
  border-radius: 50%;
  position: absolute;
  left: calc(50% - 1.5px);
  top: calc(50% - 1.5px);
  pointer-events: none;
}

/* Ball */
.ball {
  width: 24px;
  height: 24px;
  background: #7cffb4;
  border-radius: 50%;
  position: absolute;
  left: calc(50% - 12px);
  top: calc(50% - 12px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: box-shadow 0.1s ease-out;
}

.ball.danger {
  box-shadow: 0 2px 8px rgba(255,80,80,0.45);
}