/* Надежда дома: приложение. Палитра Лаванда и абрикос, механики как у Duolingo, аудитория 45+:
   крупный текст (17 px), высокие кнопки (56 px) с «толстым» нижним краем, большие цели для пальца. */
:root {
  --bg: #F4F0F8; --bg-deep: #EBE4F1; --surface: #FFFFFF; --surface-2: #FBF9FD;
  --line: #E3DCEA; --line-2: #CFC5DB;
  --ink: #2A2440; --text: #4A4462; --muted: #7B7490;
  --plum: #952B97; --plum-ink: #7A2380; --plum-soft: #F3E6F4; --plum-edge: #6E1F70;
  --lav: #B9A6D6; --lav-soft: #E9E1F3;
  --cta: #F0A868; --cta-edge: #D4874A; --cta-soft: #FDEEDD; --cta-ink: #2A2440;
  --ok: #4E9A6E; --ok-edge: #3B7E57; --ok-soft: #E3F3E9;
  --fire: #F26B3A; --fire-soft: #FFE8DE; --gold: #E9B949; --gold-soft: #FFF4D6;
  --danger: #B4542E; --danger-soft: #FBEBE3;
  --display: 'Rubik', Arial, sans-serif; --body: 'Golos Text', Arial, sans-serif;
  --r: 20px; --r-s: 14px; --r-xs: 10px;
  --shadow: 0 8px 28px rgba(42, 36, 64, .07);
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 68px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 var(--body); -webkit-font-smoothing: antialiased; min-height: 100%; }
body.app { overscroll-behavior-y: none; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .35em; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 18px; }
p { margin: 0 0 .7em; }
a { color: var(--plum); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); } .small { font-size: 14px; } .center { text-align: center; }
.lead { font-size: 18px; color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ оболочка */
.shell { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; background: var(--bg); }
@media (min-width: 560px) {
  body.app { background: #E6DFEE; }
  .shell { box-shadow: 0 0 0 1px var(--line-2), 0 20px 60px rgba(42, 36, 64, .15); }
}
.boot-splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-family: var(--display); }
.boot-splash img { border-radius: 50%; animation: float 2.4s ease-in-out infinite; }
.screen { padding: calc(14px + var(--safe-t)) 18px calc(var(--tab-h) + 24px + var(--safe-b)); min-height: 100dvh; animation: screen-in .22s var(--ease-out); }
.screen.no-tabs { padding-bottom: calc(28px + var(--safe-b)); }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* верхняя полоса: серия и капли */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.topbar .title { font: 600 15px var(--display); color: var(--muted); text-align: center; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font: 600 16px var(--display); color: var(--ink); cursor: pointer; transition: transform .16s var(--ease-out), background .16s; }
.chip:active { transform: scale(.96); }
.chip svg { width: 22px; height: 22px; }
.chip.fire { color: #C84F1F; } .chip.fire.off { color: var(--muted); }
.chip.fire.off svg { opacity: .5; }
.chip.drop { color: var(--plum-ink); }
.chip.pop { animation: chip-pop .5s var(--ease-pop); }
@keyframes chip-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------ кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 0 20px; height: 52px; font: 600 17px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; position: relative; transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background .15s, filter .15s; user-select: none; }
.btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: 0 4px 0 var(--cta-edge); }
.btn-primary:active, .btn-ok:active, .btn-plum:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cta-edge); }
.btn-ok { background: var(--ok); color: #fff; box-shadow: 0 4px 0 var(--ok-edge); }
.btn-ok:active { box-shadow: 0 1px 0 var(--ok-edge); }
.btn-plum { background: var(--plum); color: #fff; box-shadow: 0 4px 0 var(--plum-edge); }
.btn-plum:active { box-shadow: 0 1px 0 var(--plum-edge); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
.btn-ghost:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), 0 1px 0 var(--line); }
.btn-soft { background: var(--lav-soft); color: var(--plum-ink); }
.btn-soft:active { transform: scale(.97); }
.btn-link { background: none; color: var(--plum); height: 44px; padding: 0 8px; }
.btn-link:active { transform: scale(.97); }
.btn-xl { height: 58px; width: 100%; font-size: 18px; border-radius: 18px; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------ карточки */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 12px; }
.card.soft { background: var(--lav-soft); border-color: transparent; }
.card.warm { background: var(--cta-soft); border-color: transparent; }
.card.ok { background: var(--ok-soft); border-color: transparent; }
.card.note { font-size: 15px; color: var(--text); }
.card.note p { margin: 0; }
.card h2 { font-size: 19px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.sec h2 { margin: 0; }
.sec a { font-weight: 600; font-size: 15px; }

/* ------------------------------------------------------------ Надя и реплика */
.hero-row { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 14px; }
.hero-row .nadya { width: 112px; height: 112px; flex: 0 0 auto; object-fit: contain; }
.hero-row .nadya.idle { animation: float 3.2s ease-in-out infinite; }
.bubble { position: relative; flex: 1; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 12px 14px; color: var(--ink); font-size: 16px; line-height: 1.4; min-height: 56px; }
.bubble::before { content: ""; position: absolute; left: -9px; bottom: 14px; width: 14px; height: 14px; background: var(--surface); border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transform: rotate(45deg); border-radius: 0 0 0 3px; }
.bubble .who { display: block; font: 600 12px var(--display); color: var(--plum); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }

/* ------------------------------------------------------------ прогресс дня */
.day-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.ring { width: 84px; height: 84px; position: relative; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: var(--lav-soft); }
.ring .bar { stroke: var(--cta); transition: stroke-dashoffset .6s var(--ease-out); }
.ring.full .bar { stroke: var(--ok); }
.ring .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 20px var(--display); color: var(--ink); }
.ring.full .num { color: var(--ok); }
.day-card h2 { margin-bottom: 2px; }
.day-card p { margin: 0; color: var(--muted); font-size: 15px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.week .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--lav-soft); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; transition: transform .3s var(--ease-pop), background .3s; }
.week .dot svg { width: 16px; height: 16px; }
.week .d.done .dot { background: var(--ok); }
.week .d.freeze .dot { background: #7FB4E6; }
.week .d.today .dot { box-shadow: 0 0 0 2.5px var(--cta); }
.week .d.today { color: var(--ink); }
.week .d.pop .dot { animation: chip-pop .6s var(--ease-pop); }

/* ------------------------------------------------------------ занятия */
.lesson-card { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px; cursor: pointer; transition: transform .16s var(--ease-out), border-color .16s; position: relative; }
.lesson-card:active { transform: scale(.985); }
.lesson-card .thumb { width: 76px; height: 76px; border-radius: 16px; background: var(--lav-soft); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.lesson-card .thumb img { width: 64px; height: 64px; object-fit: contain; }
.lesson-card .thumb .play { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--cta); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 var(--cta-edge); }
.lesson-card .thumb .play svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 2px; }
.lesson-card.done .thumb { background: var(--ok-soft); }
.lesson-card.done .thumb .play { background: var(--ok); box-shadow: 0 2px 0 var(--ok-edge); }
.lesson-card.done .thumb .play svg { fill: #fff; margin: 0; }
.lesson-card .kind { font: 600 12px var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--plum); margin-bottom: 3px; display: flex; gap: 8px; align-items: center; }
.lesson-card .kind.urok { color: #2E7D77; } .lesson-card .kind.start { color: #8A4D14; }
.lesson-card .kind .pts { color: var(--plum-ink); background: var(--plum-soft); border-radius: 999px; padding: 1px 8px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.lesson-card.done .kind .pts { color: var(--ok); background: var(--ok-soft); }
.lesson-card h3 { margin: 0 0 2px; font-size: 17px; line-height: 1.25; }
.lesson-card .meta { font-size: 14px; color: var(--muted); margin: 0; }
.lesson-card.locked { opacity: .6; }
.lesson-card.compact { grid-template-columns: 56px 1fr; padding: 10px 12px; margin-bottom: 8px; }
.lesson-card.compact .thumb { width: 56px; height: 56px; border-radius: 12px; }
.lesson-card.compact .thumb img { width: 46px; height: 46px; }
.lesson-card.compact h3 { font-size: 16px; }
.lesson-card.compact .thumb .play { width: 24px; height: 24px; }
.lesson-card.compact .thumb .play svg { width: 12px; height: 12px; }
.h-day { font: 600 14px var(--display); color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .04em; }

/* горизонтальная лента */
.rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail .tile { flex: 0 0 150px; scroll-snap-align: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; transition: transform .16s var(--ease-out); }
.rail .tile:active { transform: scale(.97); }
.rail .tile img { width: 48px; height: 48px; margin-bottom: 8px; }
.rail .tile b { display: block; font-size: 15px; color: var(--ink); line-height: 1.25; }
.rail .tile span { font-size: 13px; color: var(--muted); }
.rail .tile.done { border-color: #CFE5D7; background: var(--ok-soft); }

/* ------------------------------------------------------------ задания дня */
.quests .q { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1.5px solid var(--line); }
.quests .q:first-of-type { border-top: 0; padding-top: 2px; }
.quests .q .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--lav-soft); display: flex; align-items: center; justify-content: center; color: var(--plum); }
.quests .q .ic svg { width: 24px; height: 24px; }
.quests .q.done .ic { background: var(--ok-soft); color: var(--ok); }
.quests .q b { display: block; font-size: 16px; color: var(--ink); line-height: 1.25; }
.quests .q span { font-size: 13px; color: var(--muted); }
.quests .q.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.quests .q .pts { font: 600 14px var(--display); color: var(--plum-ink); background: var(--plum-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.quests .q.done .pts { color: var(--ok); background: var(--ok-soft); }
.quests .q .btn-sm { height: 38px; padding: 0 12px; }
.quests .progress { height: 10px; border-radius: 999px; background: var(--lav-soft); overflow: hidden; margin: 10px 0 2px; }
.quests .progress i { display: block; height: 100%; background: var(--cta); border-radius: 999px; transition: width .6s var(--ease-out); }
.quests.all .progress i { background: var(--ok); }

/* ------------------------------------------------------------ вкладки внизу */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1.5px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); height: calc(var(--tab-h) + var(--safe-b)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font: 600 11.5px var(--body); border-radius: 12px; transition: color .15s, transform .15s var(--ease-out); }
.tabbar a:active { transform: scale(.94); }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a.on { color: var(--plum); }
.tabbar a.on svg { filter: drop-shadow(0 0 0 transparent); }
.tabbar a .ava { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.tabbar a.on .ava { box-shadow: 0 0 0 2px var(--plum); }
.tabbar a .badge { position: absolute; margin: -4px 0 0 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--fire); border: 2px solid #fff; }

/* ------------------------------------------------------------ сегменты и списки */
.segs { display: flex; gap: 6px; background: var(--lav-soft); padding: 4px; border-radius: 14px; margin: 0 0 14px; }
.segs button { flex: 1; height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: 600 15px var(--body); cursor: pointer; transition: background .18s, color .18s, transform .12s; }
.segs button:active { transform: scale(.97); }
.segs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(42, 36, 64, .12); }
.segs button small { color: var(--muted); font-weight: 500; margin-left: 3px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty img { width: 120px; height: 120px; margin: 0 auto 10px; }

/* ------------------------------------------------------------ урок */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 15px; height: 40px; margin: -6px 0 6px -8px; padding: 0 8px; border-radius: 10px; }
.back svg { width: 20px; height: 20px; }
.player { position: relative; width: calc(100% + 36px); margin: 0 -18px 14px; aspect-ratio: 16 / 9; background: #1C1830; overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player.empty { background: var(--lav-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); text-align: center; padding: 16px; }
.player.empty img { width: 110px; height: 110px; }
.player.empty p { margin: 0; font-weight: 600; }
.player .tag { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(42, 36, 64, .75); color: #fff; font: 600 12px var(--display); padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.lesson-top .kind { font: 600 12px var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--plum); }
.lesson-top .meta { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }
.lesson-top h1 { font-size: 24px; }
.inside { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; font-size: 16px; }
.inside b { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 4px; }
.done-wrap { margin: 16px 0 10px; }
.done-wrap .btn-xl.is-done { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 2px #CFE5D7; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 6px; }
.pager .btn { flex: 1; }

/* ------------------------------------------------------------ путь (30 дней) */
.path { position: relative; padding: 10px 0 30px; }
.path .week-h { text-align: center; margin: 22px 0 10px; }
.path .week-h b { display: inline-block; background: var(--plum); color: #fff; font: 600 13px var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.path .week-h span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.node-row { display: flex; justify-content: center; margin: 0 0 14px; }
.node { width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--lav-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; cursor: pointer; box-shadow: 0 6px 0 #D6CCE3; transition: transform .14s var(--ease-out), box-shadow .14s; font: 600 20px var(--display); color: var(--muted); }
.node:active { transform: translateY(4px); box-shadow: 0 2px 0 #D6CCE3; }
.node small { font: 500 11px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.node svg { width: 30px; height: 30px; }
.node.done { background: var(--ok); color: #fff; box-shadow: 0 6px 0 var(--ok-edge); }
.node.done small { color: rgba(255, 255, 255, .85); }
.node.half { background: var(--ok-soft); color: var(--ok); box-shadow: 0 6px 0 #BFDCCA; }
.node.cur { background: var(--cta); color: var(--ink); box-shadow: 0 6px 0 var(--cta-edge); width: 92px; height: 92px; font-size: 24px; }
.node.cur small { color: var(--ink); }
.node.cur::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--cta); opacity: .5; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.92); opacity: .6; } 100% { transform: scale(1.12); opacity: 0; } }
.node.locked { background: #EDE8F2; color: #B7AFC4; box-shadow: 0 6px 0 #DBD3E5; }
.node.locked svg { opacity: .7; }
.node.chest { background: var(--gold-soft); color: #9A6B00; box-shadow: 0 6px 0 #E3C878; }
.node.chest.done { background: var(--gold); color: #fff; box-shadow: 0 6px 0 #C49A2A; }
.node .you { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px; white-space: nowrap; background: var(--ink); color: #fff; font: 600 12px var(--body); padding: 6px 10px; border-radius: 10px; animation: bob 1.6s ease-in-out infinite; }
.node .you::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; background: var(--ink); transform: translateY(-50%) rotate(45deg); }
.node .you.left { left: auto; right: 100%; margin: 0 8px 0 0; animation-name: bob-l; }
.node .you.left::before { left: auto; right: -5px; }
@keyframes bob-l { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(-4px); } }
@keyframes bob { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(4px); } }
.path .nadya-on-path { width: 64px; height: 64px; position: absolute; }

/* ------------------------------------------------------------ шторка снизу */
#overlay { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(42, 36, 64, .45); opacity: 0; transition: opacity .25s var(--ease-out); pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); transform: translateY(100%); transition: transform .32s cubic-bezier(.32, .72, 0, 1); pointer-events: auto; max-height: 88dvh; overflow-y: auto; }
.sheet .grip { width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h2 { font-size: 22px; }
#overlay.open .sheet-back { opacity: 1; }
#overlay.open .sheet { transform: none; }

/* ------------------------------------------------------------ праздник */
.party { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 22px calc(24px + var(--safe-b)); pointer-events: auto; overflow: hidden; animation: party-in .22s var(--ease-out) both; }
@keyframes party-in { from { opacity: 0; } to { opacity: 1; } }
.party canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.party .inner { position: relative; max-width: 420px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.party .nadya { width: 210px; height: 210px; object-fit: contain; animation: hooray 1.1s var(--ease-pop) both; }
.party .nadya.spin { animation: spin-jump 1.4s var(--ease-in-out) both; }
@keyframes hooray { 0% { transform: scale(.6) translateY(30px); opacity: 0; } 55% { transform: scale(1.08) translateY(-10px); opacity: 1; } 75% { transform: scale(.97) translateY(2px); } 100% { transform: scale(1) translateY(0); } }
@keyframes spin-jump { 0% { transform: scale(.7) rotate(-30deg); opacity: 0; } 40% { transform: scale(1.1) rotate(10deg) translateY(-18px); opacity: 1; } 60% { transform: scale(1) rotate(-6deg) translateY(0); } 80% { transform: scale(1.04) rotate(3deg) translateY(-6px); } 100% { transform: scale(1) rotate(0); } }
.party .nadya.wiggle { animation: wiggle 2.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }
.party h1 { font-size: 32px; margin: 10px 0 6px; animation: screen-in .4s var(--ease-out) .25s both; }
.party .sub { font-size: 18px; color: var(--text); margin: 0 0 18px; animation: screen-in .4s var(--ease-out) .35s both; max-width: 30ch; }
.party .gain { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.party .gain span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 16px var(--display); color: var(--plum-ink); animation: gain-in .5s var(--ease-pop) both; }
.party .gain span svg { width: 20px; height: 20px; }
.party .gain span.fire { color: #C84F1F; }
.party .gain span.ok { color: var(--ok); }
@keyframes gain-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.party .big-streak { display: flex; align-items: center; gap: 10px; font: 700 54px var(--display); color: var(--ink); margin: 6px 0 2px; animation: gain-in .6s var(--ease-pop) .3s both; }
.party .big-streak svg { width: 56px; height: 56px; }
.party .big-streak + .sub { margin-top: 4px; }
.party .badge { width: 120px; height: 120px; border-radius: 50%; background: var(--gold-soft); color: #9A6B00; display: flex; align-items: center; justify-content: center; margin: 0 0 14px; box-shadow: 0 8px 0 #E3C878; animation: spin-jump 1.2s var(--ease-in-out) both; }
.party .badge svg { width: 60px; height: 60px; }
.party .level { font: 600 15px var(--display); color: var(--plum); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.party .btn-xl { max-width: 360px; animation: screen-in .4s var(--ease-out) .5s both; }
.party .week { width: 100%; max-width: 360px; margin: 0 0 22px; }

/* ------------------------------------------------------------ онбординг */
.onb { display: flex; flex-direction: column; min-height: 100dvh; padding: calc(12px + var(--safe-t)) 20px calc(20px + var(--safe-b)); }
.onb .bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.onb .bar .back { margin: 0; }
.onb .bar .track { flex: 1; height: 12px; border-radius: 999px; background: var(--lav-soft); overflow: hidden; }
.onb .bar .track i { display: block; height: 100%; background: var(--plum); border-radius: 999px; transition: width .4s var(--ease-out); }
.onb .body { flex: 1; display: flex; flex-direction: column; animation: screen-in .25s var(--ease-out); }
.onb .nadya { width: 150px; height: 150px; margin: 0 auto 10px; object-fit: contain; }
.onb .nadya.idle { animation: float 3.2s ease-in-out infinite; }
.onb h1 { font-size: 27px; text-align: center; }
.onb .lead { text-align: center; margin-bottom: 20px; }
.onb .foot { padding-top: 14px; }
.onb .bubble { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 46px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 500 16px var(--body); cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.chips button:active { transform: scale(.96); }
.chips button.on { border-color: var(--plum); background: var(--plum-soft); color: var(--plum-ink); font-weight: 600; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--plum); background: var(--plum-soft); }
.opt .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--lav-soft); display: flex; align-items: center; justify-content: center; color: var(--plum); }
.opt .ic svg { width: 28px; height: 28px; }
.opt b { display: block; color: var(--ink); font-size: 17px; }
.opt span { font-size: 14px; color: var(--muted); }
.opt .ck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: #fff; }
.opt.on .ck { background: var(--plum); border-color: var(--plum); }
.opt .ck svg { width: 16px; height: 16px; }
.bullets { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; animation: screen-in .4s var(--ease-out) both; }
.bullets li:nth-child(2) { animation-delay: .08s; } .bullets li:nth-child(3) { animation-delay: .16s; } .bullets li:nth-child(4) { animation-delay: .24s; }
.bullets .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--plum); }
.bullets .ic svg { width: 26px; height: 26px; }
.bullets b { display: block; color: var(--ink); }
.bullets span { font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------ формы */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: block; }
.field > span { display: block; font: 600 14px var(--body); color: var(--text); margin-bottom: 6px; }
.field input, .field textarea, .field select { display: block; width: 100%; padding: 14px 16px; font: 18px var(--body); color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 14px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field input:focus, .field textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 4px var(--plum-soft); }
.field input.code { letter-spacing: .5em; text-align: center; font-size: 30px; font-family: var(--display); }
.field textarea { resize: vertical; min-height: 110px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); cursor: pointer; }
.check input { margin-top: 3px; width: 24px; height: 24px; accent-color: var(--plum); flex: 0 0 auto; }
.error { color: var(--danger); background: var(--danger-soft); border-radius: var(--r-xs); padding: 10px 12px; font-size: 15px; margin: 0; }
.dev { color: var(--muted); font-size: 14px; margin: 0; }
.legal { color: var(--muted); font-size: 13px; margin-top: 18px; text-align: center; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1.5px solid var(--line); }
.switch:first-child { border-top: 0; }
.switch b { display: block; color: var(--ink); font-weight: 600; }
.switch span { font-size: 14px; color: var(--muted); }
.toggle { width: 54px; height: 32px; border-radius: 999px; background: var(--line-2); border: 0; position: relative; cursor: pointer; flex: 0 0 auto; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease-out); }
.toggle.on { background: var(--ok); }
.toggle.on::after { transform: translateX(22px); }

/* ------------------------------------------------------------ вход */
.auth { display: flex; flex-direction: column; align-items: stretch; justify-content: center; max-width: 440px; margin: 0 auto; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--display); color: var(--ink); margin-bottom: 16px; align-self: flex-start; }
.auth-brand img { border-radius: 50%; }
.auth-nadya { width: 150px; height: 150px; margin: 0 auto 12px; animation: float 3.2s ease-in-out infinite; }
.auth h1 { text-align: center; }
.auth .lead { text-align: center; margin-bottom: 18px; }
.resend { align-items: center; margin-top: 4px; }

/* ------------------------------------------------------------ профиль */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-head .ava { width: 64px; height: 64px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 26px var(--display); flex: 0 0 auto; }
.profile-head h1 { font-size: 24px; margin: 0; }
.profile-head p { margin: 0; color: var(--muted); font-size: 15px; }
.level-card .lvl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.level-card .lvl b { font: 600 19px var(--display); color: var(--ink); }
.level-card .lvl span { color: var(--muted); font-size: 14px; }
.level-card .track { height: 12px; border-radius: 999px; background: var(--lav-soft); overflow: hidden; margin: 10px 0 6px; }
.level-card .track i { display: block; height: 100%; background: var(--plum); border-radius: 999px; transition: width .6s var(--ease-out); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stat b { display: flex; align-items: center; gap: 6px; font: 600 24px var(--display); color: var(--ink); }
.stat b svg { width: 24px; height: 24px; }
.stat span { font-size: 13px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-t { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; cursor: pointer; transition: transform .14s var(--ease-out); }
.badge-t:active { transform: scale(.96); }
.badge-t .ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; background: var(--gold-soft); color: #9A6B00; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #E3C878; }
.badge-t .ic svg { width: 30px; height: 30px; }
.badge-t b { display: block; font-size: 13px; color: var(--ink); line-height: 1.2; }
.badge-t.off .ic { background: #EDE8F2; color: #B7AFC4; box-shadow: 0 4px 0 #DBD3E5; }
.badge-t.off b { color: var(--muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; color: var(--ink); }
.steps { margin: 0; padding-left: 20px; } .steps li { margin-bottom: 6px; }

/* ------------------------------------------------------------ Надя (чат) */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 18px; font-size: 16px; line-height: 1.4; animation: msg-in .3s var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.msg.n { align-self: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.msg.u { align-self: flex-end; background: var(--plum); color: #fff; border-bottom-right-radius: 6px; }
.msg.n .who { display: block; font: 600 12px var(--display); color: var(--plum); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chat-chips button { height: 42px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--plum-soft); background: var(--plum-soft); color: var(--plum-ink); font: 600 15px var(--body); cursor: pointer; transition: transform .12s; }
.chat-chips button:active { transform: scale(.96); }
.ask-form { display: flex; gap: 8px; align-items: flex-end; }
.ask-form .field { flex: 1; }
.ask-form textarea { min-height: 54px; max-height: 160px; padding: 13px 14px; font-size: 17px; }
.ask-form .btn { height: 54px; width: 54px; padding: 0; border-radius: 14px; }
.chat-nadya { width: 64px; height: 64px; margin: 0 auto 6px; }

/* ------------------------------------------------------------ дыхание */
.breathe { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100dvh; padding: calc(16px + var(--safe-t)) 20px calc(20px + var(--safe-b)); }
.breathe .orb-wrap { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; margin: 14px 0 20px; }
.breathe .orb { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #E9E1F3, #B9A6D6); transform: scale(.72); transition: transform 4s ease-in-out; }
.breathe .orb.in { transform: scale(1.3); transition-duration: 4s; }
.breathe .orb.out { transform: scale(.72); transition-duration: 6s; }
.breathe .orb-wrap img { position: relative; width: 120px; height: 120px; }
.breathe .phase { font: 600 30px var(--display); color: var(--ink); min-height: 40px; }
.breathe .timer { font: 500 16px var(--body); color: var(--muted); margin-bottom: 20px; }
.breathe .btn-row { width: 100%; max-width: 360px; }

/* ------------------------------------------------------------ подсказки (коуч-марки) */
.coach { position: absolute; inset: 0; pointer-events: auto; }
.coach .spot { position: absolute; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(42, 36, 64, .6); transition: all .35s var(--ease-in-out); }
.coach .tip { position: absolute; left: 18px; right: 18px; max-width: 444px; margin: 0 auto; background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); animation: screen-in .3s var(--ease-out); }
.coach .tip b { display: block; font: 600 18px var(--display); color: var(--ink); margin-bottom: 4px; }
.coach .tip p { margin: 0 0 12px; color: var(--text); font-size: 15px; }
.coach .tip .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.coach .tip .row span { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ тост */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; opacity: 0; transition: opacity .25s, transform .25s var(--ease-out); z-index: 60; max-width: 90%; text-align: center; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ студия (Юля) */
.studio .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-top: 1.5px solid var(--line); }
.studio .row:first-child { border-top: 0; }
.studio .row b { display: block; color: var(--ink); font-size: 16px; }
.studio .row .m { font-size: 13px; color: var(--muted); }
.studio .st { font: 600 12px var(--display); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.studio .st.ok { background: var(--ok-soft); color: var(--ok); }
.studio .st.no { background: var(--cta-soft); color: #8A4D14; }
/* студия: выбор ролика из Kinescope */
.studio .ks { margin: -4px 0 14px; }
#ks-list { max-height: 42vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.ks-q { width: 100%; box-sizing: border-box; margin: 10px 0 6px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.ks-row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; cursor: pointer; }
.ks-row:hover, .ks-row:focus-visible { background: var(--lav); outline: none; }
.ks-row.on { background: var(--lav-soft); box-shadow: inset 0 0 0 2px var(--plum); }
.ks-row img, .ks-thumb { width: 60px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--lav-soft); display: block; }
.ks-row b { display: block; font-size: 15px; color: var(--ink); line-height: 1.25; }
.ks-row .m { font-size: 13px; color: var(--muted); }
.studio .st.demo { background: var(--lav-soft); color: var(--plum-ink); }
.studio .st.hid { background: #EDE8F2; color: var(--muted); }

/* ------------------------------------------------------------ лендинг */
body.landing { background: var(--bg); }
.l-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.l-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.l-top .brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--display); color: var(--ink); }
.l-top .brand img { border-radius: 50%; }
.l-hero { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; padding: 20px 0 36px; }
.l-hero h1 { font-size: 34px; margin-bottom: 12px; }
.eyebrow { color: var(--plum); font: 600 13px var(--display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.l-hero .lead { font-size: 19px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 8px; }
.cta-row .btn { align-self: flex-start; min-width: 280px; }
.l-nadya { width: 220px; height: 220px; justify-self: center; object-fit: contain; animation: float 3.2s ease-in-out infinite; }
.l-phone { justify-self: center; width: 300px; background: var(--ink); border-radius: 36px; padding: 10px; box-shadow: 0 24px 60px rgba(42, 36, 64, .25); }
.l-phone .scr { background: var(--bg); border-radius: 28px; overflow: hidden; padding: 16px 14px; }
.l-sec { padding: 30px 0; }
.l-sec h2 { font-size: 26px; margin-bottom: 16px; }
.l-sec.alt { background: var(--lav-soft); }
.grid3, .grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid3 .card, .grid2 .card { margin: 0; }
.num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--plum-soft); color: var(--plum); font: 600 15px var(--display); margin-bottom: 10px; }
.prices .featured { border-color: var(--cta); box-shadow: 0 10px 30px rgba(240, 168, 104, .3); }
.big-price { font: 600 34px var(--display); color: var(--ink); margin: 4px 0; }
details { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 12px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 8px 0 0; font-size: 15px; }
.l-foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
@media (min-width: 760px) {
  .l-hero { grid-template-columns: 1.2fr 1fr; padding-top: 40px; }
  .l-hero h1 { font-size: 44px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: repeat(2, 1fr); }
  .cta-row { flex-direction: row; align-items: center; gap: 16px; }
}


/* ------------------------------------------------------------ анимации Нади (01.11 вечер: без прыжков вверх-вниз) */
@keyframes breathing { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.06); } }
.breathing { animation: breathing 6s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes nod { 0% { transform: scale(.8) rotate(0); opacity: 0; } 45% { transform: scale(1.04) rotate(-5deg); opacity: 1; } 70% { transform: scale(1) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
.party .nadya.nod { animation: nod .9s var(--ease-out) both; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.party .nadya.pop { animation: pop .7s var(--ease-pop) both; }
.party .nadya.breathing { animation: pop .7s var(--ease-pop) both, breathing 6s ease-in-out .7s infinite; }
.party.quest .nadya, .party.breath .nadya { width: 170px; height: 170px; }
.hero-row .nadya, .onb .nadya, .auth-nadya { animation: none; }
.hero-row .nadya.breathing, .onb .nadya.breathing, .auth-nadya.breathing { animation: breathing 6s ease-in-out infinite; }
.breathe .orb-wrap img { transition: transform 4s ease-in-out; transform-origin: 50% 80%; }
.breathe .orb-wrap img.in { transform: scale(1.12); transition-duration: 4s; }
.breathe .orb-wrap img.out { transform: scale(1); transition-duration: 6s; }
.boot-splash img { animation: breathing 4s ease-in-out infinite; }

/* ------------------------------------------------------------ плитка занятия с обложкой */
.tile { padding: 0; overflow: hidden; cursor: pointer; transition: transform .16s var(--ease-out); }
.tile:active { transform: scale(.985); }
.tile .poster { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #D9CBEA, #B9A6D6 60%, #A48BCB); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.tile.urok .poster { background-image: linear-gradient(135deg, #CFE6E3, #8FC4BD 60%, #5FA79F); }
.tile.start .poster { background-image: linear-gradient(135deg, #FBE3C9, #F0A868 60%, #E08E4A); }
.tile .poster[style*="background-image"] { background-size: cover; }
.tile .poster .deco { width: 64px; height: 64px; color: rgba(255, 255, 255, .85); }
.tile .poster .deco svg { width: 64px; height: 64px; }
.tile .poster .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(42, 36, 64, .25); }
.tile .poster .play svg { width: 26px; height: 26px; fill: var(--ink); margin-left: 3px; }
.tile.done .poster .play { background: var(--ok); }
.tile.done .poster .play svg { fill: none; stroke: #fff; margin: 0; }
.tile.locked .poster .play svg { fill: none; stroke: var(--muted); margin: 0; }
.tile .badge-l, .tile .badge-r { position: absolute; top: 10px; font: 600 12px var(--display); letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(42, 36, 64, .72); color: #fff; }
.tile .badge-l { left: 10px; } .tile .badge-r { right: 10px; text-transform: none; letter-spacing: 0; }
.tile .tile-body { padding: 12px 14px 14px; }
.tile h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.tile .meta { margin: 0; font-size: 14px; color: var(--muted); }
.tile .meta .pts-t { color: var(--plum-ink); } .tile .meta .ok-t { color: var(--ok); }
.tile.small .poster { aspect-ratio: 21 / 9; }
.tile.small h3 { font-size: 16px; }
.tile.locked { opacity: .7; }
.for-you { display: inline-block; font: 600 11px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--plum-ink); background: var(--plum-soft); padding: 3px 8px; border-radius: 999px; vertical-align: 1px; }
.rail .rtile { flex: 0 0 150px; scroll-snap-align: start; background: linear-gradient(135deg, #FBE3C9, #F0A868); border-radius: 16px; padding: 12px; cursor: pointer; transition: transform .16s var(--ease-out); color: var(--ink); }
.rail .rtile:active { transform: scale(.97); }
.rail .rtile .play { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.rail .rtile .play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 2px; }
.rail .rtile.done { background: var(--ok-soft); }
.rail .rtile.done .play { background: var(--ok); } .rail .rtile.done .play svg { fill: none; stroke: #fff; margin: 0; }
.rail .rtile b { display: block; font-size: 15px; line-height: 1.25; }
.rail .rtile span { font-size: 13px; color: var(--text); }
.q-bonus { margin: 12px 0 0; font-size: 14px; color: var(--plum-ink); font-weight: 600; text-align: center; }
.quests.all .q-bonus { color: var(--ok); }
.my-level { margin: 0 0 14px; border-radius: 18px; }
.my-level::before { display: none; }

/* путь по месяцам */
.path .month-h { text-align: center; margin: 22px 0 12px; }
.path .month-h b { display: inline-block; background: var(--plum); color: #fff; font: 600 14px var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; }
.node small { white-space: nowrap; }

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