body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, 
    #ffe4f1 0%, 
    #fceaff 20%, 
    #e6e6fa 40%, 
    #e0faff 60%, 
    #f0f8ff 80%, 
    #ffe4f1 100%);
  background-size: 300% 300%;
  animation: dreamyFlow 25s ease infinite;
  color: #2d2d2d;
}

@keyframes dreamyFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}





/* ЭКРАН ПРИВЕТСТВИЯ */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ffc0cb, #ffe4e1);
  color: #3a3a3a;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 80px; /* увеличим отступ снизу для перехода */
}

#hero h1 {
  font-size: 3em;
  margin: 0.2em 0;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, #c61f64 10%, #781616 60%, #bc1414 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px #ffd6f655, 0 1px 2px #b3005922;
  animation: heroPulse 2.2s infinite cubic-bezier(.4,0,.2,1);
  letter-spacing: 1px;
}

@keyframes heroPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

#hero p {
  font-size: 1.35em;
  max-width: 600px;
  font-family: 'Segoe UI', sans-serif;
  color: #b30059;
  background: linear-gradient(90deg, #850229 0%, #e41537 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 8px #ffd6f633;
  font-style: italic;
  letter-spacing: 0.7px;
  margin-top: 0.5em;
}

/* Плавный переход от фона hero к фону блока счетчика */
#hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(249, 143, 161, 0) 0%,
    rgba(255, 192, 203, 0.373) 40%,
    #ffe4ec 100%
  );
  z-index: 1;
}





/* СЧЕТЧИК ДНЕЙ */
.counter-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to right, #ffe4ec, #fceaff);
  border-radius: 30px;
  margin: 40px auto 30px auto; /* отрицательный margin-top для "въезда" */
  max-width: 600px;
  box-shadow: 0 0 20px rgba(255, 192, 203, 0.3);
  position: relative;
  z-index: 2;
}

.counter-section h2 {
  font-size: 2em;
  color: #cc3377;
  margin-bottom: 10px;
  font-family: 'Trebuchet MS', sans-serif;
}

.day-counter {
  font-size: 3.5em;
  color: #ff3366;
  font-weight: bold;
  animation: pulse 2s infinite ease-in-out;
}

.since-text {
  font-size: 1.1em;
  color: #884466;
  margin-top: 10px;
}

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





/* === ЭКРАН ЗАГРУЗКИ === */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffe4f1, #fceaff);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 1s ease;
  font-family: 'Comic Sans MS', cursive, sans-serif;
}

.loader-text {
  font-size: 1.8em;
  color: #cc3366;
  text-align: center;
  padding: 20px;
  animation: fadeIn 2s ease-in-out infinite alternate;
}

@keyframes fadeIn {
  from { opacity: 0.2; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(-5px); }
}





/* СЕРДЕЧКИ */
#hearts-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}










/* === УЛУЧШЕННЫЙ МУЗЫКАЛЬНЫЙ ПЛЕЕР === */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 240, 250, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 150, 200, 0.2);
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(255, 100, 150, 0.3);
  z-index: 1000;
  transition: all 0.4s ease;
  overflow: hidden;
}

.music-player:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 100, 150, 0.4);
  border-color: rgba(255, 150, 200, 0.4);
}

/* Компактный режим */
.music-player.compact {
  width: 220px;
  height: 60px;
}

/* Полный режим */
.music-player.expanded {
  width: 350px;
  height: auto;
}

.player-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.1) 0%, 
    rgba(255, 105, 180, 0.1) 50%, 
    rgba(186, 85, 211, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-player:hover .player-background {
  opacity: 1;
}

.player-content {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* Компактный вид */
.player-compact {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  height: 100%;
  gap: 8px;
}

.compact-cover {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: rotate 20s linear infinite;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.compact-cover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.compact-cover .cover-heart {
  font-size: 16px;
  color: white;
  animation: heartbeat 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.compact-info {
  flex: 1;
  min-width: 0;
}

.compact-title {
  font-size: 12px;
  font-weight: 600;
  color: #d875aa;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.compact-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.compact-controls .control-btn {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.expand-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 150, 200, 0.2);
  color: #d875aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 10px;
}

.expand-btn:hover {
  background: rgba(255, 150, 200, 0.4);
  transform: scale(1.1);
}

/* Полный вид */
.player-full {
  padding: 20px;
}

/* Персонализированное сообщение */
.player-message {
  text-align: center;
  margin-bottom: 15px;
  opacity: 0.8;
}

.message-text {
  font-size: 12px;
  color: #d875aa;
  font-style: italic;
  animation: messageGlow 3s ease-in-out infinite alternate;
}

@keyframes messageGlow {
  0% { 
    text-shadow: 0 0 5px rgba(216, 117, 170, 0.5);
    opacity: 0.8;
  }
  100% { 
    text-shadow: 0 0 15px rgba(216, 117, 170, 0.8);
    opacity: 1;
  }
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.track-cover {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: rotate 20s linear infinite;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.track-cover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.cover-heart {
  font-size: 20px;
  color: white;
  animation: heartbeat 2s ease-in-out infinite;
}

.cover-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.track-details {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-size: 14px;
  font-weight: 600;
  color: #d875aa;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-subtitle {
  font-size: 11px;
  color: #999;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 15px 0;
}

.control-btn {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 150, 200, 0.2);
  color: #d875aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.control-btn:hover {
  background: rgba(255, 150, 200, 0.4);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 100, 150, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

.play-btn {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: white;
  width: 40px;
  height: 40px;
}

.play-btn:hover {
  background: linear-gradient(135deg, #ff7ba7, #d4557a);
}

.player-progress {
  margin-bottom: 15px;
}

.progress-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 150, 200, 0.2);
  border-radius: 3px;
  margin-bottom: 8px;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b9d, #c44569);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
}

.visualization-container {
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
}

.music-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Кнопка сворачивания */
.collapse-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 150, 200, 0.2);
  color: #d875aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.collapse-btn:hover {
  background: rgba(255, 150, 200, 0.4);
  transform: scale(1.1);
}

/* Темная тема для плеера */
[data-theme="dark"] .music-player {
  background: rgba(42, 0, 54, 0.1);
  border-color: rgba(180, 108, 255, 0.2);
  box-shadow: 0 8px 32px rgba(180, 108, 255, 0.3);
}

[data-theme="dark"] .music-player:hover {
  box-shadow: 0 12px 40px rgba(180, 108, 255, 0.4);
  border-color: rgba(180, 108, 255, 0.4);
}

[data-theme="dark"] .player-background {
  background: linear-gradient(135deg, 
    rgba(180, 108, 255, 0.1) 0%, 
    rgba(255, 89, 203, 0.1) 50%, 
    rgba(138, 43, 226, 0.1) 100%);
}

[data-theme="dark"] .message-text {
  color: #d7baff;
}

[data-theme="dark"] .track-title {
  color: #d7baff;
}

[data-theme="dark"] .track-subtitle {
  color: #b8a3d9;
}

[data-theme="dark"] .control-btn {
  background: rgba(180, 108, 255, 0.2);
  color: #d7baff;
}

[data-theme="dark"] .control-btn:hover {
  background: rgba(180, 108, 255, 0.4);
  box-shadow: 0 4px 15px rgba(180, 108, 255, 0.3);
}

[data-theme="dark"] .play-btn {
  background: linear-gradient(135deg, #b46cff, #8a2be2);
}

[data-theme="dark"] .play-btn:hover {
  background: linear-gradient(135deg, #c47cff, #9a3bf2);
}

[data-theme="dark"] .progress-bar {
  background: rgba(180, 108, 255, 0.2);
}

[data-theme="dark"] .progress-fill {
  background: linear-gradient(90deg, #b46cff, #8a2be2);
}

[data-theme="dark"] .time-info {
  color: #b8a3d9;
}

[data-theme="dark"] .visualization-container {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .compact-title {
  color: #d7baff;
}

[data-theme="dark"] .expand-btn {
  background: rgba(180, 108, 255, 0.2);
  color: #d7baff;
}

[data-theme="dark"] .expand-btn:hover {
  background: rgba(180, 108, 255, 0.4);
}

[data-theme="dark"] .collapse-btn {
  background: rgba(180, 108, 255, 0.2);
  color: #d7baff;
}

[data-theme="dark"] .collapse-btn:hover {
  background: rgba(180, 108, 255, 0.4);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .music-player.compact {
    width: 200px;
    height: 55px;
  }
  
  .music-player.expanded {
    width: 300px;
  }
  
  .music-player {
    bottom: 15px;
    right: 15px;
  }
  
  .player-compact {
    padding: 6px 10px;
    gap: 6px;
  }
  
  .player-full {
    padding: 15px;
  }
  
  .compact-cover {
    width: 35px;
    height: 35px;
  }
  
  .compact-cover .cover-heart {
    font-size: 14px;
  }
  
  .compact-title {
    font-size: 11px;
  }
  
  .track-cover {
    width: 40px;
    height: 40px;
  }
  
  .cover-heart {
    font-size: 16px;
  }
  
  .track-title {
    font-size: 13px;
  }
  
  .track-subtitle {
    font-size: 10px;
  }
  
  .control-btn {
    width: 30px;
    height: 30px;
  }
  
  .play-btn {
    width: 35px;
    height: 35px;
  }
  
  .visualization-container {
    height: 30px;
  }
  
  .expand-btn, .collapse-btn {
    width: 25px;
    height: 25px;
  }
}



.chat-section {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  margin: 40px 20px;
  scroll-margin-top: 100px;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chat-container {
  max-width: 400px;
  width: 100%;
  background-color: #ffffffaa;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  font-family: "Segoe UI", sans-serif;
}

.message {
  background-color: #f1f0f0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
}

.bot {
  background-color: #c985ea68;
  align-self: flex-start;
}

.typing-indicator {
  display: none;
  font-style: italic;
  color: #888;
  margin-bottom: 12px;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;
  animation: fadeIn 0.3s ease forwards;
}


.typing-indicator .dot {
  animation: blink 2s infinite;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}














.moments-timeline {
  padding: 40px 20px;
  background: #fff3f8;
  text-align: center;
}

.moments-timeline {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  margin: 40px 20px;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timeline-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #5e2a84;
  text-align: center;
}

.gallery-link-container {
  text-align: center;
  margin-top: 40px;
}

.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(212, 124, 240, 0.4);
  transition: all 0.3s ease;
}

.gallery-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(212, 124, 240, 0.6);
  background: linear-gradient(135deg, #ff89cb, #d77aff);
}

.gallery-link-icon {
  font-size: 1.3rem;
}

.gallery-link-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.gallery-link:hover .gallery-link-arrow {
  transform: translateX(5px);
}

.timeline-container {
  position: relative;
  margin: 0 auto;
  width: 90%;
  max-width: 800px;
  border-left: 4px solid #d9b2d9;
}



.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  left: -14px;
  top: 0;
  width: 20px;
  height: 20px;
  background: #be0a9d;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 2px solid white;
}

.timeline-date {
  position: absolute;
  left: -160px;
  top: 0;
  width: 130px;
  text-align: right;
  font-weight: bold;
  color: #871a73;
  font-size: 0.95rem;
}

.moment-popup {
  position: relative;
  display: inline-block;
  background: white;
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
  text-align: center;
  width: 90%; /* Было 200px */
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}


.moment-popup img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 6px;
}

.timeline-item:hover .moment-popup,
.timeline-item:active .moment-popup {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 📱 Только уменьшение масштаба timeline на мобильных */
@media (max-width: 700px) {
  .moments-timeline {
    padding: 24px 0 18px 0;
    background: #fff3f8;
  }
  .timeline-title {
    font-size: 1.08rem;
    margin-bottom: 10px;
    color: #5e2a84;
    text-align: left;
    padding-left: 12px;
  }
  .timeline-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    border: none;
    padding: 0 8px 8px 8px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #d9b2d9 #fff3f8;
    margin: 0;
    position: relative;
    background: none;
  }
  .timeline-container::-webkit-scrollbar {
    height: 6px;
    background: #fff3f8;
  }
  .timeline-container::-webkit-scrollbar-thumb {
    background: #e9d6ff;
    border-radius: 8px;
  }
  .timeline-item {
    min-width: 120px;
    max-width: 130px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px #d9b2d91a;
    padding: 6px 4px 10px 4px;
    margin: 0;
    position: relative;
    text-align: left;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: none;
    opacity: 1;
    transform: none;
  }
  .timeline-dot {
    position: static;
    width: 11px;
    height: 11px;
    background: #be0a9d;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.08);
    border: 2px solid #fff;
    margin-bottom: 2px;
    margin-left: 2px;
    margin-top: 2px;
    display: inline-block;
  }
  .timeline-date {
    position: static;
    margin: 0 0 4px 0;
    font-size: 0.82em;
    color: #a04890;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.1px;
    display: block;
    padding-left: 2px;
  }
  .moment-popup {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .moment-popup-img-wrap {
    width: 100%;
    margin-bottom: 4px;
  }
  .moment-popup img {
    border-radius: 7px;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 46px;
    object-fit: cover;
    box-shadow: 0 1px 4px #d9b2d91a;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .moment-popup img:hover {
    transform: scale(1.02);
  }
  .moment-popup p {
    font-size: 0.89em;
    color: #d83c70;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    font-weight: 500;
    word-break: break-word;
    padding-left: 2px;
  }
  /* Убираем вертикальную линию и сердечко/бантик */
  .timeline-container {
    border-left: none !important;
    border-top: none !important;
  }
  .timeline-container::after {
    display: none !important;
  }
}

/* Темная тема для мобильного timeline */
@media (max-width: 700px) {
  [data-theme="dark"] .timeline-item {
    background: #2a0036;
    box-shadow: 0 1px 6px #2a003633;
  }

  [data-theme="dark"] .moment-popup img {
    box-shadow: 0 1px 4px #d77aff33;
  }
  [data-theme="dark"] .moment-popup p {
    color: #d7baff;
  }
  [data-theme="dark"] .timeline-dot {
    background: #d77aff;
    border: 2px solid #ffe4ec;
  }
  [data-theme="dark"] .timeline-date {
    color: #ffb6e6;
  }
}

/* Сердечко внизу вертикальной timeline (только для десктопа) */
.timeline-container::after {
  content: "🎀";
  display: block;
  position: absolute;
  left: -26px;
  /* центрируем по оси линии (4px линия + 20px точка/2) */
  bottom: -28px;
  font-size: 2.2em;
  color: #d83c70;
  filter: drop-shadow(0 0 8px #ffb6e655);
  animation: heart-pulse 1.5s infinite cubic-bezier(.4,0,.2,1);
  z-index: 2;
  pointer-events: none;
}

/* Скрываем сердечко на мобильных (горизонтальный timeline) */
@media (max-width: 700px) {
  .timeline-container::after {
    display: none !important;
  }
}

/* ...existing code... */








.gift-section {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 40px 20px;
  position: relative;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gift-wrapper {
  position: relative;
  width: 130px;
  height: 140px;
  margin: 0 auto;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.gift-body {
  background: linear-gradient(135deg, #ff69b4 70%, #ffd6f6 100%);
  width: 110px;
  height: 90px;
  border-radius: 5px 5px 16px 16px;
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.18), 0 2px 8px rgba(255, 192, 203, 0.12);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
  border: 2px solid #fff0f6;
}

.gift-lid {
  background: linear-gradient(90deg, #ff1493 60%, #ffd6f6 100%);
  width: 120px;
  height: 50px;
  border-radius: 20px 20px 5px 5px;
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 6px 16px rgba(255, 20, 147, 0.18);
  border: 2px solid #fff0f6;
  transition: transform 0.6s cubic-bezier(.68,-0.55,.27,1.55), top 0.6s cubic-bezier(.68,-0.55,.27,1.55);
}

.gift-wrapper.open .gift-lid {
  transform: translateX(-50%) rotateZ(-16deg) translateY(-28px);
}

.gift-ribbon-vertical {
  width: 19px;
  height: 91px;
  left: 50%;
  transform: translateX(-50%);
  top: 47px;
  border-radius: 1px;
  background: linear-gradient(180deg, #fff 70%, #ffd6f6 100%);
  position: absolute;
  z-index: 3;
  box-shadow: 0 0 8px #ffd6f6;
}

.gift-ribbon-horizontal {
  height: 19px;
  width: 84%;
  top: 65%;
  transform: translateY(-40%);
  border-radius: 2px;
  background: linear-gradient(90deg, #fff 70%, #ffd6f6 100%);
  position: absolute;
  z-index: 3;
  box-shadow: 0 0 8px #ffd6f6;
  transform: translate(10.8px, -40%);

}

.gift-popup {
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.gift-wrapper.open + .gift-popup {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gift-popup.hidden {
  display: none;
}

.gift-popup-content {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.gift-popup-text {
  font-size: 1.3rem;
  color: #b6004c;
  font-weight: bold;
  margin-bottom: 20px;
  opacity: 1;
}

.ring-container {
  position: relative;
  display: inline-block;
  margin: 20px 0;
}

#ring-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 8px 16px rgba(212, 124, 240, 0.3));
  animation: ringFloat 2s ease-in-out infinite alternate;
}

.ring-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 124, 240, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes ringFloat {
  0% { transform: scale(1) rotate(0deg) translateY(0px); }
  100% { transform: scale(1.05) rotate(2deg) translateY(-5px); }
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.gift-message-reveal {
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
}

.gift-reveal-text {
  font-size: 1.4rem;
  color: #d77aff;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(212, 124, 240, 0.3);
}

.gift-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.gift-yes-btn {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 124, 240, 0.4);
  transition: all 0.3s ease;
  transform: scale(1);
  opacity: 1;
}

.gift-yes-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(212, 124, 240, 0.6);
  background: linear-gradient(135deg, #ff89cb, #d77aff);
}

.gift-yes-btn:active {
  transform: scale(0.95);
}

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

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none;
}

/* Новый футер: фон-переход, без сердечка, текст по всей ширине, низкий */
.site-footer {
  width: 100%;
  min-height: 35px;
  background: linear-gradient(180deg, #fff3f8 0%, #f3eaff 60%, #e9d6ff 100%);
  color: #7a3cff;
  text-align: center;
  padding: 18px 0 10px 0;
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  font-size: 1.08em;
  letter-spacing: 0.5px;
  box-shadow: 0 -2px 18px #b46cff18;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 50px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: background 0.3s;
}

.site-footer .footer-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 32px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.site-footer .footer-love,
.site-footer .footer-message,
.site-footer .footer-sign,
.site-footer .footer-date {
  display: inline-block;
  margin: 0 12px;
  font-size: 1em;
  color: #7a3cff;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.site-footer .footer-love {
  color: #a048c9;
  font-weight: 600;
}

.site-footer .footer-sign {
  color: #c94fcf;
  font-style: italic;
}

.site-footer .footer-date {
  color: #b46cff;
  opacity: 0.7;
}

.site-footer .footer-heart {
  font-size: 1.2em;
  margin-right: 8px;
  animation: heartbeat 2s infinite;
}

/* Улучшенные стили для нового футера */
.site-footer .footer-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 10px 0;
}

.site-footer .footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  text-decoration: none;
  color: #7a3cff;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.site-footer .footer-link:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 108, 255, 0.3);
  border-color: rgba(180, 108, 255, 0.5);
}

.site-footer .footer-link .link-icon {
  font-size: 1.1em;
}

.site-footer .footer-link .link-text {
  font-weight: 600;
}

.site-footer .footer-bottom {
  margin-top: 5px;
}

.site-footer .brand-name {
  color: #b46cff;
  font-weight: 600;
}

/* Для мобильных — текст переносится */
@media (max-width: 700px) {
  .site-footer .footer-content {
    flex-direction: column;
    gap: 4px 0;
    align-items: flex-start;
    text-align: left;
    padding: 0 10px;
  }
  .site-footer .footer-love,
  .site-footer .footer-message,
  .site-footer .footer-sign,
  .site-footer .footer-date {
    margin: 0 0 2px 0;
    display: block;
    width: 100%;
    font-size: 0.98em;
  }
}

/* Темная тема */
[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, #2a0036 0%, #3a0a3a 100%);
  color: #d7baff;
  box-shadow: 0 -2px 18px #b46cff33;
}
[data-theme="dark"] .site-footer .footer-love {
  color: #b46cff;
}
[data-theme="dark"] .site-footer .footer-message {
  color: #d7baff;
}
[data-theme="dark"] .site-footer .footer-date {
  color: #b46cff;
}
[data-theme="dark"] .site-footer .footer-sign {
  color: #ffb6e6;
}

[data-theme="dark"] .site-footer .footer-link {
  background: rgba(42, 0, 54, 0.6);
  color: #d7baff;
  border-color: transparent;
}

[data-theme="dark"] .site-footer .footer-link:hover {
  background: rgba(42, 0, 54, 0.9);
  border-color: rgba(180, 108, 255, 0.5);
  box-shadow: 0 4px 12px rgba(180, 108, 255, 0.4);
}

[data-theme="dark"] .site-footer .brand-name {
  color: #ff89cb;
}

/* Стили для секретных постов */
.secret-post-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 2px solid #c94fcf;
  position: relative;
  overflow: hidden;
  animation: secretPostAppear 0.6s ease-out;
}

.secret-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c94fcf, #ff69b4, #c94fcf);
  animation: shimmer 2s infinite;
}

.secret-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.secret-post-title {
  color: #c94fcf;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(201, 79, 207, 0.3);
}

.secret-post-date {
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

.secret-post-body {
  margin-top: 15px;
}

.secret-post-content {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  white-space: pre-wrap;
}

@keyframes secretPostAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Темная тема для секретных постов */
[data-theme="dark"] .secret-post-card {
  background: linear-gradient(135deg, #2a0036 0%, #3a0a3a 100%);
  border-color: #b46cff;
  box-shadow: 0 8px 32px rgba(180, 108, 255, 0.2);
}

[data-theme="dark"] .secret-post-card::before {
  background: linear-gradient(90deg, #b46cff, #ff69b4, #b46cff);
}

[data-theme="dark"] .secret-post-header {
  border-bottom-color: #4a0a4a;
}

[data-theme="dark"] .secret-post-title {
  color: #b46cff;
  text-shadow: 0 2px 4px rgba(180, 108, 255, 0.3);
}

[data-theme="dark"] .secret-post-date {
  color: #d7baff;
}

[data-theme="dark"] .secret-post-content {
  color: #e9ecef;
}


/* Секретный раздел */
.secret-section {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  margin: 40px 20px;
  text-align: center;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Кнопка "Открыть подарок" */
#gift-open-btn {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  border: none;
  padding: 11px 26px;
  font-size: 1.1rem;
  border-radius: 21px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(212, 124, 240, 0.4);
  transition: background 0.3s ease, transform 0.2s ease;
  user-select: none;
  display: block;
  margin: 29px auto 0 auto;
}

#gift-open-btn:hover {
  background: linear-gradient(135deg, #ff89cb, #d77aff);
  transform: scale(1.03);
}

/* Контейнер пароля */
#password-container {
  max-width: 360px;
  margin: 24px auto 0 auto;
  padding: 24px;
  background: #fdf5ff;
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(203, 125, 245, 0.2);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  display: none;
}

/* Поле ввода пароля */
#gift-password {
  width: 90%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid #e3c1f1;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(213, 132, 255, 0.1);
  color: #5e2a84;
  background-color: #ffffff;
  margin-bottom: 10px;
  transition: border-color 0.3s;
}

#gift-password:focus {
  border-color: #c94fcf;
}

/* Кнопка подтверждения */
#submit-password {
  padding: 12px 24px;
  background: #c94fcf;
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(201, 79, 207, 0.3);
  transition: background 0.3s ease;
}

#submit-password:hover {
  background: #ed45cb;
}

/* Сообщение об ошибке */
#error-message {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ee0808;
  margin-top: 8px;
}

/* Сообщение при успешном вводе */
#gift-message {
  text-align: center;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #d875aa;
  background: linear-gradient(135deg, #ffe4ec 60%, #fceaff 100%);
  border-radius: 22px;
  padding: 32px 18px;
  box-shadow: 0 2px 18px rgba(212, 124, 240, 0.13), inset 0 0 14px rgba(201, 79, 207, 0.09);
  max-width: 520px; 
  margin: 32px auto 0 auto;
  display: none;
  font-size: 1.18rem;
  letter-spacing: 0.5px;
  border: 2px solid #ffd6f6;
}

/* Сообщение для второго подарка */
#gift-message-2 {
  text-align: center;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #4fc9cf;
  background: linear-gradient(135deg, #e0faff 60%, #eafffa 100%);
  border-radius: 22px;
  padding: 32px 18px;
  box-shadow: 0 2px 18px rgba(79, 201, 207, 0.13), inset 0 0 14px rgba(79, 201, 207, 0.09);
  max-width: 520px; 
  margin: 32px auto 0 auto;
  display: none;
  font-size: 1.18rem;
  letter-spacing: 0.5px;
  border: 2px solid #b6f6ff;
}

/* Темная тема для второго блока */
[data-theme="dark"] #gift-message-2 {
  background: linear-gradient(135deg, #0a2a36 60%, #1a4d4d 100%);
  color: #b6f6ff;
  border: 2px solid #4fc9cf;
  box-shadow: 0 2px 18px #0a2a3688, inset 0 0 14px #4fc9cf33;
}

/* Скрытое навигационное меню */
.hidden-nav {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1001;
}

.nav-toggle {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 124, 240, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 124, 240, 0.6);
}

.nav-menu {
  position: absolute;
  top: 60px;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.nav-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-link {
  display: block;
  padding: 12px 20px;
  color: #5e2a84;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 8px;
}

.nav-link:hover {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  color: white;
  transform: translateX(5px);
}

/* Кнопка переключения темы — фиксированная, плавающая */
#theme-toggle {
  position: fixed;
  top: 24px;
  right: 32px;
  background: linear-gradient(135deg, #ffe4ec 60%, #fceaff 100%);
  color: #b30059;
  border: none;
  border-radius: 50%;
  font-size: 1.7em;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 2px 12px #ffd6f655;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s cubic-bezier(.4,0,.2,1),
    opacity 0.4s cubic-bezier(.4,0,.2,1),
    top 0.4s cubic-bezier(.4,0,.2,1),
    right 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 10000;
  overflow: hidden;
  opacity: 1;
  will-change: transform, opacity, top, right;
}
#theme-toggle.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7) translateY(-20px);
}
#theme-toggle:focus {
  outline: none;
}
#theme-toggle:hover {
  background: linear-gradient(135deg, #d77aff 60%, #ff89cb 100%);
  color: #fff;
  transform: scale(1.08);
}

/* Анимация кругового перехода темы */
.theme-transition-circle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: var(--theme-transition-bg, #2a0036);
  left: var(--theme-circle-x, 0);
  top: var(--theme-circle-y, 0);
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  animation: themeCircleAnim 1s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes themeCircleAnim {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
    filter: blur(0px);
  }
  40% {
    opacity: 1;
    filter: blur(2px);
  }
  80% {
    filter: blur(0px);
  }
  100% {
    width: 300vw;
    height: 300vw;
    opacity: 0;
    filter: blur(0px);
  }
}

/* Тёмная тема через data-theme */
[data-theme="dark"] body {
  background: linear-gradient(135deg,
    #2a0036 0%,
    #3a0a3a 25%,
    #4d1a4d 50%,
    #2a0036 75%,
    #3a0a3a 100%);
  color: #ffe4f1;
}
[data-theme="dark"] #hero {
  background: #2a0036;
  color: #ffe4f1;
}
[data-theme="dark"] #hero h1 {
  background: none;
  color: #ffe4f1;
  -webkit-text-fill-color: unset;
  text-shadow: 0 2px 16px #2a0036, 0 1px 2px #fff2;
  animation: heroPulse 2.2s infinite cubic-bezier(.4,0,.2,1);
  font-weight: 900;
  letter-spacing: 2px;
}
[data-theme="dark"] #hero p {
  background: none;
  color: #e2c6f7;
  -webkit-text-fill-color: unset;
  text-shadow: 0 2px 12px #2a0036, 0 1px 2px #fff2;
  font-style: italic;
  font-size: 1.25em;
  letter-spacing: 1px;
}
[data-theme="dark"] #hero::after {
  background: linear-gradient(
    to bottom,
    rgba(249, 143, 161, 0) 0%,
    rgba(120, 10, 58, 0.373) 40%,
    #4d1a4d 100%
  );
}

/* Анимация фона hero под музыку */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 182, 193, 0.1) 0%, 
    rgba(255, 105, 180, 0.1) 25%,
    rgba(186, 85, 211, 0.1) 50%,
    rgba(255, 182, 193, 0.1) 75%,
    rgba(255, 105, 180, 0.1) 100%);
  background-size: 400% 400%;
  animation: musicWave 8s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

#hero.music-playing::before {
  opacity: 1;
}

@keyframes musicWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Темная тема для музыкальной анимации */
[data-theme="dark"] #hero::before {
  background: linear-gradient(45deg, 
    rgba(180, 108, 255, 0.1) 0%, 
    rgba(255, 89, 203, 0.1) 25%,
    rgba(138, 43, 226, 0.1) 50%,
    rgba(180, 108, 255, 0.1) 75%,
    rgba(255, 89, 203, 0.1) 100%);
}
[data-theme="dark"] .counter-section {
  background: linear-gradient(to right, #3a0a3a, #4d1a4d);
  color: #ffe4f1;
  box-shadow: 0 0 20px rgba(120, 10, 58, 0.3);
}
[data-theme="dark"] .counter-section h2 {
  color: #ff89cb;
}
[data-theme="dark"] .day-counter {
  color: #ffb6e6;
  text-shadow: 0 2px 12px #3a0a3a88;
}
[data-theme="dark"] .since-text {
  color: #ffe4ec;
}
[data-theme="dark"] #preloader {
  background: linear-gradient(135deg, #3a0a3a, #4d1a4d);
  color: #ffb6e6;
}
[data-theme="dark"] .chat-section {
  background: rgba(60, 0, 60, 0.3);
  color: #ffe4f1;
}
[data-theme="dark"] .chat-container {
  background-color: #2a0036cc;
  color: #ffe4f1;
}
[data-theme="dark"] .message {
  background-color: #3a0a3a;
  color: #ffe4f1;
}
[data-theme="dark"] .bot {
  background-color: #4d1a4d;
}
[data-theme="dark"] .moments-timeline {
  background: #2a0036;
  color: #ffe4f1;
}
[data-theme="dark"] .timeline-title {
  color: #ff89cb;
}
[data-theme="dark"] .timeline-dot {
  background: #d77aff;
  border: 2px solid #ffe4ec;
}
[data-theme="dark"] .timeline-date {
  color: #ffb6e6;
}
[data-theme="dark"] .moment-popup {
  background: #3a0a3a;
  color: #ffe4f1;
  box-shadow: 0 4px 12px #2a003688;
}
[data-theme="dark"] .gift-section {
  background: #2a0036;
  color: #ffe4f1;
}
[data-theme="dark"] .gift-body {
  background: linear-gradient(135deg, #d77aff 70%, #ff89cb 100%);
  border: 2px solid #4d1a4d;
}
[data-theme="dark"] .gift-lid {
  background: linear-gradient(90deg, #ff89cb 60%, #d77aff 100%);
  border: 2px solid #4d1a4d;
}
[data-theme="dark"] .gift-ribbon-vertical,
[data-theme="dark"] .gift-ribbon-horizontal {
  background: linear-gradient(180deg, #ffe4ec 70%, #d77aff 100%);
  box-shadow: 0 0 8px #d77aff;
}
[data-theme="dark"] .gift-popup p {
  color: #ffb6e6;
}
[data-theme="dark"] #gift-open-btn {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  color: #2a0036;
}
[data-theme="dark"] #gift-open-btn:hover {
  background: linear-gradient(135deg, #ff89cb, #d77aff);
  color: #2a0036;
}
[data-theme="dark"] #password-container {
  background: #3a0a3a;
  color: #ffe4f1;
  box-shadow: 0 6px 14px #2a003688;
}
[data-theme="dark"] #gift-password {
  background-color: #2a0036;
  color: #ffe4f1;
  border: 2px solid #d77aff;
}
[data-theme="dark"] #gift-password:focus {
  border-color: #ff89cb;
}
[data-theme="dark"] #submit-password {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  color: #2a0036;
}
[data-theme="dark"] #submit-password:hover {
  background: linear-gradient(135deg, #ff89cb, #d77aff);
  color: #2a0036;
}
[data-theme="dark"] #error-message {
  color: #ff89cb;
}
[data-theme="dark"] #gift-message {
  background: linear-gradient(135deg, #3a0a3a 60%, #4d1a4d 100%);
  color: #ffb6e6;
  border: 2px solid #d77aff;
  box-shadow: 0 2px 18px #2a003688, inset 0 0 14px #d77aff33;
}
[data-theme="dark"] .site-footer {
  background: linear-gradient(90deg, #2a0036 0%, #3a0a3a 100%);
  color: #d7baff;
  box-shadow: 0 -2px 18px #b46cff33;
}

/* Темная тема для навигации */
[data-theme="dark"] .nav-menu {
  background: rgba(42, 0, 54, 0.95);
  border: 1px solid rgba(212, 124, 240, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link {
  color: #ffe4f1;
}

[data-theme="dark"] .nav-link:hover {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  color: #2a0036;
}

/* Gallery styles */
.gallery-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  margin: 40px 20px;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item-content {
  position: relative;
}

.gallery-media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.gallery-image,
.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image,
.gallery-item:hover .gallery-video {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: all 0.3s ease;
}

.gallery-item:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.2);
}

.gallery-info {
  padding: 20px;
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #5e2a84;
  margin: 0 0 10px 0;
}

.gallery-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Music player */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 15px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.music-toggle {
  background: linear-gradient(135deg, #d77aff, #ff89cb);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.1);
}

.music-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.music-title {
  font-size: 0.9rem;
  color: #5e2a84;
  font-weight: 600;
  min-width: 120px;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.music-btn:hover {
  background: rgba(212, 124, 240, 0.2);
}

.music-volume {
  width: 80px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.music-volume::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #d77aff;
  border-radius: 50%;
  cursor: pointer;
}

/* Fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fullscreen-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.fullscreen-item {
  text-align: center;
}

.fullscreen-image,
.fullscreen-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.fullscreen-info {
  margin-top: 20px;
  color: white;
}

.fullscreen-title {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  color: white;
}

.fullscreen-description {
  font-size: 1rem;
  color: #ccc;
  margin: 0;
}

/* Dark theme for gallery */
[data-theme="dark"] .gallery-section {
  background: rgba(42, 0, 54, 0.3);
  border: 1px solid rgba(212, 124, 240, 0.2);
}

[data-theme="dark"] .gallery-item {
  background: rgba(42, 0, 54, 0.8);
  border: 1px solid rgba(212, 124, 240, 0.3);
}

[data-theme="dark"] .gallery-title {
  color: #ff89cb;
}

[data-theme="dark"] .gallery-description {
  color: #d7baff;
}

[data-theme="dark"] .music-player {
  background: rgba(42, 0, 54, 0.95);
  border: 1px solid rgba(212, 124, 240, 0.3);
}

[data-theme="dark"] .music-title {
  color: #ffe4f1;
}

/* Mobile gallery styles */
@media (max-width: 700px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .gallery-media {
    height: 200px;
  }
  
  .gallery-info {
    padding: 15px;
  }
  
  .gallery-title {
    font-size: 1.1rem;
  }
  
  .music-player {
    bottom: 10px;
    right: 10px;
    padding: 10px 15px;
  }
  
  .music-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .music-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .fullscreen-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .fullscreen-image,
  .fullscreen-video {
    max-height: 60vh;
  }
}

/* Temporary message styles */
.temporary-message-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.5s ease-in-out;
}

.temporary-message {
  background: linear-gradient(135deg, #ffe4f1 0%, #fceaff 100%);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid #d77aff;
  position: relative;
  animation: slideIn 0.6s ease-out;
}

.temporary-message-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: #5e2a84;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.temporary-message-close:hover {
  background: #d77aff;
  color: white;
  transform: scale(1.1);
}

.temporary-message-content {
  text-align: center;
}

.temporary-message-title {
  font-size: 1.8rem;
  color: #5e2a84;
  margin: 0 0 20px 0;
  font-weight: bold;
}

.temporary-message-text {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.temporary-message-timer {
  font-size: 1rem;
  color: #d77aff;
  font-weight: bold;
  padding: 10px 20px;
  background: rgba(212, 124, 240, 0.1);
  border-radius: 15px;
  border: 2px solid #d77aff;
}

/* Dark theme for temporary message */
[data-theme="dark"] .temporary-message {
  background: linear-gradient(135deg, #2a0036 0%, #4a1a5c 100%);
  border: 3px solid #ff89cb;
}

[data-theme="dark"] .temporary-message-title {
  color: #ff89cb;
}

[data-theme="dark"] .temporary-message-text {
  color: #d7baff;
}

[data-theme="dark"] .temporary-message-timer {
  color: #ff89cb;
  background: rgba(255, 137, 203, 0.1);
  border: 2px solid #ff89cb;
}

[data-theme="dark"] .temporary-message-close {
  background: rgba(42, 0, 54, 0.8);
  color: #ff89cb;
}

[data-theme="dark"] .temporary-message-close:hover {
  background: #ff89cb;
  color: #2a0036;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile styles for temporary message */
@media (max-width: 700px) {
  .temporary-message {
    margin: 20px;
    padding: 25px;
  }
  
  .temporary-message-title {
    font-size: 1.5rem;
  }
  
  .temporary-message-text {
    font-size: 1rem;
  }
  
  .temporary-message-timer {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}
[data-theme="dark"] .site-footer .footer-love {
  color: #b46cff;
}
[data-theme="dark"] .site-footer .footer-message {
  color: #d7baff;
}
[data-theme="dark"] .site-footer .footer-date {
  color: #b46cff;
}
[data-theme="dark"] .site-footer .footer-sign {
  color: #ffb6e6;
}

[data-theme="dark"] .site-footer .footer-link {
  background: rgba(42, 0, 54, 0.6);
  color: #d7baff;
  border-color: transparent;
}

[data-theme="dark"] .site-footer .footer-link:hover {
  background: rgba(42, 0, 54, 0.9);
  border-color: rgba(180, 108, 255, 0.5);
  box-shadow: 0 4px 12px rgba(180, 108, 255, 0.4);
}

[data-theme="dark"] .site-footer .brand-name {
  color: #ff89cb;
}

/* Стили для секретных постов */
.secret-post-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 2px solid #c94fcf;
  position: relative;
  overflow: hidden;
  animation: secretPostAppear 0.6s ease-out;
}

.secret-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c94fcf, #ff69b4, #c94fcf);
  animation: shimmer 2s infinite;
}

.secret-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.secret-post-title {
  color: #c94fcf;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(201, 79, 207, 0.3);
}

.secret-post-date {
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

.secret-post-body {
  margin-top: 15px;
}

.secret-post-content {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  white-space: pre-wrap;
}

@keyframes secretPostAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Темная тема для секретных постов */
[data-theme="dark"] .secret-post-card {
  background: linear-gradient(135deg, #2a0036 0%, #3a0a3a 100%);
  border-color: #b46cff;
  box-shadow: 0 8px 32px rgba(180, 108, 255, 0.2);
}

[data-theme="dark"] .secret-post-card::before {
  background: linear-gradient(90deg, #b46cff, #ff69b4, #b46cff);
}

[data-theme="dark"] .secret-post-header {
  border-bottom-color: #4a0a4a;
}

[data-theme="dark"] .secret-post-title {
  color: #b46cff;
  text-shadow: 0 2px 4px rgba(180, 108, 255, 0.3);
}

[data-theme="dark"] .secret-post-date {
  color: #d7baff;
}

[data-theme="dark"] .secret-post-content {
  color: #e9ecef;
}

/* Надпись над коробочкой */
.gift-message-above {
  text-align: center;
  font-size: 1.25em;
  font-weight: 700;
  color: #b6004c;
  margin-bottom: 18px;
  min-height: 1.5em;
  transition: opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}
.gift-message-above.active {
  opacity: 1;
}

/* Старые стили кнопок предложения удалены - заменены на новый дизайн */

/* Мобильная адаптация для подарка */
@media (max-width: 700px) {
  .gift-popup-content {
    padding: 15px;
  }
  
  .gift-popup-text {
    font-size: 1.1rem;
  }
  
  .gift-reveal-text {
    font-size: 1.2rem;
  }
  
  #ring-img {
    width: 100px;
    height: 100px;
  }
  
  .ring-glow {
    width: 120px;
    height: 120px;
  }
  
  .gift-yes-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
  
  /* Мобильная адаптация для навигации */
  .hidden-nav {
    top: 16px;
    left: 16px;
  }
  
  .nav-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .nav-menu {
    min-width: 180px;
    top: 55px;
  }
  
  .nav-link {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* --- Мобильная адаптация: полноэкранный просмотр фото timeline --- */
@media (max-width: 700px) {
  .timeline-item {
    /* ...existing code... */
    z-index: 1;
  }
  .moment-popup-img-wrap {
    cursor: pointer;
    position: relative;
    z-index: 1;
  }
  /* Оверлей для полноэкранного фото */
  .timeline-photo-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 0, 40, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInPhoto 0.3s;
    cursor: pointer;
    transition: background 0.2s;
  }
  @keyframes fadeInPhoto {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .timeline-photo-fullscreen img {
    max-width: 98vw;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px #d77aff55;
    background: #fff;
    object-fit: contain;
    transition: box-shadow 0.2s;
    display: block;
  }
  .timeline-photo-fullscreen-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 2.2em;
    color: #fff;
    background: none;
    border: none;
    z-index: 10001;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    padding: 0 8px;
  }
  .timeline-photo-fullscreen-close:active {
    opacity: 0.5;
  }
}

/* === НАША ВСЕЛЕННАЯ === */
.universe-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 120vh;
}

.universe-header {
  text-align: center;
  margin-bottom: 40px;
  z-index: 10;
  position: relative;
}

.universe-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  font-family: 'Comic Sans MS', cursive, sans-serif;
}

.universe-title i {
  color: #ffd700;
  margin-right: 15px;
  animation: twinkle 2s infinite alternate;
}

.universe-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  opacity: 0.9;
  font-style: italic;
}

.universe-container {
  position: relative;
  width: 100%;
  height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

#universe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.universe-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.universe-popup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  border: 2px solid #ffd700;
  position: relative;
  animation: slideIn 0.5s ease-out;
}

.universe-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: #ffd700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.universe-close:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.1);
}

.universe-content h3 {
  font-size: 1.8rem;
  color: #ffd700;
  margin: 0 0 20px 0;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.universe-memory-image {
  text-align: center;
  margin: 20px 0;
}

.universe-memory-image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.universe-content p {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
  margin: 20px 0;
  text-align: center;
}

.universe-memory-date {
  text-align: center;
  font-size: 0.9rem;
  color: #ffd700;
  font-weight: bold;
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Анимации для вселенной */
@keyframes twinkle {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Темная тема для вселенной */
[data-theme="dark"] .universe-section {
  background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #2d0047 100%);
}

[data-theme="dark"] .universe-popup {
  background: linear-gradient(135deg, #2a0036 0%, #4a1a5c 100%);
  border-color: #ff89cb;
}

[data-theme="dark"] .universe-title i,
[data-theme="dark"] .universe-content h3,
[data-theme="dark"] .universe-memory-date {
  color: #ff89cb;
}

[data-theme="dark"] .universe-close {
  color: #ff89cb;
}

[data-theme="dark"] .universe-close:hover {
  background: rgba(255, 137, 203, 0.2);
}

/* Мобильная версия */
@media (max-width: 768px) {
  .universe-section {
    padding: 40px 10px;
  }
  
  .universe-title {
    font-size: 2rem;
  }
  
  .universe-subtitle {
    font-size: 1rem;
  }
  
  .universe-container {
    height: 75vh;
  }
  
  .universe-popup {
    padding: 20px;
    margin: 10px;
  }
  
  .universe-content h3 {
    font-size: 1.5rem;
  }
}





