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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Courier New', monospace;
  cursor: crosshair;
}

#scene {
  position: fixed;
  inset: 0;
  display: block;
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  color: #e8e0c8;
}

/* masked: the click count is an easter egg, not shown to the player */
#counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(0,0,0,0.9);
  transition: transform 0.08s ease-out;
  display: none;
}

#counter.pulse {
  transform: translateX(-50%) scale(1.18);
}

#counterLabel {
  display: block;
  font-size: 12px;
  opacity: 0.6;
}

#counterValue {
  display: block;
  font-size: 26px;
  font-weight: bold;
}

#instructions {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.75;
  text-shadow: 0 0 10px rgba(0,0,0,0.9);
  transition: opacity 0.6s ease;
  text-align: center;
  width: 90%;
}

#warning {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffdd55;
  background: rgba(0,0,0,0.55);
  padding: 6px 10px;
  border: 1px solid rgba(255,221,85,0.5);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#warning.show {
  opacity: 1;
}

#startOverlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #241a10 0%, #050403 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: all;
  z-index: 20;
  text-align: center;
  padding: 20px;
  transition: opacity 0.8s ease;
}

#startOverlay h1 {
  font-size: 32px;
  letter-spacing: 4px;
  color: #e8e0c8;
  text-shadow: 0 0 20px rgba(255, 160, 40, 0.4);
}

#startOverlay p {
  color: #b8ac8e;
  font-size: 14px;
  max-width: 420px;
  line-height: 1.6;
}

#startBtn {
  margin-top: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 2px;
  background: transparent;
  color: #e8e0c8;
  border: 1px solid #e8e0c8;
  cursor: pointer;
  transition: all 0.25s ease;
}

#startBtn:hover {
  background: #e8e0c8;
  color: #14100a;
}

#startOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}
