/* ============================================
   🎨 ИМПОРТ ШРИФТОВ
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ============================================
   🔧 ПЕРЕМЕННЫЕ + СБРОС
   ============================================ */
:root {
  --pink: #ff6fa5;
  --pink-soft: #ffb3d1;
  --pink-dark: #e05585;
  --blue: #4facfe;
  --blue-soft: #a1d4ff;
  --purple: #a18cd1;
  --dark: #2a2a4a;
  --text-muted: #9b9bb0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  overflow-x: hidden;
  padding: 30px 15px;
  position: relative;
  color: var(--dark);
}

h1, h2, .reasons-title, .gallery-title, .cloud p, .music-title, .sorry-title {
  font-family: 'Comfortaa', 'Nunito', sans-serif;
  letter-spacing: -0.3px;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   🌸 ФОНЫ СТРАНИЦ
   ============================================ */
.page-index,
.page-no {
  background: linear-gradient(135deg, #ffe0ec 0%, #ffc4dd 25%, #fec8d8 50%, #ffd7c9 75%, #ffe0ec 100%);
}

.page-quiz {
  background: linear-gradient(135deg, #d4e8ff 0%, #b8d9ff 25%, #c3e8ff 50%, #b6e0f5 75%, #d4e8ff 100%);
}

.page-reasons {
  background: linear-gradient(135deg, #fdd6f0 0%, #e0c3fc 25%, #c8b6ff 50%, #b8d4ff 75%, #fdd6f0 100%);
}

.page-yes {
  background: linear-gradient(135deg, #c5e4ff 0%, #d8c8ff 25%, #ffd3e8 50%, #ffe0cc 75%, #c5e4ff 100%);
}

.page-gallery {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b5e 25%, #4a2a7a 50%, #5c3a8a 75%, #1a1a3e 100%);
  padding: 20px 15px;
}

.page-sorry {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 111, 165, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(79, 172, 254, 0.15), transparent 50%),
    linear-gradient(135deg, #0f0520 0%, #1e0b3d 25%, #3d1a6b 50%, #5a2a8a 75%, #0f0520 100%);
  background-size: 300% 300%;
  animation: gradientMove 20s ease infinite;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.page-music {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255, 111, 165, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(79, 172, 254, 0.18), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(161, 140, 209, 0.25), transparent 60%),
    linear-gradient(135deg, #06021a 0%, #12072e 20%, #1f0a4a 45%, #2a0f5e 70%, #06021a 100%);
  background-size: 300% 300%;
  animation: gradientMove 25s ease infinite;
  padding: 45px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

.page-music::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============================================
   💌 КАРТОЧКА
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 55px 45px;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 80px rgba(255, 111, 165, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  text-align: center;
  max-width: 560px;
  width: 100%;
  animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 179, 209, 0.3), transparent 50%);
  pointer-events: none;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

@keyframes pop {
  0% { transform: scale(0.6) rotate(-5deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.shake-card {
  animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), shake 0.7s ease 0.8s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px) rotate(-2deg); }
  40% { transform: translateX(12px) rotate(2deg); }
  60% { transform: translateX(-8px) rotate(-1deg); }
  80% { transform: translateX(8px) rotate(1deg); }
}

h1 {
  color: var(--pink);
  font-size: 28px;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(255, 111, 165, 0.3);
}

.sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 500;
}

.emoji {
  font-size: 70px;
  margin-bottom: 15px;
  display: inline-block;
  filter: drop-shadow(0 10px 20px rgba(255, 111, 165, 0.4));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce {
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.wobble {
  animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) scale(1.05); }
  75% { transform: rotate(12deg) scale(1.05); }
}

.hint {
  color: #b8b8d0;
  font-size: 13px;
  margin-top: 28px;
  font-style: italic;
  min-height: 20px;
  font-weight: 500;
  animation: fadeInUp 0.5s ease;
  transition: color 0.4s ease, font-weight 0.4s ease;
}

/* ============================================
   🎯 КНОПКИ
   ============================================ */
.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  padding: 16px 42px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-yes {
  background: linear-gradient(135deg, #ff8db8 0%, #ff6fa5 50%, var(--pink-dark) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 111, 165, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.btn-yes::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn-yes:hover:not(:disabled)::before {
  left: 100%;
}

.btn-yes:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 111, 165, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.btn-yes:active:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
}

.btn-yes:disabled {
  background: linear-gradient(135deg, #d0d0e0, #b8b8c8);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-no {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  border: 2px solid rgba(180, 180, 210, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-no:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #7a7a95;
  transform: translateY(-3px);
  border-color: rgba(180, 180, 210, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.btn-no.runaway {
  position: relative;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 111, 165, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 15px 45px rgba(255, 111, 165, 0.7); }
}

/* ============================================
   ✨ ЧАСТИЦЫ ФОНА
   ============================================ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  animation: floatUp linear infinite;
  opacity: 0.6;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0) scale(0.8); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-100px) rotate(360deg) scale(1.1); opacity: 0; }
}

/* ============================================
   💭 ВИКТОРИНА
   ============================================ */
.quiz-container {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  padding: 45px 40px;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  max-width: 660px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(79, 172, 254, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  position: relative;
  z-index: 5;
  animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-header h2 {
  color: var(--blue);
  text-align: center;
  margin-bottom: 22px;
  font-size: 23px;
  font-weight: 700;
}

.progress {
  background: rgba(200, 220, 255, 0.4);
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff8db8, var(--blue));
  width: 0;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
}

.quiz-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 600;
}

.quiz-question {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 28px;
  text-align: center;
  font-weight: 700;
  min-height: 60px;
  line-height: 1.45;
  font-family: 'Comfortaa', sans-serif;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.answer-btn {
  background: linear-gradient(135deg, rgba(224, 242, 255, 0.9), rgba(240, 248, 255, 0.9));
  color: #3a5a8c;
  border: 2px solid rgba(184, 224, 255, 0.6);
  padding: 16px 22px;
  font-size: 15px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
  font-family: inherit;
  text-align: left;
}

.answer-btn:hover {
  background: linear-gradient(135deg, #ff8db8, var(--blue));
  color: white;
  transform: translateY(-3px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(79, 172, 254, 0.4);
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-end {
  text-align: center;
}

.quiz-end h2 {
  color: var(--blue);
  margin: 15px 0 12px;
  font-size: 24px;
}

.quiz-end .btn-yes {
  margin-top: 22px;
}

/* ============================================
   💙 ПРИЧИНЫ
   ============================================ */
.reasons-container {
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 5;
  text-align: center;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

.reasons-title {
  color: #6a4c93;
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.reasons-container .sub {
  color: #7a7a95;
  margin-bottom: 22px;
  font-weight: 500;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  overflow-y: auto;
  padding: 12px;
  max-height: 65vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(161, 140, 209, 0.5) transparent;
}

.reasons-grid::-webkit-scrollbar {
  width: 8px;
}

.reasons-grid::-webkit-scrollbar-thumb {
  background: rgba(161, 140, 209, 0.5);
  border-radius: 10px;
}

.reason-card {
  aspect-ratio: 1;
  perspective: 1200px;
  cursor: pointer;
  position: relative;
  min-height: 125px;
}

.reason-front,
.reason-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 30px rgba(161, 140, 209, 0.3);
}

.reason-front {
  background: linear-gradient(135deg, #ffb3d1 0%, var(--blue-soft) 100%);
  font-size: 55px;
  color: white;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.reason-back {
  background: rgba(255, 255, 255, 0.98);
  transform: rotateY(180deg);
  color: #5a5a8c;
  font-size: 12.5px;
  text-align: center;
  line-height: 1.4;
  font-weight: 600;
  border: 2px solid rgba(255, 179, 209, 0.4);
}

.reason-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.reason-card.flipped .reason-front {
  transform: rotateY(-180deg);
}

.reason-card.flipped .reason-back {
  transform: rotateY(0);
}

.reasons-footer {
  text-align: center;
  padding-top: 12px;
}

/* ============================================
   🐰 ФИНАЛЬНАЯ СТРАНИЦА
   ============================================ */
.final-container {
  text-align: center;
  position: relative;
  z-index: 5;
  padding: 20px;
  animation: pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 620px;
}

.cloud {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  padding: 28px 32px;
  border-radius: 45px;
  max-width: 520px;
  margin: 0 auto 30px;
  box-shadow: 0 20px 60px rgba(255, 111, 165, 0.3);
  animation: float 3.5s ease-in-out infinite;
  border: 2px solid rgba(255, 179, 209, 0.4);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cloud::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 22px solid rgba(255, 255, 255, 0.98);
}

.cloud::before {
  content: '';
  position: absolute;
  bottom: -26px;
  left: 45%;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
}

.cloud p {
  color: #5a5a8c;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
}

.cloud .name {
  color: var(--pink);
  font-weight: 700;
}

.bunny {
  font-size: 140px;
  display: inline-block;
  animation: bunnyBounce 1.6s ease-in-out infinite;
  filter: drop-shadow(0 20px 35px rgba(255, 111, 165, 0.4));
  margin: 20px 0;
}

@keyframes bunnyBounce {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  50% { transform: translateY(-24px) rotate(4deg) scale(1.05); }
}

.celebrate-btn {
  display: block;
  margin: 22px auto 0;
}

.final-message {
  margin-top: 32px;
  opacity: 0;
  transform: scale(0.7) translateY(20px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--pink);
  font-size: 21px;
  font-weight: 700;
  font-family: 'Comfortaa', sans-serif;
}

.final-message.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ============================================
   💕 СЕРДЕЧКИ И КОНФЕТТИ
   ============================================ */
.heart {
  position: fixed;
  font-size: 26px;
  animation: riseUp 4.5s linear infinite;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(255, 111, 165, 0.6));
}

@keyframes riseUp {
  0% { transform: translateY(100vh) scale(0.4) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-120px) scale(1.3) rotate(360deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  animation: fall linear forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(100vh) rotate(900deg); opacity: 0; }
}

/* ============================================
   📸 КНОПКА ГАЛЕРЕИ
   ============================================ */
.gallery-btn {
  display: block;
  margin: 28px auto 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.gallery-btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: pulse 2.5s infinite;
}

/* ============================================
   🖼️ ГАЛЕРЕЯ
   ============================================ */
.page-gallery {
  padding: 25px 15px;
  display: block;
  min-height: 100vh;
}

.gallery-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 35px 30px;
  text-align: center;
  animation: pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.gallery-title {
  color: white;
  font-size: 34px;
  margin-bottom: 10px;
  text-shadow: 0 4px 30px rgba(255, 179, 209, 0.6);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.gallery-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin-bottom: 28px;
  font-weight: 500;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 480px;
  max-height: 900px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 111, 165, 0.15);
  margin-bottom: 28px;
  background: #0a0a1a;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a1a;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(50px) brightness(0.4) saturate(1.3);
  transform: scale(1.15);
  z-index: 0;
}

.slide-bg-video {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-fit: cover;
  filter: blur(50px) brightness(0.4) saturate(1.3);
  transform: scale(1.15);
  z-index: 0;
  pointer-events: none;
}

.slide-img {
  position: relative;
  max-width: 1%;
  max-height: 1%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 1;
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.slide-video {
  position: relative;
  max-width: 1%;
  max-height: 1%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 5;
  cursor: pointer;
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 15%,
    transparent 85%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
  z-index: 3;
  border-radius: 26px;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: white;
  font-size: 34px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  line-height: 1;
  font-weight: 300;
}

.slide-nav:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
}

.slide-nav.prev {
  left: 20px;
}

.slide-nav.next {
  right: 20px;
}

.slide-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
  padding: 9px 15px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot.active {
  background: linear-gradient(135deg, #ff8db8, var(--pink));
  width: 28px;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(255, 111, 165, 0.95);
}

.slide-caption {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(15px);
  color: white;
  padding: 12px 26px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Comfortaa', sans-serif;
  z-index: 8;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 85%;
  text-align: center;
  pointer-events: none;
}

.slide-caption.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.slide-counter {
  position: absolute;
  top: 20px;
  right: 22px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  color: white;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 700;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 8px;
  margin-bottom: 28px;
  justify-content: center;
  flex-wrap: wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.thumbnails::-webkit-scrollbar {
  height: 6px;
}

.thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

.thumb {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  opacity: 0.55;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.thumb:hover {
  opacity: 1;
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 111, 165, 0.5);
}

.thumb.active {
  border-color: #ff8db8;
  opacity: 1;
  box-shadow: 0 0 35px rgba(255, 111, 165, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.thumb-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 22px;
  z-index: 2;
  transition: background 0.3s ease;
}

.thumb-video:hover .play-icon {
  background: rgba(255, 111, 165, 0.55);
}

.gallery-footer {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 28px 32px;
  border-radius: 25px;
  margin-top: 15px;
}

.gallery-quote {
  color: white;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 22px;
  font-style: italic;
  font-weight: 500;
}

.music-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 11px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  font-family: 'Nunito', sans-serif;
}

.music-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.6);
  color: white;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding-left: 6px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  animation: playPulse 2s ease-in-out infinite;
}

.video-play-btn:hover {
  background: rgba(255, 111, 165, 0.7);
  transform: translate(-50%, -50%) scale(1.15);
}

.video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
}

@keyframes playPulse {
  0%, 100% { box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 0 25px rgba(255, 255, 255, 0); }
}

.video-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a1a4a, #1a1a3e);
  color: white;
  z-index: 20;
  padding: 20px;
  text-align: center;
}

.video-error span {
  font-size: 60px;
  margin-bottom: 15px;
}

.video-error p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-error small {
  font-size: 13px;
  opacity: 0.6;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
}

/* ============================================
   💌 СТРАНИЦА ИЗВИНЕНИЯ — PREMIUM
   ============================================ */
.stars-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 179, 209, 0.5);
  animation: twinkleStar 3s ease-in-out infinite;
}

@keyframes twinkleStar {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff6fa5, transparent 70%);
  top: -150px;
  left: -150px;
  animation: floatGlow 12s ease-in-out infinite;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #4facfe, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: floatGlow 15s ease-in-out infinite reverse;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a18cd1, transparent 70%);
  top: 40%;
  right: 20%;
  animation: floatGlow 18s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.15); }
  66% { transform: translate(-40px, 30px) scale(0.9); }
}

.sorry-container {
  background: rgba(20, 8, 40, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  padding: 60px 55px;
  max-width: 780px;
  width: 100%;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 120px rgba(255, 111, 165, 0.15);
  text-align: center;
  position: relative;
  z-index: 5;
  animation: pop 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.container-glow {
  position: absolute;
  inset: -3px;
  border-radius: 42px;
  background: linear-gradient(135deg, #ff6fa5, #4facfe, #a18cd1, #ff6fa5);
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
  animation: glowShift 6s ease infinite;
}

@keyframes glowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ff6fa5, #4facfe, #a18cd1);
  border-radius: 3px 0 0 0;
  box-shadow: 0 0 15px rgba(255, 111, 165, 0.9), 0 0 30px rgba(79, 172, 254, 0.6);
  transition: width 0.3s ease;
  z-index: 10;
}

.sorry-icon {
  font-size: 85px;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 2.2s ease-in-out infinite;
  filter: drop-shadow(0 15px 40px rgba(255, 111, 165, 0.7));
}

.sorry-title {
  color: white;
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow:
    0 4px 30px rgba(255, 179, 209, 0.7),
    0 0 80px rgba(255, 111, 165, 0.5);
  letter-spacing: -0.5px;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      0 4px 30px rgba(255, 179, 209, 0.7),
      0 0 80px rgba(255, 111, 165, 0.5);
  }
  50% {
    text-shadow:
      0 4px 40px rgba(255, 179, 209, 1),
      0 0 120px rgba(255, 111, 165, 0.8);
  }
}

.sorry-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
  gap: 15px;
}

.sorry-divider::before,
.sorry-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 130px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 209, 0.6), transparent);
}

.sorry-divider span {
  color: rgba(255, 179, 209, 0.85);
  font-size: 24px;
  letter-spacing: 4px;
  filter: drop-shadow(0 0 15px rgba(255, 111, 165, 0.8));
  animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.sorry-text {
  text-align: center;
  margin-bottom: 15px;
  min-height: 100px;
}

.sorry-text p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 19px;
  line-height: 1.85;
  margin-bottom: 16px;
  font-weight: 500;
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  min-height: 1.85em;
  word-wrap: break-word;
}

.sorry-text p:last-child {
  margin-bottom: 0;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--pink-soft);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
  box-shadow: 0 0 10px rgba(255, 179, 209, 1), 0 0 20px rgba(255, 111, 165, 0.8);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.sorry-signature {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition:
    opacity 1.4s ease,
    transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 35px;
  margin-bottom: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sorry-signature.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.signature-line {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 179, 209, 0.9),
    rgba(255, 111, 165, 1),
    rgba(255, 179, 209, 0.9),
    transparent
  );
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255, 111, 165, 0.7);
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.sorry-signature.show .signature-line {
  width: 180px;
}

.sorry-signature p {
  color: var(--pink-soft);
  font-size: 26px;
  font-style: italic;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow:
    0 2px 20px rgba(255, 111, 165, 0.9),
    0 0 40px rgba(255, 179, 209, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1s ease 0.8s,
    transform 1s ease 0.8s;
}

.sorry-signature.show p {
  opacity: 1;
  transform: translateY(0);
}

.signature-heart {
  display: inline-block;
  font-size: 22px;
  opacity: 0;
  transform: scale(0) rotate(-45deg);
  transition:
    opacity 0.8s ease 1.4s,
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s;
  filter: drop-shadow(0 0 12px rgba(255, 111, 165, 0.9));
}

.sorry-signature.show .signature-heart {
  opacity: 1;
  transform: scale(1) rotate(0);
  animation: heartBeat 1.8s ease-in-out 2.2s infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

.sorry-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
  min-height: 60px;
}

.sorry-actions .btn-yes {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sorry-actions .btn-yes.show {
  opacity: 1;
  transform: translateY(0);
  animation: pulse 2.5s infinite;
}

.final-heart {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 40px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 20px rgba(255, 111, 165, 0.9));
  animation: heartBeat 1.5s ease-in-out infinite;
}

.final-heart.show {
  opacity: 1;
  transform: scale(1);
}

.celebration-heart {
  position: fixed;
  bottom: -60px;
  pointer-events: none;
  z-index: 999;
  animation: riseUpCelebration linear forwards;
  filter: drop-shadow(0 0 15px rgba(255, 111, 165, 0.9));
}

@keyframes riseUpCelebration {
  0% {
    transform: translateY(0) scale(0.5) rotate(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    transform: translateY(-110vh) scale(1.4) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   🎵 СТРАНИЦА ЛЮБИМЫХ ИСПОЛНИТЕЛЕЙ
   ============================================ */
.music-container {
  background: linear-gradient(160deg, rgba(30, 15, 60, 0.75), rgba(15, 8, 40, 0.85));
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 44px;
  padding: 60px 50px;
  max-width: 1050px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 5;
  box-shadow:
    0 50px 140px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 150px rgba(255, 111, 165, 0.15),
    0 0 250px rgba(79, 172, 254, 0.08);
  animation: pop 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 46px;
  background: linear-gradient(135deg, #ff6fa5, #4facfe, #a18cd1, #ff6fa5);
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0.35;
  filter: blur(25px);
  animation: glowShift 8s ease infinite;
}

.music-icon {
  font-size: 82px;
  margin-bottom: 18px;
  display: inline-block;
  animation: musicFloat 3s ease-in-out infinite;
  filter:
    drop-shadow(0 15px 40px rgba(255, 111, 165, 0.7))
    drop-shadow(0 0 60px rgba(161, 140, 209, 0.5));
}

@keyframes musicFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-15px) rotate(4deg); }
}

.music-title {
  color: white;
  font-size: 38px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 0%, #ffb3d1 40%, #a1d4ff 70%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 6s ease infinite;
  filter: drop-shadow(0 4px 25px rgba(255, 179, 209, 0.4));
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.music-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15.5px;
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.music-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  gap: 18px;
}

.music-divider::before,
.music-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 150px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 179, 209, 0.7),
    rgba(161, 140, 209, 0.7),
    transparent
  );
}

.music-divider span {
  color: rgba(255, 179, 209, 0.95);
  font-size: 24px;
  filter: drop-shadow(0 0 15px rgba(255, 111, 165, 1));
  animation: dividerPulse 2.4s ease-in-out infinite;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0 35px;
}

.artist-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  min-height: 300px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
  background: #0a0a1a;
  transform-style: preserve-3d;
}

.artist-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.artist-card:hover {
  transform: translateY(-14px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 30px 80px rgba(161, 140, 209, 0.6),
    0 0 100px rgba(255, 111, 165, 0.3);
}

.artist-card.active {
  border-color: #ffb3d1;
  box-shadow:
    0 0 60px rgba(255, 111, 165, 0.85),
    0 0 0 3px rgba(255, 255, 255, 0.5),
    0 30px 80px rgba(255, 111, 165, 0.6);
  transform: translateY(-10px) scale(1.05);
  animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% {
    box-shadow:
      0 0 60px rgba(255, 111, 165, 0.85),
      0 0 0 3px rgba(255, 255, 255, 0.5),
      0 30px 80px rgba(255, 111, 165, 0.6);
  }
  50% {
    box-shadow:
      0 0 90px rgba(255, 111, 165, 1),
      0 0 0 4px rgba(255, 255, 255, 0.7),
      0 35px 90px rgba(255, 111, 165, 0.8);
  }
}

.artist-bg {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  z-index: 0;
  transition: all 0.5s ease;
  filter: brightness(0.7) saturate(1.3);
  background-size: 200% 200% !important;
  animation: bgMove 8s ease infinite;
}

@keyframes bgMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.artist-card:hover .artist-bg {
  opacity: 1;
  filter: brightness(0.85) saturate(1.5);
  transform: scale(1.08);
}

.artist-card.active .artist-bg {
  filter: brightness(1) saturate(1.7);
  opacity: 1;
}

.artist-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.35), transparent 60%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.artist-card.active .artist-glow {
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.artist-content {
  position: relative;
  z-index: 2;
  padding: 30px 22px;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.75);
}

.artist-number {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
  font-family: 'Comfortaa', sans-serif;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.artist-emoji {
  font-size: 72px;
  margin-bottom: 15px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.artist-card:hover .artist-emoji {
  transform: scale(1.25) rotate(-8deg);
  filter: drop-shadow(0 15px 35px rgba(255, 111, 165, 0.7));
}

.artist-card.active .artist-emoji {
  animation: emojiDance 1.5s ease-in-out infinite;
}

@keyframes emojiDance {
  0%, 100% { transform: scale(1.15) rotate(-4deg); }
  50% { transform: scale(1.25) rotate(4deg); }
}

.artist-name {
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: 0.8px;
  text-shadow:
    0 3px 15px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(255, 179, 209, 0.5);
}

.artist-tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.artist-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
  margin-top: auto;
}

.artist-wave span {
  display: block;
  width: 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: waveAnim 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.artist-wave span:nth-child(1) { animation-delay: 0s; }
.artist-wave span:nth-child(2) { animation-delay: 0.15s; }
.artist-wave span:nth-child(3) { animation-delay: 0.3s; }
.artist-wave span:nth-child(4) { animation-delay: 0.45s; }
.artist-wave span:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveAnim {
  0%, 100% { height: 6px; opacity: 0.65; }
  50% { height: 22px; opacity: 1; }
}

.artist-card.active .artist-wave span {
  background: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 1);
  animation-duration: 0.7s;
}

.player-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition:
    max-height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    margin 0.5s ease,
    padding 0.5s ease;
  margin-top: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 0 30px;
  text-align: left;
  position: relative;
}

.player-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ff6fa5, #4facfe, #a18cd1, #ff6fa5);
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0.25;
  filter: blur(20px);
  animation: glowShift 6s ease infinite;
}

.player-panel.show {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 30px;
  padding: 30px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-artist-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.player-emoji {
  font-size: 52px;
  filter: drop-shadow(0 0 25px rgba(255, 179, 209, 0.9));
  animation: emojiFloat 2s ease-in-out infinite;
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.player-name {
  color: white;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 20px rgba(255, 111, 165, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track {
  color: rgba(255, 179, 209, 0.9);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  flex-shrink: 0;
}

.player-close:hover {
  background: rgba(255, 111, 165, 0.6);
  border-color: #ff8db8;
  transform: rotate(90deg) scale(1.15);
  box-shadow: 0 0 30px rgba(255, 111, 165, 0.7);
}

.equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 50px;
  margin-bottom: 25px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.equalizer span {
  display: block;
  width: 5px;
  height: 8px;
  background: linear-gradient(to top, #ff6fa5, #4facfe, #a18cd1);
  border-radius: 3px;
  transition: height 0.3s ease;
}

.equalizer.playing span {
  animation: eqBounce 0.9s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 111, 165, 0.8), 0 0 30px rgba(79, 172, 254, 0.4);
}

.equalizer.playing span:nth-child(1) { animation-delay: 0s; }
.equalizer.playing span:nth-child(2) { animation-delay: 0.1s; }
.equalizer.playing span:nth-child(3) { animation-delay: 0.2s; }
.equalizer.playing span:nth-child(4) { animation-delay: 0.3s; }
.equalizer.playing span:nth-child(5) { animation-delay: 0.4s; }
.equalizer.playing span:nth-child(6) { animation-delay: 0.15s; }
.equalizer.playing span:nth-child(7) { animation-delay: 0.25s; }
.equalizer.playing span:nth-child(8) { animation-delay: 0.05s; }
.equalizer.playing span:nth-child(9) { animation-delay: 0.35s; }
.equalizer.playing span:nth-child(10) { animation-delay: 0.45s; }
.equalizer.playing span:nth-child(11) { animation-delay: 0.1s; }
.equalizer.playing span:nth-child(12) { animation-delay: 0.2s; }
.equalizer.playing span:nth-child(13) { animation-delay: 0.3s; }
.equalizer.playing span:nth-child(14) { animation-delay: 0.4s; }
.equalizer.playing span:nth-child(15) { animation-delay: 0.5s; }

@keyframes eqBounce {
  0%, 100% { height: 8px; }
  50% { height: 38px; }
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 179, 209, 0.7);
  transform: scale(1.15);
  box-shadow: 0 10px 35px rgba(255, 111, 165, 0.4);
}

.control-btn:active {
  transform: scale(0.92);
}

.play-btn {
  width: 76px;
  height: 76px;
  font-size: 26px;
  background: linear-gradient(135deg, #ff8db8 0%, #ff6fa5 50%, #e05585 100%);
  border: none;
  padding-left: 4px;
  box-shadow:
    0 15px 45px rgba(255, 111, 165, 0.65),
    0 0 0 2px rgba(255, 255, 255, 0.15) inset,
    0 0 60px rgba(255, 111, 165, 0.4);
  position: relative;
  overflow: hidden;
}

.play-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.play-btn:hover::before {
  transform: translateX(100%);
}

.play-btn:hover {
  box-shadow:
    0 20px 60px rgba(255, 111, 165, 0.9),
    0 0 0 2px rgba(255, 255, 255, 0.25) inset,
    0 0 100px rgba(255, 111, 165, 0.6);
  background: linear-gradient(135deg, #ffa0c5, #ff8db8, #ff6fa5);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.time-current,
.time-total {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.5px;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) inset;
}

.progress-track:hover {
  height: 12px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6fa5, #4facfe, #a18cd1);
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 15px rgba(255, 111, 165, 0.8), 0 0 30px rgba(79, 172, 254, 0.4);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 111, 165, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-track:hover .progress-fill::after {
  opacity: 1;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.volume-icon {
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 0 12px rgba(255, 179, 209, 0.6));
}

.volume-icon:hover {
  transform: scale(1.25);
}

.volume-slider {
  flex: 1;
  height: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8db8, #ff6fa5);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 111, 165, 0.9), 0 0 0 3px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 25px rgba(255, 111, 165, 1), 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8db8, #ff6fa5);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 15px rgba(255, 111, 165, 0.9);
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.track-hint {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 25px;
  font-style: italic;
  font-size: 14px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  position: relative;
  overflow: hidden;
}

.track-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.track-item:hover::before {
  transform: translateX(100%);
}

.track-item:hover {
  background: linear-gradient(135deg, rgba(255, 111, 165, 0.3), rgba(79, 172, 254, 0.25));
  border-color: rgba(255, 179, 209, 0.6);
  transform: translateX(10px);
  box-shadow: 0 12px 40px rgba(255, 111, 165, 0.35), 0 0 0 1px rgba(255, 179, 209, 0.2) inset;
}

.track-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6fa5, #a18cd1);
  font-size: 13px;
  padding-left: 3px;
  flex-shrink: 0;
  box-shadow: 0 5px 18px rgba(255, 111, 165, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: all 0.3s ease;
}

.track-item:hover .track-play {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(255, 111, 165, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.track-title {
  flex: 1;
  letter-spacing: 0.2px;
}

.track-duration {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  text-align: right;
  font-family: 'Nunito', sans-serif;
}

.track-arrow {
  display: none;
}

.track-item.playing {
  background: linear-gradient(
    135deg,
    rgba(255, 111, 165, 0.5),
    rgba(79, 172, 254, 0.4),
    rgba(161, 140, 209, 0.4)
  );
  border-color: rgba(255, 179, 209, 0.9);
  box-shadow:
    0 15px 45px rgba(255, 111, 165, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 0 60px rgba(255, 111, 165, 0.4);
  transform: translateX(6px);
}

.track-item.playing .track-play {
  background: white;
  color: #ff6fa5;
  animation: playingPulse 1.5s ease-in-out infinite;
}

@keyframes playingPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7), 0 5px 18px rgba(255, 111, 165, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0), 0 5px 25px rgba(255, 111, 165, 0.9);
  }
}

.track-item.playing .track-title {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.player-note {
  color: rgba(255, 179, 209, 0.9);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  text-shadow: 0 2px 15px rgba(255, 111, 165, 0.5);
}

.music-footer {
  margin-top: 25px;
}

.music-quote {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-style: italic;
  margin-bottom: 25px;
  font-weight: 500;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}

.music-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ============================================
   🤔 СТРАНИЦА «ПОДУМАЙ ЕЩЁ» — ДОП. ФИШКИ
   ============================================ */
@keyframes cardShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-10px) rotate(-1deg); }
  30% { transform: translateX(10px) rotate(1deg); }
  45% { transform: translateX(-8px) rotate(-0.5deg); }
  60% { transform: translateX(8px) rotate(0.5deg); }
  75% { transform: translateX(-4px) rotate(0); }
}

.card.shake {
  animation: cardShake 0.6s ease;
}

.attempts-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(255, 111, 165, 0.15), rgba(79, 172, 254, 0.15));
  border: 2px solid rgba(255, 111, 165, 0.4);
  border-radius: 18px;
  color: #d63384;
  font-family: 'Comfortaa', sans-serif;
  font-size: 15px;
  font-weight: 600;
  animation: counterPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes counterPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.counter-icon {
  font-size: 22px;
  animation: counterIconBounce 1s ease-in-out infinite;
}

@keyframes counterIconBounce {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(-10deg); }
}

.counter-text strong {
  color: #e05585;
  font-size: 18px;
  font-weight: 800;
}

.progress-wrap {
  margin-top: 22px;
  animation: fadeInUp 0.5s ease;
}

.progress-label {
  color: #7a7a95;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Comfortaa', sans-serif;
}

.progress-container {
  width: 100%;
  height: 14px;
  background: rgba(200, 200, 220, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) inset;
  position: relative;
}

.progress-bar-no {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff8db8, #ff6fa5, #e05585);
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 15px rgba(255, 111, 165, 0.7);
  position: relative;
  overflow: hidden;
}

.progress-bar-no::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: progressShine 2s ease infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-percent {
  color: #d63384;
  font-size: 16px;
  font-weight: 800;
  margin-top: 8px;
  font-family: 'Comfortaa', sans-serif;
  text-align: right;
}

.fly-emoji {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  animation: flyEmoji 1.8s ease-out forwards;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

@keyframes flyEmoji {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(30deg);
  }
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.5) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px) translateY(-3px); }
  40% { transform: translateX(6px) translateY(3px); }
  60% { transform: translateX(-4px) translateY(-2px); }
  80% { transform: translateX(4px) translateY(2px); }
}

.page-no.screen-shake {
  animation: screenShake 0.5s ease;
}

.rainbow-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
  background: linear-gradient(
    45deg,
    rgba(255, 0, 100, 0.15) 0%,
    rgba(255, 154, 0, 0.15) 20%,
    rgba(208, 222, 33, 0.15) 40%,
    rgba(79, 220, 74, 0.15) 60%,
    rgba(63, 218, 216, 0.15) 80%,
    rgba(255, 111, 165, 0.15) 100%
  );
  background-size: 400% 400%;
}

.rainbow-overlay.active {
  opacity: 1;
  animation: rainbowMove 8s ease infinite;
}

@keyframes rainbowMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.achievements {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 320px;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  border: 2px solid rgba(255, 111, 165, 0.4);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(255, 111, 165, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  animation: achievementGlow 2s ease-in-out infinite;
}

.achievement.show {
  transform: translateX(0);
  opacity: 1;
}

@keyframes achievementGlow {
  0%, 100% {
    box-shadow:
      0 15px 45px rgba(255, 111, 165, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  }
  50% {
    box-shadow:
      0 15px 50px rgba(255, 111, 165, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.7) inset,
      0 0 30px rgba(255, 111, 165, 0.4);
  }
}

.achievement-icon {
  font-size: 32px;
  filter: drop-shadow(0 3px 10px rgba(255, 111, 165, 0.5));
  animation: achievementIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes achievementIconPop {
  0% { transform: scale(0) rotate(-180deg); }
  100% { transform: scale(1) rotate(0); }
}

.achievement-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.achievement-title {
  color: #d63384;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: 0.3px;
}

.achievement-desc {
  color: #7a7a95;
  font-size: 11.5px;
  font-weight: 500;
}

.why-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 40, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.why-modal.show {
  opacity: 1;
  visibility: visible;
}

.why-content {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  border-radius: 30px;
  padding: 40px 32px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  border: 2px solid rgba(255, 111, 165, 0.3);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 80px rgba(255, 111, 165, 0.3);
  position: relative;
  transform: scale(0.7) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-modal.show .why-content {
  transform: scale(1) translateY(0);
}

.why-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 111, 165, 0.1);
  border: 1.5px solid rgba(255, 111, 165, 0.3);
  color: #d63384;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.why-close:hover {
  background: rgba(255, 111, 165, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.why-emoji {
  font-size: 55px;
  margin-bottom: 12px;
  animation: bounce 2s ease-in-out infinite;
}

.why-title {
  color: #d63384;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: -0.3px;
}

.why-sub {
  color: #9b9bb0;
  font-size: 14px;
  margin-bottom: 22px;
  font-weight: 500;
}

.why-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.why-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 230, 240, 0.7), rgba(230, 240, 255, 0.7));
  border: 2px solid rgba(255, 179, 209, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Nunito', sans-serif;
  text-align: left;
  color: #5a5a8c;
  font-size: 14.5px;
  font-weight: 600;
}

.why-option:hover {
  background: linear-gradient(135deg, #ff8db8, #a1c4fd);
  color: white;
  transform: translateX(6px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(255, 111, 165, 0.4);
}

.why-option.chosen {
  background: linear-gradient(135deg, #ff6fa5, #e05585);
  color: white;
  border-color: #ff8db8;
  box-shadow: 0 10px 30px rgba(255, 111, 165, 0.6);
}

.why-option-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.why-option-text {
  flex: 1;
}

.why-answer {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 179, 209, 0.15), rgba(161, 212, 255, 0.15));
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 111, 165, 0.4);
  color: #5a5a8c;
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.5s ease;
  min-height: 0;
  white-space: pre-line;
}

.why-answer:not(:empty) {
  min-height: 60px;
}

.why-answer p {
  margin: 0;
}

.btn-no.flying {
  position: fixed !important;
  transition: all 1.8s cubic-bezier(0.45, 0, 0.55, 1) !important;
}

/* ============================================
   🐰 ЗАЙЧИК-ПЕРСОНАЖ
   ============================================ */
.bunny-character {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  animation: bunnyEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bunnyEntrance {
  0% { transform: translateY(200px) scale(0.3); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.bunny-speech {
  background: white;
  color: #5a5a8c;
  padding: 14px 20px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Comfortaa', sans-serif;
  box-shadow:
    0 12px 35px rgba(255, 111, 165, 0.5),
    0 0 0 2px rgba(255, 179, 209, 0.6) inset;
  position: relative;
  max-width: 240px;
  text-align: center;
  opacity: 0;
  transform: scale(0.5) translateY(10px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  line-height: 1.35;
}

.bunny-speech.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.bunny-speech::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid white;
}

.bunny-body {
  position: relative;
  width: 110px;
  height: 130px;
  animation: bunnyIdle 3s ease-in-out infinite;
  transition: transform 0.5s ease;
}

@keyframes bunnyIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.bunny-body.bounce {
  animation: bunnyBounceAnim 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bunnyBounceAnim {
  0% { transform: scale(1); }
  30% { transform: scale(1.15, 0.85); }
  60% { transform: scale(0.9, 1.1); }
  100% { transform: scale(1); }
}

.bunny-body.sad {
  filter: saturate(0.7) brightness(0.95);
}

.bunny-body.crying {
  animation: bunnyCry 1.5s ease-in-out infinite;
}

@keyframes bunnyCry {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.bunny-body.turned-away {
  transform: scaleX(-1) rotate(10deg);
}

.bunny-ears {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  display: flex;
  justify-content: space-between;
}

.ear {
  width: 22px;
  height: 50px;
  background: linear-gradient(to bottom, #ffb3d1, #ff8db8);
  border-radius: 12px 12px 4px 4px;
  border: 2.5px solid #ff6fa5;
  position: relative;
  box-shadow: 0 4px 10px rgba(255, 111, 165, 0.3);
}

.ear::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 28px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 5px;
}

.ear-left {
  transform: rotate(-12deg);
}

.ear-right {
  transform: rotate(12deg);
}

.bunny-body.sad .ear-left {
  transform: rotate(-22deg);
}

.bunny-body.sad .ear-right {
  transform: rotate(22deg);
}

.bunny-head {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 82px;
  background: linear-gradient(to bottom, #ffe0ec, #ffc4dd);
  border-radius: 50%;
  border: 2.5px solid #ff6fa5;
  box-shadow:
    inset 0 -6px 12px rgba(255, 111, 165, 0.2),
    0 6px 15px rgba(255, 111, 165, 0.3);
}

.bunny-eye {
  position: absolute;
  top: 32px;
  width: 12px;
  height: 14px;
  background: #2a2a4a;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.bunny-eye::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.bunny-eye-left {
  left: 20px;
}

.bunny-eye-right {
  right: 20px;
}

.bunny-body.sad .bunny-eye {
  height: 6px;
  top: 36px;
  border-radius: 50% 50% 40% 40%;
}

.bunny-body.crying .bunny-eye {
  height: 3px;
  top: 38px;
  border-radius: 2px;
}

.bunny-nose {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  background: #ff6fa5;
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 2px 5px rgba(255, 111, 165, 0.5);
}

.bunny-mouth {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 10px;
  border-bottom: 2.5px solid #e05585;
  border-left: 2.5px solid transparent;
  border-right: 2.5px solid transparent;
  border-radius: 0 0 50% 50%;
  transition: all 0.4s ease;
}

.bunny-mouth.happy {
  width: 22px;
  height: 12px;
  border-bottom-width: 3px;
  background: radial-gradient(ellipse at top, #ff8db8 0%, transparent 60%);
}

.bunny-mouth.neutral {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  border-bottom: 2.5px solid #e05585;
}

.bunny-mouth.sad {
  width: 16px;
  height: 8px;
  border-top: 2.5px solid #e05585;
  border-bottom: none;
  border-radius: 50% 50% 0 0;
  top: 64px;
}

.bunny-blush {
  position: absolute;
  top: 48px;
  width: 14px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(255, 111, 165, 0.55), transparent 70%);
  border-radius: 50%;
  transition: opacity 0.4s ease;
}

.bunny-blush-left {
  left: 8px;
}

.bunny-blush-right {
  right: 8px;
}

.bunny-body.sad .bunny-blush {
  opacity: 0.3;
}

.bunny-tummy {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 55px;
  background: linear-gradient(to bottom, #ffc4dd, #ffb3d1);
  border-radius: 50% 50% 45% 45%;
  border: 2.5px solid #ff6fa5;
  z-index: -1;
  box-shadow: 0 6px 15px rgba(255, 111, 165, 0.3);
}

.bunny-tummy::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.bunny-arms {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
}

.arm {
  position: absolute;
  width: 22px;
  height: 24px;
  background: linear-gradient(to bottom, #ffc4dd, #ffb3d1);
  border: 2.5px solid #ff6fa5;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(255, 111, 165, 0.3);
  transition: transform 0.4s ease;
}

.arm-left {
  left: -2px;
  transform: rotate(-15deg);
}

.arm-right {
  right: -2px;
  transform: rotate(15deg);
}

.bunny-body.sad .arm-left {
  transform: rotate(-35deg);
}

.bunny-body.sad .arm-right {
  transform: rotate(35deg);
}

.bunny-body.happy .arm-left {
  transform: rotate(-45deg);
}

.bunny-body.happy .arm-right {
  transform: rotate(45deg);
}

.bunny-tears {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 60px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bunny-tears.active {
  opacity: 1;
}

.tear {
  position: absolute;
  width: 8px;
  height: 12px;
  background: linear-gradient(to bottom, rgba(161, 212, 255, 0.95), rgba(79, 172, 254, 0.95));
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  box-shadow: 0 0 8px rgba(79, 172, 254, 0.7);
  animation: tearDrop 1.4s ease-in infinite;
}

.tear:nth-child(1) {
  left: 20px;
  animation-delay: 0s;
}

.tear:nth-child(2) {
  right: 20px;
  animation-delay: 0.7s;
}

@keyframes tearDrop {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(50px) scale(0.7);
    opacity: 0;
  }
}

/* ============================================
   💌 ТОСТЫ (вместо попапов)
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: none;
  max-width: 90%;
  width: auto;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  border: 2px solid rgba(255, 111, 165, 0.4);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(255, 111, 165, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 0 60px rgba(255, 111, 165, 0.2);
  color: #5a5a8c;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.4;
  max-width: 420px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  text-align: left;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-text {
  flex: 1;
}

.toast-close {
  background: rgba(255, 111, 165, 0.15);
  border: 1.5px solid rgba(255, 111, 165, 0.3);
  color: #d63384;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.toast-close:hover {
  background: rgba(255, 111, 165, 0.4);
  transform: scale(1.15) rotate(90deg);
}

/* ============================================
   📱 МОБИЛЬНАЯ ВЕРСИЯ
   ============================================ */
@media (max-width: 900px) {
  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px 8px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  .card,
  .quiz-container {
    padding: 32px 22px;
    border-radius: 26px;
  }

  h1 { font-size: 21px; }
  .emoji { font-size: 54px; }
  .bunny { font-size: 100px; }
  .reasons-title { font-size: 19px; }

  button {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 16px;
    min-height: 48px;
  }

  .quiz-question {
    font-size: 17px;
    min-height: 55px;
  }

  .answer-btn {
    padding: 15px 18px;
    font-size: 14px;
    min-height: 52px;
  }

  .reasons-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 62vh;
  }

  .reason-front {
    font-size: 38px;
    border-radius: 16px;
  }

  .reason-back {
    font-size: 11px;
    padding: 9px;
    border-radius: 16px;
  }

  .reason-icon { font-size: 22px; }

  .cloud {
    padding: 22px 24px;
    border-radius: 35px;
  }

  .cloud p { font-size: 15px; }
  .final-message { font-size: 18px; }

  /* ГАЛЕРЕЯ */
  .page-gallery { padding: 12px 8px; }

  .gallery-container {
    padding: 20px 14px;
    border-radius: 24px;
  }

  .gallery-title {
    font-size: 21px;
    margin-bottom: 8px;
  }

  .gallery-sub {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .slideshow {
    height: 60vh;
    min-height: 340px;
    max-height: 500px;
    border-radius: 20px;
    margin-bottom: 18px;
    touch-action: pan-y;
  }

  .slide-img,
  .slide-video {
    max-width: 100%;
    max-height: 100%;
  }

  .slide-nav {
    width: 46px;
    height: 46px;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.22);
  }

  .slide-nav.prev { left: 8px; }
  .slide-nav.next { right: 8px; }

  .slide-counter {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .slide-caption {
    bottom: 58px;
    font-size: 12.5px;
    padding: 8px 16px;
    max-width: 88%;
  }

  .slide-dots {
    bottom: 12px;
    padding: 6px 10px;
    gap: 6px;
  }

  .dot { width: 7px; height: 7px; }
  .dot.active { width: 20px; }

  .video-play-btn {
    width: 72px;
    height: 72px;
    font-size: 30px;
    padding-left: 5px;
  }

  .thumbnails {
    gap: 8px;
    padding: 8px 4px;
    margin-bottom: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .thumb {
    width: 62px;
    height: 62px;
    border-radius: 13px;
  }

  .play-icon { font-size: 18px; }

  .gallery-footer {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .gallery-quote {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .music-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 25px;
  }

  .slide-nav:hover,
  .thumb:hover,
  .music-toggle:hover {
    transform: none;
  }

  .slide-nav:hover {
    transform: translateY(-50%);
  }

  /* SORRY */
  .page-sorry { padding: 25px 12px; }

  .sorry-container {
    padding: 40px 24px;
    border-radius: 28px;
  }

  .sorry-icon {
    font-size: 64px;
    margin-bottom: 15px;
  }

  .sorry-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .sorry-text p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .sorry-divider { margin: 20px 0; }
  .sorry-divider span { font-size: 18px; }
  .sorry-signature p { font-size: 22px; }
  .sorry-signature.show .signature-line { width: 140px; }

  .sorry-actions {
    flex-direction: column;
    align-items: center;
  }

  .sorry-actions button {
    width: 100%;
    max-width: 300px;
  }

  .final-heart {
    font-size: 32px;
    top: 15px;
    right: 15px;
  }

  .glow-1,
  .glow-2,
  .glow-3 {
    filter: blur(80px);
    opacity: 0.35;
  }

  .glow-1,
  .glow-2 {
    width: 300px;
    height: 300px;
  }

  .glow-3 {
    width: 250px;
    height: 250px;
  }

  /* MUSIC */
  .page-music { padding: 25px 12px; }

  .music-container {
    padding: 38px 22px;
    border-radius: 30px;
  }

  .music-icon { font-size: 62px; }
  .music-title { font-size: 24px; }

  .music-sub {
    font-size: 13.5px;
    margin-bottom: 22px;
  }

  .artists-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 22px 0 25px;
  }

  .artist-card { min-height: 200px; }
  .artist-content { min-height: 200px; padding: 22px 18px; }
  .artist-emoji { font-size: 56px; }
  .artist-name { font-size: 22px; }
  .artist-tag { font-size: 12.5px; }

  .artist-number {
    font-size: 12px;
    top: 12px;
    left: 14px;
    padding: 4px 10px;
  }

  .player-panel.show { padding: 24px 20px; }

  .player-header {
    margin-bottom: 18px;
    padding-bottom: 15px;
  }

  .player-emoji { font-size: 40px; }
  .player-name { font-size: 19px; }
  .player-track { font-size: 12.5px; }

  .player-close {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .equalizer {
    height: 40px;
    margin-bottom: 18px;
    gap: 3px;
  }

  .equalizer span { width: 4px; }
  .equalizer.playing span { animation-duration: 0.75s; }

  @keyframes eqBounce {
    0%, 100% { height: 6px; }
    50% { height: 28px; }
  }

  .player-controls {
    gap: 16px;
    margin-bottom: 18px;
  }

  .control-btn {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .play-btn {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }

  .player-progress {
    gap: 10px;
    margin-bottom: 18px;
  }

  .time-current,
  .time-total {
    font-size: 11.5px;
    min-width: 38px;
  }

  .volume-control {
    padding: 10px 14px;
    margin-bottom: 20px;
  }

  .volume-icon { font-size: 19px; }

  .track-item {
    padding: 13px 16px;
    font-size: 14px;
    gap: 12px;
  }

  .track-play {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .track-duration {
    font-size: 11.5px;
    min-width: 40px;
  }

  .music-quote { font-size: 14px; }

  /* АЧИВКИ */
  .achievements {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .achievement {
    padding: 12px 15px;
    gap: 12px;
  }

  .achievement-icon { font-size: 26px; }
  .achievement-title { font-size: 13px; }
  .achievement-desc { font-size: 11px; }

  /* WHY MODAL */
  .why-content {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .why-emoji { font-size: 46px; }
  .why-title { font-size: 19px; }
  .why-sub { font-size: 13px; }

  .why-option {
    padding: 12px 15px;
    font-size: 13.5px;
    gap: 11px;
  }

  .why-option-emoji { font-size: 21px; }

  .why-answer {
    font-size: 13.5px;
    padding: 15px 16px;
  }

  /* ЗАЙЧИК */
  .bunny-character {
    bottom: 15px;
    left: 15px;
    transform: scale(0.85);
    transform-origin: bottom left;
  }

  .bunny-speech {
    font-size: 12.5px;
    padding: 11px 16px;
    max-width: 200px;
  }

  /* ТОСТЫ */
  .toast-container {
    bottom: 15px;
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
  }

  .toast {
    padding: 14px 18px;
    font-size: 13.5px;
    border-radius: 16px;
    gap: 12px;
  }

  .toast-close {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  body { padding: 8px 6px; }

  .slideshow {
    height: 55vh;
    min-height: 300px;
    border-radius: 16px;
  }

  .gallery-title { font-size: 18px; }
  .gallery-sub { font-size: 12px; }

  .gallery-container {
    padding: 16px 10px;
    border-radius: 20px;
  }

  .thumb {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }

  .slide-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .reasons-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
  }

  .reason-front { font-size: 30px; }
  .reason-back { font-size: 9.5px; }

  h1 { font-size: 17px; }
  .emoji { font-size: 44px; }
  .bunny { font-size: 86px; }

  .slide-caption {
    bottom: 54px;
    font-size: 11.5px;
    padding: 7px 14px;
  }

  .video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .music-toggle {
    padding: 7px 12px;
    font-size: 11px;
  }

  .page-sorry { padding: 15px 8px; }

  .sorry-container {
    padding: 30px 18px;
    border-radius: 24px;
  }

  .sorry-icon { font-size: 55px; }
  .sorry-title { font-size: 20px; }

  .sorry-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .sorry-signature p { font-size: 20px; }
  .sorry-signature.show .signature-line { width: 120px; }
  .sorry-divider span { font-size: 16px; }
  .final-heart { font-size: 26px; }

  .page-music { padding: 15px 8px; }

  .music-container {
    padding: 28px 16px;
    border-radius: 24px;
  }

  .music-icon {
    font-size: 54px;
    margin-bottom: 12px;
  }

  .music-title { font-size: 20px; }
  .music-sub { font-size: 12.5px; }

  .artists-grid {
    gap: 12px;
    margin: 18px 0;
  }

  .artist-card { min-height: 170px; }

  .artist-content {
    min-height: 170px;
    padding: 20px 14px;
  }

  .artist-emoji {
    font-size: 48px;
    margin-bottom: 10px;
  }

  .artist-name { font-size: 19px; }

  .artist-tag {
    font-size: 11.5px;
    margin-bottom: 12px;
  }

  .artist-wave { height: 18px; }
  .artist-wave span { width: 3px; }

  .player-panel.show {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .player-emoji { font-size: 34px; }
  .player-name { font-size: 17px; }
  .player-track { font-size: 11.5px; }

  .player-close {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .equalizer {
    height: 34px;
    padding: 9px;
  }

  .equalizer span { width: 3px; }

  @keyframes eqBounce {
    0%, 100% { height: 5px; }
    50% { height: 22px; }
  }

  .player-controls { gap: 12px; }

  .control-btn {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .play-btn {
    width: 56px;
    height: 56px;
    font-size: 19px;
  }

  .time-current,
  .time-total {
    font-size: 10.5px;
    min-width: 34px;
  }

  .track-item {
    padding: 12px 14px;
    font-size: 13px;
  }

  .track-play {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .track-duration {
    font-size: 10.5px;
    min-width: 36px;
  }

  .volume-control {
    padding: 9px 12px;
    gap: 10px;
  }

  .volume-icon { font-size: 17px; }

  .music-quote {
    font-size: 13px;
    line-height: 1.5;
  }

  .achievement-icon { font-size: 22px; }
  .achievement-title { font-size: 12px; }
  .achievement-desc { font-size: 10.5px; }

  .why-content { padding: 28px 18px; }
  .why-emoji { font-size: 40px; }
  .why-title { font-size: 17px; }
  .why-sub { font-size: 12.5px; }

  .why-option {
    padding: 11px 13px;
    font-size: 13px;
  }

  .why-option-emoji { font-size: 19px; }
  .why-answer { font-size: 13px; }

  .bunny-character {
    transform: scale(0.7);
    bottom: 8px;
    left: 8px;
  }

  .bunny-speech {
    font-size: 11.5px;
    padding: 9px 13px;
    max-width: 170px;
  }

  .toast-container {
    bottom: 10px;
    left: 8px;
    right: 8px;
  }

  .toast {
    padding: 12px 16px;
    font-size: 12.5px;
    border-radius: 14px;
    gap: 10px;
    line-height: 1.35;
  }

  .toast-close {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .slideshow {
    height: 50vh;
    min-height: 260px;
  }

  .thumb {
    width: 46px;
    height: 46px;
  }

  .slide-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .gallery-title { font-size: 16px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .slideshow {
    height: 70vh;
    max-height: 750px;
  }

  .gallery-title { font-size: 28px; }

  .thumb {
    width: 72px;
    height: 72px;
  }
}

@media (min-width: 1440px) {
  .gallery-container { max-width: 1300px; }
  .slideshow {
    height: 80vh;
    max-height: 950px;
  }
}

@supports (-webkit-touch-callout: none) {
  .music-toggle {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}