/* Мурляндия — ночная уютная палитра из приложения */
:root {
  --night: #1E1C50;
  --night-deep: #141239;
  --night-card: #2A2766;
  --lilac: #A89CF0;
  --lilac-soft: #D9D2FF;
  --honey: #FFD47A;
  --mint: #3DBE9C;
  --pink: #F7B3C9;
  --cream: #FFF6E6;
  --text: #FFF6E6;
  --muted: #C9C3EE;
  --line: rgba(168, 156, 240, .22);
  --radius: 28px;
  --shadow: 0 18px 50px rgba(8, 6, 40, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--night-deep);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(168, 156, 240, .25), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(247, 179, 201, .10), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }

h1, h2, h3 {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 900; font-size: 19px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--cream); background: rgba(168, 156, 240, .14); }
.nav-links a.lang { border: 2px solid var(--line); color: var(--lilac-soft); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 900; font-size: 17px; text-decoration: none; border: 0; }
.btn-honey { background: var(--honey); color: var(--night); box-shadow: 0 10px 30px rgba(255, 212, 122, .25); }
.btn-honey:hover { color: var(--night); filter: brightness(1.05); }
.btn-ghost { background: rgba(168, 156, 240, .14); color: var(--cream); }

.store-soon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px 12px 18px; border-radius: 999px;
  background: #000; color: #fff; border: 2px solid rgba(255,255,255,.18);
  cursor: default; user-select: none; position: relative;
}
.store-soon svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store-soon small { display: block; font-size: 12px; font-weight: 700; opacity: .75; line-height: 1.1; }
.store-soon b { display: block; font-size: 20px; font-weight: 900; line-height: 1.1; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 30px; padding-bottom: 60px; }
.hero .eyebrow { display: inline-block; background: rgba(61, 190, 156, .16); color: #8FE6CB; font-weight: 900; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 span { color: var(--honey); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
/* Обе кнопки первого экрана одной высоты: у «App Store» две строки и рамка, у второй — такая же рамка, прозрачная. */
.hero .actions .store-soon, .hero .actions .btn { height: 64px; box-sizing: border-box; }
.hero .actions .btn { border: 2px solid transparent; padding: 0 26px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: center; }
.hero-art .icon { width: 100%; height: auto; border-radius: 22%; box-shadow: var(--shadow), 0 0 0 6px rgba(168, 156, 240, .18); }
.hero-art .bug { position: absolute; width: 16%; animation: float 5s ease-in-out infinite; }
.hero-art .bug.b1 { top: -6%; left: -6%; }
.hero-art .bug.b2 { top: 10%; right: -9%; width: 12%; animation-delay: -2s; }
.hero-art .bug.b3 { bottom: 4%; left: -10%; width: 11%; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .bug { animation: none; } }

/* Секции */
.section { padding-top: 50px; padding-bottom: 50px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Игры */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game { background: var(--night-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.game-art { position: relative; height: 230px; overflow: hidden; container-type: inline-size; }
.game-art .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-art .sprite { position: absolute; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.game-body { padding: 20px 22px 24px; }
.game-body p { color: var(--muted); margin-bottom: 14px; }
.pill { display: inline-block; font-size: 14px; font-weight: 900; padding: 5px 12px; border-radius: 999px; }
.pill-honey { background: rgba(255, 212, 122, .16); color: var(--honey); }
.pill-mint { background: rgba(61, 190, 156, .18); color: #8FE6CB; }
.pill-pink { background: rgba(247, 179, 201, .18); color: var(--pink); }

/* Светлячки: кот бежит галопом по крышам, город едет медленнее крыш, жучки летят в банку */
.g-fireflies .game-art { background: #1E1C50; }
.ff-city { position: absolute; inset: 0 auto 0 0; display: flex; height: 100%; width: max-content; animation: pan 40s linear infinite; }
.ff-city img { height: 100%; width: auto; max-width: none; }
.ff-city .flip { transform: scaleX(-1); }
.ff-roofs { position: absolute; left: 0; bottom: -6px; display: flex; gap: 46px; width: max-content; animation: pan 7s linear infinite; }
.ff-roofs img { width: 200px; max-width: none; }
.ff-cat { position: absolute; left: 12%; bottom: 58px; width: 30%; aspect-ratio: 453 / 306; animation: gallop .5s ease-in-out infinite; }
.ff-cat img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: frame .5s steps(1) infinite; }
.ff-cat img:nth-child(2) { animation-delay: .125s; }
.ff-cat img:nth-child(3) { animation-delay: .25s; }
.ff-cat img:nth-child(4) { animation-delay: .375s; }
.ff-jar { position: absolute; right: 8%; bottom: 46px; width: 16%; filter: drop-shadow(0 0 18px rgba(255, 212, 122, .55)); animation: glow 2.4s ease-in-out infinite; }
.ff-bug { position: absolute; width: 9%; filter: drop-shadow(0 0 10px rgba(255, 212, 122, .8)); animation: toJar 4.2s ease-in infinite; }
.ff-bug.f1 { left: 30%; top: 16%; }
.ff-bug.f2 { left: 52%; top: 30%; width: 7%; animation-delay: -1.4s; }
.ff-bug.f3 { left: 18%; top: 34%; width: 6%; animation-delay: -2.8s; }
@keyframes pan { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes frame { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes gallop { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-3deg); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 212, 122, .4)); } 50% { filter: drop-shadow(0 0 26px rgba(255, 212, 122, .9)); } }
@keyframes toJar { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: 1; } 55% { transform: translate(10cqw, -14px) scale(1); opacity: 1; } 95% { transform: translate(var(--jx, 160px), 90px) scale(.3); opacity: .9; } 100% { opacity: 0; } }
.ff-bug.f1 { --jx: 48cqw; } .ff-bug.f2 { --jx: 28cqw; } .ff-bug.f3 { --jx: 60cqw; }

/* Клубок: кот бьёт лапой, клубок катится по доске и падает в корзинку */
.g-yarn .bg { object-position: 50% 92%; }
.y-paw { position: absolute; left: 3%; top: 10%; width: 30%; transform-origin: 70% 60%; animation: swat 3.6s ease-in-out infinite; }
.y-plank { position: absolute; left: 22%; top: 109px; width: 52%; height: 12px; transform: rotate(16deg); border-radius: 6px; }
.y-basket { position: absolute; right: 5%; bottom: 6%; width: 30%; animation: catchBall 3.6s ease-in-out infinite; }
.y-ball { position: absolute; left: 26%; top: 32px; width: 13%; animation: roll 3.6s cubic-bezier(.5, 0, .7, 1) infinite; }
.y-fish { position: absolute; right: 16%; top: 14%; width: 15%; animation: bob 2.2s ease-in-out infinite; }
@keyframes swat { 0%, 70%, 100% { transform: rotate(0); } 8% { transform: rotate(-10deg); } 14% { transform: rotate(8deg); } }
@keyframes roll {
  0%, 12% { transform: translate(0, 0) rotate(0); opacity: 1; }
  22% { transform: translate(0, 24px) rotate(90deg); }
  62% { transform: translate(38cqw, 61px) rotate(560deg); }
  76% { transform: translate(47.5cqw, 118px) rotate(700deg); opacity: 1; }
  82%, 100% { transform: translate(47.5cqw, 128px) rotate(720deg); opacity: 0; }
}
@keyframes catchBall { 0%, 74%, 100% { transform: scale(1); } 79% { transform: scale(1.1, .9); } 86% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(6deg); } }

/* Мастерская: две катушки съезжаются, вспышка — варежка, она улетает зайчику */
.w-tray { position: absolute; left: 50%; top: 16%; width: 58%; height: 34%; transform: translateX(-50%); background: rgba(255, 246, 230, .55); border: 2px dashed rgba(168, 156, 240, .8); border-radius: 18px; }
.w-spool { position: absolute; top: 22%; width: 15%; }
.w-spool.s1 { left: 26%; animation: mergeL 3.4s ease-in-out infinite; }
.w-spool.s2 { left: 59%; animation: mergeR 3.4s ease-in-out infinite; }
.w-pop { position: absolute; left: 50%; top: 32%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 50%; background: radial-gradient(circle, rgba(255, 212, 122, .95), rgba(255, 212, 122, 0) 70%); animation: pop 3.4s ease-out infinite; }
.w-mitten { position: absolute; left: 50%; top: 18%; width: 20%; transform: translateX(-50%) scale(0); animation: mitten 3.4s ease-in-out infinite; }
.w-bunny, .w-hedgehog, .w-puppy { position: absolute; bottom: 4%; width: 23%; animation: bob 2.6s ease-in-out infinite; }
.w-bunny { left: 4%; animation: cheer 3.4s ease-in-out infinite; }
.w-hedgehog { left: 39%; animation-delay: -.8s; }
.w-puppy { right: 4%; animation-delay: -1.6s; }
@keyframes mergeL { 0%, 15% { transform: translateX(0); opacity: 1; } 38% { transform: translateX(55%); opacity: 1; } 42%, 100% { transform: translateX(55%); opacity: 0; } }
@keyframes mergeR { 0%, 15% { transform: translateX(0); opacity: 1; } 38% { transform: translateX(-55%); opacity: 1; } 42%, 100% { transform: translateX(-55%); opacity: 0; } }
@keyframes pop { 0%, 38% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 44% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; } 56%, 100% { transform: translate(-50%, -50%) scale(2); opacity: 0; } }
@keyframes mitten { 0%, 40% { transform: translateX(-50%) scale(0); } 48% { transform: translateX(-50%) scale(1.2); } 56%, 66% { transform: translateX(-50%) scale(1); top: 18%; left: 50%; } 86% { transform: translateX(-50%) scale(.45); top: 62%; left: 16%; opacity: 1; } 90%, 100% { transform: translateX(-50%) scale(.3); top: 66%; left: 16%; opacity: 0; } }
@keyframes cheer { 0%, 84%, 100% { transform: translateY(0); } 88% { transform: translateY(-14px); } 93% { transform: translateY(0); } 96% { transform: translateY(-7px); } }

/* Карточки игр приподнимаются под пальцем */
.game { transition: transform .25s ease, box-shadow .25s ease; }
.game:hover { transform: translateY(-4px); }

/* Уют */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: rgba(42, 39, 102, .7); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.feature .emoji { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.feature .emoji svg { width: 28px; height: 28px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

/* Безопасно */
.safe { background: linear-gradient(135deg, rgba(61, 190, 156, .16), rgba(168, 156, 240, .14)); border: 1px solid rgba(61, 190, 156, .3); border-radius: 32px; padding: 34px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.safe ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.safe li { display: flex; gap: 12px; align-items: flex-start; background: rgba(20, 18, 57, .5); padding: 14px 16px; border-radius: 18px; }
.safe li svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.safe li b { display: block; font-weight: 900; }
.safe li span { color: var(--muted); font-size: 15px; }

/* Призыв */
.cta { text-align: center; padding: 60px 16px 70px; }
/* Банка: жучки кружат рядом и по одному ныряют внутрь, внутри мерцают огоньки */
.cta-jar { position: relative; width: 140px; height: 150px; margin: 10px auto 22px; }
.cta-jar .jar { position: absolute; inset: 0; width: 100%; height: auto; margin: 0; }
.cta-jar .bug { position: absolute; width: 34px; left: 53px; top: 60px; filter: drop-shadow(0 0 10px rgba(255, 212, 122, .9)); animation: intoJar 6s ease-in-out infinite; }
.cta-jar .c1 { --sx: -150px; --sy: -70px; }
.cta-jar .c2 { --sx: 160px; --sy: -40px; animation-delay: -1.5s; width: 28px; }
.cta-jar .c3 { --sx: -120px; --sy: 40px; animation-delay: -3s; width: 26px; }
.cta-jar .c4 { --sx: 140px; --sy: 60px; animation-delay: -4.5s; width: 30px; }
.cta-jar .spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #FFF3C4, rgba(255, 212, 122, 0) 70%); animation: twinkle 1.8s ease-in-out infinite; }
.cta-jar .k1 { left: 46px; top: 78px; } .cta-jar .k2 { left: 78px; top: 96px; animation-delay: -.4s; }
.cta-jar .k3 { left: 62px; top: 112px; animation-delay: -.9s; } .cta-jar .k4 { left: 90px; top: 70px; animation-delay: -1.2s; }
.cta-jar .k5 { left: 54px; top: 96px; animation-delay: -1.5s; }
@keyframes intoJar {
  0% { transform: translate(var(--sx), var(--sy)) rotate(-8deg) scale(1); opacity: 0; }
  10% { opacity: 1; }
  35% { transform: translate(calc(var(--sx) * .6), calc(var(--sy) - 30px)) rotate(8deg); }
  60% { transform: translate(calc(var(--sx) * .25), calc(var(--sy) * .3 - 60px)) rotate(-6deg); }
  82% { transform: translate(0, -40px) rotate(0) scale(.8); opacity: 1; }
  95%, 100% { transform: translate(0, 10px) scale(.25); opacity: 0; }
}
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.3); } }
.cta p { color: var(--muted); font-size: 18px; }

/* Документы */
.doc { padding-top: 16px; padding-bottom: 50px; max-width: 820px; }
.card { background: var(--night-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.card h2 { font-size: 24px; margin-top: 1.6em; }
.card ul { padding-left: 1.2em; margin: 0 0 1em; }
.card li { margin-bottom: .4em; }
.card p, .card li { color: #E9E4FF; }
.meta { color: var(--muted); font-size: 15px; }
.note { background: rgba(61, 190, 156, .14); border: 1px solid rgba(61, 190, 156, .3); padding: 16px 18px; border-radius: 18px; }
.faq details { background: rgba(20, 18, 57, .45); border-radius: 18px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 900; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--honey); font-size: 22px; line-height: 1.1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }
.center { text-align: center; }
.center img { margin: 0 auto 16px; }

/* Комната кота: днём и ночью */
.eyebrow { display: inline-block; background: rgba(61, 190, 156, .16); color: #8FE6CB; font-weight: 900; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.showcase-text p { color: var(--muted); font-size: 18px; }
.room-art { position: relative; aspect-ratio: 4 / 4.4; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.room-art .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.room-art .night { animation: dusk 12s ease-in-out infinite; }
@keyframes dusk { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
.room-art .it { position: absolute; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
.room-art .monstera { width: 22%; left: 3%; bottom: 30%; }
.room-art .lamp { width: 12%; right: 6%; bottom: 33%; }
.room-art .tower { width: 22%; right: 3%; bottom: 9%; }
.room-art .rug { width: 58%; left: 21%; bottom: 4%; }
.room-art .basket { width: 26%; left: 3%; bottom: 5%; }
.room-art .cat { width: 30%; left: 35%; bottom: 10%; }

/* Гардероб */
.looks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.look { margin: 0; background: linear-gradient(180deg, rgba(255, 246, 230, .95), rgba(247, 179, 201, .55)); border-radius: 24px; padding: 14px 10px 12px; text-align: center; box-shadow: var(--shadow); }
.look img { width: 100%; height: auto; }
.look figcaption { color: var(--night); font-weight: 900; font-size: 15px; margin-top: 6px; }

/* Сказки */
.stories-box { background: linear-gradient(135deg, rgba(168, 156, 240, .18), rgba(30, 28, 80, .4)); border: 1px solid var(--line); border-radius: 32px; padding: 34px; }
.stories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.story { margin: 0; }
.story img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 30px rgba(8, 6, 40, .5); }
.story figcaption { color: var(--lilac-soft); font-weight: 800; font-size: 14px; margin-top: 8px; line-height: 1.3; }

/* Режим дня */
.routine { display: flex; gap: 26px; align-items: center; background: rgba(42, 39, 102, .7); border: 1px solid var(--line); border-radius: 28px; padding: 22px 28px; }
.routine img { width: 120px; flex: none; }
.routine p { color: var(--muted); margin: 0; font-size: 18px; }

@media (prefers-reduced-motion: reduce) { .room-art .night { animation: none; opacity: 0; } }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .room-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .looks { grid-template-columns: repeat(3, 1fr); }
  .stories { grid-template-columns: repeat(3, 1fr); }
  .stories-box { padding: 24px; }
}
@media (max-width: 520px) {
  .looks { grid-template-columns: repeat(2, 1fr); }
  .stories { grid-template-columns: repeat(2, 1fr); }
  .routine { flex-direction: column; text-align: center; }
}

/* Живое: кот в комнате дышит, лампа мерцает, наряды и сказки покачиваются */
.room-art .cat { transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
.lamp-glow { position: absolute; right: 2%; bottom: 52%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 212, 122, .55), rgba(255, 212, 122, 0) 70%); animation: glow2 3s ease-in-out infinite; pointer-events: none; }
.hero-art .icon { animation: breathe 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
.look { transition: transform .25s ease; }
.look:hover { transform: translateY(-6px) rotate(-1.5deg); }
.look img { animation: sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.look:nth-child(2n) img { animation-delay: -1.3s; }
.look:nth-child(3n) img { animation-delay: -2.4s; }
.story img { transition: transform .3s ease; }
.story:hover img { transform: translateY(-6px) scale(1.03); }
.cta-jar .jar { animation: glow 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025, 1.035); } }
@keyframes glow2 { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ff-cat img:first-child, .ff-bug { opacity: 1; }
  .w-spool { opacity: 1; }
}

/* Плеер сказки */
.player { display: flex; align-items: center; gap: 20px; background: rgba(20, 18, 57, .6); border: 1px solid var(--line); border-radius: 26px; padding: 14px 18px 14px 14px; margin: 0 0 26px; max-width: 620px; }
.player-cover { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; flex: none; box-shadow: 0 10px 24px rgba(8, 6, 40, .5); }
.playing .player-cover { animation: breathe 3s ease-in-out infinite; }
.player-body { flex: 1; min-width: 0; }
.player-label { display: block; color: var(--muted); font-size: 14px; font-weight: 800; }
.player-title { display: block; font-size: 20px; font-weight: 900; margin: 2px 0 6px; }
.player-bar { height: 10px; border-radius: 999px; background: rgba(168, 156, 240, .22); cursor: pointer; overflow: hidden; }
.player-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lilac), var(--honey)); }
.player-time { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.player-row { display: flex; align-items: center; gap: 14px; }
.player-row .player-bar { flex: 1; }
.player-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--honey); color: var(--night); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(255, 212, 122, .35); transition: transform .15s ease; }
.player-btn:hover { transform: scale(1.06); }
.player-btn svg { width: 30px; height: 30px; fill: currentColor; }
.player-btn .i-pause, .playing .player-btn .i-play { display: none; }
.playing .player-btn .i-pause { display: block; }
@media (max-width: 520px) { .player { gap: 12px; } .player-cover { width: 64px; height: 64px; } .player-btn { width: 48px; height: 48px; } }

/* Подвал */
footer .foot { border-top: 1px solid var(--line); padding: 24px 0 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 15px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 30px; padding-top: 10px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .hero-art { max-width: 300px; order: -1; }
  .games { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .safe { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .nav-links a { padding: 6px 9px; font-size: 14px; }
  .brand span { display: none; }
}
