html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  font-family: 'Press Start 2P', monospace;
  color: #fff;
}

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#overlay {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 40px;
  text-align: center;
  pointer-events: none;
}

#title {
  margin: 0 0 20px 0;
  font-size: 24px;
  letter-spacing: 2px;
}

/* Countdown Timer Layout */
#countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  width: 80%;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  border: 2px solid #fff;
}

.time-seg {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}

.time-seg .value {
  font-size: clamp(28px, 6vw, 32px);
  margin: 0;
}

.time-seg .label {
  font-size: clamp(12px, 1.6vw, 18px);
}

/* Debug slider */
#slider-wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(10px, 2.5vw, 18px);
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  display: none; /* Hidden by default */
}

.debug-panel {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  font-family: monospace;
  font-size: 11px;
  max-width: 200px;
  display: none; /* Hidden by default */
}

.debug-panel h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 12px;
  text-align: center;
}

#debug-slider {
  width: 40vw;
}

/* Responsive breakpoints */
@media (max-width: 760px) {
  #countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  #countdown {
    grid-template-columns: 1fr;
  }
}
