/* =========================================================
   ПЕРСОНАЛЬНАЯ ОТКРЫТКА: ДЕНЬ РОЖДЕНИЯ МАМЫ И ЖЕНЫ
   Story Deck Architecture, Large Expandable Photos & Silk Touch
   ========================================================= */

:root {
  --bg-deep: #0e030c;
  --wine-card: rgba(30, 10, 24, 0.82);
  --wine-border: rgba(255, 192, 203, 0.22);
  --wine-glow: rgba(244, 166, 177, 0.18);
  --accent-rose: #f4a6b1;
  --accent-gold-soft: #f7d6a5;
  --text-main: #fffaf5;
  --text-dim: #ded0c8;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Marck Script', cursive;
  --font-hand: 'Caveat', cursive;
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep) !important;
  color: var(--text-main);
  font-family: var(--font-sans);
  position: relative;
  line-height: 1.55;
}

/* ФИКСИРОВАННЫЙ ТЕМНЫЙ ФОН */
.fixed-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 12%, #2e0d25 0%, #150512 55%, #0e030c 100%);
  z-index: -2;
  pointer-events: none;
}

/* ХОЛСТЫ */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#fx-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* СФЕРЫ СВЕТА */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
  animation: glowFloat 16s infinite alternate ease-in-out;
}

.orb-top {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #851e51 0%, rgba(133, 30, 81, 0) 70%);
  top: -80px;
  left: -80px;
}

.orb-mid {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #b04473 0%, rgba(176, 68, 115, 0) 70%);
  top: 48%;
  right: -90px;
  animation-duration: 20s;
}

.orb-bot {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #5b1a3d 0%, rgba(91, 26, 61, 0) 70%);
  bottom: -90px;
  left: 15%;
  animation-duration: 24s;
}

@keyframes glowFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 45px) scale(1.15); }
  100% { transform: translate(-25px, 20px) scale(0.95); }
}

/* ПЛАВАЮЩИЙ МУЗЫКАЛЬНЫЙ ВИДЖЕТ */
.music-pill {
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 150;
  background: rgba(30, 10, 24, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 15px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: all 0.4s var(--ease-silk);
}

.music-pill.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px) scale(0.9);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-bars .bar {
  width: 2.5px;
  background: var(--accent-rose);
  border-radius: 2px;
  transition: height 0.25s ease;
}

.music-pill.playing .b1 { height: 14px; animation: eqPill 0.7s infinite alternate ease-in-out; }
.music-pill.playing .b2 { height: 7px; animation: eqPill 0.9s infinite alternate ease-in-out 0.15s; }
.music-pill.playing .b3 { height: 13px; animation: eqPill 0.8s infinite alternate ease-in-out 0.3s; }
.music-pill.playing .b4 { height: 9px; animation: eqPill 0.65s infinite alternate ease-in-out 0.1s; }

.music-pill.muted .bar {
  height: 2.5px !important;
  animation: none !important;
  opacity: 0.35;
}

.music-pill-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

@keyframes eqPill {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* =========================================================
   ШЕЛКОВЫЕ КНОПКИ
   ========================================================= */

.silk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(226, 88, 117, 0.82) 0%, rgba(160, 36, 78, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 205, 220, 0.42);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(185, 40, 88, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.35s var(--ease-silk);
  position: relative;
  overflow: hidden;
}

.silk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(225, 50, 105, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.silk-btn:active {
  transform: translateY(2px) scale(0.97);
}

.salute-btn {
  background: linear-gradient(135deg, rgba(88, 102, 215, 0.85) 0%, rgba(46, 58, 155, 0.95) 100%);
  border-color: rgba(175, 195, 255, 0.45);
  box-shadow: 0 12px 32px rgba(55, 68, 195, 0.4);
}

.heart-blast-btn {
  background: linear-gradient(135deg, rgba(220, 45, 80, 0.88) 0%, rgba(145, 20, 52, 0.96) 100%);
  border-color: rgba(255, 185, 200, 0.48);
  box-shadow: 0 14px 38px rgba(220, 45, 80, 0.48);
}

/* =========================================================
   ЭКРАН 1: ВЕЛКАМ КАРТОЧКА
   ========================================================= */

.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  z-index: 100;
  transition: opacity 0.8s var(--ease-silk), transform 0.8s var(--ease-silk);
}

.welcome-screen.fade-out {
  opacity: 0;
  transform: scale(0.92) translateY(-25px);
  pointer-events: none;
}

.hero-float-wrapper {
  width: 100%;
  max-width: 420px;
  animation: heroWave 6.5s ease-in-out infinite alternate;
}

@keyframes heroWave {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
  100% { transform: translateY(0px) rotate(-0.4deg); }
}

.hero-card {
  width: 100%;
  background: var(--wine-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--wine-border);
  border-radius: 30px;
  padding: 38px 22px 32px;
  text-align: center;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 45px var(--wine-glow);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 10px;
  font-weight: 500;
}

.age-glass-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 205, 218, 0.26);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 30px;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: #fffaf5;
  margin-bottom: 14px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
}

.btn-wrap {
  margin-bottom: 18px;
}

.audio-tip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   СТОРИ-ДЕК: СТРОГО 1 БЛОК НА ЭКРАНЕ, ШЕЛКОВЫЙ СВАЙП
   ========================================================= */

.story-deck {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 10;
}

.story-deck.hidden {
  display: none;
}

/* ВЕРХНЯЯ ПОЛОСА ИНДИКАТОРОВ (КАК В ИСТОРИЯХ) */
.story-progress-bar {
  position: fixed;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 140;
}

.progress-pill {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.progress-pill.active {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.progress-pill.passed {
  background: rgba(244, 166, 177, 0.6);
}

/* СЛАЙДЫ: ГОРИЗОНТАЛЬНЫЙ СВАЙП И ПЕРЕХОД */
.story-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 12px 18px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

.story-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  z-index: 10;
}

.story-slide.prev {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100%, 0, 0);
  z-index: 5;
}

.story-slide.next {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  z-index: 5;
}

/* КАРТОЧКА СТОРИС: ПЛАВНЫЙ ВЕРТИКАЛЬНЫЙ СКРОЛЛ ВНУТРИ */
.story-card {
  position: relative;
  background: var(--wine-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--wine-border);
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55), 0 0 35px var(--wine-glow);
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.story-card::-webkit-scrollbar {
  display: none;
}

.author-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--accent-rose);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 20px;
}

.tag-pink {
  color: #ffb3c1;
  border-color: rgba(255, 179, 193, 0.32);
}

.tag-blue {
  color: #90e0ef;
  border-color: rgba(144, 224, 239, 0.32);
}

/* СТРОКА НАВИГАЦИИ С ДВУМЯ КНОПКАМИ ВНИЗУ КАЖДОГО СЛАЙДА */
.slide-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-arrow-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: all 0.25s ease;
}

.nav-arrow-btn.next-btn {
  background: linear-gradient(135deg, rgba(226, 88, 117, 0.78) 0%, rgba(160, 36, 78, 0.88) 100%);
  border-color: rgba(255, 190, 210, 0.38);
  box-shadow: 0 4px 14px rgba(185, 40, 88, 0.35);
}

.nav-arrow-btn.prev-btn {
  color: rgba(255, 255, 255, 0.8);
}

.nav-arrow-btn:active {
  transform: scale(0.96);
}

/* ОДИНОЧНАЯ КНОПКА ПЕРЕХОДА */
.next-slide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 210, 0.38);
  background: linear-gradient(135deg, rgba(226, 88, 117, 0.78) 0%, rgba(160, 36, 78, 0.88) 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(185, 40, 88, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.next-slide-btn:active {
  transform: scale(0.97);
}

.back-to-start {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

/* ПЛАВАЮЩИЕ БОКОВЫЕ СТРЕЛКИ ДЛЯ СВАЙПА/КЛИКА ВПРАВО И ВЛЕВО */
.side-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(26, 6, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.side-prev {
  left: 8px;
}

.side-next {
  right: 8px;
}

.side-nav-arrow:hover {
  background: rgba(226, 88, 117, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.side-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.side-nav-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.photo-caption-tag {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-rose);
  margin-top: 6px;
  text-transform: uppercase;
}

/* =========================================================
   КРУПНЫЕ ФОТОГРАФИИ И ЛАЙТБОКС (ПРОСМОТР НА ВЕСЬ ЭКРАН)
   ========================================================= */

.big-photo-wrap {
  width: 100%;
  margin: 12px 0 14px;
  border-radius: 18px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-silk);
}

.big-photo-wrap:hover {
  border-color: var(--accent-rose);
  transform: translateY(-2px);
}

.big-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
}

.big-photo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  transition: transform 0.35s ease;
  z-index: 1;
}

.big-photo-wrap:hover .big-photo-img {
  transform: scale(1.02);
}

.photo-placeholder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(18, 4, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.svg-cam-big {
  color: var(--accent-rose);
  margin-bottom: 8px;
  opacity: 0.85;
}

.overlay-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.expand-badge-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 6, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.expand-badge-btn:hover {
  transform: scale(1.1);
}

/* МОДАЛЬНЫЙ ЛАЙТБОКС ФОТО НА ВЕСЬ ЭКРАН */
.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.photo-lightbox.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 2, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox-container {
  position: relative;
  z-index: 2010;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomLightbox 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomLightbox {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(244, 166, 177, 0.2);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2050;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================================================
   ПРОСТЫЕ ЧЕЛОВЕЧЕСКИЕ ТЕКСТЫ И ОФОРМЛЕНИЕ
   ========================================================= */

.intro-card {
  text-align: center;
  justify-content: center;
  padding: 34px 20px 24px;
}

.sparkle-icon-box {
  color: var(--accent-rose);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.serif-title-lg {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  color: #fffaf5;
  margin-bottom: 12px;
}

.glow-divider {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
  margin: 0 auto 14px;
}

.story-text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-header-center {
  text-align: center;
  margin-bottom: 12px;
}

.fav-emoji {
  font-size: 26px;
  display: inline-block;
  margin-bottom: 3px;
}

.serif-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: #fffaf5;
  line-height: 1.2;
}

.script-subtitle {
  font-family: var(--font-script);
  font-size: 19px;
  color: var(--accent-rose);
  margin-top: 2px;
}

.simple-text-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2.5px solid var(--accent-rose);
  border-radius: 4px 16px 16px 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.daughter-box {
  border-left-color: #f7a8b8;
}

.human-p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 6px;
}

.human-sig {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-rose);
  margin-top: 6px;
}

.sig-pink {
  color: #f7a8b8;
}

/* БЛОК СЫНОВЕЙ */
.boys-big-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: #fffaf5;
}

.boys-ages {
  font-family: var(--font-hand);
  font-size: 19px;
  color: #ffd166;
  margin-top: 2px;
}

.kid-msg {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.vanya-msg {
  border: 1px solid rgba(100, 160, 255, 0.25);
}

.nikita-msg {
  border: 1px solid rgba(255, 180, 200, 0.25);
}

.corner-teddy {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
}

.kid-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 5px;
}

.vanya-badge {
  background: #3a86ff;
  color: #fff;
}

.nikita-badge {
  background: #ff5d8f;
  color: #fff;
}

.simple-kid-text {
  font-size: 13px;
  color: #fffef8;
  line-height: 1.45;
}

.salute-btn-wrap {
  margin: 6px 0 8px;
}

.salute-btn-wrap .silk-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 13.5px;
}

/* ФИНАЛ */
.final-family-card {
  text-align: center;
}

.crown-icon-wrap {
  color: var(--accent-gold-soft);
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}

.final-wishes-text {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 14px;
}

.family-roster-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.roster-lead {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-rose);
  margin-bottom: 6px;
  font-weight: 600;
}

.roster-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.chip-person {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fffaf5;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.family-gallery-unit {
  margin-bottom: 14px;
}

.gallery-triplet {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.gallery-item-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 3px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item-cell:hover {
  transform: translateY(-2px);
  border-color: var(--accent-rose);
}

.cell-lens {
  width: 100%;
  aspect-ratio: 1/1;
  background: rgba(0, 0, 0, 0.26);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4px;
  text-align: center;
}

.svg-cam-mini {
  color: var(--accent-rose);
  margin-bottom: 2px;
  opacity: 0.7;
}

.lens-label {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.15;
}

.uploaded-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 9px;
}

.action-btn-center {
  margin-bottom: 10px;
}

.action-btn-center .silk-btn {
  width: 100%;
  padding: 13px 22px;
  font-size: 14px;
}

@keyframes bounceAir {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ИНТЕРАКТИВНЫЙ ПРАЗДНИЧНЫЙ ТОРТ */
.interactive-cake-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 205, 220, 0.22);
  border-radius: 24px;
  padding: 16px 14px 18px;
  margin: 12px 0 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(226, 88, 117, 0.15);
}

.cake-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.cake-svg {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  max-width: 100%;
  height: auto;
}

.candle-flame-group {
  transform-origin: 50% 100%;
  animation: svgFlicker 0.7s infinite alternate ease-in-out;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.flame-1 { animation-delay: 0.1s; }
.flame-2 { animation-delay: 0.25s; }
.flame-3 { animation-delay: 0.05s; }

@keyframes svgFlicker {
  0% { transform: scale(0.94) rotate(-2deg); }
  100% { transform: scale(1.08) rotate(2deg); }
}

.candle-flame-group.blown-out {
  opacity: 0;
  transform: scale(0.2) translateY(-14px);
  pointer-events: none;
}

.cake-wish-msg {
  font-size: 13px;
  color: #ffd166;
  line-height: 1.45;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  animation: popIn 0.35s ease;
}

.cake-wish-msg.hidden {
  display: none;
}

.blow-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 13.5px;
}
