/* QOLDAU AI — дизайн жүйесі.
   Бір жарық тақырып: дала аспанындай фон, киіз-ақ панельдер, көгілдір (ту түсі) негізгі түс, күн-алтын марапат.
   Макет: бір орталық баған (ең көбі 1000px) — жоғарыда Боташ, астында жаттығу қойындылары мен сахна. */
:root {
  --sky: #EDF5F4;
  --sky-deep: #DDECEA;
  --felt: #FFFEFA;
  --ink: #1D2A36;
  --muted: #5B6A76;
  --teal: #0E7C86;
  --teal-ink: #0A5C64;
  --teal-soft: #DCEEEE;
  --gold: #E8A317;
  --gold-soft: #FFF1CF;
  --camel: #D9A066;
  --coral: #D9573F;
  --line: #D3E2E1;
  --good: #23885A;
  --good-soft: #E2F3E9;
  --almost: #B86E0B;
  --almost-soft: #FDEFD8;
  --shadow: 0 1px 2px rgba(15, 56, 62, .06), 0 8px 24px rgba(15, 56, 62, .08);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --font-display: "Comfortaa", ui-rounded, "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  min-height: 100%;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 1.05rem + 1.8vw, 2.05rem); }
h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--teal-ink); }
img, svg, video, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ico-fill { fill: currentColor; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }

/* ---------- Макет ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 18px 16px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wrap > *, .ped-grid > *, .home-grid > *, .stage-body > * { min-width: 0; }
.panel { background: var(--felt); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(16px, 2.6vw, 26px); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 12px; }
.note { background: var(--gold-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: .95rem; }
.eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); font-weight: 800; }
.lead { color: var(--muted); max-width: 62ch; }
.foot-note { color: var(--muted); font-size: .85rem; text-align: center; max-width: 70ch; margin: 4px auto 0; }

/* ---------- Тақырып жолағы ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 254, 250, .94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1000px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.ornament {
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cg fill='none' stroke='%230E7C86' stroke-width='1.4' stroke-linecap='round' opacity='.5'%3E%3Cpath d='M4 13C4 6 10 2 15 5c4 2 3 7-1 7-3 0-3-3-1-4'/%3E%3Cpath d='M36 13C36 6 30 2 25 5c-4 2-3 7 1 7 3 0 3-3 1-4'/%3E%3C/g%3E%3Cpath d='M20 4l2 2-2 2-2-2z' fill='%23E8A317'/%3E%3C/svg%3E") repeat-x center / 34px 12px;
  opacity: .9;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: .78rem; font-weight: 700; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; color: var(--teal-ink); padding: 8px 12px 8px 8px; border-radius: 999px; }
.back:hover { background: var(--teal-soft); }
.top-title { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 8px; }
.sound-chip { display: inline-flex; align-items: baseline; gap: 5px; border: 1.5px solid var(--teal); background: var(--felt); color: var(--teal-ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-weight: 800; }
.sound-chip .sc-letter { font-family: var(--font-display); font-size: 1.2rem; }
.sound-chip .sc-label { font-size: .82rem; }
.sound-chip:hover { background: var(--teal-soft); }
.stars { display: inline-flex; align-items: center; gap: 4px; color: #9A6A06; background: var(--gold-soft); border-radius: 999px; padding: 5px 11px 5px 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stars .ico { color: var(--gold); }
.stars.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.teacher-link { font-size: .92rem; }

/* ---------- Батырмалар ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.15; text-align: center;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 3px 0 var(--teal-ink); }
.btn-primary:hover { background: #0C6E77; }
.btn-soft { background: var(--teal-soft); color: var(--teal-ink); }
.btn-soft:hover { background: #CDE6E6; }
.btn-quiet { background: transparent; color: var(--teal-ink); padding-inline: 12px; }
.btn-quiet:hover { background: var(--teal-soft); }
.btn-ghost { background: var(--felt); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-good { background: var(--good); color: #fff; box-shadow: 0 3px 0 #17663F; }
.btn-gold { background: var(--gold); color: #3A2600; box-shadow: 0 3px 0 #B47C0A; }
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: .92rem; }
.btn-big { min-height: 64px; padding: 14px 28px; font-size: 1.12rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--teal-soft); color: var(--teal-ink); cursor: pointer; display: grid; place-items: center; }
.btn-mic { position: relative; background: var(--coral); color: #fff; min-height: 64px; padding: 12px 30px; font-size: 1.12rem; box-shadow: 0 4px 0 #A83E2A; isolation: isolate; }
.btn-mic .ring { position: absolute; inset: -6px; border-radius: 999px; border: 3px solid var(--coral); opacity: 0; z-index: -1; transition: transform .08s linear, opacity .1s linear; pointer-events: none; }
.btn-mic[data-state="listen"] { background: #C0432C; }
.btn-mic[data-state="listen"] .ring { opacity: .35; }
.btn-mic[data-state="busy"] { background: #8A6C62; box-shadow: 0 4px 0 #5F4A43; }

/* ---------- Белгілер ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 800; background: var(--teal-soft); color: var(--teal-ink); }
.chip-good { background: var(--good-soft); color: var(--good); }
.chip-almost { background: var(--almost-soft); color: var(--almost); }
.chip-star { background: var(--gold-soft); color: #8A5C00; }
.chip-star .ico { color: var(--gold); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--sky-deep); color: var(--muted); }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-open { background: var(--teal-soft); color: var(--teal-ink); }

/* ---------- Боташ ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.hero-meta { display: grid; gap: 8px; align-content: center; }
.botash-wrap { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.botash { width: 112px; height: 108px; }
.botash-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.botash { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.botash[data-mood="cheer"] { animation: hop .7s ease 2; }
.botash .b-waves { animation: waves 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes hop { 30% { transform: translateY(-10px) rotate(-3deg); } 60% { transform: translateY(0); } }
@keyframes waves { 50% { opacity: .35; } }
.bubble { position: relative; background: var(--teal-soft); border-radius: 20px; padding: 14px 52px 14px 16px; min-height: 64px; display: flex; align-items: center; }
.bubble::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 0; border-right-color: var(--teal-soft); }
.bubble-text { font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.bubble-text.is-new { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
.bubble-play { position: absolute; right: 8px; top: 50%; margin-top: -19px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--felt); color: var(--teal-ink); cursor: pointer; display: grid; place-items: center; }
.bubble-play[hidden] { display: none; }

.level-progress { display: grid; gap: 6px; margin-top: 4px; }
.bar { height: 14px; border-radius: 999px; background: var(--sky-deep); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #19A3A8); border-radius: 999px; transition: width .5s ease; }
.level-progress .ico { color: var(--good); }

/* ---------- Қойындылар және сахна ---------- */
.ex-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ex-tab {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px;
  text-align: left; background: var(--felt); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; cursor: pointer; min-height: 64px;
}
.ex-tab .tab-n { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-deep); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.ex-tab .tab-t { font-weight: 800; line-height: 1.2; }
.ex-tab .tab-k { color: var(--teal); grid-row: span 2; }
.ex-tab .tab-count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ex-tab.is-on { border-color: var(--teal); background: #F4FBFA; box-shadow: inset 0 0 0 1.5px var(--teal); }
.ex-tab.is-on .tab-n { background: var(--teal); color: #fff; }
.stage { display: grid; gap: 16px; min-height: 360px; }
.stage-head { display: grid; gap: 4px; }
.stage-body { display: grid; gap: 16px; }

.mic-notice { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--almost-soft); border-radius: var(--r-md); padding: 12px 14px; }
.mic-notice .mn-ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--almost); }
.mic-notice p { font-size: .9rem; color: #6A4A12; font-weight: 600; }

/* ---------- «Тыңда – Айт» блогы ---------- */
.say { display: grid; gap: 14px; justify-items: center; text-align: center; }
.say-card { width: 100%; max-width: 560px; min-height: 170px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, #F7FBFA, #EEF6F5); border: 1.5px dashed #BFD8D6; }
.say-emoji { font-size: clamp(3.2rem, 2.4rem + 4vw, 4.6rem); line-height: 1.1; }
.say-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 3.4vw, 3.2rem); line-height: 1.15; letter-spacing: .01em; overflow-wrap: anywhere; }
.say-sub { color: var(--muted); font-size: 1.05rem; letter-spacing: .06em; }
.say-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.say-result { display: grid; gap: 10px; justify-items: center; width: 100%; }
.say-result[hidden], .say-manual[hidden], .adult-hint[hidden] { display: none; }
.say-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.say-manual { width: 100%; max-width: 620px; display: grid; gap: 10px; justify-items: center; background: var(--sky); border-radius: var(--r-md); padding: 12px; }
.manual-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: .95rem; }
.adult-hint { display: flex; gap: 8px; align-items: center; background: var(--gold-soft); border-radius: var(--r-sm); padding: 8px 14px; font-size: .95rem; }
.say-foot { display: flex; justify-content: center; }
.how-btn .ico { color: var(--teal); }

/* ---------- Терезелер ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(18, 40, 46, .45); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fadein .2s ease; }
.modal { background: var(--felt); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: 20px; display: grid; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 60; font-weight: 700; box-shadow: var(--shadow); transition: opacity .4s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.out { opacity: 0; }
.input { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; background: #fff; }
.input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }

/* ---------- Дыбыс таңдау ---------- */
.picker { display: grid; gap: 14px; }
.picker-group { display: grid; gap: 8px; }
.picker-group h3 { font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 800; }
.picker-row, .sound-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sound-tile { display: grid; justify-items: center; gap: 2px; padding: 10px 6px 12px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.sound-tile:hover { border-color: var(--teal); }
.sound-tile.is-on { border-color: var(--teal); background: #F0F9F8; box-shadow: inset 0 0 0 2px var(--teal); }
.st-letter { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--teal-ink); }
.st-emoji { font-size: 1.5rem; line-height: 1.2; }
.st-sing { font-size: .82rem; color: var(--muted); font-weight: 800; }

/* ---------- Артикуляция картасы ---------- */
.artic { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.artic-fig { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; }
.artic-svg { display: block; width: 100%; height: auto; }
.ar-lab { font: 800 8.5px var(--font-body); fill: #6B5A55; }
.ar-lab.muted { fill: #8A9AA2; }
.ar-lab-in { fill: #fff; }
.artic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.artic-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--sky); border-radius: var(--r-sm); padding: 10px 12px; }
.artic-list label { display: grid; gap: 1px; cursor: default; }
.artic-list input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--good); flex: none; }
.artic-list input + label { cursor: pointer; }
.artic-list b { color: var(--teal-ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.artic .note { grid-column: 1 / -1; }

/* ---------- Киіз үй ---------- */
.yurt-svg { width: 100%; height: auto; display: block; }
.yurt-svg .y-wall { fill: #F6E6CF; stroke: #A86F38; stroke-width: 2.4; }
.yurt-svg .y-lat line { stroke: #B87A3E; stroke-width: 2; }
.yurt-svg .y-uyq path { stroke: #A86F38; stroke-width: 2.6; fill: none; stroke-linecap: round; }
.yurt-svg .y-felt { fill: #FBF5EA; stroke: #CDB99A; stroke-width: 1.5; }
.yurt-svg .y-band { stroke: #C8553D; stroke-width: 6; }
.yurt-svg .y-zig { stroke: #FFF1CF; stroke-width: 1.4; fill: none; }
.yurt-svg .y-crown { fill: #F6E6CF; stroke: #A86F38; stroke-width: 3.4; }
.yurt-svg .y-crown-bars { stroke: #A86F38; stroke-width: 2.2; fill: none; }
.yurt-svg .y-door { fill: #C8553D; stroke: #8E3524; stroke-width: 2; }
.yurt-svg .y-door-orn { fill: #E8A317; }
.yurt-svg .y-door-line { stroke: #F3C47A; stroke-width: 1.6; }
.yurt-svg .ghost * { fill: none !important; stroke: #97B5BA !important; stroke-width: 1.4 !important; stroke-dasharray: 4 4; }
.yurt-svg .ghost .y-lat line { stroke-opacity: .35; }
.yurt-svg [data-part="kiiz"].ghost * { stroke-opacity: .7; }

/* ---------- Жабық деңгей, мереке, үзіліс ---------- */
.locked { display: grid; justify-items: center; text-align: center; gap: 12px; padding-block: 34px; }
.locked-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; font-size: 1.6rem; }
.celebrate { display: grid; gap: 10px; justify-items: center; text-align: center; }
.yurt-box { width: min(320px, 100%); }
.break-body { display: grid; justify-items: center; gap: 10px; text-align: center; }
.break-bot { width: 120px; }
.breath { width: 140px; height: 140px; display: grid; place-items: center; }
.breath span { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #7FD0CF, var(--teal)); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.9); } }
.breath-label { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--teal-ink); }

/* ---------- Сегменттелген таңдау ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--sky); padding: 5px; border-radius: 999px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 800; cursor: pointer; color: var(--muted); min-height: 40px; }
.seg button.is-on { background: var(--felt); color: var(--teal-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg button[disabled] { opacity: .45; cursor: default; }

/* ---------- Бейімделу ---------- */
@media (max-width: 860px) {
  .ex-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .artic { grid-template-columns: 1fr; }
  .teacher-link span { display: none; }
  .top-title { font-size: .95rem; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 12px 12px 40px; gap: 14px; }
  .topbar-in { padding: 6px 12px; gap: 8px; }
  .brand-text small { display: none; }
  .back span { display: none; }
  .sound-chip .sc-label { display: none; }
  .botash-wrap { grid-template-columns: 84px 1fr; }
  .botash { width: 84px; height: 82px; }
  .ex-tab { padding: 8px 10px; min-height: 56px; }
  .ex-tab .tab-k { display: none; }
  .btn { min-height: 48px; padding: 9px 16px; }
  .btn-mic { min-height: 58px; padding: 10px 24px; }
  .mic-notice { grid-template-columns: auto 1fr; }
  .mic-notice .btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Басты бет ---------- */
.home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home-hero h1 { max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { display: flex; align-items: center; gap: 10px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-grid; place-items: center; font-family: var(--font-display); font-size: 1rem; flex: none; }
.meter { position: relative; height: 22px; border-radius: 999px; background: var(--sky-deep); overflow: hidden; margin: 12px 0 8px; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #5BBF9A, var(--teal)); border-radius: 999px; transition: width .08s linear; }
.meter-noise { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--gold); border-radius: 2px; left: 0; display: none; }
.meter-legend { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.steps { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); background: var(--sky); }
.steps .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--muted); border: 1.5px solid var(--line); font-size: .8rem; font-weight: 800; }
.steps li[data-s="run"] .st { border-color: var(--teal); color: var(--teal); animation: pulse 1s ease-in-out infinite; }
.steps li[data-s="ok"] .st { background: var(--good); border-color: var(--good); color: #fff; }
.steps li[data-s="fail"] .st { background: var(--almost-soft); border-color: var(--almost); color: var(--almost); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--teal-soft); } }
.mic-status { min-height: 1.5em; font-size: .95rem; color: var(--muted); }
.sound-groups { display: grid; gap: 14px; }
.sound-groups h3 { font-size: .85rem; color: var(--muted); font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.map { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
.map-yurt { background: linear-gradient(180deg, #F6FBFA, #E8F3F1); border-radius: var(--r-md); padding: 12px; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.path a, .path .lvl { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; }
.path a:hover { border-color: var(--teal); }
.path .lv-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-deep); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.path .is-done .lv-n { background: var(--good); color: #fff; }
.path .is-open .lv-n { background: var(--teal); color: #fff; }
.path .is-locked { opacity: .78; }
.path .lv-t { display: grid; gap: 4px; min-width: 0; }
.path .lv-t b { font-size: 1.02rem; }
.path .lv-t small { color: var(--muted); font-weight: 700; }
.path .bar { height: 8px; }
.today { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.today b { font-variant-numeric: tabular-nums; }
.adult-list { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink); }
.adult-list li::marker { color: var(--teal); }
@media (max-width: 760px) {
  .home-hero, .home-grid, .map { grid-template-columns: 1fr; }
  .map-yurt { max-width: 420px; justify-self: center; width: 100%; }
}
.home-hero .botash-wrap { grid-template-columns: 150px 1fr; }
.home-hero .botash { width: 150px; height: 146px; }
@media (max-width: 480px) {
  .home-hero .botash-wrap { grid-template-columns: 96px 1fr; }
  .home-hero .botash { width: 96px; height: 94px; }
}

/* ---------- Дайындық беті ---------- */
.lake { position: relative; height: 170px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #CFEFF2 0%, #BFE6EA 55%, #8FD0D6 56%, #6DBFC8 100%); }
.lake .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .25) 22px 30px); opacity: .7; }
.lake .finish { position: absolute; right: 18px; bottom: 44%; font-size: 2.2rem; }
.lake .boat { position: absolute; left: 12px; bottom: 36%; font-size: 3.4rem; transition: left .12s linear; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .15)); }
.lake .wind { position: absolute; left: 0; top: 30px; width: 90px; height: 50px; opacity: 0; transition: opacity .2s ease, left .12s linear; }
.lake .wind i { position: absolute; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .9); animation: wind .7s linear infinite; }
.lake.is-blowing .wind { opacity: 1; }
@keyframes wind { from { transform: translateX(-20px); opacity: 0; } 50% { opacity: 1; } to { transform: translateX(30px); opacity: 0; } }
.lake .lake-progress { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .55); overflow: hidden; }
.lake .lake-progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .12s linear; }
.center { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.gym { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.gym-face { position: relative; background: linear-gradient(180deg, #F7FBFA, #EAF4F3); border-radius: var(--r-lg); padding: 10px; display: grid; place-items: center; }
.face { width: min(260px, 100%); height: auto; display: block; }
.face .tongue { transform-box: fill-box; transform-origin: 50% 0%; }
.face[data-mode="clock"] .tongue { animation: tclock 2.4s ease-in-out infinite; }
.face[data-mode="swing"] .tongue { animation: tswing 2s ease-in-out infinite; }
.face[data-mode="horse"] .tongue { animation: thorse .9s ease-in-out infinite; }
.face[data-mode="horse"] .taq { animation: taq .9s ease-in-out infinite; }
@keyframes tclock { 0%, 100% { transform: translateX(-24px) rotate(18deg); } 50% { transform: translateX(24px) rotate(-18deg); } }
@keyframes tswing { 0%, 100% { transform: translateY(-15px); } 50% { transform: translateY(9px); } }
@keyframes thorse { 0%, 45% { transform: translateY(-12px); } 55%, 100% { transform: translateY(6px); } }
@keyframes taq { 0%, 50% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; } }
.mirror { position: absolute; right: 12px; bottom: 12px; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; transform: scaleX(-1); border: 4px solid #fff; box-shadow: var(--shadow); background: #CFE3E2; }
.mirror[hidden] { display: none; }
.gym-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gym-list button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.gym-list button.is-on { border-color: var(--teal); background: #F0F9F8; box-shadow: inset 0 0 0 1.5px var(--teal); }
.gym-list button.is-done .ico { color: var(--good); }
.gym-text { font-size: 1.08rem; }
.gym-count { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--teal-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.gym-count small { font-size: 1.2rem; color: var(--muted); }
.catch-target { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: center; background: var(--sky); border-radius: var(--r-md); padding: 12px; }
.catch-target .big-letter { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--teal-ink); width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.slots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin: 0 auto; width: 100%; }
.slot { aspect-ratio: 1; border-radius: 50%; background: var(--sky-deep); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--muted); border: 3px solid transparent; transition: transform .15s ease, background-color .2s ease; }
.slot.is-now { border-color: var(--teal); background: #fff; transform: scale(1.12); }
.slot.is-hit { background: var(--good); color: #fff; }
.slot.is-miss { background: var(--gold-soft); color: #8A5C00; border-color: var(--gold); }
.slot.is-false { background: #EEF1F2; color: var(--muted); }
.slot.is-plain { background: #F4F7F7; color: #9AA8AF; }
.catch-btn { min-height: 92px; min-width: 220px; font-size: 1.35rem; border-radius: 28px; }
.catch-btn.flash { animation: bump .4s ease; }
.balloon-stage { position: relative; height: 230px; display: grid; place-items: center; background: linear-gradient(180deg, #F3FAF9, #E3F1EF); border-radius: var(--r-lg); overflow: hidden; }
.balloon-stage svg { width: 230px; height: 230px; }
.balloon-stage .bl { transform-box: fill-box; transform-origin: 50% 60%; transition: transform .1s linear; }
.loud-steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.loud-steps span { padding: 6px 12px; border-radius: 999px; background: var(--sky); font-weight: 800; color: var(--muted); }
.loud-steps span.is-on { background: var(--teal); color: #fff; }
.loud-steps span.is-done { background: var(--good-soft); color: var(--good); }
@media (max-width: 720px) {
  .gym { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 300px; }
}

/* ---------- Дыбыс беті ---------- */
.img-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, #F2FAF9, #FFF7E3); border-radius: var(--r-lg); padding: 16px 18px; }
.img-card .img-emoji { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 3.2rem; box-shadow: var(--shadow); }
.img-card .img-text { font-size: 1.15rem; }
.img-card .img-sing { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--teal-ink); letter-spacing: .04em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gallery button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-md); cursor: pointer; }
.gallery button:hover { border-color: var(--teal); }
.gallery .g-l { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--teal-ink); }
.gallery .g-e { font-size: 1.4rem; }
.gallery .g-t { font-size: .74rem; color: var(--muted); line-height: 1.15; text-align: center; }
.sub-h { font-size: 1rem; font-family: var(--font-body); font-weight: 800; color: var(--muted); }
.grow { position: relative; width: 100%; max-width: 560px; height: 210px; border-radius: var(--r-lg); background: linear-gradient(180deg, #F3FAF9, #E3F1EF); display: grid; place-items: center; overflow: hidden; }
.grow .g-emoji { font-size: 2.6rem; position: absolute; left: 16px; top: 12px; }
.grow svg { width: 210px; height: 210px; }
.grow .g-ball { transform-box: fill-box; transform-origin: 50% 70%; transition: transform .12s linear; }
.grow .g-time { position: absolute; right: 16px; top: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.grow .g-goal { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.grow .g-goal span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .1s linear; }
.grow .g-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--almost-soft); color: var(--almost); font-weight: 800; font-size: .88rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.lamps { display: flex; gap: 14px; justify-content: center; }
.lamps span { width: 54px; height: 54px; border-radius: 50%; background: var(--sky-deep); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--muted); transition: background-color .15s ease, transform .15s ease; }
.lamps span.on { background: var(--gold); color: #3A2600; transform: scale(1.08); }
.spectro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; }
.spectro figure { margin: 0; display: grid; gap: 6px; }
.spectro figcaption { font-size: .88rem; font-weight: 800; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.spectro canvas { width: 100%; height: 160px; border-radius: var(--r-md); background: #F1F8F7; display: block; }
.spectro .live { grid-column: 1 / -1; }
.spectro .live canvas { height: 130px; }
.axis-note { font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) {
  .img-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .spectro { grid-template-columns: 1fr; }
}

/* ---------- Буын беті ---------- */
.tier-row { display: grid; gap: 8px; justify-items: start; }
.tier-row .note { font-size: .88rem; }
.train { display: flex; align-items: flex-end; gap: 6px; justify-content: center; flex-wrap: nowrap; overflow-x: auto; padding: 6px 4px 14px; position: relative; }
.train::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #A9C6C3 0 14px, transparent 14px 22px); }
.train .loco { font-size: 3rem; line-height: 1; transform: scaleX(-1); }
.train .car { min-width: 72px; height: 58px; border-radius: 12px 12px 8px 8px; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; position: relative; color: var(--muted); transition: background-color .25s ease, transform .25s ease; }
.train .car::before, .train .car::after { content: ""; position: absolute; bottom: -9px; width: 14px; height: 14px; border-radius: 50%; background: #5B6A76; }
.train .car::before { left: 10px; } .train .car::after { right: 10px; }
.train .car.is-now { border-color: var(--teal); color: var(--ink); transform: translateY(-4px); box-shadow: 0 6px 14px rgba(14, 124, 134, .18); }
.train .car.is-done { background: var(--teal); border-color: var(--teal); color: #fff; }
.train.go { animation: depart 1.4s ease-in forwards; }
@keyframes depart { to { transform: translateX(110%); opacity: 0; } }
.waves2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; max-width: 640px; }
.waves2 figure { margin: 0; display: grid; gap: 6px; }
.waves2 figcaption { font-size: .88rem; font-weight: 800; color: var(--muted); }
.waves2 canvas { width: 100%; height: 90px; background: #F1F8F7; border-radius: var(--r-md); display: block; }
.drums { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.drum { width: 78px; display: grid; justify-items: center; gap: 4px; }
.drum .dr { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFF7E6, #F3D9A6); border: 4px solid #C8553D; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .06); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; transition: transform .1s ease, background .1s ease; }
.drum.hit .dr { transform: scale(1.12); background: radial-gradient(circle at 50% 40%, #FFE6A8, var(--gold)); }
.pick2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 520px; margin: 0 auto; }
.pick2 button { min-height: 130px; border-radius: var(--r-lg); border: 2px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; display: grid; place-items: center; gap: 4px; transition: border-color .15s ease, transform .1s ease; }
.pick2 button:hover { border-color: var(--teal); }
.pick2 button .p-e { font-size: 3rem; line-height: 1; }
.pick2 button .p-w { font-size: 1.15rem; font-family: var(--font-body); font-weight: 800; color: var(--muted); }
.pick2 button.ok { border-color: var(--good); background: var(--good-soft); }
.pick2 button.no { border-color: var(--gold); background: var(--gold-soft); }
.adult-reveal { display: grid; justify-items: center; gap: 6px; }
.adult-reveal .secret { font-weight: 800; background: var(--gold-soft); border-radius: var(--r-sm); padding: 6px 12px; }
.rounds { display: flex; gap: 6px; justify-content: center; }
.rounds i { width: 14px; height: 14px; border-radius: 50%; background: var(--sky-deep); }
.rounds i.ok { background: var(--good); }
.rounds i.no { background: var(--gold); }
@media (max-width: 560px) {
  .train .car { min-width: 58px; height: 50px; font-size: 1.1rem; }
  .train .loco { font-size: 2.4rem; }
  .waves2 { grid-template-columns: 1fr; }
  .pick2 button { min-height: 110px; font-size: 2.1rem; }
}

/* ---------- Сөз беті ---------- */
.pos-row { display: grid; gap: 8px; justify-items: start; }
.house { width: min(440px, 100%); margin: 0 auto; display: grid; }
.house .roof { height: 74px; background: linear-gradient(180deg, #D9573F, #B9432D); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin: 0 -14px; }
.house .house-body { background: #F6E6CF; border: 3px solid #A86F38; border-top: 0; border-radius: 0 0 14px 14px; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.house .win { display: grid; gap: 6px; justify-items: center; }
.house .win button { width: 100%; aspect-ratio: 1; border-radius: 12px; background: #CFEFF2; border: 3px solid #A86F38; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--teal-ink); cursor: pointer; box-shadow: inset 0 -8px 0 rgba(255, 255, 255, .5); }
.house .win button:hover { background: #BFE6EA; }
.house .win button.ok { background: var(--good); color: #fff; border-color: #17663F; }
.house .win button.no { background: var(--gold-soft); }
.house .win span { font-size: .85rem; font-weight: 800; color: var(--muted); }
.word-card { display: grid; justify-items: center; gap: 4px; padding: 10px; }
.word-card .wc-e { font-size: 4rem; line-height: 1.1; }
.word-card .wc-w { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: .02em; }
.word-card .wc-w mark { background: var(--gold-soft); color: var(--teal-ink); border-radius: 6px; padding: 0 2px; }
.riddle { background: var(--gold-soft); border-radius: var(--r-lg); padding: 16px 18px; font-size: 1.15rem; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.riddle p { font-weight: 700; }
.pick3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }
.pick3 button { min-height: 120px; border-radius: var(--r-lg); border: 2px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; gap: 4px; font-size: 3.2rem; line-height: 1; }
.pick3 button small { font-size: 1rem; font-weight: 800; color: var(--muted); }
.pick3 button:hover { border-color: var(--teal); }
.pick3 button.ok { border-color: var(--good); background: var(--good-soft); }
.pick3 button.no { border-color: var(--gold); background: var(--gold-soft); }
.q-title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
@media (max-width: 560px) {
  .house .win button { font-size: 1.4rem; }
  .pick3 button { min-height: 96px; font-size: 2.6rem; }
}

/* ---------- Сөз тіркесі беті ---------- */
.count-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 64px; align-items: center; }
.count-row span { font-size: 2.6rem; line-height: 1; animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.count-ctrl { display: flex; gap: 10px; justify-content: center; align-items: center; }
.count-ctrl .num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; min-width: 7ch; text-align: center; color: var(--teal-ink); }
.obj-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.obj-row button { width: 64px; height: 64px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-size: 2rem; cursor: pointer; }
.obj-row button.is-on { border-color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); background: #F0F9F8; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.colors button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; min-height: 44px; }
.colors button i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .15); }
.colors button.is-on { border-color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.swatch-card { display: grid; justify-items: center; gap: 6px; }
.swatch-card .sw { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 3.6rem; border: 1.5px solid rgba(0, 0, 0, .08); }
.swatch-card .sw-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.poss-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 620px; margin: 0 auto; }
.poss-card { border-radius: var(--r-lg); border: 2px solid var(--line); background: #fff; padding: 14px; display: grid; justify-items: center; gap: 4px; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.poss-card .pc-who { font-size: 2.2rem; line-height: 1; }
.poss-card .pc-lab { font-size: .85rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.poss-card .pc-t { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.poss-card.is-now { border-color: var(--teal); background: #F0F9F8; box-shadow: inset 0 0 0 1.5px var(--teal); }
.poss-card.is-done { border-color: var(--good); background: var(--good-soft); }
.mountain { position: relative; width: 100%; max-width: 560px; height: 120px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #DDF0F4, #F4FAF8); }
.mountain svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.mountain .echo { position: absolute; right: 18px; top: 16px; font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); display: grid; gap: 2px; text-align: right; }
.mountain .echo span:nth-child(2) { opacity: .55; font-size: .92em; }
.mountain .echo span:nth-child(3) { opacity: .3; font-size: .84em; }
.mountain .echo.anim span { animation: echo 1.8s ease both; }
.mountain .echo.anim span:nth-child(2) { animation-delay: .4s; }
.mountain .echo.anim span:nth-child(3) { animation-delay: .8s; }
@keyframes echo { from { opacity: 0; transform: translateX(10px); } }
@media (max-width: 560px) { .poss-cards { grid-template-columns: 1fr; } }

/* ---------- Сөйлем беті ---------- */
.sentence { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem); text-align: center; line-height: 1.5; max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.blank { display: inline-block; min-width: 4.5ch; border-bottom: 4px dashed var(--teal); color: var(--teal-ink); padding: 0 6px; }
.blank.filled { border-bottom-style: solid; border-color: var(--good); color: var(--good); }
.pic-big { font-size: clamp(3.6rem, 2.6rem + 5vw, 5.4rem); text-align: center; line-height: 1.1; letter-spacing: .1em; }
.karaoke { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.05rem + 1.5vw, 1.9rem); text-align: center; line-height: 1.7; max-width: 32ch; margin: 0 auto; }
.karaoke span { padding: 2px 4px; border-radius: 8px; transition: background-color .15s ease, color .15s ease; }
.karaoke span.on { background: var(--gold); color: #3A2600; }
.karaoke span.done { color: var(--teal); }
.tempo { text-align: center; font-size: .92rem; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.strip .panel-s { border-radius: var(--r-md); border: 2px solid var(--line); background: #fff; padding: 10px; display: grid; gap: 6px; justify-items: center; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.strip .panel-s .ps-e { font-size: 2.2rem; line-height: 1.1; }
.strip .panel-s .ps-t { font-size: .88rem; font-weight: 700; color: var(--muted); }
.strip .panel-s.is-now { border-color: var(--teal); background: #F0F9F8; }
.strip .panel-s.is-now .ps-t { color: var(--ink); }
.strip .panel-s.is-done { border-color: var(--good); background: var(--good-soft); }
.story-title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
@media (max-width: 640px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.say-compact .say-card { min-height: 0; padding: 14px 18px; }
.say-compact .say-big { font-size: clamp(1.35rem, 1.05rem + 1.6vw, 2.05rem); line-height: 1.3; }
.say-compact .say-emoji { font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); }
.say-card .karaoke { margin: 0; }

/* ---------- Педагог бөлмесі ---------- */
.ped-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ped-grid .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lab { font-weight: 800; font-size: .92rem; color: var(--muted); }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; cursor: pointer; font-weight: 800; background: #fff; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.select { min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; background: #fff; font-weight: 700; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: var(--sky-deep); position: relative; cursor: pointer; transition: background-color .2s ease; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.switch input:checked { background: var(--teal); }
.switch input:checked::after { transform: translateX(22px); }
.pin-gate { max-width: 420px; margin: 40px auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.ref-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; background: #fff; }
.ref-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.ref-list li:nth-child(odd) { background: #F7FBFA; }
.ref-list .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-deep); color: var(--muted); }
.ref-list .st.has { background: var(--good); color: #fff; }
.ref-list .t { font-weight: 700; overflow-wrap: anywhere; }
.ref-list .acts { display: flex; gap: 6px; }
.ref-list .acts .btn { min-height: 36px; padding: 5px 10px; font-size: .85rem; }
.ref-list .rec-on { background: var(--coral) !important; color: #fff !important; border-color: var(--coral) !important; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl td .ico { color: var(--good); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .lbl { font: 700 10px var(--font-body); fill: var(--muted); }
.legend { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 300px; overflow: auto; font-size: .9rem; }
.log li { display: grid; grid-template-columns: 104px 1fr auto; gap: 8px; padding: 5px 8px; border-radius: 8px; }
.log li:nth-child(odd) { background: #F7FBFA; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: plan; }
.plan li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; background: var(--sky); border-radius: var(--r-sm); padding: 10px 12px; }
.plan .mins { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); }
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; }
.report h3 { font-size: 1.15rem; }
.calib-vals { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px) { .ped-grid { grid-template-columns: minmax(0, 1fr); } }
@media print {
  body * { visibility: hidden; }
  .report, .report * { visibility: visible; }
  .report { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}
