/* Тренажёр чувств /poprobovat, версия 2 — ядро (assets/try/proba.js) и механики (assets/try/m/*.js).
   Главные экраны — компьютер 1440×900 и планшет 820×1180, телефон 390×844 обязателен. */
.proba-sec{
  --pb-acc:#2F6B53; --pb-acc-hi:#3C835F; --pb-soft:#E3F4EA; --pb-glow:rgba(159,227,196,.45); --pb-warm:rgba(242,189,147,.28);
  --pb-ink:#1E2C26; --pb-ink2:#4C5B53; --pb-card:#fff; --pb-ok:#3BA776; --pb-oksoft:#E4F6EC; --pb-try:#E9A86A; --pb-trysoft:#FFF3E6;
  --pb-sh:0 4px 0 0 rgba(30,44,38,.06),0 14px 26px -18px rgba(30,44,38,.45);
  --pb-spring:cubic-bezier(.34,1.56,.64,1);
  background:
    radial-gradient(110% 60% at 90% 0%, var(--pb-glow), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, var(--pb-warm), transparent 60%),
    var(--ivory-2, #FBF9F4);
  padding-block:calc(var(--nav-h,68px) + clamp(16px,3vw,36px)) clamp(48px,7vw,96px);
  transition:background .5s ease;
}
.proba-sec:has(.proba[data-band="6-8"]){ --pb-acc:#2B7A57; --pb-acc-hi:#36956A; --pb-soft:#DFF5E8; --pb-glow:rgba(140,226,184,.55); --pb-warm:rgba(255,190,130,.38); }
.proba-sec:has(.proba[data-band="9-11"]){ --pb-acc:#2E5E9E; --pb-acc-hi:#3A72BC; --pb-soft:#E3ECF9; --pb-glow:rgba(150,186,240,.42); --pb-warm:rgba(196,178,240,.28); }
.proba-sec:has(.proba[data-band="12-14"]){ --pb-acc:#4A3A96; --pb-acc-hi:#5A4AAE; --pb-soft:#ECE9F6; --pb-glow:rgba(176,164,226,.3); --pb-warm:rgba(200,206,220,.3); }
.proba-head{ max-width:640px; margin:0 auto 18px; text-align:center; }
.proba-head h1{ margin:.25em 0 .3em; font-size:clamp(1.7rem,5.4vw,2.6rem); }
.proba-head .lead{ margin:0 auto; font-size:1rem; }

.proba{ max-width:640px; margin:0 auto; position:relative; color:var(--pb-ink); font-size:1.05rem; scroll-margin-top:calc(var(--nav-h,68px) + 10px); }
.proba *{ box-sizing:border-box; }
.proba[data-band="6-8"]{ font-size:1.1rem; }
.proba button{ -webkit-tap-highlight-color:transparent; }
.proba :focus-visible{ outline:3px solid var(--pb-acc); outline-offset:3px; }
.pb-screen{ background:rgba(255,255,255,.74); border:1px solid rgba(255,255,255,.95); border-radius:28px; box-shadow:0 30px 60px -36px rgba(23,48,41,.45); padding:16px; position:relative; overflow:clip; }
.pb-in{ animation:pbIn .32s cubic-bezier(.2,.8,.2,1) both; }
.pb-out{ animation:pbOut .22s ease both; }
@keyframes pbIn{ from{ opacity:0; transform:translateY(10px) scale(.99); } to{ opacity:1; transform:none; } }
@keyframes pbOut{ to{ opacity:0; transform:translateX(-14px); } }
.pb-pop{ animation:pbPop .42s var(--pb-spring) both; }
@keyframes pbPop{ from{ opacity:0; transform:scale(.86); } to{ opacity:1; transform:none; } }
.pb-ico{ width:1.25em; height:1.25em; flex:none; display:block; }
.pb-ghost{ appearance:none; border:2px solid rgba(30,44,38,.12); background:#fff; font:inherit; font-weight:800; color:var(--pb-ink); border-radius:18px; min-height:52px; padding:0 20px; cursor:pointer; }
.pb-ghost:hover{ border-color:var(--pb-acc); }

/* Корешок, реплика, приветствие */
.pb-kpose{ display:block; height:auto; }
.pb-bubble{ margin:0; background:#fff; border-radius:22px 22px 22px 6px; padding:14px 16px; box-shadow:0 10px 24px -16px rgba(23,48,41,.4); line-height:1.4; font-weight:700; }
.pb-bubble--big{ font-size:1.16em; padding:18px 20px; border-radius:24px; max-width:520px; margin:0 auto; }
.pb-greet{ display:flex; gap:14px; align-items:center; }
.pb-greet__k{ width:92px; flex:none; animation:pbFloat 4s ease-in-out infinite; }
.pb-greet__k--s{ width:76px; }
.pb-greet__t{ min-width:0; flex:1; }
@keyframes pbFloat{ 50%{ transform:translateY(-7px) rotate(-2deg); } }

/* Возраст */
.pb-age__q{ font-size:1.5rem; margin:14px 0 0; }
.pb-agegrid{ display:grid; gap:10px; margin-top:14px; }
.pb-agecard{ border-radius:22px; padding:12px 12px 14px; }
.pb-agecard[data-band="6-8"]{ background:linear-gradient(150deg,#E6F8EE,#C9EEDA 70%,#FFE7CF); }
.pb-agecard[data-band="9-11"]{ background:linear-gradient(150deg,#EAF1FC,#D6E3F7 70%,#E7E0FA); }
.pb-agecard[data-band="12-14"]{ background:linear-gradient(150deg,#F2F1F7,#E3E0F0); }
.pb-agecard__t{ margin:0 0 8px 4px; font-weight:800; font-size:.95rem; }
.pb-agecard__row{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.pb-agebtn{ appearance:none; border:0; cursor:pointer; font:inherit; font-size:1.9rem; font-weight:800; color:var(--pb-ink); background:#fff; border-radius:18px; min-height:72px; box-shadow:0 6px 0 0 rgba(30,44,38,.08),0 14px 24px -18px rgba(30,44,38,.5); transition:transform .18s var(--pb-spring), box-shadow .15s ease; }
.pb-agebtn:hover{ transform:translateY(-3px); }
.pb-agebtn:active{ transform:translateY(3px); box-shadow:0 2px 0 0 rgba(30,44,38,.08); }
.pb-small{ font-size:.84rem; color:var(--pb-ink2); text-align:center; margin:14px 0 0; }

/* Вступление и возвращение */
.pb-intro{ text-align:center; padding:28px 16px 22px; }
.pb-kor--big{ width:150px; margin:0 auto 14px; animation:pbFloat 4s ease-in-out infinite; }
.pb-introbar{ display:flex; flex-direction:column; gap:10px; max-width:420px; margin:20px auto 0; }
.pb-sprout--big{ display:block; width:100%; max-width:420px; height:auto; margin:16px auto 0; }

/* ===== Экран задания ===== */
.pb-task{ display:flex; flex-direction:column; gap:8px; height:max(600px, calc(100svh - var(--nav-h,68px) - 20px)); }
.pb-head{ display:flex; align-items:center; gap:8px; flex:none; }
.pb-chip{ appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid rgba(30,44,38,.1); background:#fff; color:var(--pb-ink); font:inherit; font-size:.86rem; font-weight:800; border-radius:999px; padding:0 14px; min-height:44px; min-width:44px; cursor:pointer; white-space:nowrap; transition:transform .15s ease, border-color .2s; }
.pb-chip:hover{ border-color:var(--pb-acc); }
.pb-chip:active{ transform:scale(.95); }
.pb-chip:disabled{ opacity:.45; cursor:default; }
.pb-help{ color:var(--pb-acc); }
.pb-help .pb-ico{ width:20px; height:20px; }
.pb-snd{ padding:0; width:44px; color:var(--pb-acc); }
.pb-snd .pb-ico{ width:22px; height:22px; }
.pb-voice{ color:var(--pb-acc); padding:0 12px; }
.pb-voice .pb-ico{ width:22px; height:22px; }
.pb-voice[aria-pressed="false"]{ color:var(--pb-ink2); }
.pb-voicebtn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; color:var(--pb-acc); }
.pb-voicebtn .pb-ico{ width:22px; height:22px; }
.pb-voicebtn[aria-pressed="false"]{ color:var(--pb-ink2); }
.pb-qrow{ display:flex; align-items:flex-start; gap:10px; flex:none; }
.pb-qrow .pb-q{ flex:1; min-width:0; }
.pb-rep{ appearance:none; flex:none; width:44px; height:44px; margin-top:-4px; border-radius:50%; border:1px solid rgba(30,44,38,.1); background:#fff; color:var(--pb-acc); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:var(--pb-sh); transition:transform .15s ease, border-color .2s; }
.pb-rep:hover{ border-color:var(--pb-acc); }
.pb-rep:active{ transform:scale(.94); }
.pb-rep .pb-ico{ width:22px; height:22px; }
.pb-rep[hidden]{ display:none; }
.pb-sprout{ flex:1; min-width:0; height:46px; overflow:visible; }
.pb-sprout__stem{ fill:none; stroke:#8FB79A; stroke-width:3; stroke-linecap:round; }
.pb-leaf{ fill:#E3EAE5; stroke:#C9D6CD; stroke-width:1; transform-box:fill-box; transform-origin:0 50%; transform:scale(.45); transition:transform .6s var(--pb-spring), fill .4s ease; }
.pb-leaf.is-on{ fill:#4FB38C; stroke:#3B9874; transform:scale(1); }
.pb-leaf.is-soft{ fill:#9ED6B8; stroke:#7FC3A0; }
.pb-leaf.is-bud{ fill:#CFE9D9; stroke:var(--pb-acc); stroke-width:1.5; animation:pbBud 1.6s ease-in-out infinite; }
.pb-leaf__vein{ stroke:transparent; stroke-width:1; fill:none; }
.pb-leaf__vein.is-on{ stroke:rgba(255,255,255,.7); }
@keyframes pbBud{ 50%{ transform:scale(.62); } }

.proba [tabindex="-1"]:focus{ outline:none; }
.pb-q{ font-family:"Manrope",system-ui,sans-serif; font-size:1.18em; line-height:1.3; font-weight:800; margin:2px 0 0; text-wrap:balance; flex:none; }
.proba[data-band="12-14"] .pb-q{ font-weight:700; }
.pb-stage{ position:relative; flex:1; min-height:0; display:flex; flex-direction:column; gap:12px; }

.pb-foot{ flex:none; display:grid; grid-template-columns:auto 1fr; grid-template-areas:"k say" "btn btn"; align-items:center; gap:8px 10px; position:sticky; bottom:0; z-index:5; margin:0 -16px -16px; padding:8px 16px calc(12px + env(safe-area-inset-bottom)); background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 24%); }
.pb-kwrap{ grid-area:k; width:62px; height:58px; animation:pbSway 3.6s ease-in-out infinite; transform-origin:50% 100%; }
.pb-kwrap.is-bounce .pb-k{ animation:pbBounce .55s var(--pb-spring); }
.pb-k{ width:100%; height:100%; object-fit:contain; display:block; }
@keyframes pbSway{ 25%{ transform:rotate(-3deg); } 75%{ transform:rotate(3deg); } }
@keyframes pbBounce{ 0%{ transform:scale(.8) translateY(6px); } 100%{ transform:none; } }
.pb-say{ grid-area:say; margin:0; min-height:1.4em; font-weight:700; line-height:1.32; color:var(--pb-ink); position:relative; }
.pb-say:empty{ visibility:hidden; }
.pb-say.is-new{ animation:pbIn .3s ease both; }
.pb-main{ grid-area:btn; }
.pb-primary{ appearance:none; border:0; width:100%; min-height:56px; border-radius:18px; font:inherit; font-weight:800; font-size:1.05rem; cursor:pointer; color:#fff; background:var(--pb-acc); box-shadow:0 14px 26px -14px var(--pb-acc); transition:background .2s ease, transform .15s ease, opacity .2s ease; padding:0 20px; }
.pb-primary:hover:not(:disabled){ background:var(--pb-acc-hi); }
.pb-primary:active:not(:disabled){ transform:scale(.985); }
.pb-primary:disabled{ background:#fff; color:var(--pb-ink2); box-shadow:inset 0 0 0 2px rgba(30,44,38,.08); cursor:default; }
.pb-primary.is-ready{ animation:pbPulse 1.4s ease 1; }
@keyframes pbPulse{ 30%{ transform:scale(1.04); } }

/* «Как теперь?» */
.pb-check{ position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; background:rgba(255,255,255,.93); border-radius:24px; padding:16px; }
.pb-check__q{ margin:0; font-size:1.5em; font-weight:800; }
.pb-check__row{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; width:100%; max-width:520px; }
.pb-check__b{ appearance:none; border:2px solid #fff; background:#fff; border-radius:22px; padding:16px 6px; min-height:120px; font:inherit; font-weight:800; color:var(--pb-ink); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; box-shadow:var(--pb-sh); transition:transform .2s var(--pb-spring), border-color .2s; }
.pb-check__b .pb-ico{ width:44px; height:44px; color:var(--pb-acc); }
.pb-check__b:hover:not(:disabled){ transform:translateY(-3px); }
.pb-check__b.is-on{ border-color:var(--pb-acc); background:var(--pb-soft); }
.pb-check__b:disabled:not(.is-on){ opacity:.5; }

/* Общие кнопки механик */
.pb-opt{ appearance:none; border:2px solid #fff; background:#fff; font:inherit; color:var(--pb-ink); text-align:left; border-radius:18px; padding:12px 14px; min-height:56px; cursor:pointer; font-weight:700; line-height:1.25; box-shadow:var(--pb-sh); transition:transform .2s var(--pb-spring), border-color .2s ease, background .2s ease, opacity .2s ease; display:flex; align-items:center; gap:10px; }
.pb-opt .pb-ico{ width:28px; height:28px; color:var(--pb-acc); }
.pb-opt:hover:not(:disabled){ border-color:color-mix(in srgb, var(--pb-acc) 35%, #fff); transform:translateY(-2px); }
.pb-opt:active:not(:disabled){ transform:scale(.97); }
.pb-opt.is-on{ border-color:var(--pb-acc); background:var(--pb-soft); }
.pb-opt.is-right{ border-color:var(--pb-ok); background:var(--pb-oksoft); }
.pb-opt.is-try{ border-color:var(--pb-try); background:var(--pb-trysoft); }
.pb-opt.is-off{ opacity:.45; }
.pb-opt.is-glow{ animation:pbGlow 1.2s ease-in-out 3; border-color:var(--pb-ok); }
.pb-opt:disabled{ cursor:default; }
@keyframes pbGlow{ 50%{ box-shadow:0 0 0 6px color-mix(in srgb, var(--pb-ok) 30%, transparent), var(--pb-sh); } }
.pb-shake{ animation:pbShake .45s ease; }
@keyframes pbShake{ 20%{ transform:translateX(-7px) rotate(-2deg); } 40%{ transform:translateX(6px) rotate(2deg); } 60%{ transform:translateX(-4px); } 80%{ transform:translateX(3px); } }
.pb-face{ display:block; width:100%; height:auto; overflow:visible; }

/* ===== Небо (weather, eyes, итог) ===== */
.pb-sky{ position:relative; border-radius:24px; overflow:hidden; background:#CFE6F5; box-shadow:inset 0 0 0 1px rgba(255,255,255,.6), 0 18px 34px -24px rgba(23,48,70,.6); }
.pb-sky svg{ display:block; width:100%; height:100%; }
.pb-sky .sk-l{ opacity:0; transition:opacity .8s ease; }
.pb-sky .sk-shade{ opacity:0; transition:opacity .8s ease; }
.pb-sky[data-s="0"] .sk-bg-sun, .pb-sky[data-s="0"] .sk-sun{ opacity:1; }
.pb-sky[data-s="1"] .sk-bg-sun, .pb-sky[data-s="1"] .sk-sun, .pb-sky[data-s="1"] .sk-rainbow{ opacity:1; }
.pb-sky[data-s="1"] .sk-cl{ opacity:.85; }
.pb-sky[data-s="2"] .sk-bg-grey, .pb-sky[data-s="2"] .sk-cl{ opacity:1; }
.pb-sky[data-s="2"] .sk-sun{ opacity:.55; }
.pb-sky[data-s="3"] .sk-bg-fog, .pb-sky[data-s="3"] .sk-fog{ opacity:1; }
.pb-sky[data-s="3"] .sk-shade{ opacity:.25; }
.pb-sky[data-s="4"] .sk-bg-grey, .pb-sky[data-s="4"] .sk-dark, .pb-sky[data-s="4"] .sk-rain{ opacity:1; }
.pb-sky[data-s="4"] .sk-shade{ opacity:.3; }
.pb-sky[data-s="5"] .sk-bg-storm, .pb-sky[data-s="5"] .sk-dark, .pb-sky[data-s="5"] .sk-rain, .pb-sky[data-s="5"] .sk-bolt{ opacity:1; }
.pb-sky[data-s="5"] .sk-shade{ opacity:.5; }
.pb-sky[data-s="5"] .sk-flash{ animation:skFlash 3.2s ease-in-out infinite; }
.pb-sky[data-s="5"] .sk-bolt{ animation:skBolt 3.2s ease-in-out infinite; }
.pb-sky .sk-rays{ transform-origin:300px 70px; animation:skSpin 26s linear infinite; }
.pb-sky .sk-drift1{ animation:skDrift 9s ease-in-out infinite alternate; }
.pb-sky .sk-drift2{ animation:skDrift 12s ease-in-out infinite alternate-reverse; }
.pb-sky .sk-rain path{ animation:skRain .7s linear infinite; }
.pb-sky .sk-fog1{ animation:skDrift 10s ease-in-out infinite alternate; }
.pb-sky .sk-fog2{ animation:skDrift 13s ease-in-out infinite alternate-reverse; }
@keyframes skSpin{ to{ transform:rotate(360deg); } }
@keyframes skDrift{ from{ transform:translateX(-14px); } to{ transform:translateX(18px); } }
@keyframes skRain{ from{ transform:translate(0,0); } to{ transform:translate(-10px,70px); } }
@keyframes skFlash{ 0%,86%,100%{ opacity:0; } 88%{ opacity:.55; } 91%{ opacity:.1; } 93%{ opacity:.4; } }
@keyframes skBolt{ 0%,84%,100%{ opacity:.35; } 88%,94%{ opacity:1; } }

/* ===== Итог ===== */
.pb-final{ padding:20px 16px; display:grid; gap:16px; }
.pb-kidend{ display:grid; gap:12px; align-items:center; background:linear-gradient(160deg,#F4FBF6,#E6F4EC 60%,#FFF3E2); border-radius:24px; padding:16px; }
.pb-kidend__tree{ display:flex; justify-content:center; }
.pb-tree{ width:min(260px,70vw); height:auto; }
.pb-tree__trunk{ fill:#A57A55; }
.pb-tree__br{ fill:none; stroke:#A57A55; stroke-width:5; stroke-linecap:round; }
.pb-tree__leaf{ fill:#4FB38C; transform-box:fill-box; transform-origin:0 50%; animation:pbLeafIn .6s var(--pb-spring) both; }
.pb-tree__leaf.c1{ fill:#7CCB9F; }
.pb-tree__leaf.c2{ fill:#3B9874; }
@keyframes pbLeafIn{ from{ transform:scale(0); } to{ transform:scale(1); } }
.pb-kidend__t{ display:grid; gap:12px; min-width:0; }
.pb-wx{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pb-wx__c{ margin:0; }
.pb-wx__c .pb-sky{ aspect-ratio:5/3; border-radius:16px; }
.pb-wx__c figcaption{ font-size:.86rem; font-weight:800; margin-top:6px; text-align:center; }
.pb-mission{ display:flex; gap:12px; align-items:flex-start; background:#fff; border-radius:18px; padding:14px; box-shadow:var(--pb-sh); }
.pb-mission > .pb-ico{ width:34px; height:34px; color:#E0A33A; }
.pb-mission__h, .pb-pmission__h, .pb-nextup__h{ margin:0; font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--pb-acc); }
.pb-mission__t{ margin:4px 0 0; font-weight:700; line-height:1.38; }
.pb-parent{ background:#fff; border-radius:22px; padding:18px 16px; box-shadow:0 20px 40px -30px rgba(23,48,41,.5); font-size:1rem; }
.pb-parent__eyebrow{ margin:0 0 6px; font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--gold,#C19A5B); }
.pb-parent__sum{ margin:0 0 10px; font-weight:700; line-height:1.4; }
.pb-skills, .pb-nextup ul{ list-style:none; margin:0 0 14px; padding:0; display:grid; gap:8px; }
.pb-skills li, .pb-nextup li{ display:flex; flex-direction:column; gap:1px; padding:10px 12px 10px 34px; border-radius:14px; background:var(--pb-soft); position:relative; line-height:1.35; }
.pb-skills li::before{ content:""; position:absolute; left:12px; top:14px; width:12px; height:7px; border-left:2.5px solid var(--pb-acc); border-bottom:2.5px solid var(--pb-acc); transform:rotate(-45deg); }
.pb-nextup li{ background:#F6F4EE; padding-left:12px; }
.pb-skills b, .pb-nextup b{ font-size:.94rem; }
.pb-skills span, .pb-nextup span{ font-size:.9rem; color:var(--pb-ink2); }
.pb-notes{ background:#F6F4EE; border-radius:14px; padding:10px 12px; margin:0 0 14px; }
.pb-notes p{ margin:0; font-size:.92rem; line-height:1.42; }
.pb-notes p + p{ margin-top:6px; }
.pb-pmission{ border:2px solid #F1DDB2; background:#FFFBF1; border-radius:16px; padding:12px 14px; margin:0 0 14px; }
.pb-pmission__t{ margin:6px 0 0; font-weight:700; line-height:1.38; }
.pb-pmission__tip{ margin:6px 0 0; font-size:.92rem; line-height:1.45; color:var(--pb-ink2); }
.pb-nextup__h{ margin-bottom:8px; }
.pb-offer{ border-top:1px solid var(--line,rgba(37,68,62,.12)); padding-top:16px; }
.pb-offer__t{ font-family:"Spectral",Georgia,serif; font-size:1.42rem; line-height:1.22; margin:0 0 14px; font-weight:600; }
.pb-code{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:space-between; border:2px dashed var(--gold,#C19A5B); background:#FFF9EC; border-radius:18px; padding:12px 12px 12px 18px; }
.pb-code__v{ font-size:clamp(1.7rem,8vw,2.3rem); font-weight:800; letter-spacing:.06em; color:#3a2d12; user-select:all; }
.pb-copy{ appearance:none; border:0; min-height:48px; padding:0 18px; border-radius:14px; font:inherit; font-weight:800; cursor:pointer; background:linear-gradient(135deg,var(--gold-soft,#E3CFA3),var(--gold,#C19A5B)); color:#3a2d12; }
.pb-copy.is-done{ background:#E4F6EC; color:var(--emerald,#2F6B53); }
.pb-offer__note{ margin:14px 0 12px; line-height:1.45; }
.pb-form{ box-shadow:none; padding:0; background:transparent; }
.pb-select{ width:100%; font:inherit; font-size:1rem; color:var(--pb-ink); padding:13px 15px; border-radius:14px; border:1px solid var(--line,rgba(37,68,62,.12)); background:#fff; min-height:50px; }
.pb-form .btn{ width:100%; justify-content:center; }
.pb-reg{ width:100%; justify-content:center; margin-top:14px; text-align:center; }
.pb-again{ text-align:center; }
.pb-restart{ min-height:48px; }

/* ===== Планшет и компьютер ===== */
@media (min-width:760px){
  .proba{ max-width:760px; font-size:1.12rem; }
  .proba[data-band="6-8"]{ font-size:1.2rem; }
  .pb-screen{ padding:22px 26px; }
  .pb-foot{ margin:0 -26px -22px; padding:10px 26px 18px; grid-template-columns:auto 1fr minmax(200px,auto); grid-template-areas:"k say btn"; }
  .pb-kwrap{ width:84px; height:78px; }
  .pb-main{ min-width:220px; }
  .pb-chip{ min-height:48px; font-size:.95rem; padding:0 18px; }
  .pb-snd{ width:48px; padding:0; }
  .pb-q{ font-size:1.3em; }
  .pb-primary{ min-height:60px; font-size:1.12rem; }
  .pb-age__q{ font-size:1.9rem; }
  .pb-agebtn{ min-height:88px; font-size:2.2rem; }
  .pb-greet__k{ width:120px; }
  .pb-greet__k--s{ width:96px; }
  .pb-task{ min-height:0; height:min(980px, calc(100svh - var(--nav-h,68px) - 24px)); }
  .pb-parent{ padding:26px 28px; }
  .pb-kidend{ grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); padding:22px; }
}
@media (min-width:1000px){
  .proba{ max-width:1080px; }
  .proba-head{ max-width:760px; }
  .pb-age, .pb-intro{ max-width:900px; margin-inline:auto; }
  .pb-agegrid{ grid-template-columns:repeat(3,1fr); gap:14px; }
  .pb-final{ max-width:920px; margin-inline:auto; padding:26px; }
  .pb-task{ height:min(820px, calc(100svh - var(--nav-h,68px) - 24px)); padding:20px 30px; }
  .pb-foot{ margin:0 -30px -20px; padding:10px 30px 18px; }
}

@media (prefers-reduced-motion: reduce){
  .proba *, .proba *::before, .proba *::after{ animation-duration:.001s !important; animation-iteration-count:1 !important; transition-duration:.001s !important; }
  .pb-sky .sk-rays, .pb-sky .sk-drift1, .pb-sky .sk-drift2, .pb-sky .sk-rain path, .pb-sky .sk-fog1, .pb-sky .sk-fog2, .pb-sky .sk-flash{ animation:none !important; }
}

/* =================== МЕХАНИКИ =================== */

/* общий ползунок */
.proba input[type="range"]{ -webkit-appearance:none; appearance:none; background:transparent; cursor:pointer; }
.proba input[type="range"]::-webkit-slider-runnable-track{ height:12px; border-radius:999px; background:linear-gradient(90deg,#F7D774,#F2994A 55%,#E5533D); }
.proba input[type="range"]::-moz-range-track{ height:12px; border-radius:999px; background:linear-gradient(90deg,#F7D774,#F2994A 55%,#E5533D); }
.proba input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; width:30px; height:30px; margin-top:-9px; border-radius:50%; background:#fff; border:4px solid var(--pb-acc); box-shadow:0 4px 10px -4px rgba(0,0,0,.4); }
.proba input[type="range"]::-moz-range-thumb{ width:22px; height:22px; border-radius:50%; background:#fff; border:4px solid var(--pb-acc); }
.proba .mw-range::-webkit-slider-runnable-track{ background:linear-gradient(90deg,#FFD66B,#B9A6F0 22%,#C9D3DE 42%,#D9DEE3 58%,#8FA6BE 78%,#5B6680); }
.proba .mw-range::-moz-range-track{ background:linear-gradient(90deg,#FFD66B,#B9A6F0 22%,#C9D3DE 42%,#D9DEE3 58%,#8FA6BE 78%,#5B6680); }

/* weather */
.mw{ flex:1; min-height:0; display:flex; flex-direction:column; gap:12px; }
.mw-sky{ flex:1; min-height:180px; }
.mw-tap{ position:absolute; inset:0; width:100%; height:100%; background:transparent; border:0; cursor:pointer; border-radius:24px; }
.mw-name{ position:absolute; left:16px; top:14px; z-index:1; background:rgba(255,255,255,.85); backdrop-filter:blur(6px); padding:6px 14px; border-radius:999px; font-weight:800; font-size:1.05em; pointer-events:none; }
.mw-name.is-new{ animation:pbPop .4s var(--pb-spring); }
.mw-range{ width:100%; accent-color:var(--pb-acc); height:28px; margin:0; }
.mw-row{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
.mw-b{ appearance:none; border:2px solid #fff; background:#fff; border-radius:16px; padding:8px 2px; min-height:64px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font:inherit; font-size:15px; font-weight:800; color:var(--pb-ink); cursor:pointer; box-shadow:var(--pb-sh); transition:transform .2s var(--pb-spring), border-color .2s; }
.mw-b .pb-ico{ width:26px; height:26px; color:var(--pb-acc); }
.mw-b:hover{ transform:translateY(-2px); }
.mw-b.is-on{ border-color:var(--pb-acc); background:var(--pb-soft); transform:translateY(-3px); }
.mw-b:disabled{ cursor:default; }

/* power */
.mp{ flex:1; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr); gap:12px; }
.mp-card{ background:#fff; border-radius:22px; padding:12px 14px; display:grid; grid-template-columns:auto 1fr; grid-template-areas:"ico step" "ico txt"; column-gap:12px; align-items:center; box-shadow:var(--pb-sh); }
.mp-ico{ grid-area:ico; width:56px; height:56px; border-radius:18px; background:var(--pb-soft); color:var(--pb-acc); display:grid; place-items:center; }
.mp-ico .pb-ico{ width:34px; height:34px; }
.mp-step{ grid-area:step; margin:0; font-size:15px; font-weight:800; color:var(--pb-ink2); }
.mp-step:empty{ display:none; }
.mp-txt{ grid-area:txt; margin:0; font-weight:700; line-height:1.3; }
.mp-right{ min-height:0; height:100%; display:flex; flex-direction:column; align-items:center; gap:8px; }
.mp-kbox{ position:relative; flex:1 1 0; min-height:90px; width:100%; display:flex; justify-content:center; align-items:center; }
.mp-glow{ position:absolute; width:min(220px,60%); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle, var(--hue) 0%, transparent 70%); opacity:.35; transition:opacity .4s ease, transform .5s var(--pb-spring); }
.mp-kbox[data-v="2"] .mp-glow{ opacity:.6; transform:scale(1.15); }
.mp-kbox[data-v="3"] .mp-glow{ opacity:.9; transform:scale(1.35); }
.mp-k{ position:absolute; inset:0; margin:auto; height:100%; max-height:300px; width:100%; object-fit:contain; transition:transform .4s var(--pb-spring); }
.mp-kbox[data-v="1"] .mp-k{ transform:scale(.86); }
.mp-kbox[data-v="3"] .mp-k{ transform:scale(1.08); }
.mp-kbox.is-pop .mp-k{ animation:pbBounce .45s var(--pb-spring); }
.mp-kbox.is-ok .mp-glow{ background:radial-gradient(circle, #9FE3C4 0%, transparent 70%); opacity:.9; }
.mp-lvl{ margin:0; font-weight:800; font-size:1.1em; color:var(--pb-acc); }
.mp-range{ width:min(420px,100%); accent-color:var(--pb-acc); height:28px; margin:0; }
.mp-stops{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; width:min(420px,100%); }
.mp-stop{ appearance:none; border:2px solid #fff; background:#fff; border-radius:14px; min-height:48px; font:inherit; font-size:max(15px,.8em); font-weight:800; color:var(--pb-ink); cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; box-shadow:var(--pb-sh); padding:4px; }
.mp-stop i{ display:block; width:10px; border-radius:4px; background:#F2994A; flex:none; }
.mp-stop:nth-child(1) i{ height:10px; background:#F2C14E; }
.mp-stop:nth-child(2) i{ height:16px; }
.mp-stop:nth-child(3) i{ height:22px; background:#E5533D; }
.mp-stop.is-on{ border-color:var(--pb-acc); background:var(--pb-soft); }
.mp-stop.is-glow{ animation:pbGlow 1.2s ease-in-out 3; border-color:var(--pb-ok); }

/* face */
.mf{ flex:1; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:12px; justify-items:center; align-items:center; }
.mf-face{ min-height:0; height:100%; max-height:460px; aspect-ratio:1; display:flex; justify-content:center; }
.mf-face.is-ok .mf-svg{ animation:pbBounce .6s var(--pb-spring); }
.mf-svg{ height:100%; width:auto; }
.mf-zone{ fill:transparent; cursor:pointer; }
.mf-zone:hover{ fill:rgba(255,255,255,.18); }
.mf-zone.is-hint{ fill:rgba(255,214,120,.35); animation:pbBud 1s ease-in-out 3; }
.mf-svg .is-pop{ transform-box:fill-box; transform-origin:center; animation:pbBounce .4s var(--pb-spring); }
.mf-ctr{ display:grid; gap:8px; width:min(460px,100%); }
.mf-row{ display:grid; grid-template-columns:52px 1fr 52px; gap:8px; align-items:center; background:#fff; border-radius:18px; padding:4px; box-shadow:var(--pb-sh); border:2px solid #fff; transition:border-color .2s; }
.mf-row.is-hint{ border-color:var(--pb-try); background:var(--pb-trysoft); animation:pbShake .45s ease; }
.mf-arr{ appearance:none; border:0; background:var(--pb-soft); color:var(--pb-acc); width:48px; height:44px; border-radius:14px; display:grid; place-items:center; cursor:pointer; }
.mf-arr .pb-ico{ width:24px; height:24px; }
.mf-arr:active{ transform:scale(.92); }
.mf-mid{ display:flex; flex-direction:column; align-items:center; gap:4px; font-weight:800; }
.mf-dots{ display:flex; gap:4px; }
.mf-dots i{ width:7px; height:7px; border-radius:50%; background:rgba(30,44,38,.15); transition:background .2s, transform .2s; }
.mf-dots i.is-on{ background:var(--pb-acc); transform:scale(1.3); }

/* clues */
.mc{ flex:1; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:10px; justify-items:center; }
.mc-pic{ position:relative; height:100%; max-width:100%; aspect-ratio:1; border-radius:22px; overflow:hidden; box-shadow:0 18px 34px -24px rgba(23,48,70,.6); background:var(--pb-soft); }
.mc-pic img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; user-select:none; -webkit-user-drag:none; }
.mc-z{ position:absolute; appearance:none; background:transparent; border:3px solid transparent; border-radius:18px; cursor:pointer; padding:0; }
/* Мелкая улика (рот, бровь) на телефоне выходит 32×17 px: невидимый запас доводит зону касания до 44 px, рамка остаётся по улике. */
.mc-z::before{ content:""; position:absolute; left:50%; top:50%; width:max(100%, 44px); height:max(100%, 44px); transform:translate(-50%,-50%); border-radius:inherit; }
.mc-z:focus-visible{ border-color:rgba(255,255,255,.9); outline-offset:0; }
.mc-z.is-found{ border-color:#fff; box-shadow:0 0 0 3px var(--pb-ok), 0 0 24px rgba(59,167,118,.6); background:rgba(59,167,118,.12); animation:pbPop .45s var(--pb-spring); cursor:default; }
.mc-z.is-miss{ animation:mcMiss .5s ease; }
@keyframes mcMiss{ 0%,100%{ background:transparent; } 30%{ background:rgba(233,168,106,.35); border-color:rgba(233,168,106,.8); } }
.mc-z.is-hint{ animation:mcHint 1.2s ease-in-out 2; }
@keyframes mcHint{ 50%{ border-color:rgba(255,226,140,.95); background:rgba(255,226,140,.25); } }
.mc-tip{ position:absolute; transform:translate(-50%, 8px); z-index:2; background:#fff; border-radius:14px; padding:6px 12px; font-weight:800; font-size:.86em; box-shadow:0 10px 22px -12px rgba(0,0,0,.45); max-width:70%; text-align:center; pointer-events:none; }
.mc-tip.is-ok{ color:#1F7A52; }
.mc-tip.is-miss{ color:#9A5A1C; }
.mc-side{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; justify-content:center; width:100%; }
.mc-count{ margin:0; font-weight:800; background:#fff; border-radius:999px; padding:6px 14px; box-shadow:var(--pb-sh); }
.mc-count b{ color:var(--pb-acc); font-size:1.2em; }
.mc-list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.mc-slot{ display:flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; border-radius:999px; background:rgba(255,255,255,.6); border:2px dashed rgba(30,44,38,.15); color:var(--pb-ink2); font-size:.84em; font-weight:800; }
.mc-slot .pb-ico{ width:18px; height:18px; }
.mc-slot.is-on{ background:var(--pb-oksoft); border:2px solid var(--pb-ok); color:#1F6B49; animation:pbPop .4s var(--pb-spring); }
/* Телефон: четыре найденных признака встают по два в ряд, иначе итог шага не влезает в сцену (12–14, голос включён, 19.11). */
@media (max-width:440px){ .mc-list{ gap:5px; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); width:100%; } .mc-slot{ white-space:normal; min-width:0; justify-content:center; text-align:center; line-height:1.15; overflow-wrap:anywhere; } .mc-slot{ min-height:32px; padding:3px 7px; font-size:.78em; gap:4px; } .mc-slot .pb-ico{ width:15px; height:15px; } }

/* body */
.mb{ flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); grid-template-rows:minmax(0,1fr); gap:12px; align-items:stretch; }
.mb-side{ align-self:center; }
.mb-fig{ height:100%; min-height:0; display:flex; justify-content:center; }
.mb-svg{ height:100%; max-height:420px; width:auto; max-width:100%; }
.mb-zone{ cursor:pointer; }
.mb-base{ stroke:none; }
.mb-zone:hover .mb-base{ stroke:var(--pb-acc); stroke-width:2.2; }
.mb-paint{ opacity:0; transition:opacity .35s ease; pointer-events:none; }
.mb-zone.is-warm .mb-paint, .mb-zone.is-cold .mb-paint{ opacity:1; }
.mb-glow path{ transition:fill .35s ease; }
.mb-zone.is-pulse{ animation:mbPulse .4s var(--pb-spring); transform-box:fill-box; transform-origin:center; }
@keyframes mbPulse{ 40%{ transform:scale(1.05); } }
.mb-side{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.mb-tools{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.mb-tool{ appearance:none; border:2px solid #fff; background:#fff; border-radius:18px; min-height:56px; display:flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-weight:800; color:var(--pb-ink); cursor:pointer; box-shadow:var(--pb-sh); }
.mb-tool .pb-ico{ width:26px; height:26px; }
.mb-tool--warm .pb-ico{ color:#EE8A3C; }
.mb-tool--cold .pb-ico{ color:#3E8FE0; }
.mb-tool--warm.is-on{ border-color:#EE8A3C; background:#FFF1E2; }
.mb-tool--cold.is-on{ border-color:#3E8FE0; background:#E6F2FD; }
.mb-chips{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.mb-chip{ appearance:none; border:2px solid rgba(30,44,38,.08); background:rgba(255,255,255,.75); border-radius:14px; min-height:44px; font:inherit; font-size:max(15px,.9em); font-weight:700; color:var(--pb-ink); cursor:pointer; }
.mb-chip.is-warm{ background:#FFE2C4; border-color:#EE8A3C; }
.mb-chip.is-cold{ background:#D7EBFD; border-color:#3E8FE0; }
.mb-chip.is-hint{ animation:pbShake .45s ease, pbGlow 1.2s ease-in-out 2; border-color:var(--pb-try); }
.mb-none{ min-height:48px; }

/* chat */
.mch{ flex:1; min-height:0; display:flex; flex-direction:column; background:linear-gradient(180deg,#F3F6FB,#EAF0F8); border-radius:24px; overflow:hidden; box-shadow:inset 0 0 0 1px rgba(30,44,38,.05); width:100%; max-width:640px; margin:0 auto; }
.mch-bar{ display:flex; align-items:center; gap:10px; padding:10px 14px; background:#fff; box-shadow:0 1px 0 rgba(30,44,38,.06); flex:none; }
.mch-av{ width:44px; height:44px; flex:none; display:block; }
.mch-av .pb-face{ width:44px; }
.mch-who{ display:flex; flex-direction:column; line-height:1.2; }
.mch-status{ font-size:15px; color:#3BA776; font-weight:700; }
.mch-feed{ flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:14px; scroll-behavior:smooth; }
.mch-msg{ max-width:82%; border-radius:20px; padding:9px 14px; line-height:1.35; animation:pbPop .32s var(--pb-spring) both; }
.mch-msg p{ margin:0; }
.mch-msg.is-in{ align-self:flex-start; background:#fff; border-bottom-left-radius:6px; box-shadow:0 6px 14px -10px rgba(30,44,38,.5); transform-origin:0 100%; }
.mch-msg.is-me{ align-self:flex-end; background:var(--pb-acc); color:#fff; border-bottom-right-radius:6px; transform-origin:100% 100%; }
.mch-msg.is-me.is-meh{ background:#8C97A6; }
.mch-typing{ display:flex; gap:5px; padding:14px 16px; }
.mch-typing i{ width:8px; height:8px; border-radius:50%; background:#A9B4C2; animation:mchDot 1s ease-in-out infinite; }
.mch-typing i:nth-child(2){ animation-delay:.15s; }
.mch-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes mchDot{ 30%{ transform:translateY(-5px); opacity:.6; } }
.mch-opts{ flex:none; display:grid; gap:8px; padding:10px; background:rgba(255,255,255,.6); }
.mch-opts:empty{ display:none; }
.mch-opt{ min-height:50px; justify-content:flex-end; text-align:right; border-radius:20px 20px 6px 20px; padding:10px 16px; }

/* breath + squeeze: общие кнопки удержания */
.mbr, .msq{ flex:1; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
.mbr-orb{ position:relative; flex:0 1 360px; min-height:150px; aspect-ratio:1; max-width:100%; }
.mbr-svg{ width:100%; height:100%; display:block; overflow:visible; }
.mbr-track{ fill:none; stroke:rgba(30,44,38,.08); stroke-width:8; }
.mbr-ring{ fill:none; stroke:var(--pb-acc); stroke-width:8; stroke-linecap:round; transition:stroke .4s ease; }
.mbr-ring.is-out{ stroke:#4FB38C; }
.mbr-wave{ animation:mbrWave 3.2s linear infinite; }
.mbr-wave--2{ animation-duration:4.6s; animation-direction:reverse; }
@keyframes mbrWave{ from{ transform:translateX(0); } to{ transform:translateX(55px); } }
.mbr-label{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font-weight:800; font-size:1.35em; color:var(--pb-ink); text-shadow:0 1px 0 rgba(255,255,255,.8); pointer-events:none; white-space:nowrap; }
.mbr--calm .mbr-label, .mbr--balloon .mbr-label{ top:auto; bottom:-4px; transform:translate(-50%,0); color:var(--pb-ink); text-shadow:none; }
.mbr-dots{ display:flex; gap:8px; }
.mbr-dots i{ width:12px; height:12px; border-radius:50%; background:rgba(30,44,38,.12); transition:background .3s, transform .4s var(--pb-spring); }
.mbr-dots i.is-on{ background:#4FB38C; transform:scale(1.25); }
.mbr-ctr{ display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; }
.mbr-hold{ appearance:none; border:0; width:min(320px,100%); min-height:64px; border-radius:999px; font:inherit; font-weight:800; font-size:1.08em; color:#fff; cursor:pointer; background:linear-gradient(180deg,var(--pb-acc-hi),var(--pb-acc)); box-shadow:0 8px 0 0 color-mix(in srgb, var(--pb-acc) 60%, #000), 0 18px 30px -16px var(--pb-acc); transition:transform .12s ease, box-shadow .12s ease; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.mbr-hold.is-down{ transform:translateY(6px); box-shadow:0 2px 0 0 color-mix(in srgb, var(--pb-acc) 60%, #000), 0 8px 18px -12px var(--pb-acc); }
.mbr-hold:disabled{ opacity:.5; cursor:default; }
.mbr-row{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.mbr-row .pb-ghost{ min-height:44px; font-size:.9em; }
.mbr-auto.is-on{ border-color:var(--pb-acc); background:var(--pb-soft); }
.mbr-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:0; }

.msq-art{ flex:0 1 380px; min-height:140px; width:100%; display:flex; justify-content:center; }
.msq-svg{ height:100%; max-height:380px; width:auto; max-width:100%; overflow:visible; }
.msq-drop{ fill:#FFE36B; stroke:#E8B417; stroke-width:1; animation:msqDrop 1s cubic-bezier(.4,0,.8,.6) both; }
@keyframes msqDrop{ from{ transform:translateY(0); opacity:1; } to{ transform:translateY(70px); opacity:0; } }
.msq-meter{ width:min(320px,100%); height:14px; border-radius:999px; background:rgba(30,44,38,.08); overflow:hidden; }
.msq-meter i{ display:block; height:100%; background:linear-gradient(90deg,#FFE36B,#F2B53A); transform-origin:0 50%; transform:scaleX(0); border-radius:999px; }
.msq-ask{ width:100%; }
.msq-askrow{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; width:min(520px,100%); margin:0 auto; }
.msq-opt{ flex-direction:column; justify-content:center; text-align:center; min-height:108px; }
.msq-opt .pb-ico{ width:40px; height:40px; }

/* swipe */
.ms{ flex:1; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:10px; }
.ms-bins{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ms-bin{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:18px; font-weight:800; font-size:.92em; transition:transform .25s var(--pb-spring), box-shadow .25s; line-height:1.15; }
.ms-bin .pb-ico{ width:28px; height:28px; }
.ms-bin--L{ background:#E6F2FD; color:#245F9E; }
.ms-bin--R{ background:#FFEBDD; color:#A64B1C; justify-content:flex-end; text-align:right; flex-direction:row-reverse; }
.ms-bin.is-near, .ms-bin.is-take{ transform:scale(1.05); box-shadow:0 0 0 3px currentColor; }
.ms-deck{ position:relative; min-height:0; display:grid; grid-template-rows:minmax(0,1fr); grid-template-columns:minmax(0,1fr); place-items:center; }
.ms-card{ grid-area:1/1; height:min(100%,330px); width:auto; max-width:min(300px,78%); aspect-ratio:4/4.4; min-height:0; background:#fff; border-radius:28px; box-shadow:0 24px 40px -24px rgba(23,48,41,.55); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:18px; text-align:center; touch-action:none; cursor:grab; user-select:none; transition:transform .35s var(--pb-spring), opacity .3s ease; will-change:transform; }
.ms-card[data-depth="1"]{ transform:translateY(12px) scale(.94); opacity:.75; }
.ms-card[data-depth="2"]{ transform:translateY(24px) scale(.88); opacity:.45; }
.ms-card.is-drag{ transition:none; cursor:grabbing; }
.ms-card.is-fly{ transition:transform .32s ease-in, opacity .32s ease-in; }
.ms-card__ico{ width:clamp(56px,12vh,84px); height:clamp(56px,12vh,84px); border-radius:26px; background:var(--pb-soft); color:var(--pb-acc); display:grid; place-items:center; }
.ms-card__ico .pb-ico{ width:60%; height:60%; }
.ms-card__t{ margin:0; font-weight:800; font-size:1.25em; line-height:1.2; }
.ms-done{ display:flex; flex-direction:column; align-items:center; gap:8px; font-weight:800; color:#1F7A52; }
.ms-done .pb-ico{ width:56px; height:56px; }
.ms-ctr{ display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; }
.ms-btn{ appearance:none; border:0; min-width:96px; min-height:56px; border-radius:18px; display:flex; align-items:center; justify-content:center; gap:4px; cursor:pointer; font:inherit; box-shadow:var(--pb-sh); transition:transform .15s ease; }
.ms-btn .pb-ico{ width:26px; height:26px; }
.ms-btn--L{ background:#E6F2FD; color:#245F9E; }
.ms-btn--R{ background:#FFEBDD; color:#A64B1C; }
.ms-btn:active{ transform:scale(.94); }
.ms-btn.is-glow{ animation:pbGlow 1.2s ease-in-out 3; }
.ms-meta{ display:flex; flex-direction:column; align-items:center; gap:2px; font-weight:800; }
.ms-prog{ color:var(--pb-ink2); font-size:max(15px,.9em); }
.ms-streak{ display:flex; align-items:center; gap:4px; color:#E07A2E; min-height:22px; }
.ms-streak .pb-ico{ width:20px; height:20px; }
.ms-streak.is-on{ animation:pbPop .35s var(--pb-spring); }

/* eyes: событие сверху (не больше 40 % сцены), герои крупно, лицо героя меняется на выбранное чувство */
.me{ flex:1; min-height:0; display:grid; grid-template-rows:minmax(64px,36%) minmax(0,1fr); gap:10px; }
.me-event{ position:relative; min-height:0; height:100%; border-radius:22px; overflow:hidden; }
.me-sky{ position:absolute; inset:0; border-radius:22px; }
.me-sky svg{ height:100%; }
.me-img{ width:100%; height:100%; object-fit:cover; }
.me-cap{ position:absolute; left:12px; bottom:10px; margin:0; display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.92); padding:6px 14px 6px 10px; border-radius:999px; font-weight:800; }
.me-cap .pb-ico{ width:24px; height:24px; color:var(--pb-acc); }
.me-heroes{ display:grid; grid-template-columns:1fr; gap:10px; min-height:0; }
.me-hero{ background:#fff; border-radius:24px; padding:10px 12px; box-shadow:var(--pb-sh); border:2px solid #fff; transition:border-color .2s; min-width:0; min-height:0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; align-items:center; }
.me-hero.is-try{ border-color:var(--pb-try); background:var(--pb-trysoft); }
.me-hero.is-ok{ border-color:var(--pb-ok); }
.me-av{ width:clamp(56px,13vh,124px); aspect-ratio:1; flex:none; display:block; border-radius:50%; background:radial-gradient(circle at 50% 60%, var(--pb-soft), transparent 70%); }
.me-av .pb-face{ width:100%; }
.me-hero__body{ min-width:0; display:flex; flex-direction:column; gap:8px; }
.me-hero__tx{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.me-hero__tx b{ font-size:1.05em; }
.me-hero__tx span{ font-size:max(15px,.84em); color:var(--pb-ink2); font-weight:600; }
.me-faces{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.me-f{ appearance:none; border:2px solid transparent; background:var(--pb-soft); border-radius:16px; padding:4px 2px 4px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; font:inherit; font-size:15px; font-weight:800; color:var(--pb-ink); min-width:0; transition:transform .2s var(--pb-spring), border-color .2s; }
.me-f img{ width:100%; max-width:56px; aspect-ratio:1; object-fit:contain; }
.me-f span{ max-width:100%; white-space:nowrap; word-break:keep-all; overflow-wrap:normal; hyphens:none; letter-spacing:-.01em; }
.me-f.is-on{ border-color:var(--pb-acc); background:#fff; box-shadow:0 6px 14px -8px rgba(30,44,38,.45); }
.me-f.is-glow{ animation:pbGlow 1.2s ease-in-out 3; border-color:var(--pb-ok); }
@media (min-width:760px){
  .me-heroes{ grid-template-columns:1fr 1fr; }
  .me-hero{ grid-template-columns:1fr; grid-template-rows:auto auto; justify-items:center; text-align:center; gap:6px; padding:10px; }
  .me-hero__body{ width:100%; align-items:stretch; }
  .me-hero__tx{ align-items:center; }
}

/* story */
.mst{ flex:1; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:10px; justify-items:center; }
.mst-pic{ position:relative; height:100%; max-width:100%; aspect-ratio:1; border-radius:22px; overflow:hidden; box-shadow:0 18px 34px -24px rgba(23,48,70,.6); background:var(--pb-soft); }
.mst-pic img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.mst-badge{ position:absolute; width:16%; min-width:48px; aspect-ratio:1; filter:drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.mst-bub{ position:absolute; max-width:66%; background:#fff; border-radius:18px 18px 18px 6px; padding:8px 12px; box-shadow:0 12px 24px -12px rgba(0,0,0,.5); line-height:1.3; font-weight:700; display:flex; flex-direction:column; border:2px solid var(--pb-try); }
.mst-bub.is-good{ border-color:var(--pb-ok); }
.mst-bub b{ font-size:15px; color:var(--pb-ink2); }
.mst-moves{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; width:100%; align-items:stretch; padding-bottom:4px; }
.mst-move{ flex-direction:column; justify-content:center; text-align:center; gap:6px; padding:10px 8px; font-size:.92em; }

/* pairs */
.mpa{ flex:1; min-height:0; position:relative; display:grid; grid-template-columns:minmax(0,.8fr) minmax(40px,.5fr) minmax(0,1.2fr); align-items:stretch; }
.mpa-lines{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:1; }
.mpa-line{ fill:none; stroke-width:5; stroke-linecap:round; }
.mpa-line.is-fixed{ stroke:var(--pb-ok); }
.mpa-line.is-bad{ stroke:var(--pb-try); stroke-dasharray:6 8; animation:mpaBad .7s ease forwards; }
.mpa-line.is-ghost{ stroke:var(--pb-acc); stroke-dasharray:2 10; }
@keyframes mpaBad{ to{ opacity:0; } }
.mpa-col{ display:flex; flex-direction:column; justify-content:space-around; gap:8px; position:relative; z-index:2; }
.mpa-col--L{ grid-column:1; }
.mpa-col--R{ grid-column:3; }
.mpa-l, .mpa-r{ appearance:none; position:relative; border:2px solid #fff; background:#fff; border-radius:20px; font:inherit; color:var(--pb-ink); cursor:pointer; box-shadow:var(--pb-sh); transition:transform .2s var(--pb-spring), border-color .2s, background .2s; touch-action:none; }
.mpa-l{ display:flex; align-items:center; gap:6px; padding:4px 22px 4px 6px; min-height:64px; font-weight:800; font-size:.86em; }
.mpa-l img{ width:56px; height:56px; object-fit:contain; flex:none; pointer-events:none; -webkit-user-drag:none; user-select:none; }
.mpa-l__n{ min-width:0; overflow-wrap:anywhere; }
.mpa-r{ display:flex; align-items:center; gap:8px; padding:8px 12px 8px 22px; min-height:64px; text-align:left; font-weight:700; font-size:.92em; }
.mpa-r__ico{ width:40px; height:40px; flex:none; border-radius:12px; background:var(--pb-soft); color:var(--pb-acc); display:grid; place-items:center; }
.mpa-r__ico .pb-ico{ width:26px; height:26px; }
.mpa-dot{ position:absolute; top:50%; width:14px; height:14px; margin-top:-7px; border-radius:50%; background:#fff; border:3px solid var(--pb-acc); }
.mpa-l .mpa-dot{ right:-8px; }
.mpa-r .mpa-dot{ left:-8px; }
.mpa-l.is-sel{ border-color:var(--pb-acc); background:var(--pb-soft); transform:scale(1.04); }
.mpa-col--R.is-wait .mpa-r:not(.is-done){ border-color:color-mix(in srgb, var(--pb-acc) 40%, #fff); }
.mpa-l.is-done, .mpa-r.is-done{ border-color:var(--pb-ok); background:var(--pb-oksoft); cursor:default; }
.mpa-l.is-done .mpa-dot, .mpa-r.is-done .mpa-dot{ border-color:var(--pb-ok); background:var(--pb-ok); }

/* focus */
.mfo{ flex:1; min-height:0; display:grid; grid-template-rows:auto 1fr auto auto; gap:8px; }
.mfo-time{ height:8px; border-radius:999px; background:rgba(30,44,38,.08); overflow:hidden; }
.mfo-time i{ display:block; height:100%; background:linear-gradient(90deg,#9FE3C4,#4FB38C); transform-origin:0 50%; border-radius:999px; }
.mfo-arena{ position:relative; min-height:0; overflow:hidden; border-radius:24px; background:linear-gradient(180deg,#E9F6FF 0%,#F2FAF3 65%,#DDF1E2 100%); box-shadow:inset 0 0 0 1px rgba(30,44,38,.05); touch-action:manipulation; }
.mfo--stroop .mfo-arena{ background:linear-gradient(180deg,#F5F3FB,#ECE9F6); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.mfo-band{ position:absolute; left:0; right:0; bottom:0; height:32%; background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.75)); border-top:2px dashed rgba(79,179,140,.45); pointer-events:none; }
.mfo-it{ position:absolute; left:0; top:0; width:64px; height:64px; padding:6px; border:0; background:transparent; cursor:pointer; will-change:transform; }
.mfo-it svg{ width:100%; height:100%; display:block; filter:drop-shadow(0 6px 8px rgba(30,60,40,.25)); }
.mfo-it.is-caught{ animation:mfoCatch .4s ease forwards; }
@keyframes mfoCatch{ to{ opacity:0; scale:1.6; } }
.mfo-demo{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:28px; }
.mfo-demo__i{ display:flex; flex-direction:column; align-items:center; gap:6px; font-weight:800; animation:pbFloat 3s ease-in-out infinite; }
.mfo-demo__i svg{ width:84px; height:84px; }
.mfo-demo__i.is-bad{ color:#8A4A2A; animation-delay:-1.4s; }
.mfo-score{ display:flex; align-items:center; justify-content:center; gap:8px; font-weight:800; }
.mfo-score .pb-ico{ width:22px; height:22px; color:#3B9874; }
.mfo-score b{ font-size:1.2em; color:var(--pb-acc); }
.mfo-ctr{ display:flex; justify-content:center; }
.mfo-catch{ width:min(280px,100%); min-height:58px; }
.mfo-res{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; background:rgba(255,255,255,.75); font-weight:800; z-index:3; }
.mfo-res .pb-ico{ width:48px; height:48px; color:#3B9874; }
.mfo-res b{ font-size:3em; line-height:1; color:var(--pb-acc); }
.mfo-word{ margin:0; font-size:clamp(2rem,7vw,3.4rem); font-weight:800; letter-spacing:.04em; }
.mfo-wtip{ margin:0; font-weight:700; color:var(--pb-ink2); }
.mfo-inks{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; width:100%; }
.mfo-ink{ appearance:none; border:2px solid #fff; background:#fff; border-radius:18px; min-height:64px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font:inherit; font-weight:800; font-size:max(15px,.82em); color:var(--pb-ink); cursor:pointer; box-shadow:var(--pb-sh); }
.mfo-ink i{ width:26px; height:26px; border-radius:50%; }

/* thermo */
.mth{ flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:14px; align-items:center; }
.mth-left{ height:100%; min-height:0; display:flex; align-items:center; justify-content:center; gap:10px; }
.mth-svg{ height:100%; max-height:340px; width:auto; overflow:visible; }
.mth-merc{ transition:transform .9s var(--pb-spring), fill .6s ease; }
.mth-bulb{ transition:fill .6s ease; }
.mth-num{ font:700 15px Manrope, system-ui, sans-serif; fill:#8B98A5; }
.mth-hero{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.mth-face{ width:96px; }
.mth-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.mth-right{ min-width:0; }
.mth-ways{ display:grid; gap:8px; }
.mth-way{ min-height:58px; }

/* =================== Раскладки механик по экранам =================== */
@media (max-width:759px){
  .mw-row{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mw-b{ flex-direction:row; min-height:46px; font-size:.78em; gap:6px; }
  .mw-b .pb-ico{ width:22px; height:22px; }
  .mb{ grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:8px; }
  .mb-chips{ grid-template-columns:1fr; }
  .mb-chip{ min-height:40px; }
  .mb-tool{ min-height:50px; flex-direction:column; gap:2px; font-size:.82em; }
  .mst-move{ font-size:.82em; padding:8px 4px; }
  .mst-move .pb-ico{ width:24px; height:24px; }
  .mpa{ grid-template-columns:84px 22px minmax(0,1fr); }
  .mpa-col{ gap:6px; }
  .mpa-l, .mpa-r{ min-height:58px; }
  .mpa-l{ flex-direction:column; justify-content:center; gap:0; padding:4px 4px 6px; font-size:.74em; }
  .mpa-l img{ width:42px; height:42px; }
  .mpa-l__n{ overflow-wrap:normal; }
  .me{ grid-template-rows:minmax(64px,26%) minmax(0,1fr); gap:8px; }
  .me-hero{ grid-template-columns:auto minmax(0,1fr); grid-template-areas:"av tx" "fc fc"; gap:6px 10px; padding:8px 10px; }
  .me-av{ grid-area:av; width:56px; }
  .me-hero__body{ display:contents; }
  .me-hero__tx{ grid-area:tx; }
  .me-faces{ grid-area:fc; }
  .me-f img{ max-width:40px; }
  .mpa-r{ padding-left:16px; font-size:.84em; }
  .mpa-r__ico{ width:32px; height:32px; }
  .mth{ grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:8px; }
  .mth-left{ flex-direction:column; }
  .mth-face{ width:64px; }
  .mth-way{ min-height:52px; font-size:.9em; padding:8px 10px; }
  .mth-way .pb-ico{ width:22px; height:22px; }
  .msq-opt{ min-height:88px; }
  .ms-btn{ min-width:84px; }
}
@media (min-width:1000px){
  .mp{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:1fr; align-items:center; }
  .mp-card{ grid-template-columns:1fr; grid-template-areas:"step" "ico" "txt"; row-gap:12px; padding:24px; text-align:left; }
  .mp-ico{ width:84px; height:84px; }
  .mp-ico .pb-ico{ width:50px; height:50px; }
  .mp-txt{ font-size:1.18em; }
  .mf{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:1fr; align-items:center; }
  .mc{ grid-template-columns:auto minmax(220px,300px); grid-template-rows:1fr; align-items:center; justify-content:center; }
  .mc-side{ flex-direction:column; align-items:stretch; }
  .mc-list{ flex-direction:column; align-items:stretch; }
  .mst{ grid-template-columns:auto minmax(240px,320px); grid-template-rows:1fr; align-items:center; justify-content:center; }
  .mst-moves{ grid-template-columns:1fr; }
  .mst-move{ flex-direction:row; text-align:left; justify-content:flex-start; min-height:64px; }
  .me-faces{ gap:8px; }
  .ms{ grid-template-columns:1fr minmax(280px,360px) 1fr; grid-template-rows:minmax(0,1fr) auto; column-gap:18px; }
  .ms-bins{ display:contents; }
  .ms-bin{ grid-row:1; flex-direction:column; justify-content:center; text-align:center; font-size:1em; padding:18px; }
  .ms-bin--L{ grid-column:1; }
  .ms-bin--R{ grid-column:3; flex-direction:column; text-align:center; justify-content:center; }
  .ms-bin .pb-ico{ width:46px; height:46px; }
  .ms-deck{ grid-column:2; grid-row:1; }
  .ms-card{ max-width:100%; }
  .ms-ctr{ grid-column:1/-1; grid-row:2; max-width:560px; width:100%; justify-self:center; }
  .mfo-it{ width:76px; height:76px; }
}

@media (max-width:420px){
  .pb-help span{ display:none; }
  .pb-voice{ padding:0; width:44px; }
  .pb-voice span{ display:none; }
  .pb-help{ padding-inline:12px; }
}

/* картинки внутри тренажёра не перетаскиваются браузером: иначе жест отменяется */
.proba img{ -webkit-user-drag:none; user-select:none; }

/* ===== Низкие окна ноутбука и планшет лёжа (1440×760, 1280×680, 1024×768, 1180×820): всё задание в окне ===== */
@media (min-width:760px) and (max-height:860px){
  .pb-task{ gap:6px; padding-top:12px; padding-bottom:12px; }
  .pb-chip{ min-height:42px; }
  .pb-snd{ width:42px; }
  .pb-sprout{ height:40px; }
  .pb-q{ font-size:1.2em; }
  .pb-foot{ padding-top:6px; padding-bottom:10px; margin-bottom:-12px; }
  .pb-kwrap{ width:64px; height:58px; }
  .pb-primary{ min-height:52px; }
  .mbr-orb{ min-height:120px; }
  .mbr-hold{ min-height:56px; }
  .mbr, .msq{ gap:8px; }
  .msq-art{ min-height:110px; }
  .msq-opt{ min-height:92px; }
  .mpa-l, .mpa-r{ min-height:56px; }
  .mpa-l img{ width:48px; height:48px; }
  .mth-way{ min-height:52px; }
  .mw-b{ min-height:58px; }
}

/* =====================================================================
   Версия 3 (15.11.2026): сцена с глубиной, стекло, объёмные кнопки, игрушки.
   Блок идёт последним и уточняет правила выше; механики без игрушек выглядят как раньше, но в новой оболочке.
   ===================================================================== */
.proba-sec{ --pb-gold:#E2A93B; --pb-gold-hi:#F3C766; --pb-coral:#F08A6C; --pb-honey:#F4C25B; --pb-sky:#7CC0EE; --pb-edge:rgba(30,44,38,.12); overflow-x:clip; position:relative; isolation:isolate; }
.proba-sec:has(.proba[data-band="6-8"]){
  background:
    radial-gradient(70% 45% at 88% 4%, rgba(255,214,140,.55), transparent 62%),
    radial-gradient(60% 50% at 6% 30%, rgba(140,226,184,.5), transparent 64%),
    radial-gradient(80% 60% at 60% 110%, rgba(124,192,238,.32), transparent 60%),
    linear-gradient(180deg,#F3FBF6 0%,#FDF8EE 100%);
}
/* плавающие размытые пятна за плеером — глубина сцены */
.proba::before, .proba::after{ content:""; position:absolute; z-index:-1; border-radius:50%; filter:blur(38px); pointer-events:none; animation:pbBlob 16s ease-in-out infinite; }
.proba::before{ width:340px; height:300px; left:-120px; top:60px; background:color-mix(in srgb, var(--pb-acc) 30%, transparent); }
.proba::after{ width:300px; height:280px; right:-110px; bottom:40px; background:rgba(242,190,110,.42); animation-delay:-7s; }
@keyframes pbBlob{ 33%{ transform:translate(30px,-24px) scale(1.08); } 66%{ transform:translate(-20px,18px) scale(.94); } }

/* стеклянная панель */
.pb-screen{ background:linear-gradient(160deg,rgba(255,255,255,.86),rgba(255,255,255,.62)); -webkit-backdrop-filter:blur(18px) saturate(1.25); backdrop-filter:blur(18px) saturate(1.25); border:1px solid rgba(255,255,255,.95); border-radius:32px; box-shadow:0 1px 0 rgba(255,255,255,.9) inset, 0 40px 80px -44px rgba(23,48,41,.55), 0 10px 24px -18px rgba(23,48,41,.25); }

/* объёмные кнопки: нижняя грань и нажатие вниз */
.pb-primary{ background:linear-gradient(180deg,var(--pb-acc-hi),var(--pb-acc)); box-shadow:0 6px 0 0 color-mix(in srgb, var(--pb-acc) 62%, #000), 0 18px 28px -16px var(--pb-acc); border-radius:20px; transition:transform .12s ease, box-shadow .12s ease, background .2s ease; letter-spacing:.01em; }
.pb-primary:hover:not(:disabled){ background:linear-gradient(180deg,color-mix(in srgb, var(--pb-acc-hi) 85%, #fff),var(--pb-acc-hi)); }
.pb-primary:active:not(:disabled){ transform:translateY(5px); box-shadow:0 1px 0 0 color-mix(in srgb, var(--pb-acc) 62%, #000), 0 6px 14px -10px var(--pb-acc); }
.pb-primary.is-ready{ background:linear-gradient(180deg,var(--pb-gold-hi),var(--pb-gold)); color:#3A2A0C; box-shadow:0 6px 0 0 #B07D1C, 0 18px 30px -14px rgba(226,169,59,.8); }
.pb-primary:disabled{ box-shadow:inset 0 0 0 2px var(--pb-edge); }
.pb-opt, .pb-check__b, .mw-b, .me-f, .mpa-l, .mpa-r, .mft-b, .pb-agebtn, .msq-opt{ box-shadow:0 4px 0 0 var(--pb-edge), 0 14px 24px -18px rgba(30,44,38,.45); }
.pb-opt:active:not(:disabled), .pb-check__b:active:not(:disabled), .mw-b:active:not(:disabled), .me-f:active:not(:disabled), .mft-b:active:not(:disabled), .mpa-l:active, .mpa-r:active{ transform:translateY(3px); box-shadow:0 1px 0 0 var(--pb-edge); }
.pb-chip{ box-shadow:0 3px 0 0 var(--pb-edge); background:rgba(255,255,255,.9); }
.pb-chip:active:not(:disabled){ transform:translateY(2px); box-shadow:0 1px 0 0 var(--pb-edge); }
.pb-ghost{ box-shadow:0 3px 0 0 var(--pb-edge); }

/* путь из листьев и деревце в шапке */
.pb-path{ flex:1; min-width:0; display:flex; align-items:center; gap:4px; background:rgba(255,255,255,.66); border:1px solid rgba(255,255,255,.95); border-radius:999px; padding:0 4px 0 10px; height:52px; box-shadow:inset 0 2px 6px rgba(30,44,38,.06); }
.pb-path .pb-sprout{ height:42px; }
.pb-htree{ width:46px; height:50px; object-fit:contain; flex:none; filter:drop-shadow(0 4px 6px rgba(30,60,40,.25)); transform-origin:50% 90%; }
.pb-htree.is-grow{ animation:pbGrow .9s var(--pb-spring); }
@keyframes pbGrow{ 0%{ transform:scale(.5); opacity:.4; } 60%{ transform:scale(1.35); } 100%{ transform:none; opacity:1; } }
.pb-leaf.is-on{ fill:#4FB38C; filter:drop-shadow(0 0 3px rgba(79,179,140,.6)); }
.pb-sprout__stem{ stroke:#B5D6BF; stroke-dasharray:2 6; stroke-width:3.5; }

/* живой Корешок: дышит и покачивается */
.pb-k{ animation:pbBreathe 3.4s ease-in-out infinite; transform-origin:50% 100%; }
@keyframes pbBreathe{ 50%{ transform:scale(1.035,.975); } }
.pb-say{ background:rgba(255,255,255,.88); border-radius:18px 18px 18px 6px; padding:8px 12px; box-shadow:0 10px 22px -18px rgba(23,48,41,.6); }
.pb-say:empty{ padding:0; box-shadow:none; }

/* праздник верного ответа */
.pb-burst{ position:absolute; left:50%; top:45%; width:0; height:0; z-index:8; pointer-events:none; }
.pb-burst i{ position:absolute; left:-6px; top:-6px; width:12px; height:12px; opacity:0; animation:pbBurst 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
.pb-burst__lf{ background:linear-gradient(135deg,#9BE3B2,#2E9A69); border-radius:0 80% 0 80%; width:14px !important; height:14px !important; }
.pb-burst__sp{ background:#fff; clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); filter:drop-shadow(0 0 4px rgba(255,255,255,.9)); }
.pb-burst__sp.is-gold{ background:var(--pb-honey); filter:drop-shadow(0 0 5px rgba(244,194,91,.9)); }
@keyframes pbBurst{ 0%{ opacity:0; transform:translate(0,0) scale(.3) rotate(0); } 15%{ opacity:1; } 100%{ opacity:0; transform:translate(var(--dx),calc(var(--dy) + 40px)) scale(1) rotate(var(--r)); } }

/* игрушки и предметы */
.pb-toy{ display:block; object-fit:contain; filter:drop-shadow(0 10px 12px rgba(40,50,60,.22)); -webkit-user-drag:none; user-select:none; }

/* экран возраста */
.pb-agecard{ position:relative; box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 18px 30px -24px rgba(23,48,41,.5); }
.pb-agecard__toy{ position:absolute; right:8px; top:-30px; height:84px; width:auto; animation:pbFloat 4.4s ease-in-out infinite; pointer-events:none; }
.pb-agegrid{ margin-top:30px; }

/* ---------- погода картинками (6–8) ---------- */
.mw--art{ gap:12px; }
.mw-scene{ position:relative; flex:1; min-height:170px; border-radius:26px; overflow:hidden; display:flex; align-items:center; justify-content:center; transition:background .6s ease; background:linear-gradient(180deg,#CFE9FA,#F1F8FD); box-shadow:inset 0 -30px 50px -40px rgba(30,60,90,.35); }
.mw-scene[data-s="0"]{ background:radial-gradient(60% 70% at 50% 40%,#FFF4D2,transparent 70%),linear-gradient(180deg,#9FD4F6,#E7F5FD); }
.mw-scene[data-s="1"]{ background:radial-gradient(70% 70% at 50% 50%,#FFFFFF,transparent 70%),linear-gradient(180deg,#B8DDF7,#F3F0FF); }
.mw-scene[data-s="2"]{ background:linear-gradient(180deg,#C9D6E2,#EEF2F6); }
.mw-scene[data-s="4"]{ background:linear-gradient(180deg,#8FA6BE,#D7E0E9); }
.mw-scene[data-s="5"]{ background:linear-gradient(180deg,#56607E,#9AA5BF); }
.mw-scene::after{ content:""; position:absolute; left:50%; bottom:9%; width:38%; height:14px; transform:translateX(-50%); border-radius:50%; background:rgba(20,40,60,.14); filter:blur(4px); }
.mw-pic{ position:relative; z-index:1; height:68%; max-height:240px; width:auto; max-width:70%; object-fit:contain; animation:pbFloat 4s ease-in-out infinite; filter:drop-shadow(0 14px 16px rgba(30,50,80,.25)); }
.mw-pic.is-new{ animation:mwIn .55s var(--pb-spring), pbFloat 4s ease-in-out .55s infinite; }
@keyframes mwIn{ from{ transform:scale(.6) translateY(16px); opacity:0; } to{ transform:none; opacity:1; } }
.mw--art .mw-row{ grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.mw--art .mw-b{ min-height:96px; gap:4px; padding:6px 2px 8px; font-size:.86em; }
.mw--art .mw-b img{ width:58px; height:52px; object-fit:contain; }
.mw--art .mw-b.is-on{ border-color:var(--pb-gold); background:#FFF8E6; transform:translateY(-4px); }

/* ---------- собери мордочку (игрушка) ---------- */
.mft{ flex:1; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:10px; }
.mft-scene{ position:relative; min-height:0; display:flex; align-items:center; justify-content:center; }
.mft-head{ position:relative; height:100%; max-height:380px; max-width:100%; aspect-ratio:1; border-radius:50%; overflow:hidden; border:6px solid #fff; box-shadow:0 0 0 1px rgba(30,44,38,.06), 0 24px 40px -26px rgba(60,40,30,.6); background:#E9E3EC; }
.mft-headimg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.mft-layer{ position:absolute; inset:0; pointer-events:none; }
.mft-p{ position:absolute; display:block; height:auto; transform-origin:50% 50%; }
.mft-p.is-stick{ animation:mftStick .5s var(--pb-spring) both; }
@keyframes mftStick{ 0%{ transform:translateY(-30px) scale(1.7); opacity:0; } 60%{ opacity:1; } 100%{ transform:none; opacity:1; } }
.mft-head.is-wob{ animation:mftWob .4s ease; }
@keyframes mftWob{ 40%{ transform:scale(1.025) rotate(-1deg); } }
.mft-head.is-alive{ animation:mftAlive 2.6s ease-in-out infinite; box-shadow:0 0 0 6px rgba(244,194,91,.55), 0 0 40px 6px rgba(244,194,91,.45), 0 24px 40px -26px rgba(60,40,30,.6); }
@keyframes mftAlive{ 25%{ transform:rotate(-3deg) translateY(-3px); } 75%{ transform:rotate(3deg) translateY(-3px); } }
.mft-friend{ position:absolute; right:0; bottom:0; height:58%; width:auto; max-width:34%; z-index:2; }
.mft-friend[hidden]{ display:none; }
.mft-ctr{ display:grid; gap:8px; }
.mft-row{ display:grid; grid-template-columns:72px minmax(0,1fr); align-items:center; gap:8px; border-radius:20px; transition:background .3s; }
.mft-row.is-hint{ background:rgba(244,194,91,.22); animation:pbGlow 1.2s ease-in-out 2; }
.mft-lab{ font-weight:800; font-size:max(15px,.86em); color:var(--pb-ink2); padding-left:6px; }
.mft-btns{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.mft-b{ appearance:none; border:2px solid #fff; background:#fff; border-radius:18px; min-height:60px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s var(--pb-spring), border-color .2s, background .2s; padding:6px; }
.mft-b:hover:not(:disabled){ transform:translateY(-2px); border-color:color-mix(in srgb, var(--pb-acc) 35%, #fff); }
.mft-b.is-on{ border-color:var(--pb-acc); background:var(--pb-soft); }
.mft-pic{ display:flex; align-items:center; justify-content:center; gap:10px; pointer-events:none; }
.mft-pic img{ display:block; width:auto; }
.mft-pic--brow img{ height:24px; }
.mft-pic--eye img{ height:30px; }
.mft-pic--mouth img{ height:36px; }

/* ---------- разные глаза: игрушки ---------- */
.me-av--toy{ border-radius:24px; background:radial-gradient(circle at 50% 70%, var(--pb-soft), transparent 70%); overflow:visible; }
.me-toy{ width:100%; height:100%; object-fit:contain; }
.me-av--toy .me-toy.pb-pop{ animation:pbPop .45s var(--pb-spring) both; }

/* ---------- дыхание с показом ---------- */
.mbr--art{ display:grid; grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr) auto auto auto; justify-items:center; align-content:center; }
.mbr-tag{ margin:0; padding:6px 16px; border-radius:999px; background:rgba(255,255,255,.85); font-weight:800; font-size:max(15px,.9em); color:var(--pb-ink2); box-shadow:0 3px 0 var(--pb-edge); }
.mbr-tag.is-go{ background:linear-gradient(180deg,var(--pb-gold-hi),var(--pb-gold)); color:#3A2A0C; animation:pbPop .5s var(--pb-spring); }
.mbr-orb--art{ width:auto; height:100%; max-height:300px; min-height:140px; aspect-ratio:1; flex:none; }
.mbr-ball{ position:absolute; left:50%; top:50%; height:82%; width:auto; transform:translate(-50%,-50%) scale(.46); transform-origin:50% 50%; filter:drop-shadow(0 14px 16px rgba(160,60,40,.25)); will-change:transform; }
.mbr-words{ display:flex; align-items:baseline; justify-content:center; flex-wrap:wrap; gap:4px 12px; min-height:2.6em; text-align:center; }
.mbr-word{ font-family:"Manrope",system-ui,sans-serif; font-size:clamp(2rem,5.4vw,3.2rem); font-weight:800; line-height:1; color:#2F78C4; letter-spacing:-.01em; }
.mbr-words[data-ph="out"] .mbr-word{ color:#D9654E; }
.mbr-word.is-new{ animation:pbPop .45s var(--pb-spring); }
.mbr-count{ min-width:1.6em; font-size:clamp(1.6rem,4vw,2.4rem); font-weight:800; color:var(--pb-ink); opacity:.75; }
.mbr-sub{ flex-basis:100%; font-size:max(15px,.92em); font-weight:700; color:var(--pb-ink2); }
.mbr--art .mbr-hold:disabled{ opacity:.55; }
@media (min-width:760px){
  .mbr--art{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto auto; grid-template-areas:"tag tag" "orb words" "dots dots" "ctr ctr"; column-gap:20px; }
  .mbr--art .mbr-tag{ grid-area:tag; }
  .mbr--art .mbr-orb{ grid-area:orb; justify-self:end; }
  .mbr--art .mbr-words{ grid-area:words; justify-self:start; flex-direction:column; align-items:flex-start; text-align:left; justify-content:center; height:100%; }
  .mbr--art .mbr-sub{ flex-basis:auto; }
  .mbr--art .mbr-dots{ grid-area:dots; }
  .mbr--art .mbr-ctr{ grid-area:ctr; }
}

/* ---------- ход героя: сцена из игрушки и окна ---------- */
.mst-pic--toy{ background:linear-gradient(180deg,#F8EBDD 0%,#F4E2CF 66%,#E2C6A6 66.2%,#D9BB98 100%); }
.mst-pic--toy img{ inset:auto; width:auto; height:auto; object-fit:contain; }
.mst-win{ position:absolute; right:7%; top:7%; width:40%; aspect-ratio:1; border-radius:18px; background:linear-gradient(180deg,#8EA3B9,#C8D4DF); border:8px solid #fff; box-shadow:0 10px 20px -14px rgba(60,40,20,.5), inset 0 0 0 2px rgba(255,255,255,.4); overflow:hidden; }
.mst-win::before{ content:""; position:absolute; left:50%; top:0; bottom:0; width:6px; margin-left:-3px; background:#fff; z-index:1; }
.mst-pic--toy .mst-winart{ position:absolute; left:8%; top:10%; width:84%; height:80%; }
.mst-pic--toy .mst-toyimg{ position:absolute; left:30%; bottom:6%; height:70%; transform:translateX(-50%); filter:drop-shadow(0 16px 14px rgba(70,40,20,.28)); }
.mst-pic--toy .mst-toyimg.pb-pop{ animation:mstToy .5s var(--pb-spring) both; }
@keyframes mstToy{ from{ transform:translateX(-50%) scale(.85); } to{ transform:translateX(-50%); } }
.mst-pic--toy::after{ content:""; position:absolute; left:30%; bottom:5%; width:30%; height:5%; transform:translateX(-50%); border-radius:50%; background:rgba(70,40,20,.18); filter:blur(3px); }

/* ---------- градусник картинкой ---------- */
.mth-left--toy{ gap:14px; }
.mth-art{ position:relative; height:100%; max-height:330px; aspect-ratio:171/420; flex:none; }
.mth-artimg{ display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 12px 14px rgba(40,40,60,.22)); }
.mth-cover{ position:absolute; left:33%; width:29%; top:10.6%; height:62.4%; border-radius:999px; background:linear-gradient(90deg,#E8DECD,#FBF6EE 45%,#E6DBC8); box-shadow:inset 0 2px 4px rgba(120,100,70,.18); transform-origin:50% 0; transition:transform .9s var(--pb-spring); }
.mth-face:has(.mth-toy){ width:130px; }
.mth-toy{ width:100%; height:auto; }
.mth-toy.pb-pop, .mth-face.pb-pop .mth-toy{ animation:pbPop .45s var(--pb-spring) both; }

/* ---------- карточки: игрушка между корзинками ---------- */
.ms--toy .ms-bins{ grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:6px; }
.ms--toy .ms-bin{ min-width:0; padding:10px 8px; gap:5px; }
.ms--toy .ms-bin .pb-ico{ flex:none; width:24px; height:24px; }
@media (max-width:430px){ .ms--toy .ms-bin{ font-size:.84em; padding:10px 6px; justify-content:center; } .ms--toy .ms-bin .pb-ico{ display:none; } .ms--toy .ms-toy{ height:64px; } }
.ms-toy{ height:96px; width:auto; max-width:none; } /* max-width:100% в колонке auto сжимал игрушку до нуля на телефоне */
@media (min-width:1000px){
  .ms--toy .ms-toy{ grid-column:2; grid-row:1; align-self:start; justify-self:center; height:110px; margin-top:-8px; position:relative; z-index:0; }
  .ms--toy .ms-deck{ align-self:end; }
}

/* ---------- пары и разминка картинками ---------- */
.mpa-l--toy img{ object-fit:contain; filter:drop-shadow(0 4px 5px rgba(40,50,60,.2)); }
.mfo--art .mfo-it img, .mfo--art .mfo-demo__i img{ width:100%; height:100%; object-fit:contain; display:block; filter:drop-shadow(0 6px 8px rgba(30,60,40,.25)); pointer-events:none; }
.mfo--art .mfo-demo__i img{ width:84px; height:84px; }

/* ---------- итог: деревце растёт и парит ---------- */
.pb-kidend{ background:linear-gradient(165deg,#F2FBF5 0%,#E2F3EA 55%,#FFF1DC 100%); border:1px solid rgba(255,255,255,.9); box-shadow:inset 0 1px 0 #fff, 0 24px 44px -32px rgba(23,48,41,.5); border-radius:28px; position:relative; overflow:hidden; }
.pb-tree{ position:relative; width:min(300px,72vw); aspect-ratio:452/560; height:auto; }
.pb-tree__glow{ position:absolute; left:10%; right:10%; top:8%; bottom:22%; border-radius:50%; background:radial-gradient(circle,rgba(255,222,140,.75),rgba(255,222,140,0) 70%); filter:blur(8px); animation:pbGlowPulse 4s ease-in-out infinite; }
@keyframes pbGlowPulse{ 50%{ opacity:.6; transform:scale(1.06); } }
.pb-tree__img{ position:relative; display:block; width:100%; height:auto; animation:pbTreeIn .9s var(--pb-spring) both, pbTreeFloat 5s ease-in-out .9s infinite; filter:drop-shadow(0 22px 22px rgba(30,60,40,.25)); }
@keyframes pbTreeIn{ from{ transform:scale(.6) translateY(30px); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes pbTreeFloat{ 50%{ transform:translateY(-8px); } }
.pb-tree .pb-tree__leaf{ position:absolute; width:16px; height:16px; margin:-8px 0 0 -8px; fill:none; border-radius:0 80% 0 80%; background:linear-gradient(135deg,#A6E8BC,#3BA776); transform:rotate(var(--r)); animation:pbLeafPop .6s var(--pb-spring) both, pbLeafBob 3.6s ease-in-out infinite; box-shadow:0 3px 6px -2px rgba(30,80,50,.35); }
.pb-tree .pb-tree__leaf.c1{ background:linear-gradient(135deg,#D6F3B0,#7CC15A); }
.pb-tree .pb-tree__leaf.c2{ background:linear-gradient(135deg,#FFE29A,#E2A93B); }
@keyframes pbLeafPop{ from{ transform:rotate(var(--r)) scale(0); } to{ transform:rotate(var(--r)) scale(1); } }
@keyframes pbLeafBob{ 50%{ transform:rotate(var(--r)) translateY(-5px); } }
.pb-wx__art{ display:block; width:100%; aspect-ratio:5/3; object-fit:contain; padding:8px; border-radius:16px; background:linear-gradient(180deg,#CFE6F7,#F3F8FC); }
.pb-mission{ border:2px solid #F3DDA6; background:linear-gradient(180deg,#FFFDF6,#FFF6E0); }
.pb-parent{ border:1px solid rgba(30,44,38,.06); }

/* 6–8: крупные касания */
.proba[data-band="6-8"] .pb-chip{ min-height:52px; min-width:52px; }
.proba[data-band="6-8"] .pb-snd{ width:52px; }
@media (min-width:760px){
  .proba[data-band="6-8"] .pb-chip{ min-height:56px; min-width:56px; }
  .proba[data-band="6-8"] .pb-snd{ width:56px; }
  .pb-path{ height:58px; }
  .mft{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:1fr; align-items:center; column-gap:20px; }
  .mft-head{ height:auto; width:100%; max-width:380px; }
  .mft-b{ min-height:72px; }
  .mft-pic--brow img{ height:28px; }
  .mft-pic--eye img{ height:38px; }
  .mft-pic--mouth img{ height:44px; }
}
@media (min-width:760px) and (max-height:860px){
  .proba[data-band="6-8"] .pb-chip{ min-height:52px; min-width:52px; }
  .pb-path{ height:52px; }
  .mft-head{ max-width:330px; }
  .mft-b{ min-height:64px; }
  .mbr-orb--art{ max-height:250px; }
  .mw--art .mw-b{ min-height:88px; }
  .mw--art .mw-b img{ width:52px; height:44px; }
}
@media (max-width:759px){
  .mw--art .mw-row{ grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
  .mw--art .mw-b{ flex-direction:column; min-height:76px; font-size:.7em; padding:4px 1px 6px; }
  .mw--art .mw-b img{ width:40px; height:36px; }
  .mft-row{ grid-template-columns:1fr; gap:4px; }
  .mft-lab{ padding-left:4px; }
  .mft-b{ min-height:56px; }
  .ms-toy{ height:72px; }
  .mth-face:has(.mth-toy){ width:96px; }
  .pb-path{ height:48px; padding-left:6px; }
  .pb-htree{ width:38px; height:44px; }
}
@media (prefers-reduced-motion: reduce){
  .proba::before, .proba::after, .pb-k, .mw-pic, .pb-tree__img, .pb-tree__glow, .pb-tree .pb-tree__leaf, .mft-head.is-alive, .pb-agecard__toy{ animation:none !important; }
  .pb-burst{ display:none; }
}

/* Грусть и другие мелкие лица: спрайт целиком (с телом) в квадрате 40–56 px давал лицо размером с ноготь —
   грусть не отличалась от страха. Теперь в кнопке крупно только голова, а плитка подкрашена по чувству. */
.me-f img, .mpa-l img{ object-fit:cover; object-position:50% 12%; }
.me-f{ min-height:64px; }
.me-f img{ max-width:64px; }
.me-f[data-f="joy"]{ background:#FFF4D6; }
.me-f[data-f="sadness"]{ background:#E1ECFA; }
.me-f[data-f="anger"]{ background:#FDE3DC; }
.me-f[data-f="fear"]{ background:#ECE6FA; }
.me-f[data-f="calm"]{ background:#E2F4EA; }
.me-f[data-f="surprise"]{ background:#FFEBD6; }
.me-f.is-on{ background:#fff; }
@media (max-width:759px){ .me-f img{ max-width:46px; } }
.mw-pic{ pointer-events:none; }
.mw-scene .mw-name{ z-index:2; }
.mw-scene .mw-tap{ z-index:3; }
@media (min-width:1000px){ .ms--toy .ms-toy{ margin-top:0; height:100px; } }
.mft-b{ overflow:hidden; min-width:0; }
.mft-pic{ max-width:100%; gap:8%; }
.mft-pic--brow img, .mft-pic--eye img{ max-width:42%; height:auto !important; max-height:38px; object-fit:contain; }
.mft-pic--mouth img{ max-width:80%; object-fit:contain; }
.mst-bub:empty, .mst-bub[hidden], .mst-badge[hidden]{ display:none !important; }
.mst-pic--toy .mst-bub{ left:40%; top:6%; max-width:54%; }
/* градусник: размер от ширины, а не от высоты колонки — иначе на телефоне он залезал на вопрос */
.mth-art{ height:auto; width:min(120px,100%); max-height:none; }
@media (max-width:759px){
  .mth-left--toy{ gap:6px; }
  .mth-art{ width:68px; }
  .mth-face:has(.mth-toy){ width:76px; }
  .me-f{ min-height:56px; }
}
@media (min-width:760px) and (max-height:760px){
  .me-f{ min-height:52px; }
  .me-f img{ max-width:44px; }
  .me-av{ width:72px; }
  .ms--toy .ms-toy{ height:68px; margin-top:0; }
}
/* дыхание: шарик крупнее, Корешок рядом */
.mbr-orb--art{ overflow:visible; }
.mbr-orb--art .mbr-ball{ left:58%; top:44%; height:96%; transform:translate(-50%,-50%) scale(.5); }
.mbr-kor{ position:absolute; left:-14%; bottom:-4%; height:46%; width:auto; filter:drop-shadow(0 8px 10px rgba(30,44,38,.22)); pointer-events:none; animation:pbBreathe 4s ease-in-out infinite; }
@media (min-width:760px){ .mbr--art .mbr-orb{ margin-left:12%; } }
@media (max-width:759px){ .mbr-kor{ left:-8%; height:40%; } }
@media (prefers-reduced-motion:reduce){ .mbr-kor{ animation:none; } }
@media (max-width:759px){ .mft-head{ height:auto; width:min(64vw,250px); max-height:none; } }
/* правки по второму прогону */
.msq--art .msq-art{ flex-basis:340px; }
@media (min-width:760px) and (max-width:999px){ .mbr-kor{ left:-4%; } .mbr--art .mbr-orb{ margin-left:8%; } }
@media (min-width:760px) and (max-height:700px){ .ms--toy .ms-toy{ display:none; } }
@media (max-width:759px){
  .mft{ grid-template-rows:auto auto; }
  .mft-head{ width:min(58vw,220px); }
  .me-f{ min-height:52px; }
}
@media (max-width:759px){
  .mft{ grid-template-rows:minmax(0,1fr) auto; }
  .mft-head{ height:100%; width:auto; max-height:240px; }
  .mft-row{ grid-template-columns:50px minmax(0,1fr); gap:6px; }
  .mft-lab{ font-size:14px; padding-left:0; }
  .me-f{ min-height:48px; }
  .me-f img{ max-width:40px; }
}
@media (min-width:1000px){ .ms--toy .ms-deck{ align-self:center; } }
@media (max-width:759px){ .proba:not([data-band="6-8"]) .me-f{ min-height:0; } .proba:not([data-band="6-8"]) .me-f img{ max-width:36px; } }
@media (max-width:759px){ .proba:not([data-band="6-8"]) .me-av{ width:44px; } .proba:not([data-band="6-8"]) .me-faces{ gap:4px; } }
@media (max-width:759px){ .proba:not([data-band="6-8"]) .me-f{ padding:2px 1px; font-size:14px; } .proba:not([data-band="6-8"]) .me-hero{ padding-top:6px; padding-bottom:6px; } }

/* ===== Загрузка (16.11): набор и механика грузятся после выбора возраста, картинки — с заглушкой ===== */
.pb-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.pb-wait{ display:flex; flex-direction:column; gap:14px; min-height:min(600px, calc(100svh - var(--nav-h,68px) - 20px)); }
.pb-wait__bar{ display:flex; align-items:center; gap:10px; }
.pb-wait.is-failed{ align-items:center; justify-content:center; text-align:center; }
.pb-skel{ display:block; border-radius:18px; background:linear-gradient(100deg, rgba(30,44,38,.06) 30%, rgba(255,255,255,.75) 50%, rgba(30,44,38,.06) 70%) 0 0/300% 100%; animation:pbShimmer 1.4s linear infinite; }
.pb-skel--chip{ width:92px; height:44px; border-radius:999px; flex:none; }
.pb-skel--line{ flex:1; height:16px; border-radius:999px; }
.pb-skel--q{ width:72%; height:28px; }
.pb-skel--stage{ flex:1; min-height:260px; border-radius:24px; }
@keyframes pbShimmer{ from{ background-position:100% 0; } to{ background-position:0 0; } }
/* Картинка ещё грузится: вместо полупрорисованной картинки — мягкий перелив в рамке её места. */
.proba img.pb-img-wait{ opacity:0; }
.proba :is(div, figure, span, button):has(> img.pb-img-wait){ background-image:linear-gradient(100deg, rgba(30,44,38,.05) 30%, rgba(255,255,255,.7) 50%, rgba(30,44,38,.05) 70%); background-size:300% 100%; animation:pbShimmer 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce){
  .pb-skel, .proba :is(div, figure, span, button):has(> img.pb-img-wait){ animation:none; }
}
/* Телефон, баннер cookie ещё открыт: задание укорачивается на его высоту, чтобы ответы и главная кнопка были над баннером. */
@media (max-width:759px){
  body.trg-cookie-open .pb-task{ height:max(560px, calc(100svh - var(--nav-h,68px) - 20px - var(--trg-cookie-h,0px))); }
}

/* =====================================================================
   Телефон (16.11.2026, вечер): каркас экрана задания.
   Раньше задание было не ниже 600 px и на телефоне с панелями браузера (видимая высота 550–660 px)
   уходило под низ окна, а липкий низ с Корешком и кнопкой ложился поверх ответов.
   Теперь задание ровно в видимой высоте окна (dvh; запасные svh и vh):
   шапка — середина (если не влезла, прокручивается внутри себя) — низ с Корешком и главной кнопкой.
   На низких окнах всё ужимается ступенями по высоте. Компьютер и планшет (от 760 px) не затронуты.
   ===================================================================== */
@media (max-width:759px){
  .pb-task{
    --pb-room:calc(var(--nav-h,68px) + 16px);
    height:calc(100vh - var(--pb-room)); height:calc(100svh - var(--pb-room)); height:calc(100dvh - var(--pb-room));
    min-height:300px; padding:10px 12px 0; gap:6px;
  }
  body.trg-cookie-open .pb-task{
    height:calc(100vh - var(--pb-room) - var(--trg-cookie-h,0px)); height:calc(100svh - var(--pb-room) - var(--trg-cookie-h,0px)); height:calc(100dvh - var(--pb-room) - var(--trg-cookie-h,0px));
    min-height:300px;
  }
  /* середина: всё, что не влезло, прокручивается здесь, а не уходит под низ; поля по бокам — чтобы не резались тени кнопок */
  .pb-stage{ overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; margin:0 -12px; padding:4px 12px 6px; gap:10px; }
  .pb-stage:has(> .pb-check){ overflow:hidden; }
  .pb-check{ padding:10px; gap:12px; }
  .pb-check__b{ min-height:96px; padding:12px 4px; }
  .pb-foot{ position:relative; margin:0 -12px; padding:6px 12px calc(10px + env(safe-area-inset-bottom,0px)); gap:6px 8px; background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9) 30%); }
  .pb-kwrap{ width:52px; height:50px; }
  .pb-say{ font-size:.95em; line-height:1.28; padding:7px 11px; }
  .pb-primary{ min-height:52px; }
  .pb-q{ font-size:1.1em; line-height:1.24; }
  .pb-small{ font-size:max(14px,.84rem); }
  .pb-agecard__toy{ height:68px; top:-22px; right:4px; }
}
/* низкие окна телефона: iPhone SE и 12–16 с панелями браузера, маленькие Android */
@media (max-width:759px) and (max-height:700px){
  .pb-task{ padding-top:8px; gap:5px; }
  .proba[data-band="6-8"] .pb-chip{ min-height:46px; min-width:46px; }
  .proba[data-band="6-8"] .pb-snd{ width:46px; }
  .pb-path{ height:44px; }
  .pb-path .pb-sprout{ height:36px; }
  .pb-htree{ width:34px; height:40px; }
  .pb-q{ font-size:1.04em; }
  .pb-kwrap{ width:44px; height:44px; }
  .pb-primary{ min-height:48px; }
  .pb-foot{ padding-top:4px; padding-bottom:calc(8px + env(safe-area-inset-bottom,0px)); }
}
/* телефон лёжа: низ в одну строку — Корешок, реплика, кнопка */
@media (max-width:759px) and (max-height:500px){
  .pb-foot{ grid-template-columns:auto minmax(0,1fr) minmax(160px,auto); grid-template-areas:"k say btn"; }
  .pb-main{ min-width:160px; }
  .pb-q{ font-size:1em; }
  .pb-kwrap{ width:40px; height:40px; }
}
/* механики на низком телефоне: картинки сцены уменьшаются первыми, кнопки ответов остаются не ниже 44 px */
@media (max-width:759px) and (max-height:700px){
  .mw-sky{ min-height:96px; }
  .mw-scene{ min-height:96px; }
  .mw-pic{ height:76%; }
  .mw--art .mw-b{ min-height:70px; }
  .mw--art .mw-b img{ width:36px; height:32px; }
  .mw-b{ min-height:44px; }
  .mp{ gap:8px; }
  .mp-card{ grid-template-columns:1fr; grid-template-areas:"step" "txt"; padding:10px 14px; }
  .mp-ico{ display:none; }
  .mp-right{ gap:6px; }
  .mp-kbox{ min-height:0; }
  .mp-lvl{ display:none; }
  .me{ grid-template-rows:minmax(44px,18%) minmax(0,1fr); gap:8px; }
  .me-heroes{ gap:8px; }
  .me-hero{ gap:4px 10px; padding:6px 10px; }
  .me-av, .proba:not([data-band="6-8"]) .me-av{ width:44px; }
  .me-f, .proba:not([data-band="6-8"]) .me-f{ min-height:44px; padding:2px 1px; }
  .me-f img, .proba:not([data-band="6-8"]) .me-f img{ max-width:30px; }
  .me-cap{ bottom:50%; transform:translateY(50%); padding:4px 12px 4px 8px; }
  .mbr-orb{ min-height:110px; }
  .mbr-orb--art{ min-height:110px; }
  .mbr-words{ min-height:2.1em; }
  .mbr-word{ font-size:1.8rem; }
  .mbr-count{ font-size:1.5rem; }
  .mbr-hold{ min-height:56px; }
  .mbr, .msq{ gap:6px; }
  .msq-art{ min-height:110px; }
  .msq-opt{ min-height:84px; }
  .mth-way{ min-height:44px; padding:6px 10px; font-size:.86em; }
  .mth-ways{ gap:6px; }
  .mth-art{ width:56px; }
  .mth-face:has(.mth-toy){ width:72px; }
  .mpa-col{ gap:5px; }
  .mpa-l, .mpa-r{ min-height:50px; }
  .mpa-l img{ width:34px; height:34px; }
  .mpa-r{ font-size:.8em; padding:6px 8px 6px 18px; }
  .mpa-r__ico{ width:28px; height:28px; }
  .mpa-r__ico .pb-ico{ width:20px; height:20px; }
  .mb-chips{ grid-template-columns:1fr 1fr; gap:6px; }
  .mb-chip{ min-height:44px; }
  .mb-tool{ min-height:48px; }
}
/* середина задания не влезла и прокручивается: внизу мягкая стрелка «есть ещё» */
.pb-task.is-more .pb-foot::before{ content:""; position:absolute; left:50%; top:-12px; width:30px; height:30px; margin-left:-15px; border-radius:50%; background:#fff no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B53' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); box-shadow:0 4px 10px -4px rgba(30,44,38,.45); pointer-events:none; animation:pbMore 1.6s ease-in-out infinite; z-index:2; }
@keyframes pbMore{ 50%{ transform:translateY(4px); } }
@media (prefers-reduced-motion: reduce){ .pb-task.is-more .pb-foot::before{ animation:none; } }
/* вторая ступень низкого телефона: разные глаза, градусник, пары, дыхание, тело */
@media (max-width:759px) and (max-height:700px){
  .me-hero, .proba:not([data-band="6-8"]) .me-hero{ grid-template-columns:44px minmax(0,1fr); grid-template-areas:"av tx" "av fc"; align-items:center; padding:6px 10px; }
  .me-av{ align-self:start; }
  .me-hero__tx{ flex-direction:row; flex-wrap:wrap; align-items:baseline; column-gap:6px; line-height:1.15; }
  .mth{ grid-template-columns:72px minmax(0,1fr); gap:8px; }
  .mth-left--toy{ flex-direction:column; }
  .mth-face{ width:56px; }
  .mth-face:has(.mth-toy){ width:64px; }
  .mpa{ grid-template-columns:76px 16px minmax(0,1fr); }
  .mpa-r{ font-size:max(14px,.8em); padding:6px 8px 6px 16px; gap:6px; line-height:1.2; }
  .mbr-row .pb-ghost{ padding:0 14px; white-space:nowrap; }
  .mb-tool{ min-height:44px; }
  .mb-tools, .mb-chips{ gap:5px; }
}
/* узкий телефон (320–360 px): у случаев в парах нет значка — текст получает ширину */
@media (max-width:360px) and (max-height:700px){
  .mpa-r__ico{ display:none; }
  .pb-q{ font-size:1em; }
}
/* телефон: подписи мордочек в парах не мельче 14 px; герой в «разных глазах» не сжимается — иначе его лица наезжали на соседа */
@media (max-width:759px){
  .mpa-l{ font-size:max(14px,.74em); }
  .me-heroes{ grid-auto-rows:auto; align-content:start; }
  .me-hero{ min-height:auto; }
}
@media (max-width:759px) and (max-height:700px){
  .mpa-l{ padding:3px 3px 4px; }
  .mpa-l img{ width:30px; height:30px; }
  .me-f span{ font-size:14px; line-height:1.1; }
  .me-f img, .proba:not([data-band="6-8"]) .me-f img{ max-width:28px; }
  .me-hero__tx span{ font-size:14px; }
  .mth-way{ padding:4px 8px; line-height:1.18; }
  .mw-sky{ min-height:72px; }
  .mw-range{ height:24px; }
}
@media (max-width:759px) and (max-height:700px){
  .me-f img, .proba:not([data-band="6-8"]) .me-f img{ max-width:26px; }
  .me-f, .proba:not([data-band="6-8"]) .me-f{ gap:0; padding:1px; }
  .me{ gap:6px; }
  .mth-ways{ gap:4px; }
}
/* дыхание: две кнопки под главной — в одну строку, если хватает ширины */
@media (min-width:361px) and (max-width:759px) and (max-height:700px){ .mbr-row{ flex-wrap:nowrap; } }
/* узкий телефон: лица героя — во всю ширину карточки, иначе плитка уже 44 px */
@media (max-width:360px){
  .me-hero, .proba:not([data-band="6-8"]) .me-hero{ grid-template-columns:44px minmax(0,1fr); grid-template-areas:"av tx" "fc fc"; }
}
/* итог на телефоне: подписи и мелкие заголовки не мельче 14 px */
@media (max-width:759px){
  .pb-mission__h, .pb-pmission__h, .pb-nextup__h, .pb-parent__eyebrow{ font-size:14px; letter-spacing:.04em; }
  .pb-wx__c figcaption{ font-size:14px; }
  .pb-form label, .pb-form .hx-check span{ font-size:14px; }
}
/* низкий телефон, третья ступень: событие «разных глаз» — подпись в потоке, а не поверх неба;
   дыхание — шарик и слова рядом; карточка свайпа шире и ниже, текст не вылезает на счётчик */
@media (max-width:759px) and (max-height:700px){
  .me{ grid-template-rows:auto minmax(0,1fr); }
  .me-event{ height:auto; min-height:44px; display:flex; align-items:center; }
  .me-cap{ position:relative; left:auto; bottom:auto; transform:none; margin:6px 8px; line-height:1.2; }
  .mbr--art{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto auto; grid-template-areas:"tag tag" "orb words" "dots dots" "ctr ctr"; column-gap:10px; }
  .mbr--art .mbr-tag{ grid-area:tag; font-size:14px; padding:4px 12px; }
  .mbr--art .mbr-orb{ grid-area:orb; justify-self:end; height:100%; min-height:0; max-height:100%; }
  .mbr--art .mbr-words{ grid-area:words; justify-self:start; flex-direction:column; flex-wrap:nowrap; align-items:flex-start; text-align:left; justify-content:center; gap:2px; height:100%; min-height:0; }
  .mbr--art .mbr-sub{ flex-basis:auto; }
  .mbr--art .mbr-dots{ grid-area:dots; }
  .mbr--art .mbr-ctr{ grid-area:ctr; }
  .mbr-row{ flex-wrap:nowrap; }
  .mbr-row .pb-ghost{ font-size:14px; padding:0 10px; }
  .ms-card{ aspect-ratio:auto; height:100%; max-height:260px; width:min(280px,86%); max-width:none; gap:8px; padding:12px; border-radius:24px; }
  .ms-card__ico{ width:44px; height:44px; border-radius:16px; }
  .ms-card__t{ font-size:1.08em; }
}
@media (max-width:759px) and (max-height:700px){
  .mbr--art .mbr-word{ font-size:1.6rem; }
  .mbr--art .mbr-count{ font-size:1.1rem; line-height:1; }
  .mbr--art .mbr-sub{ font-size:14px; line-height:1.1; }
  .mbr--art .mbr-dots{ margin-top:2px; }
}
/* свайп на низком телефоне: «Все карточки разобраны» — одной строкой, не наезжает на игрушку и кнопки */
@media (max-width:759px) and (max-height:700px){
  .ms-done{ flex-direction:row; gap:8px; text-align:left; line-height:1.2; }
  .ms-done .pb-ico{ width:32px; height:32px; flex:none; }
}
/* сила чувства: свечение за мордочкой не перехватывает касания (на узком экране оно заходило на кнопки уровней) */
.mp-glow{ pointer-events:none; }
/* тело на телефоне: кнопки частей тела не ниже 44 px и на высоком экране */
@media (max-width:759px){ .mb-chip{ min-height:44px; } }
/* термометр на телефоне не шире своей колонки (заходил на варианты на 5 px) */
@media (max-width:759px){ .mth-svg{ max-width:100%; justify-self:center; } }
/* итог на телефоне: деревце не шире своей карточки (на 320 px было 230 px при 214 px места и срезалось справа) */
@media (max-width:759px){ .pb-kidend{ grid-template-columns:minmax(0,1fr); } .pb-tree{ max-width:100%; } }
/* свайп на телефоне: колонка не шире сцены (на 320 px корзинки и кнопки уезжали вправо на 40 px) */
@media (max-width:759px){
  .ms{ grid-template-columns:minmax(0,1fr); }
  .ms-bins{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .ms-bin{ min-width:0; }
}
@media (max-width:360px){
  .ms-bin{ padding:8px; gap:6px; font-size:.86em; }
  .ms-btn{ min-width:72px; }
}
/* низкий телефон: карточки колоды за верхней — только краешки, без текста (текст задних карточек вылезал на счётчик) */
@media (max-width:759px) and (max-height:700px){
  .ms-card[data-depth="1"] > *, .ms-card[data-depth="2"] > *{ visibility:hidden; }
  .ms-card[data-depth="1"]{ transform:translateY(8px) scale(.95); }
  .ms-card[data-depth="2"]{ transform:translateY(16px) scale(.9); }
}
/* телефон лёжа: в дыхании подпись «Смотри, как дышит Корешок» дублирует строку Корешка внизу — убираем, шарику нужна высота */
@media (max-width:759px) and (max-height:500px){
  .mbr--art .mbr-tag{ display:none; }
  .mbr--art{ grid-template-rows:minmax(0,1fr) auto auto; grid-template-areas:"orb words" "dots dots" "ctr ctr"; }
}
/* телефон лёжа: сцене всего ~140 px — колода и шарик берут свою высоту, середина прокручивается (стрелка подсказывает) */
@media (max-width:759px) and (max-height:500px){
  .ms{ grid-template-rows:auto 150px auto; }
  .ms-card{ max-height:140px; }
  .mbr--art{ grid-template-rows:110px auto auto; }
  .mbr--art .mbr-orb{ min-height:110px; height:110px; }
}
/* улики на телефоне: картинка не сжимается, когда найденные подписи растят список (на 375×553 она падала до 65 px
   и зоны становились 6×6 px); не влезает — середина задания прокручивается */
@media (max-width:759px){
  .mc{ grid-template-rows:minmax(min(72vw,230px),1fr) auto; }
  .mc-pic{ min-height:min(72vw,230px); }
  .mc-slot{ font-size:max(14px,.84em); }
}
/* «Глазами другого» на телефоне: длинное название чувства («спокойствие») переносится по слогам внутри плитки, а не налезает на соседнюю */
@media (max-width:759px){
  .me-f span{ white-space:normal; hyphens:auto; -webkit-hyphens:auto; overflow-wrap:anywhere; text-align:center; max-width:100%; line-height:1.05; }
}
@media (max-width:759px) and (max-height:700px){
  .me-hero, .proba:not([data-band="6-8"]) .me-hero{ grid-template-columns:44px minmax(0,1fr); grid-template-areas:"av tx" "fc fc"; }
}
/* узкий телефон (320–360): лица по два в ряд, картинка слева от подписи — «спокойствие» помещается одной строкой */
@media (max-width:360px){
  .me-faces, .proba:not([data-band="6-8"]) .me-faces{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
  .me-f, .proba:not([data-band="6-8"]) .me-f{ flex-direction:row; justify-content:flex-start; gap:4px; padding:3px 4px; min-height:44px; }
  .me-f span{ white-space:nowrap; hyphens:none; text-align:left; }
}

/* «Как теперь?» на низком окне (телефон лёжа, крупный шрифт): плашка не влезала в середину и резалась — ужимаем и даём прокрутку */
@media (max-height:600px){
  .pb-check{ gap:8px; padding:8px; overflow-y:auto; justify-content:safe center; }
  .pb-check__q{ font-size:1.2em; }
  .pb-check__b{ min-height:64px; padding:8px 4px; gap:4px; }
  .pb-check__b .pb-ico{ width:30px; height:30px; }
}

/* лицо при крупном шрифте раздувалось шире своей колонки и ложилось на стрелки «дальше» */
.mf-svg{ max-width:100%; }
/* лицо «Собери лицо» на низком телефоне сжималось в точку: строки со стрелками съедали всю высоту. Даём лицу минимум, стрелки уходят в прокрутку середины */
@media (max-width:759px){
  .mf{ grid-template-rows:minmax(min(46vw,170px),1fr) auto; }
  .mf-face{ min-height:min(46vw,170px); }
}
@media (max-width:759px) and (max-height:700px){
  .mf{ gap:8px; }
  .mf-ctr{ gap:6px; }
  .mf-row{ padding:2px; }
}
@media (max-width:759px) and (max-height:500px) and (orientation:landscape){
  .mf{ grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); grid-template-rows:minmax(0,1fr); }
  .mf-face{ min-height:0; }
  .mf-ctr{ align-self:start; }
}
/* «Лови листья» на низком телефоне: подпись «Не трогай» под колючкой резалась краем поля */
@media (max-width:759px) and (max-height:700px){
  .mfo-demo__i svg, .mfo--art .mfo-demo__i img{ width:64px; height:64px; }
  .mfo-demo__i{ gap:2px; }
}
/* «Где в теле» на низком окне: правая колонка по центру вылезала ВВЕРХ за край середины — «Тепло/Холод» было не достать. safe center = по центру, пока влезает, иначе от верха */
@media (max-width:759px){
  .mb-side{ align-self:start; align-self:safe center; }
}

/* 19.11.2026 — понятность упражнений. Вступление «что делать» перед дыханием и лимоном: шаги с номерами, кнопка «Начнём» внизу. */
.pb-steps{ align-self:center; margin:auto; width:min(560px,100%); padding:20px 22px; border-radius:24px; background:var(--pb-card,#fff); box-shadow:0 4px 0 0 var(--pb-edge), 0 18px 34px -24px rgba(30,44,38,.45); }
.pb-steps__t{ margin:0 0 12px; font-weight:800; font-size:max(16px,1.05em); color:var(--pb-ink); }
.pb-steps__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.pb-steps__list li{ display:flex; align-items:center; gap:14px; font-size:max(16px,1.05em); font-weight:700; line-height:1.3; color:var(--pb-ink); }
.pb-steps__n{ flex:none; width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--pb-soft); color:var(--pb-acc); font-weight:800; font-size:18px; }
@media (max-width:759px){ .pb-steps{ padding:14px 16px; border-radius:18px; } .pb-steps__list{ gap:9px; } .pb-steps__list li{ gap:10px; font-size:16px; } .pb-steps__n{ width:32px; height:32px; font-size:16px; } }
/* Подсказка «что делать сейчас» в лимоне: крупное слово над шкалой, меняется в такт кнопке */
.msq-words{ display:flex; flex-direction:column; align-items:center; gap:2px; min-height:2.9em; text-align:center; }
.msq-word{ font-family:"Manrope",system-ui,sans-serif; font-size:clamp(1.5rem,3.6vw,2.2rem); font-weight:800; line-height:1.05; color:var(--pb-acc); }
.msq-word.is-new{ animation:pbPop .45s var(--pb-spring); }
.msq-words[data-ph="full"] .msq-word{ color:#D9654E; }
.msq-sub{ font-size:max(15px,.92em); font-weight:700; color:var(--pb-ink2); }
/* Кнопка зовёт отпустить или снова нажать — мягкое свечение */
.mbr-hold.is-call{ animation:mbrCall 1s ease-in-out infinite; }
@keyframes mbrCall{ 50%{ filter:brightness(1.12); box-shadow:0 0 0 8px var(--pb-glow); } }
@media (prefers-reduced-motion:reduce){ .mbr-hold.is-call{ animation:none; outline:3px solid var(--pb-gold); outline-offset:3px; } }
@media (max-width:759px) and (max-height:700px){ .msq-words{ min-height:2.4em; } .msq-word{ font-size:1.35rem; } }
/* поле упражнения спрятано, пока ребёнок не нажал «Начнём» */
.mbr[hidden], .msq[hidden], .msq-ask[hidden], .msq-words[hidden], .msq .mbr-dots[hidden]{ display:none !important; }
.mbr-label small{ font-size:.8em; opacity:.7; margin-left:.3em; }
/* Карточка «Как теперь?» закрывает сцену целиком: пружина выводила её за края на 4px — появляемся без перелёта. */
.pb-check.pb-pop{ animation:pbCheckIn .32s ease-out both; }
@keyframes pbCheckIn{ from{ opacity:0; transform:scale(.96); } to{ opacity:1; transform:none; } }
