* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0e0e10;
  color: #f5f0e8;
}

.hidden { display: none !important; }

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #2b2320 0%, #0e0e10 100%);
}

.overlay-content {
  text-align: center;
  padding: 1.5rem;
}

.overlay-content h1 {
  font-weight: 300;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(245, 240, 232, 0.2);
  border-top-color: #f5f0e8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.unmute-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #f5f0e8;
  color: #0e0e10;
  font-size: 1rem;
  cursor: pointer;
}

.countdown {
  margin-top: 1rem;
  font-size: 3rem;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  color: #f5f0e8;
}

.enter-btn {
  margin-top: 1.5rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: #f5f0e8;
  color: #0e0e10;
  font-size: 1.05rem;
  cursor: pointer;
}

.retry-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: #f5f0e8;
  color: #0e0e10;
  font-size: 1.1rem;
  cursor: pointer;
}

.debug-status {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #0f0;
  font-size: 0.65rem;
  font-family: monospace;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  z-index: 10;
}

.admin-panel {
  max-width: 420px;
  margin: 10vh auto;
  padding: 2rem;
  background: #1a1a1d;
  border-radius: 12px;
}

.admin-panel form, .admin-panel #control-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.admin-panel input {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #0e0e10;
  color: #fff;
}

.admin-panel button {
  padding: 0.7rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.admin-panel button.primary { background: #4caf50; color: #fff; }
.admin-panel button.secondary { background: #555; color: #fff; }
#status { font-size: 0.9rem; opacity: 0.8; }
