/* ═══════════════════════════════════════════════════════════
   СЕРГІЇВНА · 30
   Ніч · пластик там, де тицяють · метал на підписах ·
   стрази тільки у спалахах.
   ═══════════════════════════════════════════════════════════ */

:root {
  --night:    #05071A;
  --midnight: #0A0C24;
  --velvet:   #17102F;
  --loge:     #2A1848;

  --barbie: #FF2D8E;
  --gum:    #FF6DB2;
  --powder: #FFA8D5;

  --champagne: #E9C88C;
  --pearl:     #F4EDF2;
  --chrome: linear-gradient(180deg,
    #FFFFFF 0%, #D6DBEA 11%, #FDFDFF 24%, #8E97B8 37%,
    #EDF0F9 50%, #6E769B 63%, #F2F4FB 78%, #A9B1CC 100%);

  --ice:   #8FE7FF;
  --lilac: #C8A2FF;
  --ruby:  #FF5E5E;
  --gold:  #FFE86B;
  --mint:  #7BF0C2;

  --ink: #1D2136;

  --f-display: 'Unbounded', 'Arial Black', sans-serif;
  --f-body:    'Rubik', -apple-system, 'Helvetica Neue', sans-serif;
  --f-script:  'Pacifico', cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  /* ширина канви будинку — усе всередині нього рахується від неї */
  --canvas: 380px;
}

* { box-sizing: border-box; }

html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--pearl);
  background: var(--night);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 8px; }

/* ── нічне небо ── */
.night {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 62% at 50% 112%, rgba(72, 30, 110, .5) 0%, transparent 58%),
    radial-gradient(90% 44% at 50% -6%, rgba(38, 22, 74, .55) 0%, transparent 62%),
    linear-gradient(180deg, #04061A 0%, #05071A 46%, #070926 100%);
}

.night::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 26px 40px,   rgba(255,255,255,.95) 99%, transparent),
    radial-gradient(1px   1px   at 152px 108px, rgba(233,200,140,.75) 99%, transparent),
    radial-gradient(1.1px 1.1px at 238px 48px,  rgba(255,255,255,.7) 99%, transparent),
    radial-gradient(1px   1px   at 86px 192px,  rgba(200,162,255,.75) 99%, transparent),
    radial-gradient(1.2px 1.2px at 274px 172px, rgba(255,255,255,.6) 99%, transparent);
  background-size: 310px 250px;
  animation: twinkle 5.5s ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: .4; } to { opacity: .9; } }

#fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* ═══════════ ТИПОГРАФІКА ═══════════ */
.chrome-text {
  position: relative;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  color: transparent;
}

.chrome-text::before,
.chrome-text::after { content: attr(data-text); position: absolute; inset: 0; }

.chrome-text::before {
  z-index: -1;
  color: var(--pearl);
  -webkit-text-stroke: .09em var(--pearl);
  text-shadow: 0 .05em 0 rgba(4, 6, 20, .95);
}

.chrome-text::after {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plate {
  display: inline-block;
  background: var(--chrome);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
  padding: .62em 1.15em;
  border-radius: 6px;
  border-top: 1px solid rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(90, 98, 130, .8);
  box-shadow: 0 5px 14px -4px rgba(4, 6, 20, .9);
}

/* ═══════════ КНОПКА ═══════════ */
.btn {
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 28px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .95rem;
  background: linear-gradient(180deg, var(--gum), var(--barbie));
  color: #fff;
  text-shadow: 0 1px 0 rgba(120, 10, 62, .45);
  box-shadow: 0 6px 0 #A3175C, 0 14px 26px -10px rgba(255, 45, 142, .8);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #A3175C, 0 6px 14px -8px rgba(255, 45, 142, .6);
  transition-duration: 100ms;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(30px + env(safe-area-inset-top)) 20px 44px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 130vw;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 45, 142, .26) 0%, rgba(255, 45, 142, .06) 40%, transparent 66%);
  pointer-events: none;
}

.hero__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }

.hero__inner > * { opacity: 0; animation: rise .7s var(--ease) forwards; }
.hero__inner > :nth-child(1) { animation-delay: .12s; }
.hero__inner > :nth-child(2) { animation-delay: .26s; }
.hero__inner > :nth-child(3) { animation-delay: .42s; }
.hero__inner > :nth-child(4) { animation-delay: .62s; }
.hero__inner > :nth-child(5) { animation-delay: .78s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.hero__script {
  margin: 0;
  font-family: var(--f-script);
  font-size: clamp(1.35rem, 5.6vw, 1.9rem);
  color: var(--powder);
  transform: rotate(-2.5deg);
  text-shadow: 0 0 22px rgba(255, 109, 178, .55);
}

.hero__name { margin: 2px 0 0; font-size: clamp(1.9rem, 8.6vw, 3.6rem); line-height: 1.05; }

.hero__age { margin-top: -.04em; }

.hero__age-num {
  position: relative;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(8rem, 44vw, 14rem);
  line-height: .9;
  letter-spacing: -.045em;
  color: transparent;
}

.hero__age-num::before,
.hero__age-num::after { content: attr(data-text); position: absolute; inset: 0; }

.hero__age-num::before {
  z-index: -1;
  color: #fff;
  -webkit-text-stroke: .085em #fff;
  text-shadow: 0 .045em 0 rgba(4, 6, 20, .95), 0 .04em 40px rgba(255, 45, 142, .7);
}

.hero__age-num::after {
  background-image:
    linear-gradient(112deg, transparent 43%, rgba(255, 255, 255, .92) 50%, transparent 57%),
    radial-gradient(circle 1.5px at 14% 20%, #fff 99%, transparent),
    radial-gradient(circle 1.2px at 74% 32%, var(--gold) 99%, transparent),
    radial-gradient(circle 1.2px at 40% 66%, #fff 99%, transparent),
    radial-gradient(circle 1.4px at 64% 84%, var(--ice) 99%, transparent),
    linear-gradient(178deg, var(--gum) 0%, var(--barbie) 55%, #C7186E 100%);
  background-size: 230% 100%, 54px 54px, 62px 62px, 47px 47px, 68px 68px, 100% 100%;
  background-position: 128% 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 4.6s ease-in-out infinite;
}

@keyframes sheen {
  0%, 20%   { background-position: 128% 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  62%, 100% { background-position: -128% 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
}

.hero__plate { margin: 16px 0 0; font-size: .82rem; transform: rotate(-1deg); }

.hero__down {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-script);
  font-size: 1.16rem;
  color: var(--gum);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 109, 178, .5);
  transform: rotate(-1.5deg);
}

.hero__down svg { animation: nudge 1.9s ease-in-out infinite; }

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

/* ═══════════ СТРІЧКА ═══════════ */
.ticker { position: relative; z-index: 2; }

.ticker__row { overflow: hidden; }

.ticker__row--pink {
  background: var(--barbie);
  border-top: 3px solid var(--pearl);
  border-bottom: 3px solid var(--pearl);
  padding-block: 9px;
}

.ticker__row--dark {
  background: #0B0A24;
  border-bottom: 3px solid var(--pearl);
  padding-block: 8px;
}

.ticker__track { display: flex; width: max-content; }

.ticker__row--pink .ticker__track { animation: slide-l 40s linear infinite; }
.ticker__row--dark .ticker__track { animation: slide-r 46s linear infinite; animation-delay: -11s; }

.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__row--pink span { color: #fff; }
.ticker__row--dark span { color: var(--gum); }

/* чотирипроменева зірка-роздільник */
.ticker__track i {
  flex: none;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--star) center/contain no-repeat;
  mask: var(--star) center/contain no-repeat;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.4 5 10.8 12 12-7 1.2-11.4 5.6-12 12-.6-6.4-5-10.8-12-12C7 10.8 11.4 6.4 12 0z' fill='%23000'/%3E%3C/svg%3E");
}

@keyframes slide-l { to { transform: translateX(-50%); } }
@keyframes slide-r { from { transform: translateX(-50%); } to { transform: none; } }

/* ═══════════ СЕКЦІЇ ═══════════ */
main { position: relative; z-index: 1; }

.section { padding: 62px 16px; }

.head { display: grid; justify-items: center; text-align: center; gap: 3px; margin-bottom: 26px; }

.head__kicker { margin: 0; font-family: var(--f-script); font-size: 1.22rem; color: var(--powder); transform: rotate(-1.5deg); }

.head__title { margin: 0; font-size: clamp(1.5rem, 7vw, 2.2rem); }

.head__sub {
  margin: 12px 0 0;
  max-width: 340px;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(244, 237, 242, .74);
  text-wrap: pretty;
}

.head__sub b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 1.24rem;
  color: var(--powder);
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   СВІТ
   ═══════════════════════════════════════════════════════════ */

/* Будинок намальовано на канві фіксованої ширини і масштабується цілком.
   Тому пропорції кімнат СТАЛІ на будь-якому екрані — а отже, відсоткові
   координати предметів і майбутні картинки інтерʼєрів завжди збігаються. */
.world {
  position: relative;
  width: var(--canvas);
  margin: 0 auto;
  padding-top: 26px;
  zoom: var(--fit, 1);
}

/* ─── небо за будинком ─── */
.sky { position: absolute; inset: -10px -14px 60px; pointer-events: none; }

.moon {
  position: absolute;
  right: 6px;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #FFF8E6 0%, #F2E2BC 58%, #D9C598 100%);
  box-shadow: 0 0 26px rgba(255, 240, 200, .5), 0 0 60px rgba(255, 240, 200, .22);
}

.moon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle 4px at 32% 62%, rgba(190, 172, 134, .55) 99%, transparent),
    radial-gradient(circle 3px at 62% 34%, rgba(190, 172, 134, .45) 99%, transparent),
    radial-gradient(circle 2.5px at 70% 66%, rgba(190, 172, 134, .4) 99%, transparent);
}

.sat {
  position: absolute;
  left: 8%;
  top: 30px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff;
  animation: fly 14s linear infinite;
}

@keyframes fly {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translate(300px, -26px); opacity: 0; }
}

/* ─── будинок ─── */
.house {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 44px rgba(4, 6, 20, .95));
}

/* дах */
.roof { position: relative; margin-bottom: -3px; }

.roof__svg { display: block; width: 100%; height: 88px; filter: drop-shadow(0 -4px 20px rgba(255, 45, 142, .4)); }

.attic {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 32px;
  height: 24px;
  translate: -50% 0;
  border-radius: 16px 16px 2px 2px;
  background: radial-gradient(ellipse at 50% 100%, var(--gold) 0%, #C08A2E 70%);
  border: 3px solid var(--pearl);
  box-shadow: 0 0 16px rgba(255, 232, 107, .7);
}

.chimney {
  position: absolute;
  right: 20%;
  top: 16px;
  width: 20px;
  height: 34px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #F0E4EC, #C8B4C4);
  border: 2.5px solid var(--pearl);
  border-bottom: 0;
}

.vane {
  position: absolute;
  left: 50%;
  top: -14px;
  translate: -50% 0;
  z-index: 3;
  color: var(--barbie);
  font-size: 15px;
  text-shadow: 0 0 10px var(--barbie);
  animation: vane 5s ease-in-out infinite;
}

@keyframes vane { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }

/* поверхи */
.storey {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border: 4px solid var(--pearl);
  border-bottom-width: 0;
}

.storey:last-of-type { border-bottom-width: 4px; border-radius: 0 0 16px 16px; }

.room {
  position: relative;
  grid-column: span var(--c);
  overflow: hidden;
  min-height: 192px;
}

.room + .room { border-left: 4px solid var(--pearl); }

/* підлога */
.room::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 12px;
  background: rgba(4, 6, 20, .4);
  border-top: 1.5px solid rgba(244, 237, 242, .3);
  pointer-events: none;
  z-index: 3;
}

/* табличка кімнати — маленька гравійована плашка на цвяшку */
.room__tag {
  position: absolute;
  z-index: 9;
  top: 9px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--chrome);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95);
  border-top: 1px solid rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(88, 96, 128, .9);
  box-shadow: 0 4px 10px -3px rgba(4, 6, 20, .95);
  rotate: -1.6deg;
}

/* цвяшок */
.room__tag::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3.5px;
  width: 4px;
  height: 4px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, #98A0BE);
  box-shadow: 0 1px 2px rgba(4, 6, 20, .8);
}

.room__tag--gold {
  background: linear-gradient(180deg,
    #FFF3DA 0%, #E9C88C 16%, #FFFAF0 30%, #B98F3E 46%,
    #F3DCAE 60%, #9A742F 74%, #F7E7C6 88%, #C79E52 100%);
  color: #4A3410;
  border-bottom-color: rgba(120, 90, 40, .9);
}

/* ═════ КІМНАТИ ═════
   Інтерʼєр кожної кімнати — фотографія. Пропорція кімнати підігнана
   під пропорцію знімка, тому картинка сідає без обрізань, а відсоткові
   координати предметів однакові на будь-якому екрані. */

.room--closet  { background: #121024; }
.room--terrace { background: #0B1030; }
.room--living  { min-height: 200px; background: #1A1233; }
.room--bar     { min-height: 200px; background: #16102A; }
.room--office  { min-height: 206px; background: #0E142E; }
.room--garage  { min-height: 206px; background: #0D1128; }

.room__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* ─── те, що оживає поверх фото ─── */

/* екран (телевізор, ноутбук) */
.screen {
  position: absolute;
  pointer-events: none;
  border-radius: 1px;
  mix-blend-mode: screen;
  opacity: .5;
}

.screen--tv {
  left: 75.4%;
  top: 30.6%;
  width: 20.3%;
  height: 15.2%;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 3px),
    linear-gradient(128deg, #FF2D8E, #8FE7FF 52%, #C8A2FF);
  animation: tv-flick 3.6s steps(1) infinite;
}

@keyframes tv-flick {
  0%   { filter: hue-rotate(0deg)   brightness(1);   }
  25%  { filter: hue-rotate(55deg)  brightness(1.18);}
  50%  { filter: hue-rotate(-38deg) brightness(.86); }
  75%  { filter: hue-rotate(115deg) brightness(1.08);}
}

.screen--laptop {
  left: 41.2%;
  top: 45.4%;
  width: 18.4%;
  height: 7.4%;
  background: linear-gradient(165deg, #9FE9FF, #3B6FC4);
  animation: soft-pulse 3s ease-in-out infinite;
}

@keyframes soft-pulse { 0%, 100% { opacity: .8; } 50% { opacity: .5; } }

/* тепле мерехтіння гірлянди на терасі */
.glow {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glow--string {
  left: 2%;
  top: 6%;
  width: 96%;
  height: 22%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 214, 130, .3) 0%, transparent 70%);
  animation: soft-pulse 4.4s ease-in-out infinite;
}

/* неонова вивіска на стіні тераси */
.neon {
  position: absolute;
  left: 56%;
  top: 27%;
  translate: -50% 0;
  z-index: 4;
  font-family: var(--f-script);
  font-size: 1.15rem;
  color: #FFEAF6;
  white-space: nowrap;
  text-shadow: 0 0 5px #FFA8D5, 0 0 12px var(--barbie), 0 0 26px var(--barbie), 0 0 50px rgba(255, 45, 142, .5);
  animation: flicker 8s linear infinite;
  pointer-events: none;
}

@keyframes flicker {
  0%, 88%, 92%, 100% { opacity: 1; }
  90% { opacity: .45; }
  91% { opacity: .85; }
}

/* ─── авто в гаражі ─── */
.audi {
  position: absolute;
  left: 50%;
  top: 71%;
  width: 82%;
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 10px 12px rgba(4, 6, 20, .95));
}

/* ═════ ФІГУРКИ, ЩО ЖИВУТЬ У КІМНАТАХ ═════ */
.doll {
  position: absolute;
  z-index: 5;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  padding: 0;
  border: 0;
  background: none;
  transition: transform 160ms var(--ease);
}

.doll img {
  height: var(--h);
  width: auto;
  filter: drop-shadow(0 3px 4px rgba(4, 6, 20, .95));
}

/* Фігурки вузькі (15–19px), пальцем у такі не влучити. Невидима зона
   натиску 44px — без неї репліки спрацьовували через раз. */
.doll::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  translate: -50% -50%;
}

/* тінь на підлозі — фігурка справді стоїть */
.doll::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 74%;
  height: 5px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(4, 6, 20, .7) 0%, transparent 72%);
  pointer-events: none;
}

.doll:active { transform: translate(-50%, -50%) translateY(-4px) scale(1.05); }
/* ═══════════ ШТУКИ ═══════════ */
.thing {
  position: absolute;
  z-index: 6;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  translate: -50% -50%;
  padding: 0;
  border: 0;
  background: none;
  transition: transform 140ms var(--ease);
}

.thing img { width: 100%; height: auto; filter: drop-shadow(0 5px 7px rgba(4, 6, 20, .8)); }
.thing:active { transform: scale(.9); }

/* Предмети маленькі, бо мають бути в масштабі кімнати. Щоб у них
   усе одно можна було влучити пальцем — невидима зона натиску 44px. */
.thing::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  translate: -50% -50%;
}

.thing--find { animation: drift 6s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}

.thing--find::after {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.85) 0%, rgba(255,232,107,.5) 32%, transparent 62%);
  opacity: 0;
  pointer-events: none;
}

.thing--find.glint::after { animation: glint 1s ease-out; }

@keyframes glint {
  0%   { opacity: 0; transform: scale(.5); }
  35%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

.thing--found { visibility: hidden; pointer-events: none; }

.thing--radio { animation: none; z-index: 7; }

.radio__led { position: absolute; right: 17%; bottom: 21%; width: 6px; height: 6px; border-radius: 50%; background: #6B7089; transition: background .2s, box-shadow .2s; }

.thing--radio.live .radio__led { background: var(--ruby); box-shadow: 0 0 9px var(--ruby); animation: bulb 1.6s ease-in-out infinite; }
.thing--radio.live img { filter: drop-shadow(0 0 16px rgba(255, 109, 178, .55)) drop-shadow(0 5px 7px rgba(4, 6, 20, .8)); }

.note-fly { position: absolute; z-index: 8; font-size: 14px; color: var(--powder); text-shadow: 0 0 9px var(--barbie); pointer-events: none; animation: note-up 1.6s ease-out forwards; }

@keyframes note-up {
  from { opacity: 0; transform: translateY(2px) rotate(-10deg) scale(.6); }
  22%  { opacity: 1; }
  to   { opacity: 0; transform: translateY(-42px) rotate(16deg) scale(1.1); }
}

/* ═══════════ БУЛЬБАШКА ═══════════ */
.bubble {
  position: absolute;
  z-index: 55;
  max-width: 246px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--pearl);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 10px 24px -8px rgba(4, 6, 20, .95);
  pointer-events: none;
  opacity: 0;
  transform: scale(.7);
}

.bubble.in { animation: bubble-in .3s var(--spring) forwards; }
@keyframes bubble-in { to { opacity: 1; transform: none; } }
.bubble.out { animation: bubble-out .2s ease-in forwards; }
@keyframes bubble-out { to { opacity: 0; transform: scale(.85) translateY(5px); } }

/* ═══════════ КОЛЕКЦІЯ ═══════════ */
.coll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 22px;
  margin-inline: -16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.coll::-webkit-scrollbar { display: none; }

.box {
  position: relative;
  flex: 0 0 216px;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(244, 237, 242, .16);
  background: var(--midnight);
  box-shadow: 0 20px 40px -20px rgba(4, 6, 20, 1);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
  cursor: pointer;
}

.box:active { transform: scale(.97); }

.box.playing { border-color: var(--barbie); box-shadow: 0 0 0 2px rgba(255, 45, 142, .35), 0 20px 40px -20px rgba(255, 45, 142, .6); }

.box img { width: 100%; height: auto; }

.box__play {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border-radius: 17px;
  background: rgba(4, 6, 20, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 237, 242, .2);
  color: var(--pearl);
  font-size: .72rem;
  font-weight: 700;
}

.box.playing .box__play { background: var(--barbie); border-color: transparent; color: #fff; }



/* ═══════════ КАРТКА ЗІ ЗІБРАНИМ ═══════════ */
.section--finds { padding-top: 34px; }

.finds-card {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  padding: 22px 22px 24px;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 45, 142, .22) 0%, transparent 62%),
    linear-gradient(180deg, var(--loge), var(--velvet));
  border: 1px solid rgba(244, 237, 242, .18);
  box-shadow: 0 30px 60px -28px rgba(4, 6, 20, 1);
}

/* рожевий кант зверху, як на коробці */
.finds-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 45, 142, .4);
  pointer-events: none;
}

/* лічильник — рожевим курсивом */
.finds-card__count {
  margin: 0;
  font-family: var(--f-script);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--gum);
  text-shadow: 0 0 26px rgba(255, 109, 178, .55);
  transform: rotate(-2deg);
}

.finds-card__count b {
  font-weight: 400;
  font-size: 1.5em;
  color: var(--barbie);
  text-shadow: 0 0 28px rgba(255, 45, 142, .85);
}

/* ─── блістер із гніздами під предмети ─── */
.tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 16px;
}

.tray__slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(4, 6, 20, .42);
  border: 1.5px dashed rgba(244, 237, 242, .18);
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

/* блиск пластику блістера */
.tray__slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(126deg, transparent 38%, rgba(255, 255, 255, .16) 44%, transparent 52%);
  pointer-events: none;
}

.tray__slot img {
  max-width: 74%;
  max-height: 74%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(4, 6, 20, .9));
  opacity: 0;
  transform: scale(.5) rotate(-10deg);
}

.tray__slot.filled {
  background: rgba(255, 45, 142, .1);
  border-style: solid;
  border-color: rgba(255, 45, 142, .5);
}

.tray__slot.filled img { animation: slot-in .5s var(--spring) forwards; }

@keyframes slot-in {
  to { opacity: 1; transform: none; }
}

.finds-card__text {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(244, 237, 242, .68);
}

.finds-card__acts {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
}

.btn--ghost {
  height: 46px;
  padding: 0 22px;
  font-size: .82rem;
  background: transparent;
  color: rgba(244, 237, 242, .7);
  text-shadow: none;
  border: 1.5px solid rgba(244, 237, 242, .22);
  box-shadow: none;
}

.btn--ghost:active {
  transform: translateY(3px);
  box-shadow: none;
  background: rgba(244, 237, 242, .06);
}

/* ═══════════ ФУТЕР — ЯК ЗВОРОТ КОРОБКИ ═══════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 20px 20px calc(96px + env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 16px;
}

.stamp {
  width: min(100%, 320px);
  padding: 16px 18px 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(244, 237, 242, .14);
  background: rgba(10, 12, 36, .5);
}

.stamp p { margin: 0; }

.stamp__brand {
  font-family: var(--f-script);
  font-size: 1.3rem;
  color: var(--powder);
}

.stamp__brand i { font-style: normal; font-size: .5em; vertical-align: super; opacity: .7; }

.stamp__line {
  margin-top: 2px !important;
  font-size: .74rem;
  color: rgba(244, 237, 242, .5);
}

.footer__dom {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  color: rgba(244, 237, 242, .55);
}

.footer__dom span { color: var(--champagne); }

/* ═══════════ HUD ═══════════ */
.hud {
  position: fixed;
  z-index: 40;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 0 15px;
  border-radius: 22px;
  border: 1px solid rgba(244, 237, 242, .2);
  background: rgba(10, 12, 36, .84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--pearl);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 12px 30px -12px rgba(4, 6, 20, 1);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.hud.show { opacity: 1; transform: none; }
.hud svg { color: var(--gold); }
.hud i { font-style: normal; font-size: .74rem; color: rgba(244, 237, 242, .45); }
.hud.bump { animation: bump .45s var(--spring); }

@keyframes bump { 0% { transform: scale(1); } 42% { transform: scale(1.16) rotate(-3deg); } 100% { transform: scale(1); } }

/* ═══════════ ЗВУК ═══════════ */
.sfx-toggle {
  position: fixed;
  z-index: 40;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 237, 242, .2);
  background: rgba(10, 12, 36, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--pearl);
  transition: transform 110ms var(--ease);
}

.sfx-toggle:active { transform: scale(.9); }
.sfx-toggle[aria-pressed="false"] { color: rgba(244, 237, 242, .4); }
.sfx-toggle[aria-pressed="false"] .wave { display: none; }

/* ═══════════ ПЛЕЄР ═══════════ */
.player {
  position: fixed;
  z-index: 46;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 9px 8px 11px 9px;
  border-radius: 27px;
  border: 1px solid rgba(255, 45, 142, .34);
  background: rgba(12, 9, 30, .93);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px -14px rgba(3, 4, 16, 1);
  overflow: hidden;
  animation: player-in .42s var(--spring);
}

.player[hidden] { display: none; }

@keyframes player-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* play / pause */
.player__play {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gum), var(--barbie));
  color: #fff;
  box-shadow: 0 4px 0 #A3175C, 0 8px 18px -6px rgba(255, 45, 142, .9);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.player__play:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #A3175C;
  transition-duration: 100ms;
}

.player__play svg { grid-area: 1 / 1; }
.player__play .i-play { margin-left: 2px; }

/* показуємо потрібну іконку */
.player .i-pause { display: none; }
.player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; }

/* кільце завантаження */
.player__spin {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 255, 255, .9);
  opacity: 0;
}

.player.buffering .player__spin { opacity: 1; animation: spin .8s linear infinite; }

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

.player__meta { min-width: 0; display: grid; gap: 1px; }

.player__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--powder);
}

.player__eq { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.player__eq i { width: 2px; border-radius: 1px; background: var(--barbie); height: 40%; }

.player.playing .player__eq i { animation: eq .9s ease-in-out infinite; }
.player.playing .player__eq i:nth-child(2) { animation-delay: .15s; }
.player.playing .player__eq i:nth-child(3) { animation-delay: .3s; }
.player.playing .player__eq i:nth-child(4) { animation-delay: .45s; }

.player__eq i:nth-child(2) { height: 90%; }
.player__eq i:nth-child(3) { height: 60%; }
.player__eq i:nth-child(4) { height: 100%; }

@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* тип номера: пісня / епізод / джингл */
.player__kind {
  font-style: normal;
  font-size: .54rem;
  letter-spacing: .1em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 45, 142, .18);
  border: 1px solid rgba(255, 45, 142, .35);
  color: var(--gum);
}

.player__kind:empty { display: none; }

/* вікно, у якому їде назва */
.player__now {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 14px), transparent 100%);
}

.player__title {
  display: inline-block;
  padding-left: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(244, 237, 242, .84);
  white-space: nowrap;
}

/* виконавець виділений, тире — приглушене */
.player__title b { font-weight: 700; color: var(--powder); }
.player__title i { font-style: normal; margin: 0 5px; color: rgba(244, 237, 242, .4); }

/* якщо назва не влазить — вона повільно проїжджає туди й назад */
.player__title.roll {
  animation: roll var(--roll-time, 9s) ease-in-out infinite alternate;
  animation-delay: 1.4s;
}

@keyframes roll {
  0%, 12%   { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--roll, 0)); }
}

.player__icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(244, 237, 242, .09);
  color: rgba(244, 237, 242, .82);
  transition: background 140ms var(--ease), transform 110ms var(--ease);
}

.player__icon:active { transform: scale(.9); background: rgba(244, 237, 242, .16); }

/* смужка прогресу */
.player__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(244, 237, 242, .1);
}

.player__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--gum), var(--barbie));
  box-shadow: 0 0 8px rgba(255, 45, 142, .8);
  transition: width .25s linear;
}

/* ═══════════ МОДАЛКИ ═══════════ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }

.modal__veil { position: absolute; inset: 0; background: rgba(3, 4, 16, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .22s ease-out; }

@keyframes fade { from { opacity: 0; } }

.modal__x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(244, 237, 242, .2); background: rgba(4, 6, 20, .5); color: var(--pearl); font-size: .82rem; }

.find {
  position: relative;
  width: min(90vw, 330px);
  padding: 22px 22px 24px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--loge) 0%, var(--midnight) 100%);
  border: 1px solid rgba(244, 237, 242, .18);
  box-shadow: 0 40px 80px -24px rgba(3, 4, 16, 1);
  animation: pop-in .5s var(--spring);
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(28px) scale(.88); }
  to   { opacity: 1; transform: none; }
}

.find__eyebrow { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

.find__art { position: relative; height: 168px; margin: 12px 0 16px; display: grid; place-items: center; }
.find__art::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,45,142,.34) 0%, transparent 66%); }
.find__art img { position: relative; max-height: 168px; width: auto; filter: drop-shadow(0 14px 22px rgba(3, 4, 16, .9)); animation: art-in .6s var(--spring); }

@keyframes art-in { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

.find__name { font-size: .74rem; }
.find__text { margin: 14px 0 20px; font-size: .9rem; line-height: 1.55; color: rgba(244, 237, 242, .8); }

/* ═══════════ КОНВЕРТ (окрема секція) ═══════════ */
.section--letter { padding-top: 8px; }

.envelope { display: grid; justify-items: center; gap: 12px; }

.envelope__btn {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  transition: transform 200ms var(--ease);
}

.envelope__art {
  width: min(74vw, 250px);
  filter: drop-shadow(0 22px 34px rgba(4, 6, 20, .9)) drop-shadow(0 0 40px rgba(255, 45, 142, .3));
  animation: envelope-float 5s ease-in-out infinite;
}

@keyframes envelope-float {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50%      { transform: translateY(-8px) rotate(1.4deg); }
}

.envelope__btn:active { transform: scale(.96); }

.envelope__label {
  height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  border-radius: 28px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .95rem;
  background: linear-gradient(180deg, var(--gum), var(--barbie));
  color: #fff;
  text-shadow: 0 1px 0 rgba(120, 10, 62, .45);
  box-shadow: 0 6px 0 #A3175C, 0 14px 26px -10px rgba(255, 45, 142, .8);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.envelope__btn:active .envelope__label {
  transform: translateY(6px);
  box-shadow: 0 0 0 #A3175C;
  transition-duration: 100ms;
}

.envelope__hint {
  margin: 0;
  font-family: var(--f-script);
  font-size: 1.05rem;
  color: var(--powder);
  opacity: .85;
  transform: rotate(-1.5deg);
}

/* ═══════════ САМ ЛИСТ ═══════════ */
.paper {
  position: relative;
  width: min(90vw, 356px);
  max-height: 86svh;
  overflow-y: auto;
  padding: 44px 30px 34px;
  text-align: center;
  color: #3B2B33;
  border-radius: 4px;
  background:
    /* тонка сітка волокон паперу */
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(160, 120, 130, .07) 27px 28px),
    radial-gradient(120% 60% at 50% 0%, #FFFDF8 0%, transparent 60%),
    linear-gradient(168deg, #FFFBF3 0%, #FDF2E4 55%, #F9E8D8 100%);
  box-shadow:
    0 40px 90px -26px rgba(3, 4, 16, 1),
    inset 0 0 46px rgba(190, 150, 130, .16);
  animation: paper-in .55s var(--spring);
}

@keyframes paper-in {
  from { opacity: 0; transform: translateY(30px) rotate(1.6deg) scale(.9); }
  to   { opacity: 1; transform: rotate(-.6deg); }
}

.paper { transform: rotate(-.6deg); }

/* нерівний верхній край, ніби аркуш відірвали */
.paper::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: repeating-linear-gradient(92deg, #FFFBF3 0 7px, #F4E3D2 7px 11px, #FFFBF3 11px 17px);
}

.paper .modal__x {
  border-color: rgba(59, 43, 51, .18);
  background: rgba(255, 255, 255, .8);
  color: var(--barbie);
  top: 12px;
  right: 12px;
}

.paper__seal {
  display: block;
  margin: 0 auto 14px;
  width: 42px;
  filter: drop-shadow(0 5px 10px rgba(140, 30, 70, .4));
  transform: rotate(-8deg);
}

.paper__hi {
  margin: 0;
  font-family: var(--f-script);
  font-size: 1.72rem;
  line-height: 1.2;
  color: #C81E5C;
  transform: rotate(-1.6deg);
}

/* тонка лінія під звертанням */
.paper__hi::after {
  content: '';
  display: block;
  width: 74px;
  height: 1.5px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, rgba(200, 30, 92, .45), transparent);
}

.paper__body {
  margin-top: 18px;
  font-size: .95rem;
  line-height: 1.75;
  color: #4A3740;
  text-wrap: pretty;
}

.paper__body p { margin: 0 0 13px; }

.paper__mantra {
  margin: 22px 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #C81E5C;
}

.paper__sign {
  margin: 26px 0 0;
  font-family: var(--f-script);
  font-size: 1.32rem;
  color: #8A5C6E;
  transform: rotate(-2.5deg);
}

.paper__date {
  margin: 10px 0 0;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(59, 43, 51, .42);
}

/* ═══════════ КОРОБКА НА ВЕСЬ ЕКРАН ═══════════ */
.boxview {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(94vw, 420px);
  max-height: 92svh;
  animation: pop-in .45s var(--spring);
}

.boxview__img {
  width: auto;
  max-width: 100%;
  max-height: calc(92svh - 90px);
  border-radius: 14px;
  border: 2px solid rgba(244, 237, 242, .2);
  box-shadow: 0 40px 80px -22px rgba(3, 4, 16, 1);
}

.boxview__play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  font-size: .86rem;
}

.boxview__play:disabled {
  background: rgba(244, 237, 242, .12);
  color: rgba(244, 237, 242, .5);
  box-shadow: none;
  text-shadow: none;
  cursor: default;
  transform: none;
}

.boxview .modal__x { top: -6px; right: -6px; background: rgba(4, 6, 20, .85); }

/* ═══════════ ДЕСКТОП ═══════════ */
@media (min-width: 800px) {
  .section { padding: 84px 24px; }
  .coll { justify-content: center; flex-wrap: wrap; overflow: visible; margin-inline: 0; max-width: 780px; margin: 0 auto; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__inner > * { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
