/* SөйлеуLab — оформление сайта.
   Layout: «лаборатория речи» — кремовый стол, крупные округлые станции в мятном, жёлтом и лавандовом; бирюзовый — цвет действий.
   Сайт сознательно сделан в одной светлой теме, чтобы детям и жюри он выглядел одинаково на любом устройстве. */
/* Шрифты лежат в папке fonts/ (лицензия OFL): сайт не зависит от Google Fonts и работает без интернета.
   Rubik — заголовки, Nunito — текст. В обоих есть все казахские буквы: Ә Ғ Қ Ң Ө Ұ Ү Һ І,
   поэтому они выглядят так же, как остальные (в прежнем шрифте Unbounded их не было). */
@font-face { font-family: 'Rubik'; src: url('../fonts/rubik-var.woff') format('woff'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-var.woff') format('woff'); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  /* Цвета */
  --cream: #FFF8EC;
  --cream-2: #FBEEDA;
  --cream-glass: rgba(255, 248, 236, .92);
  --pic-bg: #FFF4E2;
  --paper: #FFFFFF;
  --mint: #D3F2E6;
  --mint-2: #9BE0C6;
  --teal: #11908A;
  --teal-2: #0B6A66;
  --teal-soft: #D5EFEC;
  --teal-soft-2: #7FD0C9;
  --lemon: #FFF0B0;
  --lemon-2: #FFD964;
  --lav: #ECE6FC;
  --lav-2: #B3A3EE;
  --lav-3: #6E5BC7;
  --ink: #1E3A40;
  --ink-2: #4F6A71;
  --line: #EADFCB;
  --star: #FFC23D;
  --star-off: #E8DFD0;
  --veil: rgba(30, 58, 64, .45);
  --shade: rgba(30, 58, 64, .14);
  --cf-1: #11908A;
  --cf-2: #FFD964;
  --cf-3: #B3A3EE;
  --cf-4: #F2766B;
  /* Шрифты: выразительный для заголовков, мягкий и читаемый для текста */
  --f-display: 'Rubik', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Размеры */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 58, 64, .06), 0 14px 30px -16px rgba(30, 58, 64, .28);
  --shadow-lift: 0 2px 4px rgba(30, 58, 64, .06), 0 22px 40px -18px rgba(30, 58, 64, .36);
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

.tone-mint { --tone: var(--mint); --tone-2: var(--mint-2); }
.tone-lemon { --tone: var(--lemon); --tone-2: var(--lemon-2); }
.tone-lav { --tone: var(--lav); --tone-2: var(--lav-2); }
.tone-teal { --tone: var(--teal-soft); --tone-2: var(--teal-soft-2); }
/* синий и зелёный домики: твёрдый и мягкий звук, как в школьной звуковой схеме */
.tone-blue { --tone: #DCEBFB; --tone-2: #4A8FD9; }
.tone-green { --tone: #DDF2D8; --tone-2: #4FAE5C; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
.view { flex: 1 0 auto; }
button { font: inherit; color: inherit; }
a { color: var(--teal-2); }
svg { display: block; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Типографика */
.h1, .h2, .h3, .slogan, .station__title, .level__title, .done__title, .brand__word { font-family: var(--f-display); text-wrap: balance; }
.h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.12; font-weight: 600; margin: 0 0 .5rem; letter-spacing: -.01em; }
.h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.2; font-weight: 600; margin: 0 0 .75rem; }
.h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; margin: 0 0 .6rem; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-2); margin: 0 0 1rem; max-width: 60ch; }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); margin: 0 0 .75rem; }
.muted { color: var(--ink-2); }

/* Звуковая фишка: [С] */
.snd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.9em; padding: .05em .45em; margin: 0 .08em;
  border-radius: .55em; background: var(--lemon); color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: .95em; line-height: 1.3;
  box-shadow: inset 0 -2px 0 var(--lemon-2);
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .7rem 1.4rem; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn .ui-ico { width: 20px; height: 20px; flex: none; }
.btn--lg { min-height: 60px; padding: .8rem 1.7rem; font-size: 1.08rem; }
.btn--primary { background: var(--teal); color: var(--paper); box-shadow: 0 10px 22px -12px var(--teal-2); }
.btn--primary:hover { background: var(--teal-2); transform: translateY(-2px); }
.btn--soft { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--soft:hover { box-shadow: inset 0 0 0 2px var(--mint-2); transform: translateY(-2px); }
.link-btn { background: none; border: 0; color: var(--teal-2); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: .5rem; margin-top: .25rem; }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--cream-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: none; }
.brand .logo-mark { width: 42px; height: 42px; }
.brand__word { font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__o { color: var(--teal); }
.brand__lab { display: inline-block; margin-left: .2rem; padding: .05rem .45rem; border-radius: 999px; background: var(--lav); color: var(--lav-3); font-size: .78em; vertical-align: .12em; }
.topbar__tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.lang__btn { border: 0; background: none; cursor: pointer; border-radius: 999px; padding: .5rem .85rem; font-weight: 800; font-size: .95rem; color: var(--ink-2); min-height: 40px; }
.lang__btn[aria-pressed="true"] { background: var(--teal); color: var(--paper); }
.lang__short { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .5rem .9rem; border-radius: 999px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; cursor: pointer; }
.menu-btn .ui-ico { width: 22px; height: 22px; }
.menu { border-top: 1px solid var(--line); background: var(--cream); box-shadow: 0 24px 40px -28px var(--shade); }
.menu__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; padding-block: 1.25rem 1.5rem; }
.menu__h { margin: 0 0 .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.menu__a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .8rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 700; }
.menu__a:hover, .menu__a.is-cur { background: var(--paper); }
.menu__st { font-size: .76rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); white-space: nowrap; }
.menu__st.ok { background: var(--mint); color: var(--teal-2); }

/* Компактная навигация в шапке: Главная · Разделы · Для логопеда */
.topnav { display: flex; align-items: center; gap: .2rem; }
.topnav__a {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .45rem .85rem; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink); font: inherit; font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.topnav__a .ui-ico { width: 21px; height: 21px; flex: none; color: var(--teal); }
.topnav__a:hover { background: var(--paper); }
.topnav__a:active { transform: scale(.96); }
.topnav__a.is-cur { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--mint-2); }
.topnav .menu-btn { background: transparent; box-shadow: none; }
.topnav .menu-btn:hover, .topnav .menu-btn[aria-expanded="true"] { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- Главная: первый экран ---------- */
.hero { padding-block: clamp(1.75rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero__txt { min-width: 0; }
.slogan { font-size: clamp(2rem, 4.8vw, 3.55rem); line-height: 1.06; font-weight: 600; margin: 0 0 1.25rem; letter-spacing: -.02em; }
.slogan__w { display: block; white-space: nowrap; }
.tok { display: inline-block; width: .42em; height: .42em; border-radius: 50%; margin-right: .32em; vertical-align: .12em; }
.tok--mint { background: var(--mint-2); }
.tok--lemon { background: var(--lemon-2); }
.tok--lav { background: var(--lav-2); }
.tok--teal { background: var(--teal); }
.hero__lead { margin-bottom: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.hero__author { margin: 0; font-size: .95rem; color: var(--ink-2); max-width: 52ch; padding-left: .9rem; border-left: 3px solid var(--lav-2); }
.hero__art { position: relative; aspect-ratio: 1 / .92; max-width: 460px; width: 100%; justify-self: center; }
.hero__disc { position: absolute; inset: 6% 4% 4% 6%; border-radius: 50%; background: var(--mint); }
.hero__disc::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 2px dashed var(--mint-2); }
.hero__mascot { position: absolute; left: 22%; top: 24%; width: 56%; }
.hero__mascot .mascot { width: 100%; height: auto; filter: drop-shadow(0 18px 18px var(--shade)); }
.fl {
  position: absolute; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; background: var(--paper); color: var(--teal-2);
  box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite;
}
.fl--1 { left: 2%; top: 14%; }
.fl--2 { right: 4%; top: 6%; background: var(--teal); color: var(--paper); animation-delay: -1.2s; }
.fl--3 { right: 0; top: 56%; background: var(--lav); color: var(--lav-3); animation-delay: -2.4s; }
.fl--4 { left: 6%; bottom: 8%; background: var(--lemon); color: var(--ink); animation-delay: -3.3s; }
.flp { position: absolute; width: 22%; aspect-ratio: 1; padding: 4px; border-radius: 1.2rem; background: var(--paper); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.flp .pic { width: 100%; height: 100%; }
.flp--1 { left: 30%; top: -2%; width: 18%; animation-delay: -.8s; }
.flp--2 { right: 18%; bottom: 0; animation-delay: -2s; }
.flp--3 { left: -2%; top: 46%; width: 17%; animation-delay: -3.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Главная: станции ---------- */
.block { padding-block: clamp(1.5rem, 4vw, 2.75rem); }
.block--adults { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; margin-bottom: 1.25rem; }
.block__head .h2 { margin: 0; }
.block__head p { margin: 0; }
.stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.4rem); }
.station {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.station:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.station__art { display: grid; place-items: center; background: var(--tone); padding: 1rem 1rem .6rem; }
.station__art .tile-art { width: min(100%, 220px); height: auto; aspect-ratio: 160 / 110; }
.station__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.05rem 1.25rem 1.25rem; flex: 1; }
.station__title { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.station__aim { color: var(--ink-2); font-size: .98rem; line-height: 1.4; flex: 1; }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem;
  padding: .3rem .75rem; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); font-weight: 800; font-size: .82rem;
}
.status .ui-ico { width: 14px; height: 14px; }
.status--ok { background: var(--teal); color: var(--paper); }
.station.is-ready { box-shadow: var(--shadow), inset 0 0 0 3px var(--mint-2); }

.adults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.4rem); }
.adult {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.15rem; border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .2s ease, transform .2s ease;
}
.adult:hover { box-shadow: inset 0 0 0 2px var(--mint-2); transform: translateY(-2px); }
.adult__ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--cream); }
.adult__ico svg { width: 40px; height: 40px; }
.adult__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adult__title { font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.adult__txt { color: var(--ink-2); font-size: .94rem; line-height: 1.35; }
.adult__go { flex: none; color: var(--teal); }
.adult__go .ui-ico { width: 22px; height: 22px; }

/* ---------- Главная: сказочный первый экран ---------- */
.home-hero { padding-block: clamp(.75rem, 2.2vw, 1.5rem) .25rem; }
.home-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); align-items: center; column-gap: clamp(.5rem, 2vw, 1.5rem);
  min-height: clamp(420px, 40vw, 520px);
  padding: clamp(1.25rem, 3.5vw, 2.5rem) clamp(1.25rem, 3.5vw, 3rem) 0;
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(70% 60% at 72% 34%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #C9E7FA 0%, #E2F2FD 48%, #FFF0E2 100%);
  box-shadow: 0 34px 60px -44px rgba(48, 110, 160, .6), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.home-stage__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.home-cl { position: absolute; display: block; opacity: .95; animation: homeDrift 16s ease-in-out infinite alternate; }
.home-cl .home-cloud { width: 100%; height: auto; }
.home-cl--1 { left: 3%; top: 7%; width: clamp(70px, 9vw, 120px); }
.home-cl--2 { left: 36%; top: 3%; width: clamp(54px, 6vw, 84px); opacity: .8; animation-duration: 20s; animation-delay: -6s; }
.home-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); animation: homeTw 3.4s ease-in-out infinite; }
.home-dot--1 { left: 28%; top: 16%; }
.home-dot--2 { left: 6%; top: 46%; width: 6px; height: 6px; animation-delay: -1.2s; background: #FFE59E; }
.home-dot--3 { left: 42%; top: 30%; width: 6px; height: 6px; animation-delay: -2.2s; }

.home-stage__txt { position: relative; z-index: 2; min-width: 0; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.home-eyebrow {
  display: inline-flex; align-items: center; margin: 0 0 .9rem; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .78); color: var(--teal-2); font-weight: 800; font-size: .82rem; letter-spacing: .04em;
  box-shadow: 0 6px 16px -10px rgba(48, 110, 160, .5);
}
.home-title { margin: 0 0 .6rem; line-height: 1; }
.home-title .brand__word { display: inline-block; font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; text-shadow: 0 3px 0 rgba(255, 255, 255, .7); }
.home-title .brand__lab { display: inline-block; padding: .02em .32em .06em; margin-left: .12em; font-size: .6em; vertical-align: .32em; text-shadow: none; box-shadow: 0 6px 14px -8px rgba(110, 91, 199, .7); }
.home-line { margin: 0 0 1.6rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.35; font-weight: 800; color: var(--ink-2); max-width: 22ch; text-wrap: balance; }
.home-start {
  min-height: 66px; padding: .9rem 2rem .9rem 1.5rem; font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  background: linear-gradient(180deg, #17A59D 0%, #0E827C 100%);
  box-shadow: 0 16px 28px -14px rgba(11, 106, 102, .85), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.home-start .ui-ico { width: 24px; height: 24px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.home-start:hover { background: linear-gradient(180deg, #129690 0%, #0B6A66 100%); transform: translateY(-2px); }
.home-start:active { transform: translateY(1px) scale(.98); }

.home-stage__art { position: relative; z-index: 1; align-self: end; min-width: 0; margin-right: calc(-1 * clamp(.5rem, 2.5vw, 2rem)); }
.home-kids { width: 100%; height: auto; overflow: visible; }
.hk-float { animation: bob 6s ease-in-out infinite; }
.hk-float--2 { animation-delay: -2s; animation-duration: 7s; }
.hk-float--3 { animation-delay: -4s; }
.hk-tw { transform-box: fill-box; transform-origin: center; animation: homeTw 3.2s ease-in-out infinite; }
.hk-tw--2 { animation-delay: -1.1s; }
.hk-tw--3 { animation-delay: -2.1s; }
.hk-rise { animation: homeRise 4.5s ease-in-out infinite; }
.hk-tap { transform-box: fill-box; transform-origin: center; animation: homeTap 2.4s ease-out infinite; }
@keyframes homeDrift { from { transform: translateX(0); } to { transform: translateX(18px); } }
@keyframes homeTw { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.65); opacity: .55; } }
@keyframes homeRise { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-7px); opacity: .75; } }
@keyframes homeTap { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* Первый экран с картинкой автора.
   Компьютер: широкий первый экран — текст слева, картинка во всю высоту справа; левый край картинки
   мягко растворяется в тёплом фоне, поэтому нет рамок и пустых полос. Пропорции картинки не меняются.
   Планшет и телефон: картинка целиком сверху (название, лица, планшет и бельчонок не обрезаются), текст под ней. */
.home-stage--photo {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-areas: "txt photo";
  min-height: 0; padding: 0; column-gap: 0; align-items: center;
  background:
    radial-gradient(80% 70% at 8% 45%, #FFFAF3 0%, rgba(255, 250, 243, 0) 70%),
    linear-gradient(180deg, #FBEADB 0%, #FDF3EA 55%, #F8E3D6 100%);
  box-shadow: 0 34px 60px -44px rgba(150, 100, 60, .55), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.home-stage--photo .home-stage__sky { display: none; }
.home-stage--photo .home-stage__txt { grid-area: txt; padding: clamp(1.5rem, 3.5vw, 3rem); padding-right: clamp(.5rem, 1.5vw, 1rem); }
.home-photo { grid-area: photo; position: relative; z-index: 1; margin: 0; min-width: 0; align-self: stretch; display: flex; align-items: center; }
.home-photo picture { display: block; width: 100%; }
.home-photo img {
  display: block; width: 100%; height: auto; background: #F6E6D8;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%);
  mask-image: linear-gradient(90deg, transparent 0, #000 11%);
}
.home-photo.is-drawn { padding: 1rem; }
.home-headline {
  margin: 0 0 1.6rem; font-family: var(--f-display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance;
}
.home-stage--photo .home-eyebrow { background: rgba(255, 255, 255, .85); box-shadow: 0 6px 16px -10px rgba(150, 100, 60, .5); }

/* ---------- Главная: шесть карточек разделов ---------- */
.home-sections { scroll-margin-top: 80px; }
.hcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.hcard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  text-decoration: none; color: var(--ink); background: var(--paper);
  border-radius: 28px; overflow: hidden; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 4px rgba(30, 58, 64, .05), 0 18px 34px -22px rgba(30, 58, 64, .38);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1.15), box-shadow .28s ease;
}
@media (hover: hover) {
  .hcard:hover { transform: translateY(-6px); box-shadow: 0 4px 8px rgba(30, 58, 64, .06), 0 28px 44px -24px rgba(30, 58, 64, .45); }
  .hcard:hover .hcard__go { background: var(--teal-2); }
  .hcard:hover .hc-obj { transform: translateY(-4px) scale(1.04); }
  .hcard:hover .hc-wave { transform: translateX(3px) scale(1.08); }
  .hcard:hover .hc-puff { transform: translate(-4px, -6px); }
  .hcard:hover .hc-tw { animation: homeTw 1.4s ease-in-out infinite; }
}
.hcard:active { transform: translateY(-1px) scale(.98); transition-duration: .08s; }
.hcard:focus-visible { outline-offset: 4px; border-radius: 28px; }
.hcard__art { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.hcard__art > .hc-art { width: 100%; height: 100%; }
.hcard__num {
  position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  box-shadow: 0 6px 12px -6px rgba(30, 58, 64, .4);
}
.hcard__body { display: flex; flex-direction: column; gap: .3rem; flex: 1; padding: 1rem 1.2rem 1.2rem; }
.hcard__title { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; line-height: 1.22; text-wrap: balance; }
.hcard__txt { flex: 1; color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.hcard__go, .hcard__soon {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .65rem;
  min-height: 38px; padding: .4rem 1rem .4rem .8rem; border-radius: 999px; font-weight: 800; font-size: .92rem;
}
.hcard__go { background: var(--teal); color: var(--paper); box-shadow: 0 8px 16px -10px var(--teal-2); transition: background-color .2s ease; }
.hcard__go .ui-ico { width: 16px; height: 16px; }
.hcard__soon { padding-left: 1rem; background: var(--cream-2); color: var(--ink-2); }
/* Лёгкое оживление картинки при наведении */
.hc-obj, .hc-wave, .hc-puff { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2, .8, .3, 1.2); }
.hc-tw { transform-box: fill-box; transform-origin: center; }

/* ---------- Общие страницы ---------- */
.page { padding-block: 1.25rem clamp(2.5rem, 6vw, 4.5rem); }
.crumb { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.25rem; padding: .45rem .9rem .45rem .55rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; color: var(--ink); font-weight: 800; font-size: .95rem; }
.crumb .ui-ico { width: 20px; height: 20px; }
.page-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.75rem; }
.page-head__mark { flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.page-head__mark svg { width: 52px; height: 52px; }
.page-head .h1 { margin: 0; }
.page-head .eyebrow { margin-bottom: .35rem; }
.prose { min-width: 0; }
.prose p { margin: 0 0 1rem; max-width: 66ch; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; margin-bottom: 2rem; }
.side-card { background: var(--paper); border-radius: var(--r-lg); padding: 1.35rem 1.4rem; box-shadow: var(--shadow); }
.dir { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.dir li { display: flex; align-items: center; font-weight: 700; }
.dir .tok { width: .7rem; height: .7rem; margin-right: .6rem; vertical-align: 0; flex: none; }
.side-card__note { margin: 0; padding-top: .9rem; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: .94rem; }
.author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; background: var(--lav); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2rem); }
.author__mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--paper); }
.author__mark svg { width: 46px; height: 46px; }
.author .prose p:last-child { margin-bottom: 0; }

.doc { display: grid; gap: 1.25rem; max-width: 860px; }
.doc__sec { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.15rem, 3vw, 1.6rem); box-shadow: inset 0 0 0 1.5px var(--line); min-width: 0; }
.doc__sec p { margin: 0 0 .75rem; max-width: 66ch; }
.doc__sec p:last-child { margin-bottom: 0; }
.ticks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.9rem; max-width: 64ch; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 20px var(--mint-2); }
.doc .ticks { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin-top: .25rem; }
.mat { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .98rem; }
.mat th, .mat td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.mat thead th { font-family: var(--f-display); font-weight: 600; font-size: .9rem; background: var(--cream); }
.mat tbody th { font-weight: 800; white-space: nowrap; color: var(--ink-2); }
.mat__note { display: block; color: var(--ink-2); font-size: .92rem; margin-top: .15rem; }
.mat__levels { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .35rem; max-width: 66ch; }
.mat__lang { margin: 1.1rem 0 .4rem; }
.mat td .snd, .mat th .snd { font-size: .85em; }
.doc__sec .mat__foot { margin-top: .9rem; color: var(--ink-2); font-size: .95rem; }

.tips { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.tip { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem 1.2rem; border-radius: var(--r-lg); background: var(--tone); }
.tip .tok { flex: none; width: .9rem; height: .9rem; margin: .38rem 0 0; }
.tip p { margin: 0; font-weight: 600; }
.callout { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); max-width: 70ch; }

.soon { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; background: var(--paper); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.soon__art { background: var(--tone); border-radius: var(--r-lg); padding: clamp(1rem, 4vw, 2.5rem); display: grid; place-items: center; }
.soon__art .tile-art { width: 100%; max-width: 360px; height: auto; aspect-ratio: 160 / 110; }
.soon__txt { min-width: 0; }
.soon__txt .status { margin: 0 0 .75rem; }

/* ---------- Игра: экран уровней ---------- */
.game-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1rem, 4vw, 2.5rem); align-items: center; background: var(--tone); border-radius: var(--r-xl); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 2rem; }
.game-hero__art { display: grid; place-items: center; }
.game-hero__art .tile-art { width: 100%; max-width: 320px; height: auto; aspect-ratio: 160 / 110; }
.game-hero__txt { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.chip { display: inline-flex; align-items: center; padding: .35rem .7rem; border-radius: 999px; background: var(--paper); font-weight: 800; }
.chip .snd { font-size: .9em; }
.section-title { margin-bottom: 1rem; }
.section-title .snd { font-size: .8em; }

/* Выбор звука */
.picker__h { margin: 0 0 .5rem; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); }
.picker { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.snd-pick {
  display: grid; justify-items: center; gap: .1rem; min-width: 64px; padding: .5rem .55rem .45rem;
  border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--mint-2); transition: transform .15s ease, background-color .15s ease;
}
.snd-pick:hover { transform: translateY(-2px); }
.snd-pick__l { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.snd-pick__p { display: inline-flex; align-items: center; gap: .15rem; font-size: .74rem; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.snd-pick__p .star { width: 12px; height: 12px; color: var(--star); }
.snd-pick.is-on { background: var(--teal); color: var(--paper); box-shadow: 0 10px 20px -12px var(--teal-2); }
.snd-pick.is-on .snd-pick__p { color: var(--mint); }
.snd-pick.is-done:not(.is-on) { box-shadow: inset 0 0 0 3px var(--star); }
.adult-note__pos { padding-top: .6rem; border-top: 1px dashed var(--line); }
.adult-note__pos .snd { font-size: .85em; }
.levels { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.level {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  text-align: left; border: 0; cursor: pointer; padding: 1rem 1.15rem; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.level:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.level__icon { width: 72px; height: 72px; border-radius: 20px; background: var(--tone-2); display: grid; place-items: center; }
.level__icon .level-ico { width: 52px; height: 52px; }
.level__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.level__num { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.level__title { font-size: 1.08rem; font-weight: 600; }
.level__note { color: var(--ink-2); font-size: .94rem; line-height: 1.35; }
.level__note .snd { font-size: .85em; }
.stars { display: inline-flex; gap: 2px; }
.stars .st { color: var(--star-off); }
.stars .st.on { color: var(--star); }
.stars .star { width: 20px; height: 20px; }
.stars--big .star { width: 44px; height: 44px; }
.intro-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.rewards, .adult-note { background: var(--paper); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; box-shadow: inset 0 0 0 1.5px var(--line); min-width: 0; }
.rewards__row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.badge { width: 64px; height: 64px; }
.rewards__medal { display: inline-flex; align-items: center; gap: .5rem; margin-left: .25rem; font-weight: 800; color: var(--ink-2); font-size: .92rem; }
.adult-note p { margin: 0 0 .6rem; color: var(--ink-2); font-size: .96rem; }
.adult-note p:last-child { margin: 0; }

/* ---------- Игра: экран уровня ---------- */
.stage-wrap { padding-block: 1rem clamp(2rem, 5vw, 3rem); }
.stage { position: relative; background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: clamp(.85rem, 2.5vw, 1.5rem); max-width: 980px; margin: 0 auto; }
.stage__bar { display: flex; align-items: center; gap: .6rem; padding: .35rem; border-radius: var(--r-lg); background: var(--tone); }
.stage__title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.stage__snd { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .4rem; border-radius: 14px; background: var(--lemon); font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; box-shadow: inset 0 -2px 0 var(--lemon-2); }
.stage__lvl { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.stage__name { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; overflow-wrap: anywhere; }
.stage__tools { display: flex; gap: .4rem; }
.icon-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 16px; border: 0; background: var(--paper); cursor: pointer; color: var(--ink); }
.icon-btn .ui-ico { width: 22px; height: 22px; }
.icon-btn--text { font-weight: 900; font-size: 1.02rem; }
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { background: var(--teal); color: var(--paper); }
.settings { margin-top: .6rem; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--cream); display: grid; gap: .55rem; }
.switch { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--star-off); position: relative; transition: background-color .2s; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px var(--shade); transition: transform .2s; }
.switch input:checked + .switch__ui { background: var(--teal); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--teal); outline-offset: 2px; }
.settings__note { margin: 0; font-size: .9rem; color: var(--ink-2); }
.progress { display: flex; justify-content: center; gap: 6px; margin: .9rem 0 .2rem; min-height: 10px; }
.progress__dot { width: 22px; height: 8px; border-radius: 999px; background: var(--cream-2); transition: background-color .3s; }
.progress__dot.on { background: var(--teal); }
.guide { display: flex; align-items: center; gap: .75rem; margin: .75rem 0 1rem; }
.guide__mascot { flex: none; width: 74px; }
.guide__mascot .mascot { width: 100%; height: auto; }
.guide__bubble {
  position: relative; margin: 0; flex: 1; min-width: 0; padding: .8rem 1.1rem; border-radius: 20px;
  background: var(--cream); font-weight: 700; font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.4;
  transition: background-color .2s;
}
.guide__bubble::before { content: ''; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 0; border-right-color: var(--cream); transition: border-color .2s; }
.guide__bubble.is-good { background: var(--mint); color: var(--teal-2); font-family: var(--f-display); font-weight: 600; }
.guide__bubble.is-good::before { border-right-color: var(--mint); }
.guide__bubble.is-retry { background: var(--lav); color: var(--lav-3); }
.guide__bubble.is-retry::before { border-right-color: var(--lav); }
.play { position: relative; }

/* Подписи — только для взрослого */
.cap { display: none; font-weight: 800; font-size: .95rem; text-align: center; color: var(--ink-2); line-height: 1.2; }
.show-captions .cap { display: block; }

/* Кнопка «послушать» видна, когда есть запись автора или голос браузера (общий голос сайта) */
.speak { display: grid; position: absolute; top: 6px; left: 6px; z-index: 2; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--paper); color: var(--teal-2); box-shadow: 0 2px 6px var(--shade); cursor: pointer; place-items: center; }
.speak .ui-ico { width: 20px; height: 20px; }
.speak[hidden] { display: none; }
.speak.is-tap, .tq-say.is-tap { animation: hit .4s ease; }
/* Разделы 1 и 2: кнопка звука в панели уровня и «послушать» рядом с облачком */
.stage__tools .tq-vol { display: none; }
.stage__tools { align-items: center; }
.guide .tq-say { align-self: center; }
.settings .tq-field select { max-width: 100%; }

/* Уровень 1: выбор картинок */
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1rem); max-width: 720px; margin: 0 auto; }
.pc { position: relative; }
.pc__btn {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: clamp(.35rem, 1.5vw, .7rem);
  border: 0; border-radius: var(--r-lg); background: var(--pic-bg); cursor: pointer;
  box-shadow: inset 0 0 0 3px transparent; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.pc__btn:hover { transform: translateY(-2px); }
.pc__pic { display: block; width: 100%; aspect-ratio: 1; }
.pc__pic .pic, .bc__pic .pic, .sc__pic .pic { width: 100%; height: 100%; }
.pc__mark { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--paper); display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.pc__mark .ui-ico { width: 20px; height: 20px; }
.pc.is-right .pc__btn { background: var(--mint); box-shadow: inset 0 0 0 3px var(--mint-2); }
.pc.is-right .pc__mark { transform: scale(1); }
.pc.is-wrong .pc__btn { background: var(--lav); box-shadow: inset 0 0 0 3px var(--lav-2); }

/* Большая карточка (уровни 2 и 3) */
.bc { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; width: min(260px, 62vw); padding: .9rem; border-radius: var(--r-xl); background: var(--pic-bg); box-shadow: inset 0 0 0 3px var(--line); }
.bc__pic { display: block; width: 100%; aspect-ratio: 1; }
.bc .cap { font-size: 1.1rem; }

/* Уровень 2: есть ли звук */
.yn { display: grid; gap: 1.25rem; justify-items: center; }
.yn__stage { min-height: 200px; display: grid; place-items: center; }
.yn__card.in { animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
.yn__card.out-right { animation: outRight .5s ease forwards; }
.yn__card.out-left { animation: outLeft .5s ease forwards; }
.yn__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: min(100%, 520px); }
.ynbtn { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 92px; border: 0; border-radius: var(--r-lg); cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; transition: transform .15s ease; }
.ynbtn .yn-ico { width: 54px; height: 54px; flex: none; }
.ynbtn--no { background: var(--lav); color: var(--lav-3); }
.ynbtn--yes { background: var(--mint); color: var(--teal-2); }
.ynbtn:hover { transform: translateY(-2px); }
.ynbtn.flash { box-shadow: 0 0 0 4px var(--teal); }

/* Уровень 3: звуковая линейка */
.posg { display: grid; gap: 1.25rem; justify-items: center; }
.posg__card { display: grid; justify-items: center; gap: .5rem; }
.posg__card.in .bc { animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
.posg__word { margin: 0; min-height: 2.2rem; font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hl { color: var(--paper); background: var(--teal); border-radius: .3em; padding: 0 .12em; font-weight: 700; }
.scheme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: min(100%, 560px); }
.scheme__cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .3rem;
  min-height: 104px; padding: .7rem .4rem .55rem; border: 0; cursor: pointer; background: var(--cream-2);
  box-shadow: inset 0 0 0 3px var(--line); border-radius: 10px; transition: background-color .2s, transform .15s;
}
.scheme__cell--0 { border-radius: 26px 10px 10px 26px; }
.scheme__cell--2 { border-radius: 10px 26px 26px 10px; }
.scheme__cell:hover { transform: translateY(-2px); background: var(--lemon); }
.scheme__slot { width: 48px; height: 48px; border-radius: 50%; border: 3px dashed var(--line); display: grid; place-items: center; }
.scheme__label { font-weight: 800; font-size: .95rem; color: var(--ink-2); }
.scheme__cell.is-right { background: var(--mint); box-shadow: inset 0 0 0 3px var(--mint-2); }
.scheme__cell.is-off { cursor: default; opacity: .38; background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); transform: none; }
.scheme__cell.is-off .scheme__slot { border-style: dotted; }
.scheme__cell.is-right .scheme__slot { border-color: transparent; }
.token { width: 48px; height: 48px; border-radius: 50%; background: var(--lemon-2); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }

/* Уровень 4: сортировка по домикам */
.sortg { display: grid; gap: 1rem; }
.sortg__tip { margin: 0; text-align: center; color: var(--ink-2); font-size: .95rem; }
.tray { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(.4rem, 1.2vw, .7rem); max-width: 920px; width: 100%; margin: 0 auto; min-height: 60px; }
.sc { position: relative; transition: transform .25s ease, opacity .25s ease; }
.sc__btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .4rem; border: 0; border-radius: var(--r-md); background: var(--pic-bg); cursor: grab; touch-action: none; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .2s, transform .15s; }
.sc__pic { display: block; width: 100%; aspect-ratio: 1; pointer-events: none; }
.sc.is-sel .sc__btn { box-shadow: inset 0 0 0 3px var(--teal); transform: translateY(-4px); background: var(--mint); }
.sc.is-drag { opacity: .35; }
.sc.gone { transform: scale(.4); opacity: 0; }
.ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; margin: 0; }
.ghost .sc__btn { box-shadow: 0 18px 30px -12px var(--shade), inset 0 0 0 3px var(--teal); background: var(--paper); }
.houses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1rem); }
.house {
  position: relative; display: grid; gap: .35rem; align-content: start; justify-items: center;
  padding: 1.1rem .8rem .9rem; border-radius: 22px 22px var(--r-lg) var(--r-lg); background: var(--tone);
  cursor: pointer; min-height: 200px; transition: transform .15s, box-shadow .2s;
  box-shadow: inset 0 0 0 3px transparent;
}
.house::before { content: ''; position: absolute; left: 50%; top: -26px; width: 70%; height: 40px; transform: translateX(-50%); background: var(--tone-2); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 6px; }
.house.ready, .house.over { box-shadow: inset 0 0 0 3px var(--teal); }
.house.over { transform: scale(1.03); }
.house.hit { animation: hit .4s ease; }
.house__head { display: flex; align-items: center; gap: .4rem; }
.house__sym { width: 56px; height: 56px; }
.house__sym .pic { width: 100%; height: 100%; }
.house__snd { width: 56px; height: 56px; border-radius: 18px; background: var(--paper); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; }
.house__name { font-weight: 800; text-align: center; line-height: 1.2; }
.house__name span { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.house__bin { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: .3rem; }
.mini { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); padding: 2px; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.mini .pic { width: 100%; height: 100%; }

/* Экран завершения */
.done { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: var(--veil); animation: fade .25s ease; overflow-y: auto; }
.done__card { position: relative; overflow: hidden; width: min(100%, 440px); background: var(--paper); border-radius: var(--r-xl); padding: 1.5rem 1.4rem 1.2rem; text-align: center; box-shadow: var(--shadow-lift); animation: pop .4s cubic-bezier(.3, 1.4, .5, 1); }
.done__mascot { width: 120px; margin: 0 auto .3rem; }
.done__mascot .mascot { width: 100%; height: auto; }
.done__title { font-size: 1.45rem; font-weight: 600; margin: 0 0 .5rem; }
.done__stars { display: flex; justify-content: center; margin-bottom: .8rem; }
.done__reward { display: grid; justify-items: center; gap: .35rem; padding: .8rem; border-radius: var(--r-lg); background: var(--cream); margin-bottom: 1rem; }
.done__label { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.done__badges { display: flex; gap: .5rem; }
.done__badges .badge { width: 78px; height: 78px; animation: spin-in .6s cubic-bezier(.3, 1.4, .5, 1); }
.done__medal { font-weight: 800; color: var(--teal-2); }
.done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.cf { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 3px; animation: fall 2s ease-in forwards; }
.cf--0 { background: var(--cf-1); }
.cf--1 { background: var(--cf-2); }
.cf--2 { background: var(--cf-3); }
.cf--3 { background: var(--cf-4); }

/* Подвал */
.foot { border-top: 1px solid var(--line); background: var(--cream-2); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.5rem; }
.foot__brand { display: inline-flex; align-items: center; gap: .5rem; }
.foot__brand .logo-mark { width: 36px; height: 36px; }
.foot__brand .brand__word { font-size: 1.05rem; }
.foot__txt { flex: 1 1 280px; min-width: 0; font-size: .94rem; }
.foot__txt p { margin: 0 0 .2rem; }

/* ---------- Тренажёр «Говори правильно» ---------- */
.sp-route-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sp-route-mini li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem .3rem .3rem; border-radius: 999px; background: var(--paper); font-weight: 800; font-size: .86rem; }
.sp-route-mini span { width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--paper); font-size: .8rem; }
.sp-block { margin-bottom: 2rem; }
.sp-step { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sp-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--lemon-2); font-size: 1rem; font-family: var(--f-display); }
.sp-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 640px; }
.sp-lang { display: grid; gap: .25rem; text-align: left; padding: 1rem 1.2rem; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; transition: transform .15s; }
.sp-lang:hover { transform: translateY(-2px); }
.sp-lang.is-on { background: var(--teal); color: var(--paper); box-shadow: 0 12px 24px -14px var(--teal-2); }
.sp-lang__name { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.sp-lang__snd { font-weight: 800; letter-spacing: .14em; opacity: .85; }
.sp-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.sp-group { background: var(--tone); border-radius: var(--r-xl); padding: 1.2rem; display: grid; gap: .9rem; align-content: start; }
.sp-group__name { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.sp-group__sub { margin: .2rem 0 0; color: var(--ink-2); font-size: .94rem; }
.sp-group__snds { display: flex; flex-wrap: wrap; gap: .6rem; }
.sp-snd { display: grid; justify-items: center; gap: .15rem; min-width: 76px; padding: .6rem .7rem .5rem; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: transform .15s; }
.sp-snd:hover { transform: translateY(-3px); }
.sp-snd__l { font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.sp-snd__p { display: inline-flex; align-items: center; gap: .15rem; font-size: .76rem; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sp-snd__p .star { width: 12px; height: 12px; color: var(--star); }
.sp-snd.is-done { box-shadow: var(--shadow), inset 0 0 0 3px var(--star); }

.sp-rhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; background: var(--tone); border-radius: var(--r-xl); padding: clamp(1rem, 3vw, 1.6rem); margin-bottom: 1.5rem; }
.sp-rhead__snd { width: 96px; height: 96px; border-radius: 28px; background: var(--paper); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 3rem; box-shadow: var(--shadow); }
.sp-rhead__txt { min-width: 0; }
.sp-rhead .h1 { margin: 0 0 .3rem; }
.sp-rhead .eyebrow { margin-bottom: .3rem; }
.sp-rhead__prog { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sp-rhead__prog .star { width: 24px; height: 24px; }
.sp-path { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sp-st { width: 100%; height: 100%; display: flex; flex-direction: column; gap: .6rem; text-align: left; border: 0; padding: 1rem; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.sp-st:not(.is-locked):hover { transform: translateY(-3px); }
.sp-st__ico { width: 72px; height: 72px; border-radius: 20px; background: var(--tone); display: grid; place-items: center; overflow: hidden; }
.sp-st__ico .art, .sp-st__ico .pic, .sp-st__ico .mascot { width: 60px; height: 60px; }
.sp-stico { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.sp-st__body { display: grid; gap: .1rem; }
.sp-st__num { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sp-st__name { font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.sp-st__aim { color: var(--ink-2); font-size: .92rem; line-height: 1.35; }
.sp-st__status { margin-top: auto; display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; padding: .25rem .65rem; border-radius: 999px; background: var(--cream-2); font-weight: 800; font-size: .8rem; color: var(--ink-2); }
.sp-st__status .star { width: 14px; height: 14px; color: var(--star); }
.sp-st.is-done .sp-st__status { background: var(--mint); color: var(--teal-2); }
.sp-st.is-open .sp-st__status { background: var(--teal); color: var(--paper); }
.sp-st.is-locked { opacity: .62; cursor: not-allowed; box-shadow: inset 0 0 0 2px var(--line); }
.sp-lock { position: relative; display: inline-block; width: 10px; height: 8px; margin-top: 4px; border-radius: 2px; background: currentColor; }
.sp-lock::before { content: ''; position: absolute; left: 1px; top: -6px; width: 8px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.sp-openall { margin-bottom: .3rem; }
.sp-openall__note { margin: 0 0 1.25rem; color: var(--ink-2); font-size: .92rem; max-width: 66ch; }
.sp-notes { max-width: 820px; }

.sp-config { margin-top: .6rem; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--cream); }
.sp-config summary { cursor: pointer; font-weight: 800; }
.sp-config p { margin: .5rem 0; color: var(--ink-2); font-size: .92rem; }
.sp-config__list { display: grid; gap: .45rem; }
.sp-progress { display: flex; align-items: center; gap: .7rem; margin: .9rem 0 .2rem; }
.sp-progress__bar { flex: 1; height: 10px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.sp-progress__bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.sp-progress__txt { font-weight: 800; font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 3.5rem; text-align: right; }
.sp-part { margin: 0 0 .6rem; min-height: 1.2em; text-align: center; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); }
.sp-play { display: grid; justify-items: center; min-height: 180px; }
.sp-adult { margin: 1rem auto .6rem; max-width: 60ch; text-align: center; font-size: .9rem; color: var(--ink-2); }
.sp-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.sp-nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.sp-ex { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: center; width: 100%; max-width: 780px; }
.sp-ex__art { background: var(--tone); border-radius: var(--r-xl); padding: 1rem; display: grid; place-items: center; }
.sp-ex__art .art { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; }
.sp-ex__txt { min-width: 0; }
.sp-ex__name { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; margin: 0 0 .4rem; }
.sp-ex__child { margin: 0 0 .9rem; font-size: 1.12rem; font-weight: 600; line-height: 1.45; }
.sp-count { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.sp-count__dots { display: flex; gap: .35rem; }
.sp-count__dots i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--cream-2); color: var(--ink-2); transition: background-color .2s, transform .2s; }
.sp-count__dots i.on { background: var(--lemon-2); color: var(--ink); transform: scale(1.1); }
.sp-tip { padding: .6rem .8rem; border-radius: var(--r-md); background: var(--cream); }
.sp-tip summary { cursor: pointer; font-weight: 800; color: var(--teal-2); }
.sp-tip p { margin: .5rem 0 0; color: var(--ink-2); font-size: .95rem; }

.sp-syll { display: flex; align-items: center; gap: 1rem; max-width: 100%; padding: 1.2rem 1.6rem; border-radius: var(--r-xl); background: var(--pic-bg); box-shadow: inset 0 0 0 3px var(--line); }
.sp-sym { width: 72px; height: 72px; flex: none; display: grid; place-items: center; }
.sp-sym .pic { width: 100%; height: 100%; }
.sp-sym--chip { border-radius: 20px; background: var(--lemon); font-family: var(--f-display); font-weight: 700; font-size: 2rem; }
.sp-syll__txt { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 12vw, 6rem); line-height: 1.05; letter-spacing: .06em; padding: 0 .2em; border-radius: 16px; transition: transform .2s, background-color .2s; }
.sp-t { color: var(--teal); font-weight: 700; }
.sp-chain { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.sp-chip { padding: .3rem .6rem; border-radius: 16px; background: var(--paper); font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 6vw, 2.6rem); transition: background-color .2s, transform .2s; }
.sp-dash { color: var(--ink-2); font-weight: 700; font-size: 1.5rem; }
.sp-w.lit { background: var(--lemon-2); border-radius: 12px; transform: scale(1.06); }

.sp-word { display: grid; justify-items: center; gap: .7rem; }
.sp-pop { animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
.sp-posbadge { display: inline-flex; align-items: center; gap: .6rem; margin: 0; padding: .45rem .9rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; }
.sp-mini { display: inline-flex; gap: 3px; }
.sp-mini i { width: 22px; height: 14px; border-radius: 4px; background: var(--cream-2); }
.sp-mini i:first-child { border-radius: 8px 4px 4px 8px; }
.sp-mini i:last-child { border-radius: 4px 8px 8px 4px; }
.sp-mini i.on { background: var(--teal); }
.sp-mini i.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.sp-find { width: 100%; }

.sp-phrase { display: grid; justify-items: center; gap: 1rem; width: 100%; max-width: 780px; }
.sp-scene { width: 100%; max-width: 520px; border-radius: var(--r-lg); overflow: hidden; border: 3px solid var(--line); background: var(--pic-bg); }
.sp-scene .scene-art { display: block; }
.sp-scene .scene-art { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.sp-sentence { margin: 0; text-align: center; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 3.4vw, 1.8rem); line-height: 1.55; }
.sp-sentence .sp-w { display: inline-block; padding: 0 .12em; transition: background-color .2s, transform .2s; }
.sp-blank { display: inline-block; text-align: center; min-width: 3.2em; padding: 0 .35em; border-radius: 12px; background: var(--lemon); box-shadow: inset 0 -3px 0 var(--lemon-2); }
.sp-blank.is-filled { background: var(--mint); box-shadow: inset 0 -3px 0 var(--mint-2); }
.sp-qs { width: 100%; max-width: 560px; padding: .9rem 1.1rem; border-radius: var(--r-md); background: var(--cream); }
.sp-qs__h { margin: 0 0 .4rem; font-weight: 800; color: var(--teal-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.sp-qs ul, .sp-qs ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: 1.05rem; font-weight: 600; }
.sp-sample { margin: 0; width: 100%; max-width: 560px; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--mint); font-size: 1.05rem; }
.sp-story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; width: 100%; }
.sp-story li { position: relative; min-width: 0; }
.sp-story__n { position: absolute; top: 6px; left: 6px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--paper); display: grid; place-items: center; font-weight: 800; }
.sp-story .sp-scene { max-width: none; }
.sp-done__stage { margin: -.2rem 0 .6rem; color: var(--ink-2); font-weight: 700; }

/* ---------- Слоговой поезд / Буын пойызы: игровой мир ---------- */
.tq-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.tq-top .crumb { margin: 0; }
.tq-top__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tq-langs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); }
.tq-lang { border: 0; background: transparent; min-height: 42px; padding: .45rem .9rem; border-radius: 999px; font: inherit; font-weight: 900; font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); cursor: pointer; }
.tq-lang.is-on { background: var(--teal); color: var(--paper); }
.tq-soundbox { display: inline-flex; align-items: center; gap: .45rem; }
.tq-sound { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--paper); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--teal-2); cursor: pointer; }
.tq-sound.is-off { color: var(--ink-2); background: var(--cream-2); box-shadow: none; }
.tq-vol { width: 92px; accent-color: var(--teal); }
.tq-logo-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: .4rem .85rem; border-radius: 999px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font: inherit; font-weight: 800; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.tq-logo-btn .ui-ico { width: 18px; height: 18px; }
.tq-bunny, .tq-dragon, .tq-chest { display: block; width: 100%; height: auto; }

/* Заставка */
.tq-splash { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lift); background: #8FD47A; }
.tq-splash__art { display: block; width: 100%; height: auto; }
.tq-splash__title { position: absolute; left: 3%; top: 5%; padding: .55rem 1.3rem .65rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.tq-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.5rem); line-height: 1.1; color: var(--lav-3); }
.tq-other { margin: .2rem 0 0; font-family: var(--f-display); font-weight: 600; color: var(--teal-2); font-size: clamp(.9rem, 1.8vw, 1.1rem); }
.tq-splash__front { position: relative; display: flex; align-items: flex-end; gap: 1rem; padding: 0 clamp(.8rem, 3vw, 1.6rem) clamp(.9rem, 3vw, 1.4rem); }
.tq-splash__bunny { flex: none; width: clamp(110px, 17vw, 170px); margin-top: -64px; border: 0; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 10px 12px rgba(30, 58, 64, .28)); }
.tq-splash__bunny.is-wave { animation: tqWave .8s ease; }
.tq-bubble { position: relative; margin: 0; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: 1.04rem; line-height: 1.4; transition: background-color .2s; }
.tq-bubble.is-good { background: var(--mint); color: var(--teal-2); font-family: var(--f-display); font-weight: 600; }
.tq-bubble.is-retry { background: var(--lav); color: var(--lav-3); }
.tq-bubble--hello { flex: 1; display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.tq-bubble--hello p { margin: 0; flex: 1; }
.tq-say { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--teal); color: var(--paper); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.tq-say[hidden] { display: none; }
.tq-play { flex: none; display: inline-flex; align-items: center; gap: .8rem; min-height: 76px; padding: .6rem 1.8rem .6rem .7rem; border: 0; border-radius: 999px; background: linear-gradient(180deg, #FF8A6E 0%, #F2594D 100%); color: #FFFFFF; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem); cursor: pointer; box-shadow: 0 8px 0 #C9443A, 0 18px 30px -12px rgba(201, 68, 58, .7); animation: tqGlowPlay 2.2s ease-in-out infinite; }
.tq-play:active { transform: translateY(4px); box-shadow: 0 4px 0 #C9443A; }
.tq-play__ico { width: 58px; height: 58px; border-radius: 50%; background: #FFFFFF; color: #F2594D; display: grid; place-items: center; }
.tq-play__ico .ui-ico { width: 30px; height: 30px; margin-left: 4px; }
.tq-note { margin-top: 1.2rem; }
.tq-drift { animation: tqDrift 26s ease-in-out infinite alternate; }
.tq-drift--slow { animation-duration: 38s; }
.tq-splash__train { animation: tqTrainIn 2.4s cubic-bezier(.2, .7, .3, 1) both; }
.tq-splash__train .tr-smoke { animation: trPuff 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }

/* Карта */
.tq-maphead { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .2rem; }
.tq-maphead__title { display: flex; align-items: center; gap: .5rem; margin: 0; }
.tq-maphead__title .ui-ico { width: 28px; height: 28px; color: var(--teal); }
.tq-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .85rem; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-weight: 800; font-size: .88rem; }
.tq-chip .ui-ico, .tq-chip .star { width: 18px; height: 18px; color: var(--teal); }
.tq-chip--stars .star { color: var(--star); }
.tq-guide { display: flex; align-items: center; gap: .7rem; margin: .7rem 0 .9rem; }
.tq-guide__char { flex: none; width: 76px; }
.tq-guide__char--dragon { width: 84px; }
.tq-guide__char svg { display: block; width: 100%; height: auto; }
.tq-guide .tq-bubble { flex: 1; }
.tq-guide .tq-bubble::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right-color: var(--paper); }
.tq-guide .tq-bubble.is-good::before { border-right-color: var(--mint); }
.tq-guide .tq-bubble.is-retry::before { border-right-color: var(--lav); }
.tq-map { position: relative; aspect-ratio: 1000 / 560; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lift); }
.tq-map__bg { position: absolute; inset: 0; }
.tq-map__art { display: block; width: 100%; height: 100%; }
.tq-map__bg--tall { display: none; }
.tq-st { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: clamp(118px, 15vw, 168px); display: flex; flex-direction: column; align-items: center; gap: .3rem; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--ink); z-index: 1; }
.tq-st__art { display: block; width: 100%; padding: 4px; border-radius: 28px; background: rgba(255, 255, 255, .88); box-shadow: 0 12px 24px -12px rgba(30, 58, 64, .55), inset 0 0 0 3px #FFFFFF; transition: transform .2s ease, box-shadow .2s ease; }
.tq-st__art > svg { display: block; width: 100%; height: auto; }
.tq-st:hover .tq-st__art, .tq-st:focus-visible .tq-st__art { transform: translateY(-6px) scale(1.04); box-shadow: 0 18px 28px -12px rgba(30, 58, 64, .6), inset 0 0 0 3px var(--tone-2); }
.tq-st.is-chosen .tq-st__art { animation: tqChosen .45s ease; }
.tq-st.is-done .tq-st__art { box-shadow: 0 12px 24px -12px rgba(30, 58, 64, .55), inset 0 0 0 4px var(--star); }
.tq-st__label { display: flex; align-items: center; gap: .35rem; padding: .28rem .7rem .28rem .28rem; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-weight: 800; font-size: .84rem; line-height: 1.15; text-align: left; }
.tq-st__label b { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--tone-2); display: grid; place-items: center; font-family: var(--f-display); font-size: .85rem; }
.tq-st__stars { display: flex; align-items: center; gap: .25rem; padding: .15rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .85); }
.tq-st__stars .stars .star { width: 15px; height: 15px; }
.tq-st__medal .badge { width: 26px; height: 26px; display: block; }

/* Рамка станции */
.tq-stchip { flex: none; width: 54px; height: 46px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.tq-stchip > svg { width: 52px; height: 44px; }
.tq-stage .stage__tools { align-items: center; }
.tq-stage .tq-vol { display: none; }
.tq-stage .tq-sound { width: 48px; height: 48px; border-radius: 16px; box-shadow: none; }
.tq-rounds { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.tq-rounds li { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--ink-2); font-weight: 800; font-size: .88rem; }
.tq-rounds li .star { width: 18px; height: 18px; color: var(--star); }
.tq-rounds li.is-past { background: var(--lemon); }
.tq-rounds li.is-on { background: var(--teal); color: var(--paper); box-shadow: 0 0 0 4px var(--teal-soft); }
.tq-game { min-height: 260px; }
.tq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.tq-actions .tq-icon { width: 56px; padding: 0; justify-content: center; }
.tq-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.tq-go { animation: tqGlow 1.8s ease-in-out infinite; }
.tq-dots { display: inline-flex; justify-content: center; gap: .4rem; }
.tq-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--lav-2); transition: transform .2s ease, background-color .2s ease; }
.tq-dots i.is-lit { background: var(--star); transform: scale(1.45); }
.tq-pic { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem; border: 0; border-radius: var(--r-xl); background: var(--pic-bg); box-shadow: inset 0 0 0 3px var(--line), var(--shadow); cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s ease; }
.tq-pic:hover { transform: translateY(-3px); }
.tq-pic.is-tap { animation: tqTap .35s ease; }
.tq-pic__img { display: block; width: clamp(150px, 24vw, 220px); aspect-ratio: 1; }
.tq-pic__img .pic { width: 100%; height: 100%; }
.tq-pic--small .tq-pic__img { width: clamp(96px, 14vw, 140px); }
.tq-pic .cap { font-family: var(--f-display); font-size: 1.1rem; }
.tq-pic__hint { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 999px; background: var(--teal); color: var(--paper); font-size: .8rem; font-weight: 800; }
.tq-pic__hint--adult { background: var(--paper); color: var(--ink-2); }
.tq-pic__hint .ui-ico { width: 16px; height: 16px; flex: none; }

/* Поезд с кусочками картинки */
.tq-s1, .tq-s4 { --side: clamp(130px, min(24vw, 34vh), 230px); }
.tq-groups { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.tq-group { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .3rem .85rem .3rem .35rem; border: 0; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); font: inherit; font-weight: 800; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.tq-group.is-on { background: var(--teal); color: var(--paper); box-shadow: none; }
.tq-group__train { display: grid; place-items: center; width: 74px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .9); }
.tq-group__train .tr-mini { width: 70px; height: 26px; }
.tq-s1__play, .tq-s4 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.tq-s1__pic:only-child { grid-column: 1 / -1; justify-self: center; }
.tq-s1__yard, .tq-s4__yard { min-width: 0; }
.tq-rail { position: relative; overflow: hidden; padding: .9rem .6rem 17px; border-radius: var(--r-lg); background: linear-gradient(180deg, #DDF1FB 0%, #EEF8FD 72%, #CDEBB5 72%, #B8E19C 100%); }
.tq-rail::before { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 11px; background: repeating-linear-gradient(90deg, #C29468 0 10px, transparent 10px 20px); }
.tq-rail::after { content: ''; position: absolute; left: 0; right: 0; bottom: 13px; height: 3px; background: #8C939E; }
.tq-train { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 4px; }
.tq-loco { flex: none; width: calc(var(--side) * .5); margin-bottom: 1px; }
.tq-loco svg { display: block; width: 100%; height: auto; }
.tq-loco .tr-smoke { opacity: 0; }
.tq-cargo { display: flex; align-items: flex-end; gap: 4px; }
.tq-slot { position: relative; flex: none; width: calc(var(--side) / var(--n)); height: calc(var(--side) + 24px); }
.tq-slot:not(.is-full)::before { content: ''; position: absolute; left: 2px; right: 2px; top: 0; height: var(--side); border: 3px dashed var(--lav-2); border-radius: 12px; background: rgba(255, 255, 255, .6); transition: border-color .15s, background-color .15s; }
.tq-slot.is-over::before { border-color: var(--teal); background: var(--teal-soft); }
.tq-ghost { position: absolute; left: 2px; right: 2px; top: 0; height: var(--side); opacity: .22; pointer-events: none; }
.tq-ghost .tq-slice, .tq-piece__img .tq-slice { display: block; width: 100%; height: 100%; }
.tq-chassis { position: absolute; left: 3px; right: 3px; bottom: 9px; height: 12px; border-radius: 4px; background: var(--car); }
.tq-chassis::before, .tq-chassis::after { content: ''; position: absolute; bottom: -9px; width: 15px; height: 15px; border-radius: 50%; background: #C9CED6; box-shadow: inset 0 0 0 4.5px #2B3A42; }
.tq-chassis::before { left: 14%; }
.tq-chassis::after { right: 14%; }
.tq-piece { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #FFF4E2; box-shadow: inset 0 0 0 3px #FFFFFF, 0 4px 10px -4px rgba(30, 58, 64, .35); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .2s ease, box-shadow .2s ease; }
.tq-piece__img { display: block; width: 100%; height: 100%; pointer-events: none; }
.tq-slot .tq-piece { position: absolute; left: 2px; right: 2px; top: 0; height: var(--side); width: auto; border-bottom: 5px solid var(--car); }
.tq-depot, .tq-basket { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: .6rem; min-height: calc(var(--side) * .62 + 1.4rem); padding: .7rem; margin-top: .7rem; border-radius: var(--r-lg); background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .15s, box-shadow .15s; }
.tq-depot.is-over { background: var(--teal-soft); box-shadow: inset 0 0 0 3px var(--teal); }
.tq-depot .tq-piece, .tq-basket .tq-piece { width: calc(var(--side) / var(--n) * .66); height: calc(var(--side) * .66); border-bottom: 6px solid var(--car); }
.tq-piece:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.tq-piece.is-locked { cursor: default; }
.tq-piece.is-lifted { opacity: .3; }
.tq-piece.is-sel { transform: translateY(-8px); box-shadow: inset 0 0 0 3px #E9A92A, 0 12px 16px -8px rgba(30, 58, 64, .4); }
.tq-piece.is-new { animation: tqSettle .45s cubic-bezier(.3, 1.5, .5, 1); }
.tq-piece.is-bad { box-shadow: inset 0 0 0 4px #F2766B; animation: shake .5s ease; }
.tq-slot.is-lit .tq-piece { transform: translateY(-9px); box-shadow: inset 0 0 0 4px var(--star), 0 0 18px rgba(255, 201, 60, .85); }
.tq-ghost-drag { position: fixed; left: 0; top: 0; z-index: 90; margin: 0; pointer-events: none; transition: none; filter: drop-shadow(0 14px 14px rgba(30, 58, 64, .32)); }
.is-dragging, .is-dragging * { cursor: grabbing; }
.tq-train.is-arriving { animation: tqArrive .8s cubic-bezier(.2, .8, .3, 1); }
.tq-train.is-leaving { animation: tqLeave 1.2s cubic-bezier(.5, 0, .8, .4) forwards; }
.tq-train.is-leaving .tr-smoke { opacity: 1; animation: trPuff .7s ease-out infinite; transform-box: fill-box; transform-origin: center; }

/* Потерянный слог */
.tq-s4 { align-items: start; }
.tq-slot--gap .tq-gap { position: absolute; left: 2px; right: 2px; top: 0; height: var(--side); border: 3px dashed #E9A92A; border-radius: 12px; background: rgba(255, 240, 176, .85); animation: tqPulse 1.6s ease-in-out infinite; cursor: pointer; }
.tq-slot--gap.is-over .tq-gap, .is-choosing .tq-gap { border-color: var(--teal); background: var(--teal-soft); }
.tq-ins { flex: none; align-self: flex-start; margin-top: calc(var(--side) * .3); width: 28px; height: calc(var(--side) * .4); display: grid; place-items: center; border: 2px dashed var(--lav-2); border-radius: 12px; background: rgba(255, 255, 255, .85); color: var(--lav-3); font: inherit; font-weight: 900; font-size: 1.2rem; cursor: pointer; padding: 0; }
.tq-ins.is-over, .is-choosing .tq-ins { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-2); animation: tqPulse 1.2s ease-in-out infinite; }
.tq-basket { position: relative; padding-left: 88px; background: #FBE7CF; box-shadow: inset 0 0 0 2px #EED2B0; }
.tq-basket__fox { position: absolute; left: 6px; bottom: 6px; width: 76px; }
.tq-basket__fox svg { display: block; width: 100%; height: auto; }

/* Дракончик */
.tq-meadow, .tq-river, .tq-island { position: relative; width: 100%; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 800 / 300; min-height: 240px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); }
.tq-meadow__bg, .tq-river__bg, .tq-island__bg { position: absolute; inset: 0; }
.tq-meadow__bg svg, .tq-river__bg svg, .tq-island__bg svg { display: block; width: 100%; height: 100%; }
.tq-dragonbox { position: absolute; left: 4%; bottom: 2%; width: clamp(140px, 28%, 250px); transition: filter .2s; }
.tq-dragonbox.is-over { filter: drop-shadow(0 0 16px #FFD45C); }
.tq-dragonbox.is-fed { animation: tqBounce .6s ease; }
.tq-ask { position: absolute; left: 33%; right: 4%; top: 10%; max-width: 420px; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .8rem 1rem; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); }
.tq-ask::before { content: ''; position: absolute; left: -10px; top: 60%; border: 10px solid transparent; border-left: 0; border-right-color: var(--paper); }
.tq-ask p { margin: 0; flex: 1 1 100%; font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.3rem); line-height: 1.3; }
.tq-opts { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.tq-opt { width: clamp(108px, 21vw, 168px); display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem; border: 0; border-radius: var(--r-lg); background: var(--pic-bg); box-shadow: inset 0 0 0 3px var(--line), var(--shadow); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; font: inherit; transition: transform .15s ease; }
.tq-opt:hover { transform: translateY(-4px); }
.tq-opts--find .tq-opt { cursor: pointer; touch-action: manipulation; }
.tq-opt__img { display: block; width: 100%; aspect-ratio: 1; pointer-events: none; }
.tq-opt__img .pic { width: 100%; height: 100%; }
.tq-opt.is-lifted { opacity: .3; }
.tq-saybox { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* Слоговые кочки */
.tq-s3 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.tq-stone { position: absolute; transform: translate(-50%, -50%); width: clamp(54px, 10%, 92px); border: 0; background: none; padding: 0; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.tq-stone svg { display: block; width: 100%; height: auto; }
.tq-stone.is-next { animation: tqPulseStone 1.4s ease-in-out infinite; }
.tq-stone.is-used { filter: saturate(1.3) brightness(1.06); }
.tq-stone.is-lit { transform: translate(-50%, -62%) scale(1.15); filter: drop-shadow(0 0 10px #FFD45C); }
.tq-shore { position: absolute; right: 1.5%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .75rem; border: 0; border-radius: var(--r-md); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); font: inherit; font-weight: 800; font-size: .84rem; color: var(--teal-2); cursor: pointer; z-index: 1; }
.tq-shore .ui-ico { width: 30px; height: 30px; color: #F2594D; }
.tq-hopper { position: absolute; z-index: 2; width: clamp(58px, 10%, 90px); transform: translate(-50%, -88%); transition: left .35s ease, top .35s ease; pointer-events: none; }
.tq-hopper svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(30, 58, 64, .25)); }
.tq-hopper.is-hop svg { animation: tqHop .35s ease; }

/* Словесные сокровища */
.tq-island { min-height: 210px; }
.tq-chests { position: absolute; left: 8%; right: 8%; top: 30%; display: flex; justify-content: space-around; align-items: flex-end; gap: 2%; }
.tq-chestbox { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 20%; max-width: 130px; opacity: .78; transition: transform .25s ease, opacity .25s ease; }
.tq-chestbox.is-on { opacity: 1; transform: scale(1.14); }
.tq-chestbox.is-open { opacity: 1; }
.tq-chestbox.is-new .tq-chest { animation: tqOpen .7s cubic-bezier(.3, 1.5, .5, 1); }
.tq-gems { display: flex; gap: 2px; padding: 2px 4px; border-radius: 999px; background: rgba(255, 255, 255, .8); }
.tq-gem { width: clamp(14px, 2.4vw, 22px); height: auto; display: block; }
.tq-task { margin-top: .9rem; }
.tq-loot { display: flex; justify-content: center; animation: pop .5s ease; }
.tq-said-note { text-align: center; }

/* Финиш станции */
.tq-done__chars { display: flex; justify-content: center; align-items: flex-end; gap: .4rem; margin-bottom: .3rem; }
.tq-done__chars svg { width: 104px; height: auto; }
.tq-done__medal { display: flex; justify-content: center; margin: .2rem 0 1rem; }
.tq-done__medal .badge { width: 72px; height: 72px; }

/* Подсказка и режим логопеда */
.tq-help { margin-top: 1rem; border-radius: var(--r-md); background: var(--cream); padding: .55rem .9rem; }
.tq-help summary { display: flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 800; color: var(--teal-2); min-height: 36px; }
.tq-help summary .ui-ico { width: 20px; height: 20px; }
.tq-help__body { padding-top: .4rem; font-size: .95rem; }
.tq-help__body p, .tr-panel__sec > p { margin: .45rem 0; }
.tq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin: 0 0 .5rem; }
.tq-facts div { background: var(--paper); border-radius: 12px; padding: .45rem .7rem; }
.tq-facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.tq-facts dd { margin: .1rem 0 0; font-weight: 800; font-size: 1.02rem; overflow-wrap: anywhere; }
.tq-facts__w { font-family: var(--f-display); }
.tq-note2 { font-size: .86rem; color: var(--ink-2); margin: .4rem 0; }
.tq-obs { margin: .6rem 0 0; padding: .6rem .8rem; border: 0; border-radius: 14px; background: var(--paper); }
.tq-obs legend { padding: 0; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tq-obs .switch { margin: .45rem 0; font-size: .92rem; }
.tq-field { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0; font-weight: 700; font-size: .92rem; }
.tq-field select { min-height: 44px; padding: .4rem .6rem; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); font: inherit; color: var(--ink); max-width: 100%; }
.tq-field input[type=range] { accent-color: var(--teal); max-width: 260px; }
.tq-sum { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .3rem; }
.tq-sum b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-right: .4rem; border-radius: 9px; background: var(--lemon); font-family: var(--f-display); }
.tq-log__o { display: flex; flex-wrap: wrap; gap: .25rem; width: 100%; }
.tq-o { font-style: normal; font-size: .76rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; }
.tq-o--0 { background: var(--mint); color: var(--teal-2); }
.tq-o--1 { background: #FFE3DF; color: #B2443A; }
.tq-o--2 { background: var(--lav); color: var(--lav-3); }
.tr-panel { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: var(--veil); animation: fade .2s ease; }
.tr-panel__card { width: min(100%, 520px); height: 100%; overflow-y: auto; background: var(--paper); padding: 0 1.2rem 2rem; box-shadow: var(--shadow-lift); animation: trSlide .25s ease; }
.tr-panel__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 0; background: var(--paper); }
.tr-panel__head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.tr-panel__head .icon-btn { background: var(--cream); }
.tr-panel__sec { padding: .9rem 0; border-top: 1.5px solid var(--line); }
.tr-panel__sec h3 { margin: 0 0 .6rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tr-panel__sec .switch { margin: .5rem 0; }
.tr-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tr-chip { min-height: 40px; padding: .4rem .85rem; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; }
.tr-chip.is-on { background: var(--teal); color: var(--paper); box-shadow: none; }
.tr-panel__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.tr-panel__nav .btn { min-height: 44px; padding: .5rem .9rem; font-size: .92rem; }
.tr-panel__nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.tr-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 260px; overflow-y: auto; }
.tr-log li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .45rem .7rem; border-radius: 12px; background: var(--cream); }
.tr-log__w { font-weight: 800; font-family: var(--f-display); }
.tr-log__t { color: var(--ink-2); font-size: .82rem; }
.tr-log__m { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 800; }
.tr-log__m .ui-ico { width: 16px; height: 16px; }
.tr-log__m.tr-mark--0 { color: var(--teal-2); }
.tr-log__m.tr-mark--1 { color: #8A6400; }
.tr-log__m.tr-mark--2 { color: var(--lav-3); }
.tr-noscroll { overflow: hidden; }
.nw { white-space: nowrap; }
.tr-panel__sec .btn { min-height: 44px; }
.tr-panel__head .ui-ico { width: 26px; height: 26px; color: var(--teal); }
@keyframes tqWave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 60% { transform: rotate(5deg); } }
@keyframes tqGlowPlay { 0%, 100% { box-shadow: 0 8px 0 #C9443A, 0 18px 30px -12px rgba(201, 68, 58, .7); } 50% { box-shadow: 0 8px 0 #C9443A, 0 0 0 10px rgba(242, 118, 107, .25), 0 18px 30px -12px rgba(201, 68, 58, .7); } }
@keyframes tqGlow { 0%, 100% { box-shadow: 0 10px 22px -12px var(--teal-2); } 50% { box-shadow: 0 0 0 7px var(--teal-soft), 0 10px 22px -12px var(--teal-2); } }
@keyframes tqDrift { from { transform: translateX(0); } to { transform: translateX(46px); } }
@keyframes tqTrainIn { from { transform: translateX(-70%); } to { transform: none; } }
@keyframes trPuff { 0% { opacity: .9; transform: translateY(6px) scale(.6); } 100% { opacity: 0; transform: translateY(-14px) scale(1.4); } }
@keyframes tqChosen { 0% { transform: scale(1); } 40% { transform: translateY(-14px) scale(1.1); } 100% { transform: scale(1.04); } }
@keyframes tqTap { 0% { transform: scale(1); } 40% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes tqPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes tqPulseStone { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.1); } }
@keyframes tqHop { 0% { transform: translateY(0); } 45% { transform: translateY(-38%); } 100% { transform: translateY(0); } }
@keyframes tqSettle { 0% { transform: translateY(-16px) scale(1.06); } 60% { transform: translateY(3px) scale(.98); } 100% { transform: none; } }
@keyframes tqArrive { from { transform: translateX(45%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tqLeave { 0% { transform: translateX(0); } 15% { transform: translateX(2%); } 100% { transform: translateX(-140%); } }
@keyframes tqOpen { 0% { transform: scale(.8) rotate(-4deg); } 60% { transform: scale(1.15) rotate(3deg); } 100% { transform: none; } }
@keyframes tqBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }
@keyframes tqSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.tr-panel__card { animation: tqSlide .25s ease; }
@media (prefers-reduced-motion: reduce) {
  .tq-play, .tq-drift, .tq-splash__train, .tq-splash__train .tr-smoke, .tq-go, .tq-stone.is-next, .tq-slot--gap .tq-gap, .tq-train.is-arriving, .tq-train.is-leaving, .tq-piece.is-new, .tq-chestbox.is-new .tq-chest, .tq-hopper.is-hop svg, .tr-panel__card { animation: none; }
  .tq-hopper { transition: none; }
}
@media (max-width: 900px) {
  .tq-vol { display: none; }
}
@media (max-width: 700px) {
  .tq-top { gap: .5rem; }
  .tq-top__tools { width: 100%; justify-content: space-between; }
  .tq-splash__front { flex-wrap: wrap; align-items: center; }
  .tq-splash__bunny { width: 104px; margin-top: -40px; }
  .tq-bubble--hello { flex: 1 1 0; min-width: 0; margin-bottom: 0; font-size: .95rem; }
  .tq-play { width: 100%; justify-content: center; }
  .tq-splash__title { left: 50%; transform: translateX(-50%); top: 3%; padding: .35rem .9rem .45rem; text-align: center; white-space: nowrap; }
  .tq-map { aspect-ratio: 600 / 1060; }
  .tq-map__bg--wide { display: none; }
  .tq-map__bg--tall { display: block; }
  .tq-st { left: var(--mx); top: var(--my); width: 40%; }
  .tq-s1, .tq-s4 { --side: clamp(120px, min(54vw, 30vh), 210px); }
  .tq-s1__play, .tq-s4, .tq-s3 { grid-template-columns: 1fr; justify-items: center; }
  .tq-s1__yard, .tq-s4__yard { width: 100%; }
  .tq-s3__pic, .tq-s4__pic { justify-self: center; }
  .tq-pic--small { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: .55rem; }
  .tq-pic--small .tq-pic__img { width: 92px; }
  .tq-meadow, .tq-river, .tq-island { min-height: 230px; }
  .tq-ask { left: 38%; right: 3%; top: 6%; padding: .6rem .7rem; }
  .tq-dragonbox { width: 38%; }
  .tq-basket { padding-left: 70px; }
  .tq-basket__fox { width: 60px; }
}
@media (max-width: 560px) {
  .tq-guide__char { width: 58px; }
  .tq-guide .tq-bubble { font-size: .95rem; padding: .65rem .8rem; }
  .tq-lang { padding: .4rem .65rem; font-size: .74rem; }
  .tq-logo-btn span { display: none; }
  .tq-logo-btn { padding: .4rem .6rem; }
  .tq-group { padding-right: .6rem; font-size: .8rem; }
  .tq-group__train { width: 58px; }
  .tq-group__train .tr-mini { width: 56px; }
  .tq-stchip { display: none; }
  .tq-opt { width: calc(33% - .6rem); min-width: 92px; padding: .45rem; }
  .tq-actions .btn--lg { min-height: 54px; padding: .6rem 1.1rem; }
  .tq-st__label { font-size: .76rem; }
}

/* ---------- Словарная мастерская / Сөз шеберханасы ---------- */
.wm, .wm-stage { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wm svg, .wm-stage svg, .wm-ghost svg, .wm-fly svg { -webkit-user-drag: none; }
.wm-top { margin-bottom: .9rem; }
.wm-soundbox { display: inline-flex; align-items: center; gap: .45rem; }

/* Мир мастерской */
.wm-world-card { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 1.25rem; padding: clamp(1rem, 3vw, 1.75rem); border-radius: var(--r-xl); background: #EAF6FD; box-shadow: var(--shadow); }
.wm-world-card__bg { position: absolute; inset: 0; z-index: -1; }
.wm-world-card__bg .wm-world { width: 100%; height: 100%; display: block; }
.wm-world-head { text-align: center; margin-bottom: .9rem; }
.wm-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; color: var(--ink); text-shadow: 0 2px 0 rgba(255, 255, 255, .75); text-wrap: balance; }
.wm-title--sm { font-size: clamp(1.45rem, 3.4vw, 2.1rem); margin-bottom: .6rem; }
.wm-other { margin: .25rem 0 0; font-weight: 800; color: var(--teal-2); }
.wm-world { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .85fr) minmax(0, 1fr); gap: clamp(.7rem, 2vw, 1.2rem); align-items: center; }
.wm-loc--house { grid-column: 1; grid-row: 1; }
.wm-loc--kitchen { grid-column: 3; grid-row: 1; }
.wm-loc--wardrobe { grid-column: 1; grid-row: 2; }
.wm-loc--garden { grid-column: 3; grid-row: 2; }
/* пять миров: лисёнок в центре сверху, миры вокруг */
.wm-world--5 .wm-host { grid-column: 2; grid-row: 1; }
.wm-world--5 .wm-loc--house { grid-column: 1; grid-row: 1; }
.wm-world--5 .wm-loc--kitchen { grid-column: 3; grid-row: 1; }
.wm-world--5 .wm-loc--wardrobe { grid-column: 1; grid-row: 2; }
.wm-world--5 .wm-loc--harvest { grid-column: 2; grid-row: 2; }
.wm-world--5 .wm-loc--action { grid-column: 3; grid-row: 2; }
.wm-voicenote { display: inline; color: var(--ink-2); }
.wm-gear { animation: wmSpin 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.wm-loc {
  display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem .6rem .75rem; min-width: 0;
  border-radius: 26px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 26px -18px rgba(30, 58, 64, .55);
  text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1.2), box-shadow .22s ease;
}
.wm-loc:active { transform: scale(.97); }
@media (hover: hover) { .wm-loc:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(30, 58, 64, .6); } }
.wm-loc__art { width: 100%; display: block; }
.wm-loc__art .wm-place { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; }
.wm-loc__name { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-align: center; }
.wm-loc__prog .stars .star { width: 15px; height: 15px; }
.wm-host { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 0; }
.wm-host__fox { width: min(170px, 100%); padding: 0; border: 0; background: none; cursor: pointer; }
.wm-host__fox .wm-fox { width: 100%; height: auto; display: block; }
.wm-host__fox.is-hop { animation: wmHop .6s ease; }
.wm-host__bubble { position: relative; display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: .98rem; line-height: 1.35; }
.wm-host__bubble p { margin: 0; }
.wm-main {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem 1rem;
  margin-top: clamp(.9rem, 2.5vw, 1.4rem); padding: clamp(.85rem, 2.5vw, 1.2rem); border-radius: 24px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow);
}
.wm-main__head { display: flex; align-items: center; gap: .7rem; }
.wm-main__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--lemon); }
.wm-main__icon .wm-pic { width: 56px; height: 56px; }
.wm-main__kicker { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.wm-main__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.wm-lvls { display: flex; flex-wrap: wrap; gap: .45rem; }
.wm-lvl {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: .3rem .8rem .3rem .35rem;
  border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  font: inherit; font-weight: 800; font-size: .88rem; color: var(--ink); cursor: pointer; text-align: left;
}
.wm-lvl b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lemon); font-family: var(--f-display); font-size: 1rem; }
.wm-lvl.is-done b { background: var(--teal); color: var(--paper); }
.wm-lvl.is-locked { color: var(--ink-2); background: var(--cream); }
.wm-lvl.is-locked b { background: var(--cream-2); color: var(--ink-2); }
.wm-lvl__ok { display: inline-flex; color: var(--teal); }
.wm-lvl.is-locked .wm-lvl__ok { color: var(--ink-2); }
.wm-lvl__ok .ui-ico { width: 18px; height: 18px; }
.wm-play {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 64px; padding: .6rem 1.6rem .6rem .7rem;
  border: 0; border-radius: 999px; background: linear-gradient(180deg, #FF8E80, #E5574B); color: var(--paper);
  font: inherit; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(217, 71, 60, .85), inset 0 2px 0 rgba(255, 255, 255, .3);
  transition: transform .15s ease;
}
.wm-play:hover { transform: translateY(-2px); }
.wm-play:active { transform: scale(.97); }
.wm-play__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.wm-play__ico .ui-ico { width: 24px; height: 24px; }
.wm-play--sm { min-height: 54px; font-size: 1.05rem; align-self: flex-start; }
.wm-play--sm .wm-play__ico { width: 38px; height: 38px; }

/* Локация */
.wm-placehead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem 1.5rem; align-items: center; margin-bottom: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); border-radius: var(--r-xl); background: linear-gradient(180deg, #E3F3FD, #FFF4E6); box-shadow: var(--shadow); }
.wm-placehead__art .wm-place { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.wm-host--row { flex-direction: row; align-items: center; }
.wm-host--row .wm-host__fox { flex: none; width: 104px; }
.wm-stcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.wm-stcard { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.wm-stcard__art { flex: none; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 22px; background: var(--tone); }
.wm-stcard__art .wm-pic { width: 88px; height: 88px; }
.wm-stcard__body { display: flex; flex-direction: column; gap: .65rem; min-width: 0; }
.wm-stcard__title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.wm-stcard.is-soon .wm-stcard__art { filter: saturate(.6); opacity: .75; }
.wm-soon { margin: 0; }

/* Игровой экран */
.wm-stage { touch-action: pan-y; }
/* без задержки двойного касания: нажатие срабатывает сразу, даже сразу после перетаскивания */
.wm-stage button, .wm-stage .btn, .done__btns .btn { touch-action: manipulation; }
.wm-stchip { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--paper); }
.wm-stage .tq-vol { display: none; }
.wm-stage .stage__tools { align-items: center; }
.wm-stchip .wm-pic { width: 38px; height: 38px; }
.wm-progress { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .6rem 0 0; min-height: 18px; }
.wm-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.wm-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--star-off); transition: background-color .3s ease, transform .3s ease; }
.wm-dots i.on { background: var(--teal); transform: scale(1.12); }
.wm-count { font-weight: 800; font-size: .9rem; color: var(--ink-2); }
.wm-guide { display: flex; align-items: center; gap: .7rem; margin: .6rem 0 .9rem; }
.wm-guide__fox { flex: none; width: 76px; }
.wm-guide__fox .wm-fox { width: 100%; height: auto; display: block; }
.wm-bubble { position: relative; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; min-height: 56px; padding: .65rem 1rem; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: 1.06rem; line-height: 1.4; }
.wm-bubble::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right-color: var(--paper); }
.wm-bubble p { margin: 0; }
.wm-bubble__how { width: 100%; font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.wm-bubble__ear { display: inline-flex; align-items: center; gap: .45rem; }
.wm-bubble__ear .ui-ico { width: 28px; height: 28px; color: var(--teal); }
.wm-bubble__pic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--cream); }
.wm-bubble__pic .wm-pic { width: 54px; height: 54px; }
.wm-bubble__note { width: 100%; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.wm-say { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--teal); color: var(--paper); cursor: pointer; box-shadow: 0 10px 20px -10px var(--teal-2); }
.wm-say .ui-ico { width: 30px; height: 30px; }
.wm-say[hidden] { display: none; }
.wm-say.is-tap { animation: hit .4s ease; }
.wm-game { min-height: 200px; }
.wm-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem; margin-top: 1rem; }
.wm-actions .ui-ico { width: 20px; height: 20px; }

/* Предметы и места */
.wm-sort, .wm-find, .wm-odd { display: grid; gap: 1rem; }
.wm-tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; min-height: 96px; padding: .75rem; border-radius: 22px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }
.wm-sort.is-big .wm-tray { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.wm-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-width: 0; aspect-ratio: 1;
  padding: .3rem; border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 6px 14px -10px rgba(30, 58, 64, .55);
  font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: rotate(var(--rot, 0deg)); transition: transform .15s ease, box-shadow .15s ease, opacity .25s ease;
}
.wm-item.is-drag { cursor: grab; touch-action: none; }
.wm-item__pic { display: block; width: 100%; max-width: 110px; }
.wm-item__pic .wm-pic { display: block; width: 100%; height: auto; }
.wm-item .cap { display: none; font-weight: 800; font-size: .82rem; line-height: 1.1; text-align: center; }
.show-captions .wm-item .cap { display: block; }
@media (hover: hover) { .wm-item:hover { transform: translateY(-3px) rotate(var(--rot, 0deg)); } }
.wm-item.is-sel { box-shadow: 0 0 0 4px var(--teal), 0 12px 20px -12px rgba(30, 58, 64, .55); transform: scale(1.06); }
.wm-item.is-lifted { opacity: .3; }
.wm-item.is-gone { opacity: 0; transform: scale(.6); pointer-events: none; }
.wm-item.is-shake, .wm-bin.is-shake, .wm-lvl.is-shake { animation: shake .45s ease; }
.wm-bins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.wm-bin {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 0; padding: .5rem .4rem .55rem;
  border: 0; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 3px var(--line);
  font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.wm-bins.is-active .wm-bin { box-shadow: inset 0 0 0 3px var(--teal-soft-2); }
.wm-bin.is-over { background: var(--teal-soft); box-shadow: inset 0 0 0 4px var(--teal); transform: scale(1.04); }
.wm-bin.is-hint { box-shadow: inset 0 0 0 4px var(--star); animation: wmHint .8s ease-in-out infinite; }
.wm-bin.is-ok { animation: hit .45s ease; }
.wm-bin__art { display: block; width: 100%; }
.wm-bin__art .wm-place { display: block; width: 100%; max-width: 150px; height: auto; margin: 0 auto; }
.wm-bin__badge { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); box-shadow: 0 4px 10px -6px rgba(30, 58, 64, .55); }
.wm-bin__badge .wm-pic { width: 36px; height: 36px; }
.wm-bin__name { font-weight: 800; font-size: .92rem; line-height: 1.15; text-align: center; }
.wm-bin__got { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 28px; }
.wm-bin__got i { display: block; width: 28px; height: 28px; animation: pop .3s ease; }
.wm-bin__got .wm-pic { display: block; width: 100%; height: 100%; }
.wm-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.wm-opt { touch-action: manipulation; }
.wm-opts--big .wm-item__pic { max-width: 150px; }
.wm-opt.is-drag { touch-action: none; cursor: grab; }
.wm-opt.is-faded { opacity: .3; transform: scale(.9); }
.wm-opt.is-hint { box-shadow: 0 0 0 4px var(--star); animation: wmHint .8s ease-in-out infinite; }
.wm-opt.is-odd { box-shadow: 0 0 0 5px var(--star), 0 14px 24px -12px rgba(30, 58, 64, .55); animation: wmOdd .6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.wm-opt.is-group { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-2); }
.wm-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; filter: drop-shadow(0 14px 14px rgba(30, 58, 64, .32)); }
.wm-ghost .wm-pic, .wm-fly .wm-pic { display: block; width: 100%; height: 100%; }
.wm-fly { position: fixed; z-index: 85; pointer-events: none; transform-origin: center; transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease; }
.wm-next { min-height: 58px; }

/* Станции: выбор картинки, «Скажи сам», выбор на слух */
.wm-choose { display: grid; gap: 1rem; }
.wm-q { display: grid; place-items: center; padding: .6rem; border-radius: 24px; background: var(--lemon); box-shadow: inset 0 0 0 3px var(--lemon-2); }
.wm-q .wm-pic { width: 100%; max-width: 150px; height: auto; display: block; }
.wm-choose .wm-opts { justify-content: center; }
.wm-choose .wm-opts--2 { grid-template-columns: repeat(2, minmax(0, 230px)); }
.wm-choose .wm-opts--3 { grid-template-columns: repeat(3, minmax(0, 220px)); }
.wm-choose .wm-opts--4 { grid-template-columns: repeat(4, minmax(0, 200px)); }
.wm-choose .wm-item__pic { width: 90%; max-width: none; }
.wm-choose.has-q { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.wm-choose.has-q .wm-opts { flex: 1; max-width: 700px; }
.wm-q { flex: none; width: 180px; position: relative; }
.wm-q::after { content: ''; position: absolute; right: -16px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-left-color: var(--lemon-2); border-right: 0; }
.wm-opts--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wm-opts--wide .wm-opt { aspect-ratio: 400 / 260; padding: .25rem; }
.wm-opts--wide .wm-item__pic { max-width: none; }
.wm-opts--wide .wm-roompic { border-radius: 14px; }
.wm-choose .wm-opts--wide { grid-template-columns: repeat(3, minmax(0, 300px)); }
.wm-opt.is-right { background: var(--mint); box-shadow: 0 0 0 5px var(--teal), 0 14px 24px -12px rgba(30, 58, 64, .5); }
.wm-opt.is-wrong { opacity: .6; }
.wm-act__fox, .wm-act__shadow, .wm-act__bubbles, .wm-act__moon { transform-box: fill-box; transform-origin: center; }
.wm-act--jump .wm-act__fox { animation: wmJump 1.1s ease-in-out infinite; }
.wm-act--jump .wm-act__shadow { animation: wmJumpShadow 1.1s ease-in-out infinite; }
.wm-act--run .wm-act__fox { animation: wmRun .5s ease-in-out infinite alternate; }
.wm-act--draw .wm-act__fox { animation: wmNod 1.6s ease-in-out infinite; }
.wm-act--wash .wm-act__bubbles { animation: wmBubbles 1.8s ease-in-out infinite; }
.wm-act--sleep .wm-act__moon { animation: homeTw 3s ease-in-out infinite; }
.wm-act--eat .wm-act__fox, .wm-act--drink .wm-act__fox { animation: wmNod 1.2s ease-in-out infinite; }
.wm-sayit { display: grid; justify-items: center; gap: .9rem; }
.wm-sayit__pic { width: min(240px, 70%); padding: .6rem; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.wm-sayit__pic .wm-pic { width: 100%; height: auto; display: block; }
.wm-sayit__btn .ui-ico { width: 24px; height: 24px; }
.wm-sayit__ans { margin: 0; padding: .6rem 1.1rem; border-radius: 16px; background: var(--mint); color: var(--teal-2); font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.wm-ear { display: grid; justify-items: center; gap: .9rem; }
.wm-ear__pic { width: min(200px, 56%); padding: .5rem; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.wm-ear__pic .wm-pic { width: 100%; height: auto; display: block; }
.wm-ear__vars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; width: 100%; max-width: 560px; }
.wm-ear__var { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: .8rem .6rem; border-radius: 22px; background: var(--cream); box-shadow: inset 0 0 0 3px var(--line); }
.wm-ear__var.is-right { background: var(--mint); box-shadow: inset 0 0 0 4px var(--teal); }
.wm-ear__var.is-hint { box-shadow: inset 0 0 0 4px var(--star); animation: wmHint .8s ease-in-out infinite; }
.wm-ear__mark { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); }
.wm-ear__var--1 .wm-ear__mark { border-radius: 4px; background: var(--lav-3); transform: rotate(45deg) scale(.82); }
.wm-ear__play { display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--teal); color: var(--paper); cursor: pointer; box-shadow: 0 10px 18px -10px var(--teal-2); }
.wm-ear__play .ui-ico { width: 30px; height: 30px; }
.wm-ear__txt { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; text-align: center; }
.wm-ear__txt.cap { display: none; }
.show-captions .wm-ear__txt.cap { display: block; }
.wm-ear__pick { display: grid; place-items: center; width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--paper); color: var(--teal-2); box-shadow: inset 0 0 0 2px var(--teal-soft-2); cursor: pointer; }
.wm-ear__pick .ui-ico { width: 28px; height: 28px; }

/* «Где спряталось?»: комната со столом, коробкой и домиком */
.wm-roomwrap { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 1rem; max-width: 900px; margin: 0 auto; }
.wm-room { position: relative; width: 100%; aspect-ratio: 400 / 260; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 3px var(--line); }
.wm-room > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-room__bg { z-index: 0; }
.wm-room__front { z-index: 2; pointer-events: none; }
.wm-room__toy { position: absolute; inset: 0; pointer-events: none; }
.wm-room__toy--mid { z-index: 1; }
.wm-room__toy--top { z-index: 3; }
.wm-room__placed { position: absolute; display: block; aspect-ratio: 1; animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
.wm-room__placed .wm-pic { width: 100%; height: 100%; display: block; }
.wm-zone { position: absolute; z-index: 4; padding: 0; border: 0; border-radius: 18px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, box-shadow .2s ease; }
.wm-room.is-active .wm-zone, .wm-stage.is-dragging .wm-zone { box-shadow: inset 0 0 0 3px rgba(17, 144, 138, .35); }
.wm-zone.is-over { background: rgba(17, 144, 138, .18); box-shadow: inset 0 0 0 4px var(--teal); }
.wm-zone.is-hint { background: rgba(255, 194, 61, .22); box-shadow: inset 0 0 0 4px var(--star); animation: wmHint .8s ease-in-out infinite; }
@media (hover: hover) { .wm-zone:hover { background: rgba(17, 144, 138, .1); } }
.wm-roomtray { display: flex; justify-content: center; }
.wm-roomtoy { width: 120px; }

/* «Найди связь»: пары */
.wm-pairs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, 1fr) minmax(0, 1fr); gap: .6rem; max-width: 640px; margin: 0 auto; width: 100%; }
.wm-pairs__col { position: relative; z-index: 2; display: grid; gap: .6rem; }
.wm-pairs__col:last-child { grid-column: 3; }
.wm-pairs__lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wm-line { stroke-width: 6; stroke-linecap: round; }
.wm-line--0 { stroke: var(--teal); }
.wm-line--1 { stroke: var(--lav-2); }
.wm-line--2 { stroke: var(--star); }
.wm-line--3 { stroke: #F2766B; }
.wm-pair { max-width: 130px; justify-self: center; width: 100%; }
.wm-pair.is-done { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-2); }
.wm-pair.is-hint { box-shadow: 0 0 0 4px var(--star); animation: wmHint .8s ease-in-out infinite; }
.wm-pair.is-over { box-shadow: 0 0 0 4px var(--teal); transform: scale(1.04); }

/* «Скажи сам»: ребёнок отвечает вслух, взрослый нажимает «Верно» */
.wm-sayit { display: grid; justify-items: center; gap: .8rem; width: 100%; }
.wm-sayit__pics { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: .8rem; width: 100%; }
.wm-sayit__pic { width: min(220px, 62vw); padding: .5rem; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.wm-sayit__pics--2 .wm-sayit__pic { width: min(190px, 40vw); }
.wm-sayit__pics--2 .wm-sayit__pic.is-main { box-shadow: 0 0 0 4px var(--teal), var(--shadow); }
.wm-sayit__pic.is-wide { width: min(440px, 100%); padding: .3rem; }
.wm-sayit__pic .wm-pic { width: 100%; height: auto; display: block; }
.wm-sayit__pic.is-wide .wm-roompic { border-radius: 18px; }
.wm-sayit__pic.is-mystery { display: grid; place-items: center; aspect-ratio: 1; background: var(--lav); color: var(--lav-3); font-family: var(--f-display); font-weight: 700; font-size: clamp(3.5rem, 12vw, 5.5rem); }
.wm-sayit__pic.is-reveal { animation: pop .4s cubic-bezier(.3, 1.4, .5, 1); }
.wm-sayit__sample .ui-ico { width: 24px; height: 24px; }
.wm-sayit__sample[hidden] { display: none; }
.wm-sayit__sample.is-hint { box-shadow: 0 0 0 4px var(--star); }
.wm-sayit__sample.is-tap { animation: hit .4s ease; }
.wm-adult { display: grid; gap: .6rem; width: 100%; max-width: 580px; padding: .75rem .85rem; border-radius: 20px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }
.wm-adult__note { display: flex; align-items: flex-start; gap: .45rem; margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.wm-adult__note .ui-ico { flex: none; width: 20px; height: 20px; margin-top: .1rem; }
.wm-adult__note b { color: var(--ink); }
.wm-adult__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.wm-adult__btns .btn { flex: 1 1 150px; justify-content: center; min-height: 54px; border-radius: 16px; line-height: 1.15; }
.wm-adult__btns .ui-ico { width: 22px; height: 22px; }
.wm-bubble__ans { color: var(--teal-2); }
.wm-dots i.is-star { display: grid; place-items: center; width: 18px; height: 18px; background: none; color: var(--star); transform: scale(1.15); }
.wm-dots i.is-star .ui-ico { width: 18px; height: 18px; }

/* Перенеси на место: гости, дастархан, корзины, хозяева одежды, кукла */
.wm-drop { display: grid; gap: 1rem; }
.wm-drop__scene { position: relative; }
.wm-tray--drop { display: flex; flex-wrap: wrap; justify-content: center; max-width: 860px; width: 100%; margin: 0 auto; }
.wm-tray--drop .wm-item { width: clamp(76px, 12%, 112px); flex: none; }
.wm-target { position: relative; border-radius: 24px; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease; }
.wm-target:focus-visible { box-shadow: 0 0 0 4px var(--teal); }
.wm-drop__scene.is-active .wm-target, .wm-stage.is-dragging .wm-target { box-shadow: inset 0 0 0 3px var(--teal-soft-2); }
.wm-target.is-over, .wm-got[data-bin].is-over { box-shadow: inset 0 0 0 4px var(--teal); background-color: var(--teal-soft); transform: scale(1.02); }
.wm-target.is-hint, .wm-got[data-bin].is-hint { box-shadow: inset 0 0 0 4px var(--star); animation: wmHint .8s ease-in-out infinite; }
.wm-target.is-ok { animation: hit .45s ease; }
.wm-target.is-shake { animation: shake .45s ease; }
.wm-target__got { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; min-height: 48px; }
.wm-got { display: block; width: 52px; height: 52px; animation: pop .3s ease; }
.wm-got .wm-pic { display: block; width: 100%; height: 100%; }
.wm-target__name { font-weight: 800; font-size: .95rem; text-align: center; }
.wm-target__name.cap { display: none; }
.show-captions .wm-target__name.cap { display: block; }
.wm-guests { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 1rem; max-width: 760px; margin: 0 auto; }
.wm-guest { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .7rem; background: var(--paper); box-shadow: inset 0 0 0 3px var(--line); }
.wm-guest__pic { display: block; width: 100%; }
.wm-guest__pic .wm-pic { display: block; width: 100%; height: auto; margin: 0 auto; }
.wm-guest--bear .wm-guest__pic { max-width: 230px; }
.wm-guest--mouse .wm-guest__pic { max-width: 120px; }
.wm-guest__mat { display: flex; justify-content: center; width: 100%; padding: .35rem; border-radius: 999px; background: #FDE6D2; }
.wm-guest--mouse .wm-got { width: 40px; height: 40px; }
.wm-cloth-wrap { max-width: 600px; margin: 0 auto; }
.wm-cloth { padding: 0; }
.wm-cloth__art .wm-clothpic { display: block; width: 100%; height: auto; }
.wm-cloth__got { position: absolute; inset: 12% 14% 26%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2%; min-height: 0; }
.wm-cloth .wm-got { width: clamp(44px, 14%, 92px); height: auto; aspect-ratio: 1; }
.wm-got.is-pouring { animation: wmPour 1.4s ease forwards; transform-origin: 70% 60%; }
.wm-got--kese[data-bin] { border-radius: 50%; cursor: pointer; }
.wm-baskets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 720px; margin: 0 auto; }
.wm-basket { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem; background: var(--paper); box-shadow: inset 0 0 0 3px var(--line); }
.wm-basket__art { display: block; width: 100%; }
.wm-basket__art .wm-basketpic { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; }
.wm-basket .wm-got { width: 44px; height: 44px; }
.wm-owners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; max-width: 780px; margin: 0 auto; }
.wm-owner { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem; background: var(--paper); box-shadow: inset 0 0 0 3px var(--line); }
.wm-owner__pic { display: block; width: 100%; }
.wm-owner__pic .wm-pic { display: block; width: 100%; max-width: 160px; height: auto; margin: 0 auto; }
.wm-owner .wm-got { width: 48px; height: 48px; }
.wm-drop--doll .wm-drop__scene { display: grid; place-items: center; min-height: 340px; padding: .6rem; border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 3px var(--line); }
.wm-weather { position: absolute; inset: 0; }
.wm-weather .wm-season { display: block; width: 100%; height: 100%; }
.wm-doll { z-index: 1; width: min(230px, 56%); padding: .3rem; background: rgba(255, 255, 255, .35); }
.wm-doll__art .wm-dollpic { display: block; width: 100%; height: auto; }

/* «Чего не стало?»: полка со шторкой */
.wm-gone { display: grid; justify-items: center; gap: 1rem; }
.wm-shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(.3rem, 2vw, 1rem); width: 100%; max-width: 780px; padding: 1rem 1rem 1.6rem; border-radius: 24px; background: linear-gradient(180deg, #FFF6EA, #FDE6D2); box-shadow: inset 0 0 0 3px var(--line); overflow: hidden; }
.wm-shelf__slot { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(60px, 15vw, 130px); aspect-ratio: 1; border-radius: 18px; }
.wm-shelf__slot .wm-pic { display: block; width: 100%; height: 100%; }
.wm-shelf__slot.is-empty { background: rgba(255, 255, 255, .55); outline: 3px dashed var(--lav-2); outline-offset: -6px; }
.wm-shelf__slot.is-back { animation: pop .4s cubic-bezier(.3, 1.4, .5, 1); }
.wm-shelf__slot.is-hint { box-shadow: 0 0 0 4px var(--star); animation: wmHint .8s ease-in-out infinite; }
.wm-shelf__board { position: absolute; left: 3%; right: 3%; bottom: 1.05rem; height: 12px; border-radius: 6px; background: #C98A55; box-shadow: 0 6px 0 #9A6236; }
.wm-curtain { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(90deg, #9C84E4 0 26px, #8A70DA 26px 52px); transform: translateY(-102%); transition: transform .55s ease; }
.wm-curtain::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: radial-gradient(circle at 13px 0, transparent 12px, #8A70DA 13px) 0 0 / 26px 16px repeat-x; }
.wm-shelf.is-closed .wm-curtain { transform: translateY(0); }
.wm-gone__ask { display: grid; justify-items: center; width: 100%; }
.wm-gone__ready { min-height: 64px; }
.wm-gone__ready .ui-ico { width: 26px; height: 26px; }
.wm-gone__ready.is-hint { box-shadow: 0 0 0 4px var(--star); }
.wm-gone .wm-opts { width: 100%; max-width: 560px; justify-content: center; }
.wm-gone .wm-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wm-pairs--5 .wm-pair { max-width: 112px; }
.wm-line--4 { stroke: var(--teal-2); }

/* Окно для взрослого: игры по мирам */
.wm-pintro { margin: 0; font-weight: 600; color: var(--ink-2); }
.wm-pworld { margin: 1.1rem 0 .2rem; font-family: var(--f-display); font-size: 1.05rem; color: var(--teal-2); }
.wm-psec summary { cursor: pointer; list-style: none; }
.wm-psec summary::-webkit-details-marker { display: none; }
.wm-psec summary h3 { display: inline; }
.wm-psec summary::before { content: '▸'; display: inline-block; width: 1.1em; color: var(--teal); }
.wm-psec[open] summary::before { content: '▾'; }
.wm-pans ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.wm-pans li { margin: .15rem 0; }
.wm-pans__q { color: var(--ink-2); }

@keyframes wmPour { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14px) rotate(0); } 60% { transform: translateY(-14px) rotate(-38deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes wmSpin { to { transform: rotate(360deg); } }

@keyframes wmJump { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-8px); } }
@keyframes wmJumpShadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.6); opacity: .4; } }
@keyframes wmRun { from { transform: translateX(-3px) rotate(14deg); } to { transform: translateX(3px) rotate(10deg); } }
@keyframes wmNod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@keyframes wmBubbles { 0% { transform: translateY(4px); opacity: .5; } 60% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }

/* Итог уровня */
.wm-done__fox { width: 120px; margin: 0 auto .3rem; }
.wm-done__fox .wm-fox { width: 100%; height: auto; display: block; }
.wm-done__places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; max-width: 320px; margin: 0 auto .6rem; }
.wm-done__places span { display: block; animation: wmHop 1.2s ease-in-out infinite; }
.wm-done__places span:nth-child(2) { animation-delay: .15s; }
.wm-done__places span:nth-child(3) { animation-delay: .3s; }
.wm-done__places span:nth-child(4) { animation-delay: .45s; }
.wm-done__places .wm-place { width: 100%; height: auto; display: block; }
.wm-done__medal { justify-content: center; margin-bottom: .9rem; }
.wm-done__medal .badge { width: 78px; height: 78px; animation: spin-in .6s cubic-bezier(.3, 1.4, .5, 1); }
.wm-psec.is-cur { background: var(--cream); border-radius: var(--r-md); padding-inline: .8rem; }
.wm-psec__place { font-weight: 600; color: var(--ink-2); }
.wm-steam path { animation: wmSteam 2.6s ease-in-out infinite; }

@keyframes wmHint { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes wmOdd { to { transform: translateY(-8px) rotate(-3deg) scale(1.03); } }
@keyframes wmHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }
@keyframes wmSteam { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-4px); opacity: .55; } }

@media (max-width: 900px) {
  .wm-world { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wm-host { grid-column: 1 / -1; grid-row: 1; flex-direction: row; align-items: center; }
  .wm-host__fox { flex: none; width: 120px; }
  .wm-loc--house { grid-column: 1; grid-row: 2; }
  .wm-loc--kitchen { grid-column: 2; grid-row: 2; }
  .wm-loc--wardrobe { grid-column: 1; grid-row: 3; }
  .wm-loc--garden { grid-column: 2; grid-row: 3; }
  .wm-world--5 .wm-host { grid-column: 1 / -1; grid-row: 1; }
  .wm-world--5 .wm-loc--house { grid-column: 1; grid-row: 2; }
  .wm-world--5 .wm-loc--kitchen { grid-column: 2; grid-row: 2; }
  .wm-world--5 .wm-loc--wardrobe { grid-column: 1; grid-row: 3; }
  .wm-world--5 .wm-loc--harvest { grid-column: 2; grid-row: 3; }
  .wm-world--5 .wm-loc--action { grid-column: 1 / -1; grid-row: 4; justify-self: center; width: calc(50% - .35rem); }
  .wm-main { grid-template-columns: minmax(0, 1fr); }
  .wm-main .wm-play { justify-self: stretch; }
  .wm-placehead { grid-template-columns: minmax(0, 1fr); }
  .wm-placehead__art .wm-place { max-width: 300px; }
  .wm-tray, .wm-sort.is-big .wm-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wm-host__fox { width: 92px; }
  .wm-host__bubble { font-size: .92rem; padding: .6rem .7rem; }
  .wm-loc { padding: .45rem .4rem .6rem; border-radius: 20px; }
  .wm-loc__name { font-size: .9rem; }
  .wm-lvl { flex: 1 1 100%; }
  .wm-stcard { flex-direction: column; }
  .wm-stcard__art { width: 84px; height: 84px; }
  .wm-guide { gap: .5rem; }
  .wm-guide__fox { width: 54px; }
  .wm-say { width: 56px; height: 56px; }
  .wm-bubble { font-size: .98rem; padding: .55rem .8rem; }
  .wm-tray { gap: .45rem; padding: .5rem; }
  .wm-stchip { display: none; }
  .wm-stage .icon-btn { width: 44px; height: 44px; }
  .wm-bins { gap: .35rem; }
  .wm-bin { padding: .35rem .15rem .4rem; border-radius: 16px; }
  .wm-bin__art .wm-place { max-width: 74px; }
  .wm-bin__badge { width: 26px; height: 26px; top: 2px; right: 2px; }
  .wm-bin__badge .wm-pic { width: 22px; height: 22px; }
  .wm-bin__name { font-size: .64rem; letter-spacing: -.01em; }
  .wm-bin__got { min-height: 18px; gap: 1px; }
  .wm-bin__got i { width: 16px; height: 16px; }
  .wm-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .wm-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .wm-opts--wide { grid-template-columns: minmax(0, 1fr); max-width: 300px; margin: 0 auto; }
  .wm-choose.has-q { grid-template-columns: minmax(0, 1fr); }
  .wm-q { width: 120px; justify-self: center; padding: .4rem; }
  .wm-ear__play { width: 56px; height: 56px; }
  .wm-ear__txt { font-size: 1rem; }
  .wm-pairs { gap: .4rem; }
  .wm-roomtoy { width: 96px; }
  .wm-roomwrap { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .wm-choose.has-q { flex-direction: column; }
  /* в колонку карточки ответов всегда на всю ширину, их размер не зависит от картинок раунда */
  .wm-choose.has-q .wm-opts { flex: none; align-self: stretch; width: 100%; }
  .wm-q::after { right: auto; left: 50%; top: auto; bottom: -16px; margin: 0 0 0 -10px; border: 10px solid transparent; border-top-color: var(--lemon-2); border-bottom: 0; }
  .wm-choose .wm-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wm-choose .wm-opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wm-choose .wm-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* картинки комнаты на телефоне — одна под другой, чтобы было видно, где игрушка */
  .wm-choose .wm-opts--wide { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 280px; margin: 0 auto; gap: .6rem; }
  .wm-actions .wm-help span { display: none; }
  .wm-sayit__pic { width: min(180px, 56vw); }
  .wm-sayit__pics--2 .wm-sayit__pic { width: min(150px, 42vw); }
  .wm-adult { padding: .6rem; }
  .wm-adult__btns .btn { flex: 1 1 130px; min-height: 52px; padding-inline: .6rem; font-size: .92rem; }
  .wm-tray--drop .wm-item { width: calc(25% - .45rem); }
  .wm-guests, .wm-baskets { gap: .5rem; }
  .wm-guest, .wm-basket, .wm-owner { padding: .4rem; border-radius: 18px; }
  .wm-owners { gap: .4rem; }
  .wm-owner .wm-got, .wm-basket .wm-got { width: 34px; height: 34px; }
  .wm-guest .wm-got { width: 38px; height: 38px; }
  .wm-guest--mouse .wm-got { width: 30px; height: 30px; }
  .wm-drop--doll .wm-drop__scene { min-height: 300px; }
  .wm-doll { width: min(190px, 62%); }
  .wm-shelf { padding: .7rem .5rem 1.4rem; }
}

/* Анимации */
.shake { animation: shake .45s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes outRight { to { transform: translateX(140px) rotate(10deg); opacity: 0; } }
@keyframes outLeft { to { transform: translateX(-140px) rotate(-10deg); opacity: 0; } }
@keyframes hit { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin-in { from { transform: rotate(-120deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(520px) rotate(540deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Планшеты и телефоны ---------- */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; order: -1; }
  .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adults { grid-template-columns: 1fr; }
  .about-grid, .intro-foot { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .levels { grid-template-columns: 1fr; }
  .sp-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-ex { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sp-ex__art .art { max-width: 190px; }
  .sp-count { justify-content: center; }
  .sp-tip { text-align: left; }
  .sp-rhead { grid-template-columns: auto minmax(0, 1fr); }
  .sp-rhead__go { grid-column: 1 / -1; }
  .sp-rhead__go .btn { width: 100%; }
  .tray { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; }
  .bc { width: min(220px, 54vw); padding: .7rem; }
  .yn__stage { min-height: 0; }
  .game-hero, .soon { grid-template-columns: 1fr; }
  .game-hero__art .tile-art { max-width: 240px; }
  .menu-btn__txt { display: none; }
  .menu-btn { width: 48px; padding: 0; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand__word { font-size: 1.05rem; }
  .brand .logo-mark { width: 36px; height: 36px; }
  .lang__long { display: none; }
  .lang__short { display: inline; }
  .lang__btn { padding: .45rem .7rem; font-size: .88rem; }
  .stations { grid-template-columns: 1fr; }
  .station { flex-direction: row; align-items: stretch; }
  .station__art { width: 40%; flex: none; padding: .75rem; }
  .station__body { padding: .9rem 1rem; }
  .hero__cta .btn { width: 100%; }
  .hero__art { max-width: 300px; }
  .level { grid-template-columns: auto minmax(0, 1fr); }
  .level__stars { grid-column: 2; }
  .level__icon { width: 60px; height: 60px; }
  .level__icon .level-ico { width: 44px; height: 44px; }
  .stage__bar { gap: .35rem; }
  .icon-btn { width: 42px; height: 42px; border-radius: 14px; }
  .stage__snd { min-width: 36px; height: 36px; border-radius: 12px; font-size: 1.05rem; }
  .stage__name { font-size: .9rem; }
  .stage__lvl { font-size: .68rem; }
  .snd-pick { min-width: 56px; padding-inline: .4rem; }
  .snd-pick__l { font-size: 1.4rem; }
  .stage__tools { gap: .3rem; }
  .guide__mascot { width: 56px; }
  .guide__bubble { padding: .65rem .85rem; }
  .ynbtn { min-height: 80px; font-size: 1.05rem; flex-direction: column; gap: .2rem; }
  .ynbtn .yn-ico { width: 44px; height: 44px; }
  .scheme__cell { min-height: 92px; }
  .scheme__slot, .token { width: 40px; height: 40px; }
  .posg__word { font-size: 1.3rem; }
  .house { min-height: 190px; padding-inline: .5rem; }
  .house__sym, .house__snd { width: 46px; height: 46px; }
  .house__snd { font-size: 1.4rem; }
  .mini { width: 36px; height: 36px; }
  .author { grid-template-columns: 1fr; }
  .sp-path { grid-template-columns: 1fr; }
  .sp-st { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .sp-st__ico { width: 60px; height: 60px; }
  .sp-st__body { flex: 1; min-width: 0; }
  .sp-st__status { margin-top: 0; }
  .sp-rhead__snd { width: 72px; height: 72px; font-size: 2.3rem; border-radius: 22px; }
  .sp-syll { padding: 1rem; gap: .7rem; }
  .sp-sym { width: 52px; height: 52px; }
  .sp-story { grid-template-columns: 1fr; }
  .sp-nav .btn { flex: 1 1 40%; padding-inline: .8rem; }
  .sp-count__dots i { width: 30px; height: 30px; }
  .sp-snd { min-width: 64px; }
  .sp-snd__l { font-size: 1.7rem; }
  .page-head__mark { width: 60px; height: 60px; }
}
@media (max-width: 380px) {
  .brand__lab { display: none; }
  .home-eyebrow { font-size: .7rem; letter-spacing: 0; padding-inline: .7rem; }
  .stage__lvl { display: none; }
}

/* ---------- Главная и шапка: планшеты и телефоны ---------- */
@media (max-width: 1020px) {
  .lang__long { display: none; }
  .lang__short { display: inline; }
}
@media (max-width: 860px) {
  .topnav__a--home { width: 46px; padding: 0; }
  .topnav__a--home .topnav__txt { display: none; }
  .home-stage { grid-template-columns: minmax(0, 1fr); text-align: center; min-height: 0; padding-top: clamp(1.4rem, 4vw, 2.25rem); }
  .home-stage__txt { display: flex; flex-direction: column; align-items: center; padding-bottom: .75rem; }
  .home-line { max-width: 24ch; margin-bottom: 1.25rem; }
  .home-stage__art { width: min(100%, 620px); justify-self: center; margin: .25rem 0 0; }
  .home-cl--2 { left: auto; right: 5%; top: 5%; }
  .home-dot--3 { left: auto; right: 22%; top: 24%; }
  .hcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stage--photo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "txt"; padding: 0; }
  .home-photo img { -webkit-mask-image: linear-gradient(180deg, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, #000 94%, transparent 100%); }
  .home-stage--photo .home-stage__txt { padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1rem, 4vw, 2rem) clamp(1.25rem, 3.5vw, 2rem); }
  .home-headline { max-width: 20ch; margin-bottom: 1.25rem; }
}
@media (max-width: 700px) {
  .topbar__tools { gap: .4rem; }
  .lang { order: 1; }
  .topnav { order: 2; gap: .3rem; }
  .topnav__a--logoped { width: 46px; padding: 0; }
  .topnav__a--logoped .topnav__txt { display: none; }
  .topnav .menu-btn, .topnav__a--home, .topnav__a--logoped { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
  .topnav__a.is-cur { box-shadow: inset 0 0 0 2px var(--mint-2); }
  .topnav .menu-btn { order: 3; }
}
@media (max-width: 560px) {
  .topnav__a--home, .topnav__a--logoped { display: none; }
  .home-stage { padding: 1.3rem 1rem 0; border-radius: 28px; }
  .home-eyebrow { font-size: .76rem; margin-bottom: .7rem; }
  .home-start { width: 100%; min-height: 62px; }
  .home-stage--photo { padding: 0; }
  .home-stage--photo .home-stage__txt { padding: 1rem 1rem 1.25rem; }
  .home-stage__art { margin-top: 2.25rem; }
  .home-kids { transform: scale(1.16); transform-origin: 50% 100%; }
  .hcards { grid-template-columns: minmax(0, 1fr); }
  .hcard { flex-direction: row; align-items: stretch; border-radius: 24px; }
  .hcard__art { width: 44%; flex: none; aspect-ratio: auto; min-height: 128px; }
  .hcard__body { padding: .85rem .95rem 1rem; gap: .2rem; }
  .hcard__title { font-size: 1.02rem; }
  .hcard__txt { font-size: .95rem; line-height: 1.35; }
  .hcard__go, .hcard__soon { margin-top: .5rem; min-height: 36px; font-size: .88rem; }
  .hcard__num { left: 8px; top: 8px; width: 30px; height: 30px; font-size: .85rem; }
}

/* Разделы 1 и 2: кнопка звука в узкой панели уровня. В «Мире звуков» на телефоне её заменяют
   переключатели «Звуки игры» и «Озвучка» в настройках (шестерёнка), чтобы название уровня не сжималось. */
@media (max-width: 560px) {
  .sw-stage .tq-sound, .sp-stage .tq-sound { width: 42px; height: 42px; }
  .sw-stage .tq-soundbox { display: none; }
  .guide .tq-say { width: 44px; height: 44px; }
}

/* ======================================================================
   Раздел 5 «Истории оживают / Оқиғалар әлемі» — все правила с приставкой st-
   ====================================================================== */
.st-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.1; }
.st-title--sm { font-size: clamp(1.4rem, 3.6vw, 2rem); }
.st-other { margin: .25rem 0 0; color: var(--ink-2); font-weight: 700; }
.st-hub { background: linear-gradient(180deg, var(--lav) 0%, #F8F5FF 70%); border-radius: var(--r-xl); padding: clamp(1rem, 3vw, 1.8rem); box-shadow: var(--shadow); }
.st-hub__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem 1.5rem; align-items: center; }
.st-host { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.st-host__m { flex: none; width: 84px; padding: 0; border: 0; background: none; cursor: pointer; }
.st-host__m .mascot, .st-guide__m .mascot { width: 100%; height: auto; display: block; }
.st-host__m.is-hop { animation: st-hop .5s ease; }
.st-host__bubble { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem .75rem 1.05rem; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); font-weight: 700; line-height: 1.4; }
.st-host__bubble::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right-color: var(--paper); }
.st-host__bubble p { margin: 0; flex: 1; min-width: 0; }
.st-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.st-gcard { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; animation: st-rise .5s ease both; animation-delay: calc(var(--i, 0) * .06s); }
.st-gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.st-gcard__art { display: block; padding: .4rem .5rem 0; background: var(--tone); }
.st-gart { width: 100%; height: auto; display: block; }
.st-gcard__body { flex: 1; display: flex; flex-direction: column; gap: .25rem; padding: .8rem 1rem 1rem; }
.st-gcard__name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.st-gcard__sub { flex: 1; color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.st-gcard__go, .st-gcard__soon { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; min-height: 40px; padding: .4rem .95rem; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.st-gcard__go { background: var(--teal); color: var(--paper); }
.st-gcard__go .ui-ico { width: 18px; height: 18px; }
.st-gcard__soon { background: var(--cream-2); color: var(--ink-2); }
.st-gcard.is-soon { cursor: default; }
.st-gcard.is-soon .st-gcard__art { filter: saturate(.55); opacity: .85; }
.st-gcard.is-soon:hover { transform: none; box-shadow: var(--shadow); }
.st-gcard.is-shake { animation: shake .45s ease; }
.st-adult { margin-top: 1.2rem; padding: 0 1rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); user-select: text; -webkit-user-select: text; }
.st-adult summary { display: flex; align-items: center; gap: .5rem; min-height: 54px; font-weight: 800; cursor: pointer; list-style: none; }
.st-adult summary::-webkit-details-marker { display: none; }
.st-adult summary::after { content: ''; margin-left: auto; width: 10px; height: 10px; border-right: 3px solid var(--ink-2); border-bottom: 3px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.st-adult[open] summary::after { transform: rotate(-135deg); }
.st-adult summary .ui-ico { width: 22px; height: 22px; color: var(--teal); }
.st-adult__list { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-2); line-height: 1.5; }
.st-adult__list li { margin: .35rem 0; }

/* выбор уровня */
.st-lv { display: grid; gap: 1.1rem; padding: clamp(1rem, 3vw, 1.8rem); border-radius: var(--r-xl); background: var(--tone); box-shadow: var(--shadow); }
.st-lv__head { display: flex; align-items: center; gap: 1rem; }
.st-lv__art { flex: none; width: 150px; padding: .2rem; border-radius: var(--r-md); background: var(--paper); }
.st-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.st-level { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 160px; padding: 1rem .8rem; border: 0; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-align: center; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.st-level:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.st-level.is-cur { box-shadow: inset 0 0 0 3px var(--teal), var(--shadow); }
.st-lico { width: 64px; height: 64px; }
.st-level__txt { display: flex; flex-direction: column; gap: .15rem; }
.st-level__num { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.st-level__name { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.st-level__ok { position: absolute; top: .6rem; right: .6rem; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--paper); display: grid; place-items: center; }
.st-level__ok .ui-ico { width: 18px; height: 18px; }

/* игровой экран */
.st-stage { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.st-chip { flex: none; width: 60px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--paper); }
.st-chip .st-gart { width: 58px; }
.st-lvbtn { width: auto; min-width: 48px; padding: 0 .45rem; display: inline-flex; align-items: center; gap: .15rem; }
.st-lvbtn .st-lico { width: 28px; height: 28px; }
.st-lvbtn b { font-size: 1rem; font-weight: 900; }
.st-guide { display: flex; align-items: center; gap: .7rem; margin: .8rem 0 .9rem; }
.st-guide__m { flex: none; width: 70px; }
.st-bubble { position: relative; flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; padding: .65rem 1rem; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: clamp(1.02rem, 2vw, 1.12rem); line-height: 1.4; }
.st-bubble::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right-color: var(--paper); }
.st-bubble p { margin: 0; }
.st-bubble.is-new p { animation: st-fade .35s ease; }
.st-title-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 .7rem; }
.st-storytitle { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; }
.st-dots { display: flex; gap: 6px; }
.st-dots i { width: 22px; height: 8px; border-radius: 999px; background: var(--cream-2); }
.st-dots i.on { background: var(--teal-soft-2); }
.st-dots i.is-cur { background: var(--teal); }
.st-slots, .st-strip { --n: 3; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(.55rem, 1.6vw, .9rem); }
.st-slots--4, .st-strip--4 { --n: 4; }
.st-slots--5, .st-strip--5 { --n: 5; }
.st-slots { padding: .7rem .2rem 0 .7rem; }
.st-slot { position: relative; aspect-ratio: 4 / 3; min-height: 64px; display: grid; place-items: center; border-radius: var(--r-md); border: 3px dashed #D9CBB4; background: var(--cream); transition: background-color .2s, border-color .2s, transform .2s; cursor: pointer; }
.st-slot.is-full { border-color: transparent; background: transparent; }
.st-slot.is-over, .st-stage.is-dragging .st-slot.is-over { border-color: var(--teal); background: var(--teal-soft); transform: scale(1.03); }
.st-slot.is-hint { animation: st-pulse 1s ease 3; }
.st-slot__num { position: absolute; top: -12px; left: -12px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--paper); font-weight: 900; font-size: 1rem; box-shadow: 0 4px 10px -4px var(--teal-2); pointer-events: none; }
.st-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .2s ease, transform .2s ease, opacity .2s; }
.st-card .st-scene, .st-strip__f .st-scene { display: block; width: 100%; height: 100%; pointer-events: none; }
.st-slot .st-card { position: absolute; inset: 0; height: 100%; }
.st-card.is-sel { box-shadow: 0 0 0 4px var(--teal), var(--shadow-lift); transform: translateY(-4px); }
.st-card.is-locked { cursor: default; box-shadow: 0 0 0 3px var(--teal-soft-2), var(--shadow); }
.st-card.is-lifted { opacity: .3; }
.st-card.is-hint { animation: st-pulse 1s ease 3; }
.st-card.is-off { box-shadow: 0 0 0 4px #FFC46B, var(--shadow); animation: st-wobble .55s ease; }
.st-card.is-good { animation: st-pop .45s ease; }
.st-card.is-back { animation: none; }
.st-ghost { position: fixed !important; left: 0; top: 0; z-index: 1000; margin: 0; pointer-events: none; box-shadow: var(--shadow-lift) !important; opacity: .95; }
.st-tray { --tn: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; min-height: 120px; margin-top: 1.1rem; padding: .9rem; border-radius: var(--r-lg); background: var(--tone); transition: box-shadow .2s; }
.st-tray .st-card { width: clamp(110px, 27%, 230px); }
.st-tray.is-target, .st-tray.is-over { box-shadow: inset 0 0 0 3px var(--teal); }
.st-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem; margin-top: 1rem; }
.st-actions .ui-ico { width: 20px; height: 20px; }
/* крупные зоны нажатия в игре (не меньше 64 px) */
.st-actions .btn, .st-sayblock .btn, .st-final__btns .btn { min-height: 66px; padding-inline: 1.2rem; font-size: 1.05rem; border-radius: 22px; }
.st-actions .tq-icon { width: 64px; min-width: 64px; padding: 0; justify-content: center; }
.st-sayblock .tq-say { width: 64px; height: 64px; flex: none; }
.st-sayblock .tq-say .ui-ico { width: 30px; height: 30px; }
.st-hint.is-pulse { animation: st-glow 1.3s ease infinite; }
.st-ready[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.st-ready.is-pop { animation: st-pop .45s ease; }
.st-strip { padding: .7rem .2rem 0 .7rem; }
.st-strip__f { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.st-strip__f .st-scene { border-radius: var(--r-sm); box-shadow: var(--shadow); overflow: hidden; }
.st-strip__f .st-slot__num { width: 26px; height: 26px; top: -10px; left: -10px; font-size: .85rem; }
.st-strip.is-joy .st-strip__f { animation: st-hop .6s ease both; animation-delay: calc(var(--i) * .09s); }
.st-strip__f.is-hint .st-scene { animation: st-pulse 1s ease 2; }
/* блок речевого задания */
.st-sayblock { display: grid; justify-items: center; gap: .85rem; margin-top: 1.1rem; padding: 1.1rem 1rem; border-radius: var(--r-lg); background: var(--lemon); text-align: center; animation: st-rise .4s ease both; }
.st-sayblock--q, .st-sayblock--title, .st-sayblock--more { background: var(--mint); }
.st-sayblock__task { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem; }
.st-sayblock__task p { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.25; }
.st-sayblock__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--teal); }
.st-sayblock__ico .ui-ico { width: 24px; height: 24px; }
.st-props { display: grid; justify-items: center; gap: .45rem; }
.st-props.is-new { animation: st-pop .5s ease; }
.st-props__lab { font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.st-props__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.st-prop { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 56px; padding: .5rem .95rem; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-weight: 800; font-size: 1.12rem; }
.st-prop__pic { display: block; width: 104px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.st-prop__pic .st-scene { width: 100%; height: 100%; }
.st-sayblock__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.st-told { min-width: 230px; }
/* финал */
.st-final { display: grid; justify-items: center; gap: .8rem; margin-top: 1.1rem; padding: 1.1rem 1rem; border-radius: var(--r-lg); background: var(--tone); text-align: center; animation: st-rise .45s ease both; }
.st-final__hero { position: relative; width: 140px; }
.st-bighero { width: 100%; height: auto; display: block; animation: st-jump 1s ease 3; }
.st-final__spark { position: absolute; right: -34px; top: 4px; width: 64px; animation: st-twinkle 1.4s ease infinite; }
.st-final__txt { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.st-final__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
/* картинки героев автора */
.st-heropic { display: block; height: auto; }
.st-heroes { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.3rem, 2vw, 1.4rem); margin-top: 1.1rem; }
.st-heroes__h { display: block; height: calc(clamp(64px, 15vw, 128px) * var(--k, 1)); animation: st-rise .45s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
.st-heroes__h .st-heropic { height: 100%; width: auto; }
.st-bighero--pic { height: auto; }
/* игры 2 и 3: шаги, картинки-варианты, кадр «?», картинка-проблема */
.st-plan { --n: 5; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 150px)); justify-content: center; gap: .5rem; margin: 0 0 1rem; }
.st-plan--3 { --n: 3; }
.st-plan--4 { --n: 4; }
.st-step { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; min-height: 64px; padding: .4rem .3rem .45rem; border: 0; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font: inherit; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s; }
.st-step:not([disabled]):hover { transform: translateY(-2px); }
.st-step[disabled] { opacity: .55; cursor: default; background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }
.st-step.is-cur { box-shadow: 0 0 0 3px var(--teal), var(--shadow); }
.st-step__pic { width: 100%; max-width: 96px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--cream); }
.st-step__pic .st-scene { width: 100%; height: 100%; display: block; }
.st-step__pic .st-heropic, .st-step__pic .st-bighero { height: 100%; width: auto; max-width: 100%; animation: none; }
.st-step__pic b { font-size: 1.2rem; font-weight: 900; color: var(--ink-2); }
.st-step__txt { max-width: 100%; font-size: .84rem; font-weight: 800; line-height: 1.15; text-align: center; overflow-wrap: break-word; }
.st-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 230px)); justify-content: center; gap: .8rem; }
.st-choices--hero { grid-template-columns: repeat(5, minmax(0, 170px)); }
.st-opt { display: flex; flex-direction: column; gap: .4rem; min-width: 0; min-height: 64px; padding: .45rem .45rem .6rem; border: 0; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s; animation: st-rise .4s ease both; animation-delay: calc(var(--i, 0) * .05s); }
.st-opt:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.st-opt__pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--cream); }
.st-opt__pic .st-scene { width: 100%; height: 100%; display: block; pointer-events: none; }
.st-opt--hero .st-opt__pic { aspect-ratio: 3 / 4; display: flex; align-items: flex-end; justify-content: center; padding-top: .35rem; background: var(--tone); }
.st-opt--hero .st-heropic, .st-opt--hero .st-bighero { height: 100%; width: auto; max-width: 100%; animation: none; }
.st-opt__txt { font-weight: 800; font-size: 1rem; line-height: 1.2; overflow-wrap: break-word; }
.st-opt.is-hint { animation: st-pulse 1s ease 3; }
.st-opt.is-hmm { opacity: .62; }
.st-opt.is-hmm .st-opt__pic::after { content: '?'; position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #FFC46B; color: var(--paper); font-weight: 900; font-size: 1.3rem; }
.st-opt.is-wobble { animation: st-wobble .55s ease; }
.st-qframe { width: 100%; height: 100%; display: grid; place-items: center; border-radius: inherit; background: repeating-linear-gradient(45deg, #FFF6DF 0 14px, #FFF0CC 14px 28px); box-shadow: inset 0 0 0 3px #F2C14E; }
.st-qframe b { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; color: #F2A623; }
.st-step__pic .st-qframe b { font-size: 1.6rem; }
.st-strip--2 { --n: 2; }
.st-strip__f > .st-qframe { border-radius: var(--r-sm); box-shadow: var(--shadow); }
.st-comic { max-width: 980px; margin-inline: auto; }
.st-tr { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; gap: .7rem; }
.st-tr__pic { width: min(100%, 560px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow); }
.st-tr__pic .st-scene, .st-tr__ans .st-scene { width: 100%; height: 100%; display: block; }
.st-tr.has-ans { grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); }
.st-tr.has-ans .st-tr__pic { width: 100%; }
.st-tr__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--paper); }
.st-tr__arrow .ui-ico { width: 22px; height: 22px; }
.st-tr__ans { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); box-shadow: 0 0 0 4px var(--teal-soft-2), var(--shadow); animation: st-pop .45s ease; }
.st-choices--tr { margin-top: 1rem; grid-template-columns: repeat(3, minmax(0, 220px)); }
.st-choices--tr.st-choices--n4 { grid-template-columns: repeat(4, minmax(0, 200px)); }
.st-zone { fill: transparent; stroke: none; pointer-events: none; }
.st-zone.is-on { fill: rgba(255, 214, 90, .3); stroke: #F08A00; stroke-width: 7; stroke-dasharray: 16 9; stroke-linecap: round; animation: st-zone 1.2s ease 3; }
@keyframes st-zone { 50% { stroke-opacity: .3; } }
/* игра 4: большая картина (на уровне 1 нужная часть приближается), план рассказа, картинки-ответы */
.st-big { width: min(100%, 640px); margin: 0 auto; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow); background: var(--cream); }
.st-big .st-scene { display: block; width: 100%; height: 100%; transform-origin: 0 0; transition: transform .7s cubic-bezier(.2, .8, .25, 1); }
.st-pplan { display: flex; justify-content: center; gap: .45rem; margin: .9rem 0 0; }
.st-pplan__i { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 88px; opacity: .5; transition: opacity .2s, transform .2s; }
.st-pplan__i.is-done { opacity: .8; }
.st-pplan__i.is-cur { opacity: 1; transform: translateY(-2px); }
.st-pico { display: block; width: 44px; height: 44px; border-radius: 50%; }
.st-pplan__i.is-cur .st-pico { box-shadow: 0 0 0 3px var(--teal); }
.st-pplan__t { font-size: .76rem; font-weight: 800; line-height: 1.1; text-align: center; color: var(--ink-2); }
.st-pplan__i.is-cur .st-pplan__t { color: var(--ink); }
.st-choices--pc, .st-choices--sq { margin-top: 1rem; }
.st-choices--pc-who { grid-template-columns: repeat(4, minmax(0, 160px)); }
.st-choices--pc.st-choices--n3, .st-choices--sq.st-choices--n3 { grid-template-columns: repeat(3, minmax(0, 220px)); }
.st-choices--pc.st-choices--n2, .st-choices--sq.st-choices--n2 { grid-template-columns: repeat(2, minmax(0, 240px)); }
.st-opt.is-on { box-shadow: 0 0 0 4px var(--teal), var(--shadow); }
.st-opt.is-on .st-opt__pic::after { content: ''; position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 L10 17.5 L19 7' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.st-prop--ico { padding: .45rem .6rem; min-width: 92px; }
.st-prop--ico .st-prop__pic { width: 52px; aspect-ratio: 1; border-radius: 50%; overflow: visible; }
.st-prop--ico .st-pico { width: 100%; height: 100%; }
.st-prop--ico .st-prop__txt { font-size: .92rem; }
.st-prop.is-hint { animation: st-pulse 1s ease 2; }
/* игра 5: начало истории с подписями, окошко «?», кнопка «Идеи» */
.st-sq__cell { min-width: 0; }
.st-sq.st-strip--2 { max-width: 780px; margin-inline: auto; }
.st-sq__cap { margin: .45rem 0 0; font-size: .92rem; font-weight: 700; line-height: 1.25; text-align: center; }
.st-sq__end.is-idea .st-scene { box-shadow: 0 0 0 4px var(--teal-soft-2), var(--shadow); animation: st-pop .45s ease; }
.st-sq__end.is-hint > .st-qframe, .st-sq__end.is-hint .st-scene { animation: st-pulse 1s ease 2; }
.st-ideas-row { display: flex; justify-content: center; margin-top: 1rem; }
.st-ideas { min-height: 66px; padding-inline: 1.4rem; font-size: 1.08rem; border-radius: 22px; }
.st-ideas .ui-ico { width: 24px; height: 24px; }
/* окно смены уровня */
.st-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: var(--veil); animation: st-fade .2s ease; }
.st-modal__box { display: grid; justify-items: center; gap: 1rem; width: min(660px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 1.3rem; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-lift); }
.st-modal__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; text-align: center; }
.st-levels--modal { width: 100%; }
.st-modal__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

@keyframes st-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(17, 144, 138, .55); transform: scale(1); } 50% { box-shadow: 0 0 0 10px rgba(17, 144, 138, 0); transform: scale(1.04); } }
@keyframes st-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } 75% { transform: rotate(-1deg); } }
@keyframes st-pop { 0% { transform: scale(1); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes st-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }
@keyframes st-jump { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-18px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }
@keyframes st-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }
@keyframes st-glow { 0%, 100% { box-shadow: inset 0 0 0 2px var(--line); } 50% { box-shadow: inset 0 0 0 3px var(--star), 0 0 0 6px rgba(255, 194, 61, .25); } }
@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .st-gcard, .st-sayblock, .st-final, .st-bighero, .st-heroes__h, .st-opt, .st-tr__ans, .st-zone, .st-final__spark, .st-strip.is-joy .st-strip__f, .st-card, .st-slot, .st-hint.is-pulse, .st-big .st-scene, .st-prop.is-hint, .st-sq__end .st-scene { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .st-hub__head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .st-host__m { width: 64px; }
  .st-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .st-gcard__body { padding: .6rem .7rem .8rem; }
  .st-gcard__name { font-size: 1rem; }
  .st-gcard__sub { font-size: .88rem; }
  .st-lv__art { width: 110px; }
  .st-levels { grid-template-columns: minmax(0, 1fr); }
  .st-level { flex-direction: row; justify-content: flex-start; min-height: 88px; padding: .7rem 1rem; text-align: left; }
  .st-lico { width: 56px; height: 56px; flex: none; }
  .st-chip { display: none; }
  .st-guide__m { width: 54px; }
  .st-bubble { font-size: 1rem; padding: .55rem .8rem; }
  .st-slots--4, .st-strip--4 { --n: 2; }
  .st-slots--5, .st-strip--5 { --n: 3; }
  .st-slots, .st-strip { gap: .9rem .6rem; }
  .st-tray { gap: .55rem; padding: .7rem .5rem; }
  .st-tray .st-card { width: calc((100% - 1.1rem) / 3); }
  .st-prop__pic { width: 84px; }
  .st-prop { font-size: 1.02rem; padding: .45rem .7rem; }
  .st-told { min-width: 0; width: 100%; }
  .st-sayblock__btns { width: 100%; }
  .st-sayblock__btns .btn { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .st-stage .stage__bar .icon-btn { width: 46px; height: 46px; }
  .st-stage .stage__bar .st-lvbtn { width: auto; }
}
/* Низкий экран (телефон лёжа): окошки и картинки помельче, чтобы и те и другие были видны сразу */
@media (max-height: 520px) and (min-width: 560px) {
  .st-guide { margin: .4rem 0 .5rem; }
  .st-guide__m { width: 46px; }
  .st-bubble { min-height: 46px; padding: .4rem .8rem; font-size: .98rem; }
  .st-title-row { margin-bottom: .35rem; }
  .st-slots, .st-strip { grid-template-columns: repeat(var(--n), minmax(0, 150px)); justify-content: center; }
  .st-tray { min-height: 0; margin-top: .6rem; padding: .5rem; gap: .5rem; }
  .st-tray .st-card { width: 124px; }
  .st-actions { margin-top: .6rem; }
  .st-prop__pic { width: 84px; }
}
/* узкий телефон: в шапке игры только номер уровня */
@media (max-width: 560px) { .st-stage .st-lvname { display: none; } }
/* раздел 5, игры 2 и 3 на телефоне */
@media (max-width: 600px) {
  .st-plan { gap: .3rem; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .st-step { padding: .3rem .2rem .35rem; }
  .st-step__txt { font-size: .7rem; }
  .st-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .st-choices--hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-choices--tr, .st-choices--tr.st-choices--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-opt__txt { font-size: .92rem; }
  .st-opt--hero .st-opt__txt { font-size: .8rem; }
  .st-tr.has-ans { grid-template-columns: minmax(0, 1fr); }
  .st-tr__arrow { transform: rotate(90deg); }
  .st-tr__ans { width: 74%; }
}
@media (max-width: 440px) {
  .st-plan--5 { --n: 3; }
}
/* раздел 5, игры 4 и 5 на телефоне */
@media (max-width: 600px) {
  .st-pplan { gap: .15rem; }
  .st-pplan__i { width: 62px; }
  .st-pico { width: 38px; height: 38px; }
  .st-pplan__t { font-size: .64rem; overflow-wrap: break-word; max-width: 100%; }
  .st-choices--pc-who { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
  .st-choices--pc.st-choices--n3, .st-choices--sq.st-choices--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .st-choices--pc.st-choices--n2, .st-choices--sq.st-choices--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-choices--pc .st-opt, .st-choices--sq .st-opt { padding: .35rem .35rem .5rem; }
  .st-choices--pc.st-choices--n3 .st-opt__txt, .st-choices--sq.st-choices--n3 .st-opt__txt { font-size: .82rem; }
  .st-sq__cap { font-size: .8rem; }
  .st-prop--ico { min-width: 0; padding: .35rem .4rem; }
  .st-prop--ico .st-prop__pic { width: 40px; }
  .st-prop--ico .st-prop__txt { font-size: .78rem; }
}
