/* Zero-lumen display styles for Project Scotopic */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background-color: #000000;
  color: #4a0000;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

#status-dot {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: calc(14px + env(safe-area-inset-left, 0px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  background-color: rgba(22, 0, 0, 0.85);
  border: 1px solid #3d0000;
  box-shadow: 0 0 10px rgba(60, 0, 0, 0.4);
  pointer-events: none;
  z-index: 10;
  transition: all 0.3s ease;
}

#status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #550000;
  box-shadow: 0 0 6px rgba(100, 0, 0, 0.7);
  flex-shrink: 0;
  display: inline-block;
  transition: all 0.3s ease;
}

#status-indicator-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #770000;
  text-transform: uppercase;
  font-family: inherit;
  transition: color 0.3s ease;
}

#scotopic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: block;
  z-index: 1;
}

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: env(safe-area-inset-top, 24px);
  padding-bottom: env(safe-area-inset-bottom, 24px);
  padding-left: env(safe-area-inset-left, 24px);
  padding-right: env(safe-area-inset-right, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  z-index: 100;
  cursor: pointer;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

#welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.instructions-card {
  max-width: 480px;
  padding: 24px;
  text-align: center;
}

.title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #4a0000;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.calibration-step {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.step-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #600000;
  border: 1px solid #2b0000;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.instruction {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a0000;
  margin-bottom: 14px;
}

.instruction.highlight {
  font-size: 0.98rem;
  font-weight: 600;
  color: #880000;
}

.instruction.hint {
  font-size: 0.8rem;
  color: #380000;
  margin-top: 20px;
}

.btn-instant-stargazer {
  display: inline-block;
  background: #1a0000;
  border: 1px solid #770000;
  color: #ff4444;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-instant-stargazer:active {
  background: #330000;
  border-color: #aa0000;
  color: #ff7777;
}
