/* ==========================================================================
   shii · haa — Intro Overlay
   Fullscreen breath animation with shii/haa labels
   Plays before theme chooser on first visit and page load
   ========================================================================== */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 15vh;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.intro-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay.hidden {
  display: none;
}

/* Canvas fills entire overlay */
.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Breath label container — centered on the animation */
.intro-breath-label {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  user-select: none;
  /* Dark halo behind text for readability against bright particles */
  filter: drop-shadow(0 0 80px rgba(0, 0, 0, 0.8));
}

.intro-breath-word {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: 0.22em;
  /* Starts transparent — JS controls opacity/color directly */
  color: rgba(250, 245, 234, 0);
  opacity: 0;
  will-change: color, transform, opacity;
  text-shadow: 0 0 60px rgba(212, 160, 60, 0.5), 0 0 120px rgba(212, 160, 60, 0.2);
  min-height: 1.2em;
}

/* Subtle hint at the bottom */
.intro-skip-hint {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom, 0px), 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(250, 245, 234, 0.25);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 12px 20px;
}

.intro-skip-hint:hover {
  color: rgba(250, 245, 234, 0.5);
}

/* Bottom gradient fade for the skip hint area */
.intro-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 1;
  pointer-events: none;
}
