/* Сова и Кукушка: лесная школа — удержание на 2–3 года (23.11.2026): сезоны четвертей, примерка и «коплю на…», «Мои рекорды», соревнование недели.
   Классы rx-* рисуют ecosystem.js и engage.js. Цвета — из общей палитры (app.css :root). */

/* ---------- сезон ---------- */
.rx-season .rx-goalcard{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center}
.rx-season .rx-goalcard>.rx-steps,.rx-season .rx-goalcard>p{grid-column:1/-1}
.rx-badge{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.12))}
.rx-badge-sm{width:44px;height:44px;object-fit:contain;flex:none}
.rx-gt h2{margin:0 0 6px}.rx-gt p{margin:6px 0 0}
.rx-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:6px}
.rx-stepi{display:flex;flex-direction:column;gap:2px;background:#fff7e9;border:2px solid #f1e6d2;border-radius:14px;padding:8px;text-align:center}
.rx-stepi b{font-size:15px}.rx-stepi small{font-size:13px;color:var(--muted)}
.rx-stepi.ok{background:var(--ok-soft);border-color:#9fdcb3}
.rx-party.ok{background:#f2fbf4}
.rx-weeks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.rx-wk{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:14px;background:#fffaf0;border:2px solid #f1e6d2;color:var(--ink);text-decoration:none}
.rx-wk span{font-size:22px}.rx-wk b{font-size:15px;line-height:1.2}.rx-wk small{font-size:12px;color:var(--muted)}
.rx-wk.cur{border-color:var(--pine);background:var(--moss)}.rx-wk.next{border-style:dashed}.rx-wk.lock{opacity:.6}
.rx-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.rx-bd{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.rx-bd img{width:72px;height:72px;object-fit:contain}.rx-bd b{font-size:13px;line-height:1.2}.rx-bd small{font-size:12px;color:var(--muted)}
.rx-season-up{display:flex;align-items:center;gap:10px;justify-content:center;font-weight:800}
.rx-season-mini{display:block;font-size:16px}
.rx-party-note{background:#fff6d8;border-color:#ffd36b}

/* ---------- главная: цель «коплю на…» и полоска недели/сезона ---------- */
.rx-goal{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);background:#fff6e6;border-color:#ffd99a}
.rx-goal.ready{background:#e7f8ec;border-color:#9fdcb3}
.rx-gi{flex:none;width:64px;height:64px;display:flex;align-items:center;justify-content:center}
.rx-gi svg,.rx-gi .icon{width:64px;height:64px}
.rx-goal .rx-gt{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.rx-goal .bar{display:block}.rx-goal small{font-size:13px;color:var(--muted);line-height:1.25}
.rx-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.rx-strip .card{margin:0;font-size:15px;font-weight:800;padding:10px 12px}
@media (max-width:420px){ .rx-strip{grid-template-columns:1fr} }

/* ---------- гардероб: примерка ---------- */
.ps .item .rx-try{margin-top:4px;font-size:13px;padding:5px 8px;white-space:nowrap}
.ps .item.rx-goal-on{outline:3px solid var(--brass);outline-offset:-3px}
.rx-tag{display:inline-block;font-size:12px;font-weight:900;color:#8a5a00;background:#fff2c4;border-radius:99px;padding:2px 8px;margin-top:2px}
.rx-try-pet{width:220px;height:220px;margin:4px auto 0;background:#fff7e9;border:3px solid #f1e6d2;border-radius:24px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.rx-try-pet svg{width:100%;height:100%}
.rx-try-pet .ficon{font-size:96px}
.rx-try-name{text-align:center;margin:8px 0 2px;font-size:22px}
.rx-try-line{text-align:center;margin:4px 0 10px;font-weight:700}
@media (max-width:360px){ .rx-try-pet{width:180px;height:180px} }

/* ---------- мои рекорды ---------- */
.rx-recs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rx-rec{display:flex;flex-direction:column;gap:2px;margin:0;padding:10px 12px;position:relative}
.rx-rec .rx-ri{font-size:26px}.rx-rec b{font-size:15px;line-height:1.2}.rx-rec span{font-size:14px;color:var(--ink)}
.rx-rec.off span{color:var(--muted)}
.rx-rec.new{border-color:var(--brass);background:#fff8dc}
.rx-rec em{font-style:normal;font-weight:900;color:#a86b00;font-size:13px}
.day-done .dd-rec{color:#8a5a00}
.rx-rec-up{font-weight:800}

/* ---------- соревнование недели ---------- */
.rx-away{background:#f2fbf4;border-color:#9fdcb3}.rx-away p{margin:4px 0 0}
.rx-myscore{display:flex;flex-direction:column;gap:2px;background:var(--moss);border-color:var(--pine)}
.rx-myscore span{font-size:14px}

/* смена питомца: картинка в окне подтверждения и выбора имени */
.pet-sheet .rx-swap-pet{display:block;width:140px;height:140px;margin:4px auto}

/* =================== 25.11.2026 (этап 18, дизайнер UX/UI) =================== */
/* знакомство: заметный тап по яйцу, три точки, «Тук!», своё имя */
.egg-hatch{position:relative}
.egg-hit{animation:eggHit .55s cubic-bezier(.3,1.6,.5,1)}
@keyframes eggHit{0%{transform:scale(1) rotate(0)}20%{transform:scale(1.08,.94) rotate(-14deg)}45%{transform:scale(.96,1.06) rotate(12deg)}70%{transform:rotate(-6deg)}100%{transform:scale(1) rotate(0)}}
.egg-spark{position:absolute;left:50%;top:6%;transform:translateX(-50%);font-size:28px;font-weight:900;color:#8a4fd6;pointer-events:none;animation:eggSpark .7s ease-out forwards;text-shadow:0 2px 0 #fff}
@keyframes eggSpark{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}30%{opacity:1;transform:translate(-50%,-6px) scale(1.15)}100%{opacity:0;transform:translate(-50%,-34px) scale(1)}}
.egg-dots{display:flex;justify-content:center;gap:10px;margin:2px 0 8px}
.egg-dots i{width:16px;height:16px;border-radius:50%;background:#eadcc4;border:2px solid #d9c7a6;transition:background .2s,transform .2s}
.egg-dots i.on{background:#ffc83d;border-color:#d9a21d;transform:scale(1.2)}
.own-name{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin-top:10px}
.own-name .pn-in{flex:1 1 180px;max-width:260px;min-height:52px;font-family:inherit;font-size:22px;font-weight:800;line-height:1.2;border:3px solid #eadcc4;border-radius:14px;padding:6px 12px;box-sizing:border-box}
.own-name .btn.big{margin:0}
.own-name .pn-msg{flex-basis:100%;text-align:center;color:#c0392b;font-weight:800;margin:0;min-height:1em}

/* итог остановки: «Подарки» — одним блоком маленькими значками */
.unlock.gifts{background:#fffaf0;border:2px solid #f1e6d2;border-radius:18px;padding:8px 10px;max-width:520px}
.gf-h{display:block;font-size:15px;color:#8a5a00;margin-bottom:6px}
.gf-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.gf{display:inline-flex;align-items:center;gap:6px;padding:5px 10px 5px 6px;border-radius:99px;background:#fff;border:2px solid #eadcc4;color:var(--ink);text-decoration:none;font-size:14px;font-weight:800;line-height:1.15;max-width:100%}
.gf.hot{border-color:#ffc83d;background:#fff6d8}
.gf-i{flex:none;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;font-size:20px}
.gf-i .acorn-i,.gf-i img,.gf-i svg{width:24px;height:24px;vertical-align:0}
.gf-i .medal,.gf-i .medal.sm{width:26px;height:26px;font-size:14px;border-width:2px;box-shadow:none}
.gf-t{white-space:normal;text-align:left}

/* «В рюкзаке новое» — один раз крупно */
.unlock.gate-new a{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);background:linear-gradient(135deg,#fff6d8,#e7f8ec);border:3px solid #ffc83d;border-radius:20px;padding:10px 14px;animation:pop .5s}
.gn-i{flex:none;width:64px;height:64px}.gn-i .reward-art,.gn-i svg{width:64px;height:64px}
.gn-t{display:flex;flex-direction:column;gap:2px;text-align:left}.gn-t b{font-size:19px;line-height:1.2}.gn-t small{font-size:15px;color:#5d6178;font-weight:700}

/* рюкзак: крупные карточки систем, остальное под «Ещё ›» */
.aw-page h1{margin-bottom:8px}
.aw-bigs{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:10px 0}
.aw-big{display:flex;align-items:center;gap:12px;margin:0;padding:10px 12px;text-decoration:none;color:var(--ink)}
.aw-big.new{border-color:#ffc83d;background:#fff8dc}
.awb-i{flex:none;width:60px;height:60px;display:flex;align-items:center;justify-content:center}
.awb-i .reward-art,.awb-i svg,.awb-img{width:60px;height:60px;object-fit:contain}
.awb-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.awb-t b{font-size:18px;line-height:1.2}.awb-t small{font-size:14px;color:var(--muted);font-weight:700}
.awb-go{font-size:28px;color:#b9a27a;font-weight:900}
.aw-row{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);padding:8px 12px}
.awr-i{flex:none;width:40px;height:40px}.awr-i .reward-art,.awr-i svg{width:40px;height:40px}.aw-row small{margin-left:auto;color:var(--muted);font-weight:700}
.aw-more .grams{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}

/* карта сокровищ: одна строка, жёлтые клетки мигают, подсказка «Копай!», сундук */
.map-line{font-size:17px;font-weight:700;margin:4px 0 8px}
.map-yel{background:#ffc83d;border-radius:8px;padding:0 6px}
.tmap .mc.open:not(.got) circle{stroke-width:6;filter:drop-shadow(0 0 6px rgba(255,200,61,.9))}
.mc-hint{animation:mcHint 1.2s ease-in-out infinite}
@keyframes mcHint{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.map-prizes>summary{list-style:none}
.dig-hole{overflow:visible}
.dig-chest{position:absolute;left:50%;bottom:10px;width:84px;height:62px;margin-left:-42px;opacity:0;transform:translateY(24px) scale(.6);transition:opacity .25s,transform .45s cubic-bezier(.3,1.6,.5,1);z-index:0}
.dig-hole.done .dig-chest{opacity:1;transform:translateY(-18px) scale(1.15)}
.dc-box{position:absolute;left:0;right:0;bottom:0;height:40px;border-radius:6px 6px 10px 10px;background:linear-gradient(#b36b2c,#8a4b1c);border:3px solid #5e3412;box-shadow:inset 0 -6px 0 rgba(0,0,0,.15)}
.dc-box::after{content:'';position:absolute;left:50%;top:-4px;width:14px;height:16px;margin-left:-7px;background:#ffc83d;border:2px solid #b8860b;border-radius:3px}
.dc-lid{position:absolute;left:-2px;right:-2px;bottom:36px;height:26px;border-radius:40px 40px 6px 6px;background:linear-gradient(#c97b35,#a35d22);border:3px solid #5e3412;transform-origin:10% 100%;transition:transform .5s .35s;z-index:2}
.dig-hole.done .dc-lid{transform:rotate(-38deg)}
.dc-glow{position:absolute;left:50%;bottom:34px;width:120px;height:120px;margin-left:-60px;border-radius:50%;background:radial-gradient(circle,#fff6b0 0,rgba(255,214,90,.7) 35%,rgba(255,214,90,0) 70%);opacity:0;z-index:1}
.dig-hole.done .dc-glow{animation:dcGlow 1.4s .5s ease-out forwards}
@keyframes dcGlow{0%{opacity:0;transform:scale(.3)}40%{opacity:1;transform:scale(1.1)}100%{opacity:.75;transform:scale(1)}}
.dig-hole .dig-mound,.dig-hole .dig-dirt{z-index:3}
.dig-win{display:flex;align-items:center;justify-content:center;gap:8px;font-size:44px;font-weight:900;color:#8a5530;animation:pop .5s}
.dig-win .acorn-i{width:64px;height:64px;vertical-align:0}

@media (max-width:420px){ .aw-bigs{grid-template-columns:1fr} .gn-t b{font-size:17px} .dig-win{font-size:38px} }

/* 25.11.2026 (этап 18, дизайнер: «под карточкой яиц пустая половина экрана», «вылупился — а питомца почти не видно») */
.onb.egg-pick{margin-top:max(8px, calc(50vh - 300px))}
.pet-big.hatch-baby{overflow:visible;margin:28px auto 34px}
body .onb .pet-big.hatch-baby svg.pet{transform:scale(2);transform-origin:50% 55%}
@media (max-height:700px){ body .onb .pet-big.hatch-baby svg.pet{transform:scale(1.7)} }

/* 25.11.2026 (этап 18): системы открываются по дням занятий — страховка для ссылок из других экранов (классы body.g3/g5/g7/g14 ставит E.gateBody) */
body:not(.g3) a[href="#/map"],body:not(.g3) a[href="#/friends"],body:not(.g5) a[href="#/collections"],body:not(.g7) a[href="#/league"],body:not(.g14) a[href="#/awards/ach"],body:not(.g14) a[href="#/contest"],body:not(.g14) a[href="#/me"]{display:none!important}
.quests .nw{white-space:nowrap}   /* 25.11.2026 (этап 18) */
.egg-card .wk-egg-img{max-height:190px;width:auto}   /* 25.11.2026 (этап 18): яйцо-сюрприз не на весь экран */

/* ===== 26.11.2026 (этап 19, дизайнер — зона «Экосистема») ===== */
/* п.8 «Тук!» — крупно и контрастно */
.egg-spark{font-size:34px;color:#7a3e00;text-shadow:0 0 0 #fff,2px 2px 0 #fff,-2px -2px 0 #fff,2px -2px 0 #fff,-2px 2px 0 #fff,0 4px 8px rgba(0,0,0,.25)}
/* п.10 «Своё имя»: поле и «Готово» помещаются на 375×812 — питомец меньше, пока вводим имя */
.egg-pick:has(#ownbox:not([hidden])) .pet-big.hatch-baby{margin:6px auto 8px}
body .egg-pick:has(#ownbox:not([hidden])) .pet-big.hatch-baby svg.pet{transform:scale(1.15)}
.egg-pick:has(#ownbox:not([hidden])) .names{display:none}
/* п.48 подарки итога — строки-ссылки со стрелкой, а не пилюли */
.gf-row{flex-direction:column;align-items:stretch}
.gf{border-radius:14px;padding:7px 10px 7px 8px;width:100%;box-sizing:border-box}
.gf-t{flex:1}
.gf-go{flex:none;font-size:22px;font-weight:900;color:#b9a27a;line-height:1}
/* п.88 кормление: угощение летит к питомцу, питомец жуёт, много сердечек */
.feed-fly{position:fixed;z-index:9999;margin-left:-20px;font-size:40px;line-height:1;pointer-events:none;transition:transform .6s cubic-bezier(.35,-.35,.6,1),opacity .25s}
.feed-fly img,.feed-fly .acorn-i{width:40px;height:40px}
.feed-fly.eaten{opacity:0}
.pet-on.eat{animation:petEat .7s ease-in-out}
@keyframes petEat{0%,100%{transform:scale(1)}20%{transform:scale(1.08,.92)}40%{transform:scale(.95,1.06)}60%{transform:scale(1.06,.94)}80%{transform:scale(.98,1.03)}}
.hearts span:nth-child(4){animation-delay:.45s}.hearts span:nth-child(5){animation-delay:.6s}.hearts span:nth-child(6){animation-delay:.75s}
/* п.2.13 подрос: было → стало */
.pet-grow-row{display:flex;align-items:flex-end;justify-content:center;gap:4px}
.pet-grow-row .pg-arrow{font-size:32px;font-weight:900;color:#3f9d4e;margin-bottom:40px}
/* п.89 гардероб — вкладки по частям тела */
.ps-slots{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.ps-slots .tab{flex:1 1 auto;min-width:0}
.ps-slots .tab small{opacity:.7;font-weight:700}
/* п.85 значок тропы в рюкзаке — тот же, что на главной */
.awb-emo{font-size:46px;line-height:1}
/* п.2.3 «Мои успехи» — один блок */
.aw-merged h2{margin:0 0 6px}
.aw-mrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #f1e6d2;color:var(--ink);text-decoration:none}
.aw-mrow:first-of-type{border-top:0}
.awm-i{flex:none;width:44px;height:44px}.awm-i svg{width:44px;height:44px}
.awm-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.awm-t b{font-size:16px}.awm-t small{font-size:14px;color:var(--muted);font-weight:700}
.rx-myscore small{font-size:13px;line-height:1.3}
/* п.98 «Копаем клад»: без коричневой кляксы, подарок объёмный (как на тропе), свечение не налезает на заголовок */
.dig .dig-hole{margin:34px auto 8px;height:110px}
.dig .dig-mound{display:none}
.dig-shovel{position:absolute;left:50%;top:50%;font-size:56px;transform:translate(-50%,-50%);animation:digBob 1.2s ease-in-out infinite;z-index:3}
.dig-hole.hit .dig-shovel{animation:digHit .25s}
.dig-hole.done .dig-shovel{display:none}
@keyframes digBob{0%,100%{transform:translate(-50%,-50%) rotate(-8deg)}50%{transform:translate(-50%,-58%) rotate(8deg)}}
@keyframes digHit{0%{transform:translate(-50%,-50%) rotate(-30deg)}100%{transform:translate(-50%,-40%) rotate(10deg)}}
.dig .dig-chest{width:100px;height:100px;margin-left:-50px;bottom:0}
.dc-gift{position:absolute;left:0;right:0;bottom:0;text-align:center;font-size:84px;line-height:1;z-index:2;filter:drop-shadow(0 6px 6px rgba(0,0,0,.22))}
.dig-hole.done .dig-chest{transform:translateY(-6px) scale(1.05)}
.dig .dc-glow{width:110px;height:110px;margin-left:-55px;bottom:-4px;z-index:0}
.dig .dig-dirt::before,.dig .dig-dirt::after{background:#c9a06b!important}
/* п.101 сундук на тропе — праздничный блок */
.rx-chest-open .rx-chest-gift{font-size:44px;animation:pop .6s}
/* п.21–22 тропа на главной: кружки не вылезают за край, счётчик — под заголовком */
.card.trail .tr-h{flex-direction:column;align-items:flex-start;gap:2px}
.card.trail .tr-row{gap:4px}
.card.trail .tr-c{flex:1 1 0;min-width:0;max-width:36px;width:auto;height:auto;aspect-ratio:1}
.card.trail .tr-c.fin{max-width:42px}
.card.trail .tr-row.last .tr-c{flex:none;width:36px;height:36px}
.card.trail .tr-row.last .tr-c.fin{width:42px;height:42px}
.card.trail .tr-pet{width:44px;height:44px;margin:-6px;flex:none}
@media (max-width:420px){ .card.trail .tr-pet,.card.trail .tr-pet svg{width:38px;height:38px} }
/* п.102 история тропы — герой крупнее */
.tr-sc .tr-sc-h svg{width:84px;height:84px}
/* п.83 лесные друзья — объёмные рисунки */
.fr .fr-art{width:64px;height:64px}
.friend-big .fr-art{width:150px;height:150px}
.rx-map-link{display:block}

/* ===== 26.11.2026 (этап 20, дизайнер — зона «Экосистема») ===== */
/* п.2.3 итог остановки: одна главная награда крупно, остальное — строкой «и ещё N подарков в рюкзаке» */
.victory .rw-hide{display:none!important}
.unlock.gifts .gf.gf-main{font-size:18px;padding:12px 12px 12px 10px;border-width:3px}
.unlock.gifts .gf.gf-main .gf-i{width:40px;height:40px;font-size:30px}
.unlock.gifts .gf.gf-main .gf-i img,.unlock.gifts .gf.gf-main .gf-i svg,.unlock.gifts .gf.gf-main .gf-i .acorn-i{width:36px;height:36px}
.gf.gf-dig{border-color:#e0a800;background:#fff3c4}
.gf.gf-got{border-color:#7cc36f;background:#eef9ea}
.gf-more{display:block;margin-top:8px;text-align:center;font-weight:800;font-size:15px;color:#8a5a00;text-decoration:none}
.unlock.gifts.rw-only-more{background:none;border:0;padding:2px 0}
.unlock.gifts.rw-only-more .gf-h{display:none}
.unlock.gifts.rw-only-more .gf-more{margin-top:0}
/* п.2.14 кормление: «+1 к дружбе» над питомцем */
.friend-plus{position:fixed;z-index:9999;transform:translate(-50%,0);background:#fff;border:2px solid #7cc36f;color:#2f7d3a;font-weight:900;font-size:17px;padding:4px 10px;border-radius:99px;pointer-events:none;animation:friendUp 1.6s ease-out forwards;white-space:nowrap}
@keyframes friendUp{0%{opacity:0;transform:translate(-50%,10px)}15%{opacity:1;transform:translate(-50%,0)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-36px)}}
/* п.88–89 стадии: пройденные с ✓, шкала до следующей */
.care-stages .cs.past{opacity:.85}
.care-stages .cs.past .cs-lock{background:#3f9d4e;color:#fff}
.bar.care-grow{margin:4px 0 2px}
/* п.80 «Мой рюкзак🔊» — кнопка голоса не приклеена к слову */
h1 .page-say{margin-left:10px;vertical-align:middle}
/* п.24 «Купить за 90» на главной — второстепенная (светлая с зелёной рамкой), главная кнопка — «Идти» */
.rx-goal .rx-buy.btn{background:#fff!important;color:#1f7a4c!important;border:2px solid #3f9d4e!important;box-shadow:none!important;font-size:15px;padding:6px 12px;min-height:0;width:auto;align-self:flex-start}
/* п.85 вкладки частей тела — одной строкой с прокруткой; п.84 пробел между словом и числом */
.ps-slots{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ps-slots::-webkit-scrollbar{display:none}
.ps-slots .tab{flex:0 0 auto;white-space:nowrap}
.ps-slots .tab small{margin-left:3px}
/* п.87 карточки вещей — однотонные (цвет ничего не значил) */
#petshop .item.card{background:#fff!important}
#petshop .item.card.own{background:#f3fbef!important}
/* нов.16 вещь дня: старая цена */
.deal-was{color:var(--muted);font-weight:700;font-size:.9em}
/* п.2.8 праздник цели */
.goal-win h2{margin:4px 0 6px}
.goal-win-conf{font-size:42px;line-height:1;animation:pop .6s}
.goal-win-pic .pet{width:200px;height:200px;animation:pop .6s}
.goal-win-pic.sm{display:flex;justify-content:center}.goal-win-pic.sm .pet{width:120px!important;height:120px!important}
.pet-sheet .goal3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.pet-grow-sheet b{display:block;margin-top:6px}
.pet-grow-sheet span,.pet-grow-sheet small{display:block}
/* нов.5 лесные друзья: новый — первым */
.fr.fr-new{border:3px solid #ffc83d;background:#fffaf0}
.fr .fr-tag{color:#b07d00;font-weight:900}
/* п.98 истории тропы: прочитанные — свёрнуты */
.tr-old summary{font-weight:800;cursor:pointer;padding:8px 0}
/* п.19, п.115, п.20 тропа: кружки одной ширины по сетке, линия только между кружками (без пустых «хвостов»), ряды не прижимаются вправо; ёлка — праздничная */
.card.trail .tr-map{align-items:center}
.card.trail .tr-row{width:100%;max-width:330px;gap:8px;justify-content:flex-start}
.card.trail .tr-row:before{display:none}
.card.trail .tr-c,.card.trail .tr-row.last .tr-c,.card.trail .tr-c.fin,.card.trail .tr-row.last .tr-c.fin{flex:0 0 calc((100% - 48px)/7);width:auto;height:auto;max-width:none;min-width:0;aspect-ratio:1;box-sizing:border-box}
.card.trail .tr-c:not(:last-child)::after{content:"";position:absolute;top:50%;left:calc(100% + 3px);width:8px;border-top:4px dotted #c9b48a;transform:translateY(-50%)}
.card.trail .tr-row.rev .tr-c:not(:last-child)::after{left:auto;right:calc(100% + 3px)}
.card.trail .tr-row:not(:last-child) .tr-c:last-child::after{content:"";position:absolute;left:50%;top:calc(100% + 3px);height:8px;width:0;border-left:4px dotted #c9b48a;border-top:0;transform:translateX(-50%)}
.card.trail .tr-row.last,.card.trail .tr-row.rev.last{width:100%;margin-left:0}
.card.trail .tr-c.fin{border-color:#e0a800;background:#fff3c4;box-shadow:0 0 0 3px rgba(224,168,0,.18)}
.card.trail .tr-c .tr-pet{width:130%;height:130%;margin:0}
.card.trail .tr-c .tr-pet svg{width:100%;height:100%}
.card.trail .tr-c{font-size:clamp(13px,4vw,18px)}
/* нов.22 выбор первого наряда: на телефоне «залипшее» наведение после касания не выглядит как выбор */
@media (hover:none){ .ofit:not(.on):hover,.goalopt:not(.on):hover,.eggopt:not(.on):hover{border-color:#f1e6d2} }
/* п.83 кнопки заботы — одной ширины, в один ряд */
.pet-care-btns{display:grid!important;grid-template-columns:repeat(3,1fr);gap:8px;max-width:420px;margin-left:auto;margin-right:auto}
.pet-care-btns .btn,.pet-care-btns .btn.sec{width:100%;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:15px!important;padding:10px 4px!important;line-height:1.15;white-space:normal}
.pet-care-btns .btn small{font-size:11px;font-weight:700}
.feed-fly{transition:transform .6s cubic-bezier(.25,.8,.35,1),opacity .25s!important}
/* п.2.8 «Купить за 90» помещается в карточку вещи */
#petshop .item.card button[data-lbl]{font-size:14px!important;padding:7px 8px!important;white-space:nowrap;max-width:100%;box-sizing:border-box}
#petshop .item.card button[data-lbl] .acorn-i{width:18px;height:18px}
@media (max-width:360px){ #petshop .item.card button[data-lbl]{font-size:12.5px!important;padding:6px 5px!important} }
/* 320 px: кнопка «Открыть» у «Моего рюкзака» не рвётся на «Открыт/ь» */
.card.backpack .row{flex-wrap:nowrap;gap:8px}.card.backpack .row h2{min-width:0}.card.backpack .row .btn{white-space:nowrap;flex:none}

/* ===== 26.11.2026 (этап 22, дизайнер п.3): комнаты, образы, наклейки, Поляна мира, цели, Сад питомца (js/rooms.js) ===== */
.rm-scene{position:relative;width:100%;max-width:420px;margin:0 auto;aspect-ratio:4/3;border-radius:22px;overflow:hidden;background-size:cover;background-position:center;box-shadow:inset 0 -30px 40px rgba(0,0,0,.12)}
.rm-scene.sm{max-width:300px}
.rm-scene .rm-pet,.rm-scene .rm-pet.pet-on{position:absolute;left:50%;bottom:2%;top:auto;width:62%;height:auto;aspect-ratio:1;transform:translateX(-50%)}
.rm-scene .rm-pet svg{width:100%;height:100%;display:block;filter:drop-shadow(0 6px 6px rgba(0,0,0,.25))}
.rm-scene .rm-floe{position:absolute;left:50%;bottom:-6%;width:78%;transform:translateX(-50%)}
.rm-scene .hearts{position:absolute;left:0;right:0;top:12%;text-align:center;pointer-events:none;font-size:36px}
.rm-scene .pet-tap-hint{position:absolute;left:50%;bottom:6px;transform:translateX(-50%)}
.rm-page .pet-home h1{margin-top:12px}
.rm-grid .rm-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.rm-item .rm-pic{border:0;background:none;padding:0;cursor:pointer;width:100%;display:flex;justify-content:center}
.rm-item .rm-pic svg{width:110px;height:110px}
.rm-thumb{display:block;width:100%;max-width:150px;aspect-ratio:4/3;border-radius:14px;background-size:cover;background-position:center}
.rm-item.worn{outline:3px solid #3f9d4e;outline-offset:-3px}
.rm-item .ps-lock{font-size:13px;color:var(--muted);line-height:1.2}
.rm-glade-link{position:relative;display:flex;flex-direction:column;gap:2px;overflow:hidden;min-height:84px;justify-content:flex-end;color:#fff!important;text-shadow:0 1px 4px rgba(0,0,0,.6);margin:14px 0}
.rm-glade-link .rm-gl-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0;filter:brightness(.8)}
.rm-glade-link b,.rm-glade-link small{position:relative;z-index:1}.rm-glade-link b{font-size:20px}.rm-glade-link small{color:#fff;font-weight:700}
/* наклейка: цельная картинка, белую обводку рисует код */
.stk{display:inline-block;width:64px;height:64px;object-fit:contain;filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 3px 4px rgba(0,0,0,.3));user-select:none;-webkit-user-drag:none}
.stk-word{width:auto;height:auto;padding:4px 8px;font-weight:900;font-size:20px;color:var(--c,#e8402f);background:#fff;border-radius:14px;transform:rotate(-4deg);white-space:nowrap;filter:drop-shadow(0 3px 4px rgba(0,0,0,.3))}
.gl-field{position:relative;width:100%;aspect-ratio:4/3;border-radius:22px;overflow:hidden;background-size:cover;background-position:center;touch-action:none;user-select:none}
.gl-field .gl-petw{position:absolute;left:50%;bottom:1%;width:38%;aspect-ratio:1;transform:translateX(-50%);pointer-events:none}
.gl-field .gl-petw svg{width:100%;height:100%}
.gl-s{position:absolute;transform:translate(-50%,-50%);cursor:grab;touch-action:none;z-index:2}
.gl-s.drag{cursor:grabbing;z-index:5}.gl-s.drag .stk{transform:scale(1.15)}
.gl-s .stk{width:clamp(48px,15vw,84px);height:clamp(48px,15vw,84px)}.gl-s .stk-word{width:auto;height:auto;font-size:clamp(15px,4vw,22px)}
.gl-x{display:none;position:absolute;right:-10px;top:-10px;width:30px;height:30px;border-radius:50%;border:2px solid #fff;background:#e8402f;color:#fff;font-weight:900;font-size:15px;line-height:1;cursor:pointer;padding:0}
.gl-s.sel .gl-x{display:block}.gl-s.sel .stk{outline:2px dashed #fff;outline-offset:3px}
.gl-tray{display:flex;flex-wrap:wrap;gap:10px;padding:10px;background:#fff7e9;border-radius:18px}
.gl-t{border:0;background:#fff;border-radius:14px;padding:6px;cursor:pointer;min-width:64px;min-height:64px;display:flex;align-items:center;justify-content:center}
.gl-shop .item{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.gl-shop-pic{min-height:72px;display:flex;align-items:center;justify-content:center}
.gl-tabs{margin-bottom:10px}
/* цели: варианты разных видов */
.gl-opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin:8px 0 0}
.gl-opt{min-height:120px}.gl-opt svg.gl-pet,.gl-opt .gl-img{width:64px;height:64px;object-fit:contain}
.gl-opt small{font-size:12px}
.gl-room{display:block;width:72px;height:54px;border-radius:10px;background-size:cover;background-position:center}
.gl-emo{font-size:44px;line-height:1}.gl-emo.big{font-size:72px}
.gl-card .rx-gi svg.gl-pet,.gl-card .rx-gi .gl-img{width:72px;height:72px;object-fit:contain}
.gl-card .gl-h{color:inherit;text-decoration:none}
.gl-card .rx-buy{margin-top:6px}
.care-panel.no-scales .care-stages{margin-top:4px}
/* Сад питомца */
.gd-card{margin-top:14px}.gd-card h2{margin:0 0 10px}
.gd-beds{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.gd-bed{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;min-height:110px;padding:6px 4px;border-radius:16px;border:2px solid #e3cfa8;background:#fff7e9;font:inherit;color:var(--ink)}
.gd-bed img{width:56px;height:56px;object-fit:contain;position:relative;z-index:1;margin-bottom:-10px}
.gd-bed .gd-soil{display:block;width:84%;height:18px;border-radius:50%;background:radial-gradient(ellipse at center,#8a5a35 0,#6b4226 70%)}
.gd-bed small{font-size:12px;font-weight:800;line-height:1.15;text-align:center}
.gd-bed.empty[data-plant]{cursor:pointer;border-color:#3f9d4e;border-style:dashed;background:#effaf1}
.gd-bed.ripe{border-color:#f2a900;background:#fff4cf;animation:gdPulse 1.6s ease-in-out infinite}
.gd-bed.grow img{width:40px;height:40px}
@keyframes gdPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@media (prefers-reduced-motion:reduce){.gd-bed.ripe{animation:none}}
.gd-got{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:10px 0}
.gd-gi{display:flex;flex-direction:column;align-items:center;gap:4px;width:110px;background:#fff7e9;border-radius:16px;padding:8px}
.gd-gi img{width:56px;height:56px;object-fit:contain}.gd-gi small{font-weight:800;text-align:center}
@media (max-width:380px){.gd-beds{gap:5px}.gd-bed{min-height:96px}.gd-bed img{width:44px;height:44px}.gd-bed small{font-size:11px}}
.rm-item .btn,.gl-shop .btn{font-size:15px!important;padding:8px 10px!important;min-height:44px;white-space:nowrap;max-width:100%;box-sizing:border-box}
.rm-item .btn .acorn-i,.gl-shop .btn .acorn-i{width:18px;height:18px}
@media (max-width:360px){.rm-item .btn,.gl-shop .btn{font-size:13px!important;padding:6px 6px!important}}
/* 26.11.2026 (этап 23, траты): сад (5–6 грядок, редкое дерево, лейка, лавка сада), фон поляны, копилка мира, день рождения питомца */
.gd-beds.gd-n5,.gd-beds.gd-n6{grid-template-columns:repeat(3,1fr)}
.gd-tree{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:8px 12px;border-radius:16px;border:2px solid #cfe3c2;background:#f2faec}
.gd-tree.ripe{border-color:#f2a900;background:#fff4cf}.gd-tree>span:nth-child(2){flex:1;display:flex;flex-direction:column}.gd-tree small{font-weight:700}
.gd-tree-i{font-size:42px;line-height:1}
.gd-card #gdwater{margin-top:8px;width:100%;white-space:normal}
.gd-shop{margin-top:12px;border-top:2px dashed #e3cfa8;padding-top:8px}.gd-shop summary{cursor:pointer;font-weight:800;min-height:40px;display:flex;align-items:center}
.gd-shop-l{display:grid;gap:8px;margin-top:6px}
.gd-si{display:flex;gap:10px;align-items:flex-start;background:#fff7e9;border-radius:14px;padding:8px 10px}.gd-si .gl-emo{font-size:36px}
.gd-st{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex:1;min-width:0}.gd-st small{line-height:1.3}
.gd-st .btn{font-size:15px!important;padding:8px 10px!important;min-height:44px;white-space:normal}.gd-st .acorn-i,.wd-pig .acorn-i,.gl-bg .acorn-i,.rm-bday .acorn-i{width:18px;height:18px;vertical-align:-3px}
.gl-bgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:10px}
.gl-bg{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;background:#fff;border-radius:16px;padding:6px;border:3px solid transparent;box-shadow:var(--shadow)}
.gl-bg.on{border-color:#ffc83d}.gl-bg-i{display:block;width:100%;aspect-ratio:4/3;border-radius:12px;background:center/cover no-repeat}
.gl-bg .btn{font-size:14px!important;padding:6px 8px!important;min-height:40px;white-space:normal}.gl-bg small{font-size:12px}
.wd-pig{margin:0 0 14px;border:2px dashed #f0b8c8;background:#fff6f8}.wd-pig h2{margin:0 0 6px}.wd-pig .btn{white-space:normal}
.rm-bday{display:flex;flex-direction:column;gap:6px;margin-top:14px;border:3px solid #f5a3c7;background:linear-gradient(135deg,#fff0f6,#fff8e0)}.rm-bday b{font-size:18px}.rm-bday .btn{align-self:flex-start;white-space:normal}
.rm-bday.done{border-style:dashed}
.rm-conf{position:fixed!important;inset:0;z-index:1300;overflow:hidden}.rm-conf i{font-style:normal;font-size:30px}
.rm-bday-stk{display:flex;justify-content:center;margin:6px 0}
@media (prefers-reduced-motion:reduce){.rm-conf{display:none}}
