/* ==========================================================================
   Единое ночное небо. Никаких карточек и рамок: текст лежит прямо на небе.
   ========================================================================== */

:root {
  --night-0: #04050d;
  --text: #eee8f5;
  --muted: #a9a6c4;
  --gold: #f6d48f;
  --gold-hot: #fff1cf;
  --gold-glow: rgba(255, 196, 110, 0.55);
  --gold-soft: rgba(255, 205, 140, 0.25);
  --rose-glow: rgba(255, 130, 175, 0.28);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* Один непрерывный градиент на всю страницу: ночь -> тёмно-синий -> фиолетовый */
html {
  min-height: 100%;
  background-color: var(--night-0);
  background-image: linear-gradient(
    180deg,
    #04050d 0%,
    #060a1c 16%,
    #0a1236 36%,
    #150f48 58%,
    #22125a 78%,
    #12093a 92%,
    #08051c 100%
  );
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--sans);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Звёздное поле (рисуется в js/starfield.js) */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* ---------- Общие элементы ---------- */

.sec { position: relative; width: 100%; text-align: center; }

.eyebrow {
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  text-indent: 0.42em; /* компенсирует хвост letter-spacing, чтобы текст был по центру */
}

.sec-title {
  text-wrap: balance;
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 10vw, 60px);
  line-height: 1.08;
  color: #fff4dc;
  text-shadow: 0 0 28px var(--gold-soft), 0 0 70px var(--rose-glow);
}

/* Мерцающая звезда: точка со свечением и тонким крестом */
.spark {
  --d: 10px;
  --f: 34px;
  position: relative;
  display: block;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--gold-hot);
  box-shadow: 0 0 calc(var(--d) * 1) calc(var(--d) * 0.2) var(--gold-glow),
              0 0 calc(var(--d) * 3.2) calc(var(--d) * 0.6) rgba(255, 190, 100, 0.2);
}
.spark::before,
.spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.spark::before {
  width: var(--f);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, 0.9), transparent);
}
.spark::after {
  width: 1px;
  height: var(--f);
  background: linear-gradient(180deg, transparent, rgba(255, 236, 190, 0.9), transparent);
}

/* ---------- Замок ---------- */

.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.screen.is-active { display: flex; }
.screen.is-visible { opacity: 1; }
#lock.is-leaving { opacity: 0; transform: scale(0.98); }

.lock {
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.lock.shake { animation: shake 0.45s ease; }

.lock-spark { --d: 12px; --f: 56px; margin: 0 auto 34px; animation: twinkle 3.4s ease-in-out infinite; }

.lock-title {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 9.5vw, 48px);
  line-height: 1.12;
  margin-bottom: 44px;
  color: #fff4dc;
  text-shadow: 0 0 30px var(--gold-soft), 0 0 80px var(--rose-glow);
}

.lock-input {
  width: 100%;
  padding: 14px 4px;
  font: 300 22px var(--sans);
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246, 212, 143, 0.35);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.lock-input::placeholder { color: rgba(169, 166, 196, 0.5); letter-spacing: 0.12em; }
.lock-input:focus {
  border-bottom-color: var(--gold);
  box-shadow: 0 12px 22px -16px var(--gold-glow);
}

.lock-btn {
  margin-top: 30px;
  padding: 14px 20px;
  font: 400 13px var(--sans);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 0;
  cursor: pointer;
  text-shadow: 0 0 14px var(--gold-glow);
  transition: text-shadow 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.lock-btn:hover, .lock-btn:focus-visible { color: var(--gold-hot); text-shadow: 0 0 22px var(--gold-glow), 0 0 40px var(--gold-glow); outline: none; }

.lock-error { min-height: 22px; margin-top: 12px; font-size: 14px; color: #ffb8a0; text-shadow: 0 0 12px rgba(255, 140, 110, 0.4); }

/* ---------- Основной контент ---------- */

#main {
  position: relative;
  z-index: 1;
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#main.is-active { display: block; }
#main.is-visible { opacity: 1; }

/* ---------- Счётчик ---------- */

.sec-counter {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 110px;
}

.counter-days { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }

.counter-num {
  font-family: var(--serif);
  font-weight: 300;
  font-variant-numeric: lining-nums tabular-nums;
  color: #fff4d8;
}

.counter-days .counter-num {
  font-size: clamp(96px, 33vw, 230px);
  line-height: 0.95;
  white-space: nowrap;
  text-shadow: 0 0 26px var(--gold-glow), 0 0 76px rgba(255, 170, 90, 0.32), 0 0 130px var(--rose-glow);
  animation: glow 5.5s ease-in-out infinite;
}
.counter-days .counter-label {
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 6.5vw, 36px);
  color: #f3e6c8;
  text-shadow: 0 0 18px var(--gold-soft);
}

.counter-time {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 6vw, 44px);
  margin-top: 40px;
}
.unit { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.unit .counter-num {
  font-size: clamp(38px, 11vw, 60px);
  line-height: 1;
  text-shadow: 0 0 20px var(--gold-soft), 0 0 50px rgba(255, 170, 90, 0.16);
}
.unit .counter-label {
  margin-top: 8px;
  font: 400 11px var(--sans);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.since { margin-top: 44px; font: 300 14px var(--sans); letter-spacing: 0.12em; color: var(--muted); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 400 11px var(--sans);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: rgba(169, 166, 196, 0.7);
}
.scroll-hint i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(246, 212, 143, 0.5), transparent);
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-hot);
  box-shadow: 0 0 8px 2px var(--gold-glow);
  animation: drop 2.6s ease-in-out infinite;
}

/* ---------- Тропа-созвездие (факты) ---------- */

.sec-facts {
  max-width: 640px;
  margin: 0 auto;
  padding: 14vh 24px 12vh;
}

.trail {
  --fill: 0px;
  position: relative;
  margin-top: 72px;
  list-style: none;
  text-align: left;
}
/* тусклая линия-тропа */
.trail::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(246, 212, 143, 0.06), rgba(246, 212, 143, 0.2) 6%, rgba(246, 212, 143, 0.2) 94%, rgba(246, 212, 143, 0.06));
}
/* светящаяся часть, доходит до последней загоревшейся звезды */
.trail::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 1px;
  height: var(--fill);
  background: linear-gradient(180deg, rgba(246, 212, 143, 0.25), var(--gold));
  box-shadow: 0 0 8px 1px var(--gold-glow);
  transition: height 1.3s ease;
}

.trail-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 18px;
  padding-bottom: 56px;
}
.trail-item:last-child { padding-bottom: 0; }

.trail-star {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.trail-star .spark {
  --d: calc(8px * var(--k, 1));
  --f: calc(30px * var(--k, 1));
  opacity: 0.3;
  transform: scale(0.55);
  filter: saturate(0.4);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}
.trail-item.is-lit .trail-star .spark {
  opacity: 1;
  transform: scale(1);
  filter: none;
  animation: ignite 1.6s ease-out;
}

.trail-body {
  padding-top: 2px;
  min-width: 0;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition: opacity 1.2s ease 0.2s, filter 1.2s ease 0.2s, transform 1.2s ease 0.2s;
}
.trail-item.is-lit .trail-body { opacity: 1; filter: none; transform: none; }

.trail-heading {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 7.4vw, 36px);
  line-height: 1.15;
  color: #fff2d2;
  text-shadow: 0 0 20px var(--gold-soft), 0 0 50px rgba(255, 130, 175, 0.14);
}
.trail-heading.is-value { font-weight: 300; font-size: clamp(32px, 9vw, 46px); color: var(--gold); text-shadow: 0 0 22px var(--gold-glow), 0 0 60px rgba(255, 130, 175, 0.14); }
.trail-icon { display: inline-block; margin-right: 0.35em; font-size: 0.78em; opacity: 0.85; filter: saturate(0.7); }
.trail-text { margin-top: 8px; font-size: 16px; line-height: 1.65; color: #b9b6d3; text-wrap: pretty; }

/* ---------- Просмотр фото на весь экран ---------- */

html.lb-open, html.lb-open body { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(2, 3, 9, 0.95); opacity: 0; }
.lightbox-img {
  position: relative;
  display: block;
  max-width: none;
  max-height: none;
  border-radius: 4px;
  will-change: transform, opacity;
  -webkit-user-drag: none;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

/* ---------- Лента фото ---------- */

.sec-photos { padding: 10vh 0 8vh; }
.sec-photos .eyebrow, .sec-photos .sec-title { padding: 0 24px; }

.ribbon { position: relative; margin-top: 12px; }

.ribbon-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 44px 7vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.ribbon-track::-webkit-scrollbar { display: none; }

.photo {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  transform: rotate(var(--tilt, 0deg));
  will-change: transform, opacity, filter;
}
.photo-inner { animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }

.photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: 70vh;
  border-radius: 6px;
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
  box-shadow: 0 0 26px rgba(255, 205, 140, 0.3), 0 0 70px rgba(255, 130, 175, 0.14);
}
.photo figcaption {
  display: block;
  width: 0;
  min-width: 100%;
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: #f1e6cc;
  text-shadow: 0 0 16px var(--gold-soft);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.photo.is-active figcaption { opacity: 1; }
.photo:not(.is-active) img { cursor: pointer; }

.ribbon-ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 0 12px;
}

.arrow {
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s;
}
.arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: solid var(--gold);
  border-width: 0 0 1px 1px;
  filter: drop-shadow(0 0 5px var(--gold-glow));
}
.arrow-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.arrow-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.arrow:disabled { opacity: 0.2; cursor: default; }

.dots { display: flex; flex-wrap: wrap; justify-content: center; }
.dot {
  width: 20px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.4s;
}
.dot::before {
  content: "";
  width: 9px;
  height: 9px;
  background: rgba(246, 212, 143, 0.35);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transition: transform 0.4s, background 0.4s;
}
.dot.is-active { filter: drop-shadow(0 0 5px var(--gold-glow)); }
.dot.is-active::before { background: var(--gold-hot); transform: scale(1.7); }

/* ---------- Письмо ---------- */

.sec-letter { overflow-anchor: none; }

.letter-stage {
  overflow: hidden; /* свечение и вспышка звезды раздуваются шире экрана: не даём им расширить страницу */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-star {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 56px 56px 40px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.letter-spark {
  --d: 22px;
  --f: 130px;
  background: #fffaf0;
  animation: starPulse 2.8s ease-in-out infinite;
}
.letter-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 210, 140, 0.42), rgba(255, 190, 120, 0.14) 45%, transparent 100%);
  pointer-events: none;
  animation: glowPulse 2.8s ease-in-out infinite;
}
.letter-hint {
  font: 300 13px var(--sans);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.5s;
}
.letter-star.is-lit { cursor: default; }
.letter-star.is-lit .letter-spark { animation: flare 0.9s ease-out forwards; }
.letter-star.is-lit .letter-hint { opacity: 0; }
.letter-star.is-lit .letter-glow { animation: none; opacity: 0; transition: opacity 0.6s; }

.letter-body {
  max-width: 560px;
  margin: 0 auto;
  padding: 16vh 28px 22vh;
  text-align: center;
}

.letter-line {
  text-wrap: balance;
  margin: 0 0 1.05em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 6.8vw, 32px);
  line-height: 1.7;
  color: #f8edd6;
  text-shadow: 0 0 18px rgba(255, 190, 110, 0.55), 0 0 44px rgba(255, 150, 150, 0.18);
  opacity: 0;
  filter: blur(12px);
  transform: translateY(24px);
  transition: opacity 1.6s ease, filter 1.6s ease, transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.letter-line.is-in { opacity: 1; filter: blur(0); transform: none; }
.letter-line.is-big {
  font-weight: 300;
  font-size: clamp(44px, 12.5vw, 68px);
  line-height: 1.15;
  margin-bottom: 0.7em;
  color: #fff4d8;
}

/* затемнение фона, пока читается письмо */
.letter-dim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(2, 3, 12, 0.3), rgba(2, 3, 12, 0.72));
  opacity: 0;
  transition: opacity 2.4s ease;
}
.letter-dim.is-on { opacity: 1; }

/* волна света от звезды */
.letter-wave {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.letter-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 240, 205, 0.85), transparent 60%);
  opacity: 0;
}
.letter-wave i {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--cy, 50%);
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.02);
  background: radial-gradient(circle closest-side, transparent 0, transparent 68%, rgba(255, 226, 170, 0) 70%, rgba(255, 226, 170, 0.55) 80%, rgba(255, 190, 120, 0.18) 88%, transparent 96%);
}
.letter-wave.go::before { animation: flash 1.3s ease-out forwards; }
.letter-wave.go i { animation: wave 1.9s cubic-bezier(0.15, 0.6, 0.25, 1) forwards; }

/* ---------- Кнопка музыки ---------- */

/* Область нажатия 44px, но сама звезда маленькая и прижата к краю (левее неё текст не начинается) */
.music-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 0;
  z-index: 20;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center end;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--gold-glow));
  transition: opacity 1s ease, filter 0.6s ease;
  -webkit-tap-highlight-color: transparent;
}
.music-btn.is-visible { opacity: 0.6; }
.music-btn.is-visible:hover, .music-btn.is-visible:focus-visible { opacity: 0.95; outline: none; }
.music-btn i {
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 5px; /* центр звезды в 13px от края: она в поле, где текста нет */
  background: var(--gold-hot);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transition: background 0.6s ease, opacity 0.6s ease;
}
.music-btn.is-playing i { animation: musicPulse 3.2s ease-in-out infinite; }
.music-btn.is-paused { filter: none; }
.music-btn.is-paused.is-visible { opacity: 0.3; }
.music-btn.is-paused i { background: #9b98b8; }

@keyframes musicPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ---------- Финал: звёздное небо ---------- */

.section-sky {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sky-phrase {
  position: absolute;
  left: 0;
  right: 0;
  top: 60%;
  padding: 0 16px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 9.5vw, 50px);
  letter-spacing: 0.04em;
  color: #ffe6bd;
  text-shadow: 0 0 22px rgba(255, 190, 110, 0.6), 0 0 60px rgba(255, 130, 175, 0.3);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(8px);
  transition: opacity 3s ease, filter 3s ease, transform 3s ease;
  pointer-events: none;
}
.sky-phrase.is-shown { opacity: 1; filter: none; transform: none; }

/* ---------- Анимации ---------- */

@keyframes twinkle {
  0%, 100% { opacity: 0.75; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes flare {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(7); opacity: 1; }
  100% { transform: scale(12); opacity: 0; }
}
@keyframes flash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes wave {
  0% { opacity: 0; transform: scale(0.02); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes ignite {
  0% { transform: scale(0.55); filter: brightness(1); }
  35% { transform: scale(1.9); filter: brightness(1.6); }
  100% { transform: scale(1); filter: none; }
}
@keyframes glow {
  0%, 100% {
    opacity: 0.93;
    text-shadow: 0 0 20px var(--gold-glow), 0 0 60px rgba(255, 170, 90, 0.22), 0 0 110px rgba(255, 130, 175, 0.18);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 34px var(--gold-glow), 0 0 96px rgba(255, 170, 90, 0.42), 0 0 160px rgba(255, 130, 175, 0.3);
  }
}
@keyframes drop {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(42px); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(6px); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@media (max-width: 380px) {
  .counter-time { gap: 14px; }
  .unit { min-width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .music-btn i, .lock-spark, .letter-spark, .letter-glow, .counter-days .counter-num, .photo-inner, .scroll-hint i::after { animation: none; }
  .trail-body, .trail-star .spark, .letter-line, .sky-phrase { transition-duration: 0.2s; }
  .trail-item.is-lit .trail-star .spark { animation: none; }
  .trail::after { transition: none; }
}
