/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Jost:wght@500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(200, 70%, 60%);
  --white-color: hsl(0, 0%, 95%);
  --black-color: hsl(0, 0%, 10%);
  --body-color: hsl(220, 20%, 8%);
  --mystery-color: hsl(280, 60%, 50%);
  --glow-color: hsl(200, 100%, 70%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Jost", sans-serif;
  --second-font: "Cormorant Garamond", serif;
  --biggest-font-size: 3.5rem;
  --bigger-font-size: 2.75rem;
  --big-font-size: 1.25rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Light Theme Variables ==========*/
.light-theme {
  --body-color: hsl(220, 20%, 95%);
  --white-color: hsl(0, 0%, 10%);
  --black-color: hsl(0, 0%, 95%);
  --glow-color: hsl(200, 80%, 40%);
}

/* Light theme для разных альбомов */
.light-theme.theme-otdel {
  --album-primary: hsl(280, 60%, 60%);
  --album-secondary: hsl(200, 100%, 80%);
  --album-accent: hsl(320, 70%, 70%);
  --album-bg: hsl(220, 20%, 95%);
  --album-text: hsl(0, 0%, 10%);
}

.light-theme.theme-nockt {
  --album-primary: hsl(210, 80%, 70%);
  --album-secondary: hsl(190, 90%, 80%);
  --album-accent: hsl(240, 70%, 60%);
  --album-bg: hsl(220, 25%, 95%);
  --album-text: hsl(0, 0%, 10%);
}

.light-theme.theme-room {
  --album-primary: hsl(30, 70%, 60%);
  --album-secondary: hsl(45, 80%, 70%);
  --album-accent: hsl(15, 80%, 50%);
  --album-bg: hsl(25, 15%, 95%);
  --album-text: hsl(0, 0%, 10%);
}

.light-theme.theme-koko {
  --album-primary: hsl(340, 70%, 70%);
  --album-secondary: hsl(320, 80%, 80%);
  --album-accent: hsl(360, 80%, 60%);
  --album-bg: hsl(340, 20%, 95%);
  --album-text: hsl(0, 0%, 10%);
}

.light-theme.theme-malo {
  --album-primary: hsl(35, 40%, 50%);
  --album-secondary: hsl(25, 45%, 60%);
  --album-accent: hsl(15, 50%, 40%);
  --album-bg: hsl(220, 10%, 96%);
  --album-text: hsl(0, 0%, 12%);
}

.light-theme.theme-vogne {
  --album-primary: hsl(325, 75%, 58%);
  --album-secondary: hsl(205, 95%, 48%);
  --album-accent: hsl(340, 82%, 62%);
  --album-bg: hsl(325, 35%, 94%);
  --album-text: hsl(0, 0%, 10%);
}

/*========== Album Theme Variables ==========*/
/* Отдел забытых вещей (текущий) */
.theme-otdel {
  --album-primary: hsl(280, 60%, 50%);
  --album-secondary: hsl(200, 100%, 70%);
  --album-accent: hsl(320, 70%, 60%);
  --album-bg: hsl(220, 20%, 8%);
  --album-text: hsl(0, 0%, 95%);
  --album-bg-image: url('/assets/img/optimized/back.jpg');
}

/* Ноктюрнморт */
.theme-nockt {
  --album-primary: hsl(210, 80%, 60%);
  --album-secondary: hsl(190, 90%, 70%);
  --album-accent: hsl(240, 70%, 50%);
  --album-bg: hsl(220, 25%, 12%);
  --album-text: hsl(0, 0%, 95%);
  --album-bg-image: url('/assets/img/optimized/noct1.jpg');
}

/* Комната */
.theme-room {
  --album-primary: hsl(30, 70%, 50%);
  --album-secondary: hsl(45, 80%, 60%);
  --album-accent: hsl(15, 80%, 40%);
  --album-bg: hsl(25, 15%, 10%);
  --album-text: hsl(0, 0%, 95%);
  --album-bg-image: url('/assets/img/optimized/room.jpg');
}

/* Коко */
.theme-koko {
  --album-primary: hsl(340, 70%, 60%);
  --album-secondary: hsl(320, 80%, 70%);
  --album-accent: hsl(360, 80%, 50%);
  --album-bg: hsl(340, 20%, 8%);
  --album-text: hsl(0, 0%, 95%);
  --album-bg-image: url('/assets/img/optimized/koko.jpg');
}

/* malo */
.theme-malo {
  --album-primary: hsl(35, 40%, 55%);
  --album-secondary: hsl(25, 45%, 65%);
  --album-accent: hsl(15, 50%, 45%);
  --album-bg: hsl(220, 15%, 12%);
  --album-text: hsl(0, 0%, 92%);
  --album-bg-image: url('/assets/img/optimized/malo.jpg');
}

/* В огне тинейджера */
.theme-vogne {
  --album-primary: hsl(325, 78%, 60%);
  --album-secondary: hsl(205, 100%, 58%);
  --album-accent: hsl(342, 82%, 66%);
  --album-bg: hsl(320, 34%, 10%);
  --album-text: hsl(0, 0%, 95%);
  --album-bg-image: url('/assets/img/optimized/vogne-teen-fire-logo.jpg');
}

/* Эффект рисования для malo */
.theme-malo .home {
  position: relative;
  overflow: hidden;
}

.theme-malo .home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--album-bg-image) center center / cover no-repeat;
  z-index: -2;
}

/* Улучшенный затемняющий слой для malo для лучшей читаемости */
.theme-malo .home::before {
  background: rgba(15, 15, 25, 0.7) !important;
}

/* Слой прогрессивного проявления фотографии */
.painting-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--painting-stage-image, none) center center / cover no-repeat;
  z-index: -1;
  transition: all 1s ease-in-out;
  opacity: var(--painting-opacity, 0);
  filter: 
    brightness(var(--painting-brightness, 0.3)) 
    contrast(var(--painting-contrast, 0.5)) 
    saturate(var(--painting-saturation, 0.2));
}

/* Анимация рисования */
@keyframes paintStroke {
  0% {
    transform: translateX(-100%) translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%);
    opacity: 0;
  }
}

/* Эффект мерцания при смене этапов рисования */
@keyframes paintingFlash {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* Эффект кисти */
.paint-brush {
  position: absolute;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: paintStroke 2s ease-in-out infinite;
}

.paint-brush:nth-child(1) { animation-delay: 0s; }
.paint-brush:nth-child(2) { animation-delay: 0.5s; }
.paint-brush:nth-child(3) { animation-delay: 1s; }
.paint-brush:nth-child(4) { animation-delay: 1.5s; }

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 6rem;
    --bigger-font-size: 4.5rem;
    --big-font-size: 2rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--album-bg, var(--body-color));
  color: var(--album-text, var(--white-color));
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  transition: background-color 0.6s ease, color 0.6s ease, background-image 0.6s ease;
}

/* Light theme background */
.light-theme {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
}

/* Light theme для главной секции */
.light-theme .home {
  background-color: var(--album-bg, var(--body-color));
}

.light-theme .home__title {
  color: var(--album-text, var(--white-color));
}

.light-theme .home__subtitle {
  color: var(--album-secondary, var(--glow-color));
}

.light-theme .home__description {
  color: var(--album-text, var(--white-color));
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(34, 34, 34, 0.9);
  backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  transition: background-color 0.4s;
}

/* Light theme header */
.light-theme .header {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

/* Light theme для навигации */
.light-theme .nav__link {
  color: var(--album-text, var(--white-color));
}

.light-theme .nav__link:hover {
  color: var(--album-secondary, var(--glow-color));
  text-shadow: 0 0 5px var(--album-secondary, var(--glow-color));
}

.light-theme .nav__close,
.light-theme .nav__toggle {
  color: var(--album-text, var(--white-color));
}

.light-theme .nav__close:hover,
.light-theme .nav__toggle:hover {
  color: var(--album-secondary, var(--glow-color));
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--second-font);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  color: var(--album-secondary, var(--glow-color));
  text-shadow: 0 0 10px var(--album-secondary, var(--glow-color));
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
  align-items: center;
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-medium);
  transition: color 0.4s, text-shadow 0.4s;
}

.nav__link:hover {
  color: var(--album-secondary, var(--glow-color));
  text-shadow: 0 0 5px var(--album-secondary, var(--glow-color));
}

.nav__close,
.nav__toggle {
  display: flex;
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
  transition: color 0.4s;
}

.nav__close:hover,
.nav__toggle:hover {
  color: var(--glow-color);
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
    width: 80%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    transition: right 0.4s;
  }
  
  /* Light theme mobile menu */
  .light-theme .nav__menu {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add shadow header */
.shadow-header {
  background-color: rgba(34, 34, 34, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Light theme shadow header */
.light-theme .shadow-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

/*=============== HOME ===============*/
.home {
  position: relative;
  height: 100vh;
  display: grid;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--album-bg-image, url('/assets/img/optimized/back.jpg')) center center / cover no-repeat;
  z-index: 1;
  transition: background 0.6s ease;
  cursor: grab;
}

.home:active {
  cursor: grabbing;
}
.home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,20,40,0.55);
  z-index: 2;
  pointer-events: none;
  transition: background 0.4s;
}

/* Light theme home overlay */
.light-theme .home::before {
  background: rgba(255,255,255,0.3);
}
.home__container, .home__content, .home__images {
  position: relative;
  z-index: 3;
}

.home__container {
  display: grid;
  row-gap: 2rem;
  padding-block: 1rem 3rem;
}

.home__content {
  text-align: center;
}

.home__subtitle {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--album-secondary, var(--glow-color));
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px var(--album-secondary, var(--glow-color));
}

a.home__subtitle--link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

a.home__subtitle--link:hover,
a.home__subtitle--link:focus-visible {
  opacity: 0.92;
  text-shadow: 0 0 12px var(--album-secondary, var(--glow-color));
}

.home__title {
  font-family: var(--second-font);
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(200, 100, 255, 0.5);
  max-width: 100%;
  box-sizing: border-box;
}

.home__title span {
  color: var(--album-primary, var(--mystery-color));
  text-shadow: 0 0 15px var(--album-primary, var(--mystery-color));
}

/* Эффект подсветки заголовка для каждого альбома */
.home__title {
  position: relative;
  z-index: 10;
}

/* Убираем подсветку заголовка */

/* Цвета для слова "ОТДЕЛ" в зависимости от альбома */
.theme-koko #album-title-main {
  color: #ff4444; /* Красный для Коко */
  text-shadow: 
    0 0 15px #ff4444,
    0 0 30px rgba(255, 68, 68, 0.5),
    0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.4);
}

/* Убираем цветной фон для Коко */

.theme-room #album-title-main {
  color: #ff8800; /* Оранжевый для Комната */
  text-shadow: 
    0 0 15px #ff8800,
    0 0 30px rgba(255, 136, 0, 0.5),
    0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.4);
}

/* Убираем цветной фон для Комната */

.theme-nockt #album-title-main {
  color: #4488ff; /* Синий для Ноктюрнморт */
  text-shadow: 
    0 0 15px #4488ff,
    0 0 30px rgba(68, 136, 255, 0.5),
    0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.4);
}

/* Убираем цветной фон для Ноктюрнморт */

.theme-otdel #album-title-main {
  color: #8844ff; /* Фиолетовый для Отдел забытых вещей */
  text-shadow: 
    0 0 15px #8844ff,
    0 0 30px rgba(136, 68, 255, 0.5),
    0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.4);
}

/* Убираем цветной фон для Отдел забытых вещей */

/* Стили для подзаголовка "ЗАБЫТЫХ ВЕЩЕЙ" */
#album-subtitle-main {
  color: var(--white-color);
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.6);
  font-weight: var(--font-medium);
  word-wrap: break-word;
  hyphens: auto;
}

/* Убираем эффект hover */

.theme-malo #album-title-main,
.theme-otbleski #album-title-main {
  color: #e8c99b; /* Теплый бежевый для malo/Отблески */
  text-shadow: 
    0 0 20px rgba(232, 201, 155, 0.8),
    0 0 40px rgba(232, 201, 155, 0.6),
    0 0 60px rgba(232, 201, 155, 0.4),
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.85),
    0 0 9px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
}

.theme-vogne #album-title-main {
  color: #6dc8ff;
  text-shadow:
    0 0 18px rgba(109, 200, 255, 0.9),
    0 0 36px rgba(109, 200, 255, 0.6),
    0 0 60px rgba(255, 74, 174, 0.45),
    0 0 3px rgba(255, 255, 255, 0.9);
}

/* Заголовок «В огне / тинейджера» — вся строка масштабируется по ширине экрана */
.theme-vogne .home__title {
  font-size: clamp(1.05rem, 4.5vw + 0.55rem, 3.75rem);
  line-height: 1.08;
  padding-inline: clamp(0.35rem, 3.5vw, 1.25rem);
  max-width: 100%;
  box-sizing: border-box;
}

.theme-vogne #album-title-main,
.theme-vogne #album-subtitle-main {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}

.theme-vogne #album-subtitle-main {
  font-size: 0.88em;
  margin-top: 0.12em;
}

/* Улучшение читаемости для malo */
.theme-malo .home__subtitle {
  color: var(--album-secondary);
  text-shadow: 
    0 0 10px rgba(232, 201, 155, 0.6),
    0 0 2px rgba(255, 255, 255, 0.8);
}

.theme-malo .home__description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 
    0 0 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

.theme-malo .album-info {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1rem;
}

.theme-malo .album-title,
.theme-malo .album-year {
  color: var(--album-text);
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Принудительное масштабирование для НОКТЮРНМОРТ на маленьких экранах */
@media screen and (max-width: 480px) {
  .theme-nockt #album-title-main {
    font-size: clamp(0.8rem, 8vw, 2rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
}

.home__description {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.home__button {
  display: inline-block;
  background: linear-gradient(45deg, var(--album-primary, var(--mystery-color)), var(--album-secondary, var(--first-color)));
  color: var(--album-text, var(--white-color));
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: all 0.4s;
  box-shadow: 0 0 20px var(--album-primary, rgba(200, 100, 255, 0.3));
}

.home__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--album-primary, rgba(200, 100, 255, 0.5));
}

.home__images {
  position: relative;
  display: flex;
  justify-content: center;
  height: 300px;
}

/* Animated Clouds */
.home__clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home__cloud {
  position: absolute;
  width: 80px;
  opacity: 0.3;
  filter: brightness(0.8) hue-rotate(200deg);
  animation: float 6s ease-in-out infinite;
}

.home__cloud-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.home__cloud-2 {
  top: 40%;
  right: 10%;
  animation-delay: 2s;
}

.home__cloud-3 {
  top: 60%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Animated ship */
.home__ship {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.home__ship-img {
  width: 200px;
  filter: brightness(0.7) hue-rotate(200deg);
  animation: shipFloat 4s ease-in-out infinite;
}

@keyframes shipFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

/* Animated waves */
.home__waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
}

.home__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.3;
  filter: brightness(0.6) hue-rotate(200deg);
}

.home__wave-1 {
  animation: waveMove 8s linear infinite;
  z-index: 1;
}

.home__wave-2 {
  animation: waveMove 6s linear infinite;
  animation-delay: 1s;
  z-index: 2;
}

.home__wave-3 {
  animation: waveMove 4s linear infinite;
  animation-delay: 2s;
  z-index: 3;
}

@keyframes waveMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/*=============== SECTIONS ===============*/
.section {
  padding-block: 5rem 2rem;
}

.section__title {
  font-family: var(--second-font);
  font-size: var(--bigger-font-size);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--album-text, var(--white-color));
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.section__subtitle {
  font-size: var(--normal-font-size);
  text-align: center;
  color: var(--album-secondary, var(--glow-color));
  margin-bottom: 3rem;
  opacity: 0.8;
}

.release-mode {
  display: none;
}

.release-mode.release-mode--active {
  display: block;
}

.release-mode.is-hidden {
  display: none;
}

.release-portal {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.release-portal__container {
  width: 100%;
}

.release-portal__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.release-portal__description {
  color: var(--album-text, var(--white-color));
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 auto 1.5rem auto;
  max-width: 620px;
}

.release-portal__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(45deg, var(--album-primary, var(--mystery-color)), var(--album-secondary, var(--first-color)));
  color: var(--album-text, var(--white-color));
  padding: 1rem 1.5rem;
  border-radius: 0.6rem;
  font-weight: var(--font-medium);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 20px var(--album-primary, rgba(200, 100, 255, 0.35));
}

.release-portal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--album-primary, rgba(200, 100, 255, 0.45));
}

.release-mode[data-release-mode="legacy"] .release-portal__content {
  border-color: rgba(255, 255, 255, 0.24);
}

.release-mode[data-release-mode="legacy"] .section__subtitle {
  margin-bottom: 1.5rem;
}

.release-mode--reserved {
  display: none !important;
}

.release-yandex-block {
  margin-top: 2rem;
  width: 100%;
}

.release-yandex-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--album-text, var(--white-color));
}

.release-yandex-fallback {
  opacity: 0.85;
  margin: 1rem 0;
}

/* =============== KOKO POLAROID =============== */
.koko-polaroid-mechanic {
  margin: 1.5rem 0 2rem;
}

.koko-polaroid-flash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1990;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
}

.koko-polaroid-flash.is-active {
  animation: koko-polaroid-flash 0.4s ease-out forwards;
}

@keyframes koko-polaroid-flash {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

.koko-polaroid-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.koko-polaroid-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.koko-polaroid-trigger__img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.koko-polaroid-trigger:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.04);
}

.koko-polaroid-trigger:hover:not(:disabled) .koko-polaroid-trigger__img {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4));
}

.koko-polaroid-trigger:disabled,
.koko-polaroid-trigger.is-empty {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.koko-cartridge {
  min-width: 160px;
  text-align: left;
}

.koko-cartridge__label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.koko-cartridge__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.koko-cartridge__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--album-primary, #c864ff), var(--album-accent, #ff88cc));
  transition: width 0.35s ease;
}

.koko-cartridge__count {
  font-size: 0.85rem;
  opacity: 0.9;
}

.koko-cartridge-reload {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--album-text, var(--white-color));
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.koko-cartridge-reload:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--album-primary, rgba(200, 100, 255, 0.5));
}

.koko-cartridge-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.koko-cartridge-actions .koko-cartridge-reload {
  margin-top: 0;
}

.koko-polaroid-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  min-height: 120px;
  padding: 0.5rem 0;
}

.koko-polaroid-shot {
  --develop-progress: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform: rotate(var(--polaroid-rotate, 0deg));
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.45s ease, translate 0.45s ease;
}

.koko-polaroid-shot.is-visible {
  opacity: 1;
  translate: 0 0;
}

.koko-polaroid-shot.is-shaking {
  animation: koko-polaroid-shake 0.45s ease-in-out;
}

@keyframes koko-polaroid-shake {
  0%,
  100% {
    transform: rotate(var(--polaroid-rotate, 0deg)) translate(0, 0);
  }
  20% {
    transform: rotate(calc(var(--polaroid-rotate, 0deg) - 3deg)) translate(-3px, 1px);
  }
  40% {
    transform: rotate(calc(var(--polaroid-rotate, 0deg) + 3deg)) translate(3px, -1px);
  }
  60% {
    transform: rotate(calc(var(--polaroid-rotate, 0deg) - 2deg)) translate(-2px, 0);
  }
  80% {
    transform: rotate(calc(var(--polaroid-rotate, 0deg) + 2deg)) translate(2px, 0);
  }
}

.koko-polaroid-shot__frame {
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.koko-polaroid-shot__photo {
  position: relative;
  display: block;
  width: auto;
  max-width: min(220px, 46vw);
  line-height: 0;
  overflow: hidden;
  background: transparent;
}

.koko-polaroid-shot__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(280px, 52vh);
  object-fit: contain;
  opacity: var(--develop-progress, 0);
  filter: contrast(calc(0.75 + var(--develop-progress, 0) * 0.25))
    saturate(calc(0.6 + var(--develop-progress, 0) * 0.4))
    brightness(calc(0.85 + var(--develop-progress, 0) * 0.15));
  transition: opacity 0.15s linear, filter 0.15s linear;
}

.koko-polaroid-shot.is-developed .koko-polaroid-shot__frame img {
  opacity: 1;
  filter: none;
}

.koko-polaroid-shot__emulsion {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #faf9f6 0%, #eceae4 100%);
  opacity: calc(1 - var(--develop-progress, 0));
  pointer-events: none;
  transition: opacity 0.15s linear;
}

.koko-polaroid-shot.is-developed .koko-polaroid-shot__emulsion {
  opacity: 0;
}

/* =============== FAN POLAROID (Коко) =============== */
.modal__content--fan-polaroid {
  max-width: 520px;
  align-items: stretch;
  text-align: center;
}

.fan-polaroid-step {
  width: 100%;
}

.fan-polaroid__title {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--white-color);
  font-family: var(--title-font, inherit);
}

.fan-polaroid__text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0 0 1rem;
  color: var(--white-color);
}

.fan-polaroid__text--small {
  font-size: 0.85rem;
  opacity: 0.75;
}

.fan-polaroid__privacy {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--glow-color, #e8d4ff);
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: left;
}

.fan-polaroid__privacy-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.fan-polaroid__privacy-icon i {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.9;
}

.fan-polaroid__privacy-lines {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.fan-polaroid__privacy-lines span {
  display: block;
}

.fan-polaroid__error {
  color: #ffb4b4;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.fan-polaroid__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.fan-polaroid__actions--stack {
  flex-direction: column;
  align-items: stretch;
}

.fan-polaroid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  color: var(--white-color);
  font-family: inherit;
}

.fan-polaroid-btn--primary {
  background: linear-gradient(135deg, var(--album-primary, #c864ff), var(--album-accent, #ff88cc));
  border-color: transparent;
}

.fan-polaroid-btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.fan-polaroid-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.fan-polaroid-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.fan-polaroid-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.fan-polaroid-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fan-polaroid-btn--link {
  width: 100%;
}

.fan-polaroid-source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 400px) {
  .fan-polaroid-source-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fan-polaroid-source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  min-height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white-color);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fan-polaroid-source-card i {
  font-size: 1.75rem;
  opacity: 0.9;
}

.fan-polaroid-source-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--album-primary, rgba(200, 100, 255, 0.5));
}

.fan-polaroid-bg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
  max-height: 45vh;
  overflow-y: auto;
}

@media (min-width: 440px) {
  .fan-polaroid-bg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fan-polaroid-bg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  color: var(--white-color);
  font-size: 0.72rem;
  transition: border-color 0.2s ease;
}

.fan-polaroid-bg-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.35rem;
}

.fan-polaroid-bg-item.is-selected,
.fan-polaroid-bg-item:hover {
  border-color: var(--album-primary, #c864ff);
}

.fan-polaroid-camera-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}

.fan-polaroid-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.fan-polaroid-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 0.5rem;
  cursor: pointer;
  user-select: none;
  color: var(--white-color);
  font-size: 0.85rem;
}

.fan-polaroid-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fan-polaroid-toggle__box {
  width: 2.1rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fan-polaroid-toggle__box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.fan-polaroid-toggle input:checked + .fan-polaroid-toggle__box {
  background: linear-gradient(135deg, var(--album-primary, #c864ff), var(--album-accent, #ff88cc));
  border-color: transparent;
}

.fan-polaroid-toggle input:checked + .fan-polaroid-toggle__box::after {
  transform: translateX(0.95rem);
}

.fan-polaroid-toggle__label {
  text-align: left;
}

.fan-polaroid-preview-wrap,
.fan-polaroid-result-wrap {
  margin: 0 auto 1rem;
  max-width: 320px;
}

.fan-polaroid-photo-frame {
  aspect-ratio: 1860 / 1924;
  object-fit: cover;
}

.fan-polaroid-preview-img {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  border-radius: 0.25rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Проявка результата — как у .koko-polaroid-shot */
.fan-polaroid-result-develop {
  --develop-progress: 0;
  display: block;
  margin: 0 auto;
  max-width: 320px;
}

.fan-polaroid-result-develop__photo {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 0.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.fan-polaroid-result-develop .fan-polaroid-result-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
  border-radius: 0.25rem;
  opacity: var(--develop-progress, 0);
  filter: contrast(calc(0.75 + var(--develop-progress, 0) * 0.25))
    saturate(calc(0.6 + var(--develop-progress, 0) * 0.4))
    brightness(calc(0.85 + var(--develop-progress, 0) * 0.15));
  transition: opacity 0.15s linear, filter 0.15s linear;
}

.fan-polaroid-result-develop.is-developed .fan-polaroid-result-img {
  opacity: 1;
  filter: none;
}

.fan-polaroid-result-develop__emulsion {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #faf9f6 0%, #eceae4 100%);
  opacity: calc(1 - var(--develop-progress, 0));
  pointer-events: none;
  transition: opacity 0.15s linear;
  border-radius: 0.25rem;
}

.fan-polaroid-result-develop.is-developed .fan-polaroid-result-develop__emulsion {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fan-polaroid-result-develop .fan-polaroid-result-img,
  .fan-polaroid-result-develop__emulsion {
    transition: none;
  }
}

.fan-polaroid-share-hint {
  font-size: 0.8rem;
  opacity: 0.75;
  margin: 0;
  line-height: 1.4;
  color: var(--white-color);
}

.fan-polaroid-spinner {
  width: 40px;
  height: 40px;
  margin: 1.5rem auto;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--album-primary, #c864ff);
  border-radius: 50%;
  animation: fan-polaroid-spin 0.8s linear infinite;
}

@keyframes fan-polaroid-spin {
  to {
    transform: rotate(360deg);
  }
}

.fan-polaroid-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* =============== ROOM LYRICS STICKERS =============== */
.room-lyrics-stickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 1rem;
  margin: 2rem 0 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.room-lyrics-stickers__spacer {
  pointer-events: none;
  visibility: hidden;
  min-height: 1px;
}

.yandex-player-container--compact {
  display: flex;
  justify-content: center;
  margin: 1rem auto;
  max-width: 300px;
  box-shadow: none;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.yandex-player-container--compact iframe {
  max-width: 300px;
}

.room-lyrics-sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.65rem;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--album-text, var(--white-color));
}

.room-lyrics-sticker:hover {
  transform: translateY(-3px);
  border-color: var(--album-primary, rgba(255, 180, 80, 0.6));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.room-lyrics-stickers--locked .room-lyrics-sticker {
  pointer-events: none;
  cursor: default;
  opacity: 0.45;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.room-lyrics-stickers--locked .room-lyrics-sticker:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.room-lyrics-stickers--locked .room-lyrics-sticker__img {
  filter: blur(5px) saturate(0.65);
  opacity: 0.85;
}

.room-lyrics-stickers--locked .room-lyrics-sticker__title {
  filter: blur(2px);
  opacity: 0.5;
  user-select: none;
}

.room-lyrics-sticker--upcoming {
  pointer-events: none;
  cursor: default;
  opacity: 0.45;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.room-lyrics-sticker--upcoming:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.room-lyrics-sticker--upcoming .room-lyrics-sticker__img {
  filter: blur(5px) saturate(0.65);
  opacity: 0.85;
}

.room-lyrics-sticker--upcoming .room-lyrics-sticker__title {
  filter: blur(2px);
  opacity: 0.5;
  user-select: none;
}

.room-lyrics-sticker--writing {
  border-color: var(--album-primary, rgba(255, 180, 80, 0.55));
  box-shadow: 0 0 18px rgba(255, 180, 80, 0.18);
  animation: room-lyrics-sticker-writing 2.4s ease-in-out infinite;
}

@keyframes room-lyrics-sticker-writing {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 180, 80, 0.12);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 180, 80, 0.28);
  }
}

.room-lyrics-sticker--ready {
  opacity: 1;
}

.room-lyrics-sticker--bukvy {
  animation: room-lyrics-bukvy-appear 0.9s ease-out both;
}

@keyframes room-lyrics-bukvy-appear {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.room-lyrics-reveal-hint {
  margin: -0.5rem auto 0.75rem;
  max-width: 400px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.75;
  color: var(--album-text, var(--white-color));
}

.room-lyrics-reveal-progress {
  max-width: 280px;
  margin: 0 auto 1.5rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.room-lyrics-reveal-progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--album-primary, rgba(255, 180, 80, 0.85)),
    rgba(255, 220, 140, 0.95)
  );
  transition: width 0.6s ease;
}

.room-lyrics-sticker__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.room-lyrics-sticker__title {
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}

.modal__content--lyrics {
  max-width: 520px;
}

.room-lyrics-modal__title {
  margin-bottom: 1rem;
  color: var(--glow-color);
}

.room-lyrics-modal__body p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.room-lyrics-bukvy-letter {
  color: #e53935;
  font-weight: 700;
}

.room-lyrics-modal__body .room-lyrics-bukvy-letter,
.room-lyrics-page__body .room-lyrics-bukvy-letter {
  text-shadow: 0 0 10px rgba(229, 57, 53, 0.45);
}

.room-lyrics-modal__loading {
  opacity: 0.7;
  font-style: italic;
}

/* Скрытые страницы текстов (источник для стикеров) */
.room-lyrics-pages {
  display: none !important;
}

/* =============== SEO STATIC PAGES (тексты, о группе) =============== */
.seo-page {
  min-height: 100vh;
  padding: 0 1.25rem 2.5rem;
  background: var(--body-color, #0a0a12);
  color: var(--white-color, #f5f5f5);
}

.seo-page__header {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 0 0.5rem;
}

.seo-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.seo-page__nav-link {
  color: var(--glow-color, #e8c47a);
  text-decoration: none;
  opacity: 0.85;
}

.seo-page__nav-link:hover,
.seo-page__nav-link[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
}

.seo-page__main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.seo-page__article h1,
.room-lyrics-page__title {
  font-size: 1.65rem;
  margin: 0 0 1rem;
  color: var(--glow-color, #e8c47a);
  line-height: 1.25;
}

.seo-page__article h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--white-color, #f5f5f5);
}

.seo-page__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 0.35rem;
}

.seo-page__lead {
  opacity: 0.88;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.seo-page__article p,
.room-lyrics-page__body p {
  margin: 0 0 0.65rem;
  line-height: 1.6;
}

.seo-page__album-section {
  margin: 0 0 2rem;
}

.seo-page__album-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--glow-color, #e8c47a);
}

.seo-page__year {
  font-weight: normal;
  opacity: 0.75;
  font-size: 0.95em;
}

.seo-page__track-list,
.seo-page__releases {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.seo-page__track-list a,
.seo-page__releases a,
.seo-page__listen a,
.seo-page__article a {
  color: var(--glow-color, #e8c47a);
}

.seo-page__listen {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.seo-page__keywords-text {
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.55;
}

/* SEO-текст в разметке для индексации, без отображения на странице */
.seo-page__keywords--visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.seo-page__footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  opacity: 0.8;
  text-align: center;
}

.seo-page__footer a {
  color: var(--glow-color, #e8c47a);
}

.seo-page__footer-links {
  margin-top: 0.5rem;
}

.room-lyrics-page-standalone {
  min-height: 100vh;
  padding: 2rem 1.25rem 3rem;
  background: var(--body-color, #0a0a12);
  color: var(--white-color, #f5f5f5);
}

/* =============== NOCKT LIVE BUTTONS =============== */
.nockt-live-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.5rem auto 2rem;
  max-width: 420px;
}

.nockt-live-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 30, 60, 0.45);
  color: var(--album-text, var(--white-color));
  border-radius: 0.55rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nockt-live-btn:hover {
  border-color: var(--album-primary, #6a9fff);
  background: rgba(40, 60, 120, 0.55);
}

.nockt-live-btn.is-playing {
  border-color: var(--album-accent, #88bbff);
  box-shadow: 0 0 16px var(--album-primary, rgba(100, 150, 255, 0.35));
}

.nockt-live-btn i {
  font-size: 1.2rem;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .koko-polaroid-shot {
    transition: none;
  }
  .koko-polaroid-flash.is-active {
    animation: none;
    opacity: 0;
  }
  .koko-polaroid-shot.is-shaking {
    animation: none;
  }
}

/* =============== VOGNE EYE MECHANIC =============== */
.vogne-eye-widget {
  margin-top: 1.8rem;
}

.vogne-eye-frame {
  position: relative;
  width: 100%;
  max-width: min(560px, 94vw);
  margin: 0 auto;
  min-height: 460px;
  padding: 0.5rem 0.75rem 1.25rem;
  box-sizing: border-box;
  /* Нижние стикеры поднимаются выше, чтобы не заходить на подсказку и прогресс-бар */
  --vogne-sticker-bottom-lift: 7.5rem;
}

.vogne-eye-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  padding-block: 2.5rem 1.5rem;
  padding-inline: clamp(3.25rem, 11%, 5.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Стикеры скрыты, пока не «Поджечь» или пока головоломка не завершена (is-unlocked) */
.vogne-eye-frame:not(.vogne-eye-frame--stickers-live):not(:has(.vogne-eye-stage.is-unlocked))
  .vogne-sticker {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: none;
}

/* Tap: до «Поджечь» кнопка и сцена кликабельны поверх скрытых стикеров */
.vogne-eye-frame--tap-stickers:not(.vogne-eye-frame--stickers-live):not(:has(.vogne-eye-stage.is-unlocked))
  .vogne-eye-center {
  z-index: 2;
  pointer-events: auto;
}

.vogne-eye-frame--tap-stickers:not(.vogne-eye-frame--stickers-live):not(:has(.vogne-eye-stage.is-unlocked))
  .vogne-eye-status {
  pointer-events: auto;
  z-index: 12;
}

.vogne-audio-start-btn {
  margin-top: 0.85rem;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8f2ff;
  background: linear-gradient(165deg, rgba(36, 114, 255, 0.55), rgba(18, 52, 120, 0.75));
  border: 1px solid rgba(121, 208, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.vogne-audio-start-btn:hover:not(:disabled) {
  border-color: rgba(180, 228, 255, 0.65);
  box-shadow: 0 6px 22px rgba(36, 114, 255, 0.35);
}

.vogne-audio-start-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.vogne-audio-start-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.vogne-sticker {
  position: absolute;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

/* Мобильный режим: тап по стикеру — только когда «Поджечь» активен */
.vogne-eye-frame--tap-stickers.vogne-eye-frame--stickers-live .vogne-sticker {
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Выше блока с глазом и прогрессом, иначе центр перехватывает тапы */
  z-index: 8;
}

.vogne-eye-frame--tap-stickers.vogne-eye-frame--stickers-live .vogne-eye-center {
  z-index: 0;
  pointer-events: none;
}

.vogne-eye-frame--tap-stickers.vogne-eye-frame--stickers-live .vogne-eye-stage {
  pointer-events: auto;
}

.vogne-eye-frame--tap-stickers.vogne-eye-frame--stickers-live .vogne-eye-status {
  pointer-events: none;
  z-index: 0;
}

/* После прохождения стикеров: кнопка и блок статуса снова над слоем стикеров и ловят касание (iOS / WebKit) */
.vogne-eye-frame--tap-stickers.vogne-eye-frame--stickers-live:has(.vogne-eye-stage.is-unlocked) .vogne-eye-center {
  pointer-events: auto;
  z-index: 4;
}

.vogne-eye-frame--tap-stickers.vogne-eye-frame--stickers-live:has(.vogne-eye-stage.is-unlocked) .vogne-eye-status {
  pointer-events: auto;
  z-index: 16;
  position: relative;
}

.vogne-eye-frame--tap-stickers.vogne-eye-frame--stickers-live:has(.vogne-eye-stage.is-unlocked) .vogne-audio-start-btn {
  pointer-events: auto;
  position: relative;
  z-index: 17;
}

/* «Остановить» после паузы: unlocked, но stickers-live выключен */
.vogne-eye-frame--tap-stickers:not(.vogne-eye-frame--stickers-live):has(.vogne-eye-stage.is-unlocked) .vogne-eye-center {
  pointer-events: auto;
  z-index: 4;
}

.vogne-eye-frame--tap-stickers:not(.vogne-eye-frame--stickers-live):has(.vogne-eye-stage.is-unlocked) .vogne-eye-status {
  pointer-events: auto;
  z-index: 16;
  position: relative;
}

.vogne-eye-frame--tap-stickers:not(.vogne-eye-frame--stickers-live):has(.vogne-eye-stage.is-unlocked) .vogne-audio-start-btn {
  pointer-events: auto;
  position: relative;
  z-index: 17;
}

.vogne-eye-frame:has(.vogne-eye-stage.is-unlocked) .vogne-sticker {
  pointer-events: none;
  cursor: default;
}

.vogne-sticker--tl {
  top: 0.5rem;
  left: 0.25rem;
}

.vogne-sticker--tr {
  top: 0.5rem;
  right: 0.25rem;
}

.vogne-sticker--bl {
  bottom: var(--vogne-sticker-bottom-lift);
  left: 0.25rem;
}

.vogne-sticker--br {
  bottom: var(--vogne-sticker-bottom-lift);
  right: 0.25rem;
}

.vogne-sticker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.vogne-sticker.is-pupil-over {
  border-color: rgba(121, 208, 255, 0.55);
  box-shadow: 0 0 18px rgba(36, 114, 255, 0.35);
  transform: scale(1.06);
}

.vogne-eye-stage {
  --pupil-x: 0px;
  --pupil-y: 0px;
  /* Макс. смещение зрачка в px (читает main.js для клампа радиуса) */
  --vogne-pupil-travel-px: 14;
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  user-select: none;
  cursor: crosshair;
  animation: vogneEyeIdle 3.8s ease-in-out infinite;
}

.vogne-eye-stage.is-tracking {
  animation-play-state: paused;
}

.vogne-eye-stage.is-unlocked {
  animation: vogneEyeUnlocked 1.2s ease;
}

.vogne-eye-base {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}

.vogne-eye-pupil {
  position: absolute;
  width: 22%;
  max-width: 82px;
  left: 50%;
  top: 29%;
  transform: translate(calc(-50% + var(--pupil-x)), calc(-50% + var(--pupil-y)));
  transition: transform 0.08s linear;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(39, 111, 255, 0.45));
}

/* Мобильный режим: после отпускания палец — очень медленный возврат зрачка в центр */
.vogne-eye-frame--tap-stickers .vogne-eye-pupil.vogne-pupil--idle-drift {
  transition: transform 6.5s cubic-bezier(0.18, 0.85, 0.28, 1);
}

.vogne-eye-status {
  margin-top: 1rem;
  position: relative;
  z-index: 3;
  padding-bottom: 0.25rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-sizing: border-box;
}

.vogne-eye-progress {
  width: 100%;
  max-width: 420px;
  height: 8px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-sizing: border-box;
}

.vogne-eye-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2472ff, #79d0ff);
  box-shadow: 0 0 12px rgba(92, 161, 255, 0.5);
  transition: width 0.14s linear;
}

.vogne-snippet {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.vogne-snippet__embed {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.vogne-snippet__band-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #e8f2ff;
  background: linear-gradient(165deg, rgba(36, 114, 255, 0.55), rgba(18, 52, 120, 0.75));
  border: 1px solid rgba(121, 208, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.vogne-snippet__band-link:hover {
  border-color: rgba(180, 228, 255, 0.65);
  box-shadow: 0 6px 22px rgba(36, 114, 255, 0.35);
}

.vogne-snippet__band-link:active {
  transform: scale(0.98);
}

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

@keyframes vogneEyeUnlocked {
  0% { transform: scale(1); }
  35% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* =============== EXPLORE =============== */
.explore__container {
  row-gap: 2rem;
}

.explore__data {
  display: grid;
  row-gap: 2rem;
}

.explore__item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.explore__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.explore__item:hover::before {
  left: 100%;
}

.explore__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(200, 100, 255, 0.2);
  border-color: var(--mystery-color);
}

.explore__title {
  font-family: var(--second-font);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  color: var(--album-text, var(--white-color));
}

.explore__description {
  font-size: var(--normal-font-size);
  color: var(--album-text, var(--white-color));
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.explore__hint {
  font-size: 0.875rem;
  color: var(--album-secondary, var(--glow-color));
  opacity: 0.6;
  font-style: italic;
}

/*==================== LAMP ====================*/
.lamp__main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.lamp__main-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  width: 100px;
  height: 100px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
}

.lamp__main-btn:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 20px rgba(200, 100, 255, 0.6));
}

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

.lamp__main-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.lamp__hint {
  color: var(--glow-color);
  font-size: 1rem;
  opacity: 0.8;
  max-width: 350px;
  line-height: 1.4;
}

/* Мобильная версия лампочки */
@media (max-width: 768px) {
  .lamp__main-container {
    margin-bottom: 2rem;
    gap: 1rem;
  }
  
  .lamp__main-btn {
    width: 70px;
    height: 70px;
  }
  
  .lamp__hint {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
}

/*=============== PUZZLE ===============*/
.puzzle {
  position: relative;
  background: url('../img/puzzle-room-painting.png') center / cover no-repeat;
  background-attachment: fixed;
  padding-top: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  transition: background-image 0.4s ease;
}

/* Светлая версия фона для раздела Архив */
.light-theme .puzzle {
  background-image: url('../img/puzzle-room-on.png');
  background-color: var(--album-bg, var(--body-color));
}

.light-theme .puzzle .section__title {
  color: var(--album-text, var(--white-color));
}

.light-theme .puzzle .section__subtitle {
  color: var(--album-text, var(--white-color));
}

.light-theme .puzzle__hint {
  color: var(--album-secondary, var(--glow-color));
}

.light-theme .puzzle__progress-text {
  color: var(--album-text, var(--white-color));
}

/* Адаптивный фон для мобильных устройств */
@media screen and (max-width: 768px) {
  .puzzle {
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 80vh;
  }
  
  .puzzle__hint {
    font-size: 0.85rem !important;
  }
  
  .puzzle__hint i {
    display: none;
  }
  
  .puzzle .section__title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    display: block;
  }
  
  .puzzle .section__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    display: block;
  }
  
  .puzzle__progress {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  
  .puzzle__container {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-inline: 0;
    padding-inline: 1rem;
  }
  
  .puzzle__content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.puzzle__container {
  row-gap: 2rem;
}

  .puzzle__progress {
    margin-bottom: 3rem;
    text-align: center;
  }

.puzzle__progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.puzzle__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mystery-color), var(--glow-color));
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 4px;
}

.puzzle__progress-text {
  text-align: center;
  color: var(--white-color);
  font-size: var(--normal-font-size);
}

.puzzle__hidden-elements {
  position: relative;
  height: 400px;
  margin: 2rem 0;
}

.hidden-element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--glow-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.3;
}

.hidden-element:hover {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--glow-color);
}

.hidden-element.found {
  background: var(--mystery-color);
  border-color: var(--white-color);
  opacity: 1;
  animation: foundPulse 1s ease-in-out;
}

.hidden-element i {
  color: var(--white-color);
  font-size: 1.25rem;
}

@keyframes foundPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Position hidden elements */
#hidden-1 { top: 20%; left: 15%; }
#hidden-2 { top: 60%; right: 20%; }
#hidden-3 { bottom: 30%; left: 50%; }

.puzzle__solution {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(200, 100, 255, 0.2), rgba(100, 200, 255, 0.2));
  border-radius: 1rem;
  border: 1px solid var(--mystery-color);
  animation: solutionAppear 0.5s ease-in-out;
}

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

.puzzle__solution-title {
  font-family: var(--second-font);
  font-size: var(--big-font-size);
  color: var(--glow-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--glow-color);
}

.puzzle__solution-text {
  color: var(--white-color);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.puzzle__solution-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, var(--mystery-color), var(--first-color));
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: all 0.4s;
  box-shadow: 0 0 20px rgba(200, 100, 255, 0.3);
}

.puzzle__solution-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(200, 100, 255, 0.5);
}

.puzzle__solution-button i {
  margin-right: 0.5rem;
}

.puzzle__solution-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.puzzle__audio-player {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  max-width: 500px;
  width: 100%;
}

.puzzle__audio-player h4 {
  margin-bottom: 0.5rem;
  color: var(--glow-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.puzzle__audio-player audio {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

/* Стилизация аудиоплеера */
.puzzle__audio-player audio::-webkit-media-controls-panel {
  background: rgba(40, 40, 60, 0.8);
  border-radius: 0.5rem;
}

.puzzle__audio-player audio::-webkit-media-controls-play-button {
  background: var(--mystery-color);
  border-radius: 50%;
}

.puzzle__audio-player audio::-webkit-media-controls-current-time-display,
.puzzle__audio-player audio::-webkit-media-controls-time-remaining-display {
  color: var(--white-color);
}

.yandex-player-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yandex-player-container iframe {
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.yandex-player-container:hover iframe {
  transform: scale(1.02);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 2rem;
}

.contact__data {
  display: grid;
  row-gap: 2rem;
}

.contact__info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact__title {
  font-family: var(--second-font);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  color: var(--white-color);
}

.contact__description {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.contact__details {
  display: grid;
  row-gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: var(--normal-font-size);
  color: var(--white-color);
}

.contact__item i {
  font-size: 1.25rem;
  color: var(--glow-color);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  
  .home__title {
    font-size: 1.5rem;
    line-height: 1.3;
    padding: 0 0.5rem;
    max-width: 100%;
  }
  
  .home__ship-img {
    width: 150px;
  }
}

/* For very small devices */
@media screen and (max-width: 280px) {
  .home__title {
    font-size: 1.2rem;
    line-height: 1.4;
    padding: 0 0.3rem;
  }
}

/* For extra small devices */
@media screen and (max-width: 240px) {
  .home__title {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 0.2rem;
  }
}

/* Убираем автоматическое масштабирование */

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .home__images {
    height: 400px;
  }
  
  .home__ship-img {
    width: 250px;
  }
  
  .home__title {
    font-size: 2.5rem;
    line-height: 1.15;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 2rem;
  }
  
  .home__content {
    text-align: initial;
  }
  
  .home__images {
    height: 500px;
  }
  
  .explore__data {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  
  .nav__list {
    flex-direction: row;
    column-gap: 2.5rem;
  }
  
  .nav__close,
  .nav__toggle {
    display: none;
  }
  
  .home__container {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }
  
  .home__images {
    height: 600px;
  }
  
  .home__ship-img {
    width: 300px;
  }
  
  .explore__data {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
  
  .home__container {
    grid-template-columns: 1fr 1fr;
    column-gap: 6rem;
  }
}

/* =============== MODAL =============== */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(4px);
}
.modal__overlay {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: transparent;
}
.modal__content {
  position: relative;
  background: linear-gradient(135deg, rgba(40,40,60,0.98), rgba(80,80,120,0.95));
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  padding: 2rem 2rem 1.5rem 2rem;
  max-width: 480px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white-color);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}
.modal__image-container {
  position: relative;
}
.modal__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.modal__bulb {
  z-index: 1010;
}


.modal__clue {
  margin-top: 2rem;
  background: rgba(255,255,255,0.1);
  color: var(--glow-color);
  padding: 1rem 1.5rem;
  border-radius: 0.7rem;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(200,100,255,0.15);
  animation: solutionAppear 0.5s;
}
@media (max-width: 600px) {
  .modal__content { padding: 1rem 0.5rem; }
  .modal__image { max-width: 95vw; }
}

.unlock-btn {
  position: absolute;
  right: -30px;
  top: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--mystery-color), var(--glow-color));
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(200,100,255,0.2);
  cursor: pointer;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.unlock-btn::before {
  content: '\eb47'; /* remixicon: ri-lock-unlock-line */
  font-family: 'remixicon';
  color: #fff;
  font-size: 1.2rem;
}
.unlock-btn:active {
  box-shadow: 0 0 0 2px var(--mystery-color);
}

/* Модальное окно для ввода слова */
#unlock-modal .modal__content {
  max-width: 340px;
  min-width: 220px;
}
.modal__form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.modal__input {
  width: 90%;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--glow-color);
  font-size: 1.1rem;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: var(--white-color);
}
.modal__submit {
  background: linear-gradient(45deg, var(--mystery-color), var(--first-color));
  color: var(--white-color);
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.modal__submit:hover {
  background: var(--glow-color);
  color: var(--black-color);
}
.modal__error {
  color: #ff6b6b;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}

.archive-folder-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s;
}
.archive-folder-btn:active {
  box-shadow: 0 0 0 3px var(--mystery-color);
}

.puzzle__hidden-hotspots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.puzzle-hotspot {
  position: absolute;
  width: 33.33%;
  height: 100%;
  background: transparent;
  border: 1px solid rgba(162, 89, 230, 0.3);
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.puzzle-hotspot:hover,
.puzzle-hotspot:focus {
  opacity: 0.6;
  background: rgba(120,119,198,0.1);
  border: 2px solid rgba(162, 89, 230, 0.6);
  box-shadow: 0 0 10px rgba(162, 89, 230, 0.3);
}

/* Мобильная версия хотспотов */
@media screen and (max-width: 768px) {
  .puzzle-hotspot {
    opacity: 0.4;
    border-width: 2px;
  }
  
  .puzzle-hotspot:hover,
  .puzzle-hotspot:focus {
    opacity: 0.7;
    border-width: 3px;
    box-shadow: 0 0 8px rgba(162, 89, 230, 0.4);
  }
}

.puzzle-hotspot.solved {
  border: 2px solid #3ec97a;
  background: rgba(62, 201, 122, 0.2);
  box-shadow: 0 0 15px rgba(62, 201, 122, 0.4);
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
}

.puzzle-hotspot.solved:hover,
.puzzle-hotspot.solved:focus {
  background: rgba(62, 201, 122, 0.2);
  border: 2px solid #3ec97a;
  box-shadow: 0 0 15px rgba(62, 201, 122, 0.4);
  opacity: 0.8;
}

.puzzle-hotspot.disappearing {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.4s;
}
.puzzle-hotspot.disabled {
  display: none !important;
}
#hotspot-catalog {
  left: 0;
  top: 0;
  width: 33.33%;
  height: 100%;
}
#hotspot-vinyl {
  left: 33.33%;
  top: 0;
  width: 33.33%;
  height: 100%;
}
#hotspot-lizard {
  left: 66.66%;
  top: 0;
  width: 33.34%;
  height: 100%;
}

.playlist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
}
.playlist-list li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.4rem;
  transition: background 0.2s, color 0.2s;
  color: var(--white-color);
  opacity: 0.85;
}
.playlist-list li:hover, .playlist-list li.active {
  background: var(--mystery-color);
  color: #fff;
  opacity: 1;
}

.modal#playlist-modal .modal__content {
  background: linear-gradient(135deg, rgba(40,40,60,0.08), rgba(80,80,120,0.08)), url('../img/room.jpg') center center / cover no-repeat;
  position: relative;
  max-width: 720px;
  width: 98vw;
  max-height: 90vh;
  min-height: 480px;
}

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0 1.2rem 0;
}
.sticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 0.7rem 0.3rem 0.5rem 0.3rem;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, transform 0.15s;
  border: 2px solid transparent;
  user-select: none;
}
.sticker-item.selected {
  background: var(--mystery-color);
  box-shadow: 0 0 16px 2px var(--mystery-color);
  border-color: var(--glow-color);
  transform: scale(1.07);
}
.sticker-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
.sticker-item span {
  font-size: 0.98rem;
  color: var(--white-color);
  text-align: center;
  margin-top: 0.2rem;
}
.stickers-check-btn {
  display: block;
  margin: 0.5rem auto 0 auto;
  padding: 0.7rem 2.2rem;
  background: linear-gradient(45deg, var(--mystery-color), var(--first-color));
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(200,100,255,0.13);
  transition: background 0.2s, box-shadow 0.2s;
}
.stickers-check-btn:hover {
  background: var(--mystery-color);
  box-shadow: 0 4px 24px rgba(200,100,255,0.23);
}
.stickers-result {
  margin-top: 1rem;
  min-height: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--glow-color);
  font-weight: 600;
}

.easteregg-cassete {
  position: absolute;
  left: 90%;
  top: 0%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  pointer-events: auto;
  cursor: pointer;
  width: clamp(72px, 18vw, 120px);
  max-width: 120px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  z-index: 10;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  animation: floatCassete 7s ease-in-out infinite alternate;
}
@keyframes floatCassete {
  0% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-24px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

.fog-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  z-index: 4;
}
.fog-cloud {
  position: absolute;
  bottom: 0;
  opacity: 0.33;
  filter: blur(2.5px);
  pointer-events: none;
}
.fog-cloud-1 {
  left: -180px;
  width: 220px;
  animation: fog-move-1 32s linear infinite;
  animation-delay: 0s;
}
.fog-cloud-2 {
  left: 20%;
  width: 140px;
  opacity: 0.22;
  animation: fog-move-2 44s linear infinite;
  animation-delay: 4s;
}
.fog-cloud-3 {
  left: 60%;
  width: 320px;
  opacity: 0.18;
  animation: fog-move-3 55s linear infinite;
  animation-delay: 10s;
}
@keyframes fog-move-1 {
  0% { left: -180px; }
  100% { left: 110vw; }
}
@keyframes fog-move-2 {
  0% { left: 20%; }
  100% { left: 120vw; }
}
@keyframes fog-move-3 {
  0% { left: 60%; }
  100% { left: 130vw; }
}

/*=============== SOCIAL & STREAMING ===============*/
.social-streaming {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-streaming__title {
  font-family: var(--second-font);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
  color: var(--white-color);
  text-align: center;
}

.social-streaming__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-streaming__section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-streaming__section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.social-streaming__section-title {
  font-size: 1.1rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  color: var(--glow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social-streaming__section-title i {
  font-size: 1.25rem;
}

.social-streaming__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-streaming__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--white-color);
  font-size: 0.9rem;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-streaming__link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--glow-color);
  color: var(--glow-color);
  transform: translateX(5px);
}

.social-streaming__link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.social-streaming__link:hover i {
  transform: scale(1.1);
}

.social-streaming__description {
  font-size: 0.85rem;
  color: var(--white-color);
  opacity: 0.7;
  line-height: 1.4;
  margin-top: 1rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .social-streaming__grid {
    grid-template-columns: 1fr;
  }
  
  .social-streaming__section {
    padding: 1.25rem;
  }
}

/* Пасхалка "Отблески" */
.easteregg-otbleski {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--glow-color);
  text-shadow: 0 0 5px var(--glow-color);
}

/* Пасхалка "malo" */
.easteregg-malo {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--glow-color);
  text-shadow: 0 0 5px var(--glow-color);
}

.easteregg-malo:hover {
  color: var(--mystery-color);
  text-shadow: 0 0 15px var(--mystery-color);
  transform: scale(1.1);
  animation: maloGlow 1.5s ease-in-out infinite;
}

.easteregg-malo::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -10px;
  right: -10px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(200, 100, 255, 0.2), transparent);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.easteregg-malo:hover::before {
  opacity: 1;
  animation: maloPulse 2s ease-in-out infinite;
}

@keyframes maloGlow {
  0%, 100% { 
    text-shadow: 0 0 15px var(--mystery-color);
  }
  50% { 
    text-shadow: 0 0 25px var(--mystery-color), 0 0 35px var(--glow-color);
  }
}

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

.easteregg-otbleski:hover {
  color: var(--mystery-color);
  text-shadow: 0 0 15px var(--mystery-color);
  transform: scale(1.1);
  animation: otbleskiGlow 1.5s ease-in-out infinite;
}

.easteregg-otbleski::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -10px;
  right: -10px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(200, 100, 255, 0.2), transparent);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.easteregg-otbleski:hover::before {
  opacity: 1;
  animation: otbleskiPulse 2s ease-in-out infinite;
}

/* Заблокированное состояние easteregg-malo */
.easteregg-otbleski.locked {
  cursor: not-allowed;
  color: rgba(161, 161, 161, 0.05);
  text-shadow: none;
  position: relative;
  overflow: hidden;
}

.easteregg-otbleski.locked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.15) 100%);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  pointer-events: none;
}

.easteregg-otbleski.locked:hover {
  color: rgba(255, 255, 255, 0.1);
  text-shadow: none;
  transform: none;
  animation: none;
}

.easteregg-otbleski.locked:hover::before {
  opacity: 0;
  animation: none;
}

.easteregg-otbleski.locked::before {
  opacity: 0;
  animation: none;
}

/* Анимация разблокировки */
@keyframes unlockGlow {
  0% { 
    text-shadow: 0 0 5px var(--glow-color);
    transform: scale(1);
  }
  50% { 
    text-shadow: 0 0 25px var(--glow-color), 0 0 35px var(--mystery-color);
    transform: scale(1.1);
  }
  100% { 
    text-shadow: 0 0 5px var(--glow-color);
    transform: scale(1);
  }
}

.easteregg-otbleski.unlocking {
  animation: unlockGlow 1s ease-in-out;
}

@keyframes otbleskiGlow {
  0%, 100% { 
    text-shadow: 0 0 15px var(--mystery-color);
  }
  50% { 
    text-shadow: 0 0 25px var(--mystery-color), 0 0 35px var(--glow-color);
  }
}

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

/* Модальное окно для пасхалки "Отблески" - использует стили malo */
.otbleski-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.otbleski-modal.show {
  opacity: 1;
  visibility: visible;
}

.otbleski-modal-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
  background-image: url('../img/optimized/otbleski-album-art.jpg');
  background-image: image-set(
    url('../img/optimized/otbleski-album-art.webp') type('image/webp'),
    url('../img/optimized/otbleski-album-art.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border: 2px solid var(--mystery-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  backdrop-filter: blur(5px);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.otbleski-modal.show .otbleski-modal-content {
  transform: scale(1);
}

/* Модальное окно для пасхалки "malo" */
.malo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.malo-modal.show {
  opacity: 1;
  visibility: visible;
}

.malo-modal-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
  background-image: url('../img/optimized/malo.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border: 2px solid var(--mystery-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  backdrop-filter: blur(5px);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.malo-modal.show .malo-modal-content {
  transform: scale(1);
}

.malo-inline-frame {
  width: 100%;
  max-width: 640px;
  margin: 1.25rem auto 0;
}

.malo-modal-content--inline {
  transform: none;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.malo-modal-content--inline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.62), rgba(8, 8, 14, 0.72));
  pointer-events: none;
  z-index: 0;
}

.malo-modal-content--inline > * {
  position: relative;
  z-index: 1;
}

.malo-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: var(--mystery-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.malo-modal-close:hover {
  background: var(--glow-color);
  transform: scale(1.1);
}

.malo-art {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.malo-art:hover {
  transform: scale(1.05);
}

.malo-title {
  font-family: var(--second-font);
  font-size: 2rem;
  color: var(--glow-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--glow-color);
}

.malo-description {
  color: var(--white-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.malo-next-release-link {
  color: var(--glow-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  font-weight: var(--font-medium);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.malo-next-release-link:hover {
  color: var(--mystery-color);
  text-shadow: 0 0 8px rgba(200, 100, 255, 0.45);
}

.malo-date {
  font-size: 1.1rem;
  color: var(--mystery-color);
  font-weight: var(--font-medium);
  margin-top: 1rem;
}

/* Треклист стикеры */
.malo-tracklist {
  margin-top: 2rem;
}

.tracklist-title {
  font-family: var(--second-font);
  font-size: 1.5rem;
  color: var(--glow-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px var(--glow-color);
}

.tracklist-stickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.track-sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--mystery-color);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.track-sticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.track-sticker:hover::before {
  left: 100%;
}

.track-sticker:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--glow-color);
  box-shadow: 0 10px 25px rgba(200, 100, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.sticker-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.track-sticker:hover .sticker-img {
  transform: scale(1.1) rotate(5deg);
}

.sticker-text {
  font-family: var(--second-font);
  font-size: 0.9rem;
  color: var(--white-color);
  font-weight: var(--font-medium);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}

.track-sticker:hover .sticker-text {
  color: var(--glow-color);
  text-shadow: 0 0 10px var(--glow-color);
}

/* Состояние воспроизведения */
.track-sticker.playing {
  border-color: var(--glow-color);
  box-shadow: 0 0 20px rgba(200, 100, 255, 0.5);
  background: rgba(200, 100, 255, 0.2);
  animation: playingPulse 1s ease-in-out infinite;
}

.track-sticker.playing .sticker-img {
  animation: playingRotate 2s linear infinite;
}

.track-sticker.playing .sticker-text {
  color: var(--glow-color);
  text-shadow: 0 0 15px var(--glow-color);
}

@keyframes playingPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(200, 100, 255, 0.5);
  }
  50% { 
    box-shadow: 0 0 30px rgba(200, 100, 255, 0.8);
  }
}

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

/* Адаптивность для стикеров */
@media screen and (max-width: 768px) {
  .vogne-eye-frame {
    min-height: 400px;
    max-width: 100%;
    padding: 0.35rem 0.35rem 1.75rem;
    /* Выше прогресс-бара, чтобы нижние стикеры не наезжали */
    --vogne-sticker-bottom-lift: 9rem;
  }

  .vogne-eye-center {
    padding-block: 2rem 1.25rem;
    padding-inline: clamp(2.75rem, 9%, 4.25rem);
  }

  .vogne-sticker {
    width: 72px;
    height: 72px;
  }

  .vogne-sticker--tl,
  .vogne-sticker--tr {
    top: 0.35rem;
  }

  .vogne-sticker--bl,
  .vogne-sticker--br {
    bottom: var(--vogne-sticker-bottom-lift);
  }

  .vogne-eye-stage {
    max-width: 330px;
    --vogne-pupil-travel-px: 10;
  }

  .vogne-eye-status {
    max-width: 330px;
  }

  .vogne-eye-pupil {
    width: 17%;
    max-width: 54px;
  }

  .vogne-eye-progress {
    max-width: 330px;
  }

  .tracklist-stickers {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .track-sticker {
    padding: 0.75rem;
  }
  
  .sticker-img {
    width: 50px;
    height: 50px;
  }
  
  .sticker-text {
    font-size: 0.8rem;
  }
}

/* =============== MALO MINI-GAME =============== */
.malo-game {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.malo-game-intro {
  text-align: center;
}

.game-title {
  font-family: var(--second-font);
  font-size: 1.5rem;
  color: var(--glow-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--glow-color);
}

.game-description {
  color: var(--white-color);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.game-start-button {
  background: linear-gradient(135deg, var(--glow-color), var(--mystery-color));
  border: 2px solid var(--glow-color);
  border-radius: 25px;
  padding: 0.75rem 2rem;
  color: var(--white-color);
  font-family: var(--second-font);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(200, 100, 255, 0.3);
}

.game-start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 100, 255, 0.5);
  background: linear-gradient(135deg, var(--mystery-color), var(--glow-color));
}

.game-start-button i {
  font-size: 1.2rem;
}

.malo-game-play {
  text-align: center;
}

.game-sequence-info {
  margin-bottom: 1.5rem;
}

.game-hint {
  color: var(--glow-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: var(--font-medium);
  text-shadow: 0 0 8px var(--glow-color);
}

.game-progress {
  color: var(--white-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

.game-symbols-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.game-symbol {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--mystery-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.game-sticker-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.game-symbol:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--glow-color);
  box-shadow: 0 10px 25px rgba(200, 100, 255, 0.3);
  background: rgba(200, 100, 255, 0.2);
}

.game-symbol:hover .game-sticker-img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px var(--glow-color)) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.game-symbol.active {
  background: rgba(200, 100, 255, 0.4);
  border-color: var(--glow-color);
  box-shadow: 0 0 30px rgba(200, 100, 255, 0.6);
  transform: scale(1.1);
}

.game-symbol.active .game-sticker-img {
  filter: drop-shadow(0 0 20px var(--glow-color)) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
  transform: scale(1.15);
}

.game-symbol.correct {
  background: rgba(0, 255, 0, 0.3);
  border-color: #00ff00;
  animation: correctPulse 0.5s ease;
}

.game-symbol.correct .game-sticker-img {
  filter: drop-shadow(0 0 20px #00ff00) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.game-symbol.wrong {
  background: rgba(255, 0, 0, 0.3);
  border-color: #ff0000;
  animation: wrongShake 0.5s ease;
}

.game-symbol.wrong .game-sticker-img {
  filter: drop-shadow(0 0 20px #ff0000) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.game-symbol.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.game-status {
  margin-top: 1rem;
  min-height: 30px;
  color: var(--white-color);
  font-size: 0.9rem;
}

.game-status.success {
  color: #00ff00;
}

.game-status.error {
  color: #ff0000;
}

.malo-game-success {
  text-align: center;
  padding: 2rem 0;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  font-size: 4rem;
  color: #00ff00;
  animation: successPulse 1s ease-in-out infinite;
}

.success-title {
  font-family: var(--second-font);
  font-size: 1.8rem;
  color: var(--glow-color);
  text-shadow: 0 0 10px var(--glow-color);
}

.success-text {
  color: var(--white-color);
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Сниппет трека */
.malo-snippet {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.snippet-title {
  font-family: var(--second-font);
  font-size: 1.5rem;
  color: var(--glow-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--glow-color);
}

.snippet-player {
  margin: 1.5rem 0;
}

.snippet-player audio {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.snippet-note {
  color: var(--white-color);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.malo-snippet__listen {
  display: inline-flex;
  margin-top: 0.5rem;
}

/* Анимации */
@keyframes correctPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
  }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

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

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

/* Адаптивность для игры */
@media screen and (max-width: 768px) {
  .game-symbols-container {
    gap: 0.75rem;
    max-width: 100%;
  }
  
  .game-sticker-img {
    width: 70%;
    height: 70%;
  }
  
  .game-title {
    font-size: 1.3rem;
  }
  
  .success-title {
    font-size: 1.5rem;
  }
  
  .success-icon {
    font-size: 3rem;
  }
}

/* Анимированная дата релиза */
.release-date-text {
  font-family: var(--second-font);
  font-size: 1.1rem;
  color: var(--glow-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px var(--glow-color);
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.release-date-text:hover {
  color: var(--mystery-color);
  text-shadow: 0 0 20px var(--mystery-color);
  transform: scale(1.1);
  animation: dateGlow 1.5s ease-in-out infinite;
}

.release-date-text::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -20px;
  right: -20px;
  bottom: -15px;
  background: radial-gradient(circle, rgba(200, 100, 255, 0.2), transparent);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.release-date-text:hover::before {
  opacity: 1;
  animation: datePulse 2s ease-in-out infinite;
}

@keyframes dateGlow {
  0%, 100% { 
    text-shadow: 0 0 20px var(--mystery-color);
  }
  50% { 
    text-shadow: 0 0 30px var(--mystery-color), 0 0 40px var(--glow-color);
  }
}

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

/* Обратный отсчет */
.countdown-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  animation: countdownAppear 0.5s ease-out;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--mystery-color);
  border-radius: 8px;
  padding: 0.5rem 0.3rem;
  min-width: 45px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.countdown-item:hover {
  border-color: var(--glow-color);
  box-shadow: 0 0 15px rgba(200, 100, 255, 0.3);
  transform: translateY(-2px);
}

.countdown-number {
  font-family: var(--second-font);
  font-size: 1.1rem;
  font-weight: var(--font-semi-bold);
  color: var(--glow-color);
  text-shadow: 0 0 8px var(--glow-color);
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--white-color);
  opacity: 0.8;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.countdown-separator {
  font-size: 1.1rem;
  color: var(--glow-color);
  font-weight: var(--font-semi-bold);
  text-shadow: 0 0 8px var(--glow-color);
  animation: separatorBlink 1s ease-in-out infinite;
}

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

@keyframes separatorBlink {
  0%, 100% { 
    opacity: 1;
  }
  50% { 
    opacity: 0.5;
  }
}

/* Адаптивность для обратного отсчета */
@media screen and (max-width: 768px) {
  .countdown-timer {
    gap: 0.25rem;
  }
  
  .countdown-item {
    min-width: 50px;
    padding: 0.5rem 0.25rem;
  }
  
  .countdown-number {
    font-size: 1.2rem;
  }
  
  .countdown-label {
    font-size: 0.6rem;
  }
  
  .countdown-separator {
    font-size: 1.2rem;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media screen and (max-width: 480px) {
  .puzzle .section__title {
    font-size: 1.5rem;
    max-width: 95%;
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .puzzle .section__subtitle {
    max-width: 95%;
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .puzzle__progress {
    max-width: 95%;
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .puzzle__progress-bar {
    margin: 0 auto;
  }
  
  .puzzle__container {
    padding-inline: 0.5rem;
  }
  
  .puzzle__content {
    padding: 0 0.5rem;
  }
}

/* Кнопка сброса лампочки */
.lamp-reset-container {
  margin-top: 1rem;
  text-align: center;
  animation: resetAppear 0.5s ease-out;
}

.lamp-reset-text {
  color: var(--white-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.lamp-reset-btn {
  background: linear-gradient(135deg, var(--mystery-color), var(--glow-color));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
  box-shadow: 0 4px 15px rgba(200, 100, 255, 0.3);
}

.lamp-reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 100, 255, 0.5);
  background: linear-gradient(135deg, var(--glow-color), var(--mystery-color));
}

.lamp-reset-btn:active {
  transform: translateY(0);
}

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

@media screen and (max-width: 768px) {
  .puzzle__container.container {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .puzzle .section__title {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0;
    right: 0;
  }
  .puzzle__progress {
    width: 90%;
    margin: 0 auto 2rem auto !important;
    text-align: center;
    left: 0;
    right: 0;
  }
  .puzzle__progress-bar {
    width: 100%;
    margin: 0 auto;
  }
  
  .yandex-player-container {
    margin: 0.5rem 0;
  }
  
  .yandex-player-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
  }
  
  /* Адаптивные стили для подсветки заголовка */
  .home__title::before {
    top: -15px;
    left: -20px;
    right: -20px;
    bottom: -15px;
    border-radius: 15px;
  }
}

/* Стили для закрытого архива в модалке 'Тени прошлого' */
.stickers-archive-closed img {
  max-width: 220px;
  width: 90%;
  margin: 0 auto 1rem auto;
  display: block;
  filter: grayscale(0.2) brightness(0.9) drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}
.stickers-archive-closed {
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s;
}
.stickers-archive-closed div {
  color: var(--glow-color);
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*=============== ALBUM NAVIGATION ===============*/
.album-navigation {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.album-navigation.show {
  opacity: 1;
  pointer-events: auto;
}

.album-dots {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.album-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.album-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.album-dot.active {
  background: var(--white-color);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Album info display */
.album-info {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--album-primary, var(--mystery-color));
  border-radius: 10px;
  padding: 1rem 2rem;
  color: var(--album-text, var(--white-color));
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  transition: all 0.3s ease;
}

.album-info.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.album-info .album-title {
  font-weight: var(--font-bold);
  color: var(--album-secondary, var(--glow-color));
  margin-bottom: 0.25rem;
}

.album-info .album-year {
  opacity: 0.8;
  font-size: 0.8rem;
}

/* Album transition overlay */
.album-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--album-bg, var(--body-color));
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.album-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Responsive design for album navigation */
@media screen and (max-width: 768px) {
  .album-navigation {
    bottom: 1rem;
  }
  
  .album-dots {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  
  .album-dot {
    width: 0.6rem;
    height: 0.6rem;
  }
  
  .album-info {
    top: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}
