:root {
  --bg: #05060a;
  --text: #eae7df;
  --muted: #8b9088;
  --amber: #ffb020;
  --sans: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}

#app { height: 100vh; display: flex; }

/* Сцена теперь во весь экран — фон 3D-сцены (купол + пол) это и есть фон
   страницы, без рамки-"карточки" вокруг. */
#stage {
  position: relative;
  flex: 1;
  display: flex;
}

#scene-container {
  width: 100vw;
  height: 100vh;
  cursor: grab;
  touch-action: none; /* иначе iOS/Android перехватывают drag и pinch под нативный скролл/зум страницы */
}
#scene-container.dragging { cursor: grabbing; }

/* ==========================================================
   Вступление (интро) — полноэкранный оверлей поверх 3D-сцены.
   Скрывается сразу навсегда после первого клика (флаг в cookie),
   при повторных заходах не рендерится вовсе (display:none выставляется из JS).
========================================================== */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.1s ease;
}
#intro-overlay.intro-hidden {
  opacity: 0;
  pointer-events: none;
}
#intro-overlay[hidden] { display: none; }

#intro-click-text {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--text);
  opacity: 0.75;
  animation: intro-pulse 2.2s ease-in-out infinite;
  transition: opacity 0.5s ease;
  user-select: none;
}
#intro-overlay.intro-started #intro-click-text {
  opacity: 0;
  animation: none;
  pointer-events: none;
}
@keyframes intro-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

#intro-ripple-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.intro-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(234, 231, 223, 0.55);
  transform: translate(-50%, -50%);
  animation: intro-ripple-expand 1.4s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
@keyframes intro-ripple-expand {
  from { width: 0; height: 0; opacity: 0.9; }
  to { width: 140vmax; height: 140vmax; opacity: 0; }
}

#intro-lyrics {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(86vw, 640px);
  text-align: center;
  pointer-events: none;
}
#intro-lyric-line {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 4vw, 30px);
  color: var(--text);
  min-height: 1.4em;
  white-space: pre-wrap;
}

#intro-lyric-translation {
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(12px, 2.2vw, 15px);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.6s ease;
}
#intro-lyric-translation.intro-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .intro-ripple, #intro-click-text { animation: none !important; }
}