:root {
  /* «Кибер-спорт»: тёмно-синий фон, неоновая маджента, фиолетовый и голубой акценты */
  --bg: #0B0F19;
  --bg-2: #13162A;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.085);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #FFFFFF;
  --muted: #A0A5B1;
  --dim: #6B7186;
  --coral: #FF2E93;
  --pink: #FF2E93;
  --violet: #7209B7;
  --cyan: #4CC9F0;
  --gold: #ffc94d;
  --gold-2: #ff9f1c;
  --mint: #3ee6a8;
  --grad: linear-gradient(135deg, #FF2E93 0%, #B5179E 55%, #7209B7 100%);
  --grad-gold: linear-gradient(135deg, #ffe08a 0%, #ffc94d 40%, #ff9f1c 100%);
  --glow: 0 0 22px rgba(255, 46, 147, .55), 0 0 44px rgba(114, 9, 183, .35);
  --radius: 22px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; line-height: 1.15; }

/* ---------- фон ---------- */
.bg-blobs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg-blobs i:nth-child(1) { width: 340px; height: 340px; background: #FF2E93; top: -140px; right: -120px; opacity: .35; }
.bg-blobs i:nth-child(2) { width: 300px; height: 300px; background: #7209B7; top: 35%; left: -170px; opacity: .35; }
.bg-blobs i:nth-child(3) { width: 260px; height: 260px; background: #4CC9F0; bottom: -120px; right: -80px; opacity: .16; }

#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.screen { display: none; padding: 18px 16px calc(110px + var(--safe-bottom)); animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- общие элементы ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 4px 12px; }
.section-title h2 { font-size: 17px; }
.section-title span { color: var(--muted); font-size: 13px; font-weight: 600; }
.muted { color: var(--muted); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 0 22px;
  border-radius: 18px; font-weight: 800; font-size: 16px; letter-spacing: .01em;
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(255, 46, 147, .7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.97); filter: brightness(1.1); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ghost { background: var(--card-strong); box-shadow: none; border: 1px solid var(--stroke); }
.btn.gold { background: var(--grad-gold); color: #3a2300; box-shadow: 0 12px 30px -10px rgba(255, 171, 40, .75), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.small { min-height: 44px; font-size: 14px; border-radius: 14px; width: auto; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 14px 16px calc(14px + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 55%, rgba(11, 15, 25, 0));
}
.sticky-cta > * { max-width: 488px; margin: 0 auto; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--card-strong); border: 1px solid var(--stroke);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.stars-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px;
  border-radius: 999px; font-weight: 800; font-size: 15px;
  background: rgba(255, 201, 77, .12); border: 1px solid rgba(255, 201, 77, .35); color: var(--gold);
}
.stars-pill .s { font-size: 18px; filter: drop-shadow(0 0 8px rgba(255, 201, 77, .7)); }
.stars-pill.bump { animation: bump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- загрузка ---------- */
.loader { min-height: 80vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.loader-star { font-size: 56px; animation: spin 1.6s cubic-bezier(.5, 0, .5, 1) infinite; filter: drop-shadow(0 0 20px rgba(255, 201, 77, .6)); }
/* заставка: «ФИТНЕС / ИГРА» в две строки, «игра» — градиентом (Иван, 22.10) */
.loader-title { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; color: #fff; animation: neon 1.8s ease-in-out infinite; }
.loader-title em { display: block; font-style: normal; background: linear-gradient(90deg, #ff2e93, #ffc94d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-title + p { margin-top: 14px; font-size: 14px; }
@keyframes neon { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .loader-title { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- оплата ---------- */
.hero { position: relative; padding: 26px 4px 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 46, 147, .14); color: #ff6fb5; border: 1px solid rgba(255, 46, 147, .3);
}
.hero h1 { font-size: 34px; margin: 16px 0 12px; }
.hero h1 em {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 16px; margin: 0; max-width: 34ch; }
.hero-emoji { position: absolute; right: 2px; top: 18px; font-size: 64px; transform: rotate(12deg); filter: drop-shadow(0 10px 30px rgba(255, 46, 147, .5)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(4deg) translateY(-8px); } }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.feature { padding: 16px; }
.feature .ic { font-size: 26px; display: block; margin-bottom: 8px; }
.feature b { display: block; font-size: 14px; margin-bottom: 2px; }
.feature small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }

.teaser { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.teaser::-webkit-scrollbar { display: none; }
.teaser .t { flex: 0 0 auto; width: 64px; height: 78px; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 2px; background: var(--card); border: 1px solid var(--stroke); }
.teaser .t b { font-family: var(--font-display); font-size: 16px; }
.teaser .t span { font-size: 18px; filter: grayscale(.4); opacity: .8; }

.price-card { margin-top: 26px; position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(76, 201, 240, .16), rgba(114, 9, 183, .12)); border-color: rgba(76, 201, 240, .3); }
.price-card .price { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin: 4px 0 2px; }
.price-card .label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.steps .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--grad); }
.steps p { margin: 4px 0 0; }
.copy {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: 12px;
  background: rgba(0, 0, 0, .25); border: 1px dashed rgba(255, 255, 255, .25); font-weight: 800; font-family: ui-monospace, Menlo, monospace; font-size: 15px;
}
.copy::after { content: "📋"; font-size: 14px; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; margin-top: 16px; background: rgba(255, 92, 92, .12); border: 1px solid rgba(255, 92, 92, .35); font-size: 14px; }

/* ---------- ожидание ---------- */
.pending { min-height: 78vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 0 8px; }
.hourglass { width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 40px; display: grid; place-items: center; font-size: 56px; background: var(--card); border: 1px solid var(--stroke); position: relative; }
.hourglass::before { content: ""; position: absolute; inset: -6px; border-radius: 46px; background: conic-gradient(from 0deg, transparent, var(--pink), var(--gold), transparent 70%); z-index: -1; animation: spin 2.4s linear infinite; filter: blur(2px); }
.hourglass span { animation: flip 2.4s ease-in-out infinite; }
@keyframes flip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.pending h1 { font-size: 24px; }
.pending p { color: var(--muted); margin: 0; }

/* ---------- главный экран ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 18px; }
.topbar .hi { font-size: 13px; color: var(--muted); font-weight: 600; }
.topbar h1 { font-size: 21px; margin-top: 2px; }

.progress-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.ring { position: relative; width: 112px; height: 112px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255, 255, 255, .08); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .val b { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.ring .val small { color: var(--muted); font-size: 11.5px; font-weight: 700; margin-top: 4px; }
.stats { display: grid; gap: 10px; }
.stat { display: flex; align-items: center; gap: 10px; }
.stat .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--card-strong); flex-shrink: 0; }
.stat b { display: block; font-size: 16px; }
.stat small { color: var(--muted); font-size: 12.5px; }

.today-card {
  margin-top: 14px; position: relative; overflow: hidden; border-radius: 28px; padding: 22px 20px 20px;
  background: linear-gradient(145deg, #FF2E93 0%, #B5179E 50%, #7209B7 100%);
  box-shadow: 0 24px 50px -20px rgba(255, 46, 147, .8);
}
.today-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -120px; background: rgba(255, 255, 255, .14); }
.today-card::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: 40px; bottom: -110px; background: rgba(255, 255, 255, .08); }
.today-card > * { position: relative; z-index: 1; }
.today-card .kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.today-card h2 { font-size: 24px; margin: 8px 0 6px; padding-right: 76px; }
.today-card .kicker { padding-right: 76px; }
.today-card .focus { opacity: .92; font-weight: 600; }
.today-card .big-emoji { position: absolute; right: 18px; top: 18px; font-size: 62px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); animation: float 4s ease-in-out infinite; }
.today-card .chips { margin: 16px 0 18px; }
.today-card .chip { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .25); }
.today-card .btn { background: #fff; color: #E0157F; box-shadow: 0 10px 24px -8px rgba(60, 0, 50, .5); }
.today-card.done { background: linear-gradient(145deg, #1fc28d 0%, #18a39b 55%, #3b6cff 100%); box-shadow: 0 24px 50px -20px rgba(31, 194, 141, .6); }
.today-card.done .btn { color: #128a72; }
.countdown { font-family: var(--font-display); font-size: 28px; letter-spacing: .02em; margin: 6px 0 2px; }

.catchup { width: 100%; text-align: left; margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.catchup .ic { font-size: 24px; }
.catchup div { flex: 1; font-size: 14px; }
.catchup b { display: block; }
.catchup .muted { font-size: 13px; }

.achievements { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.achievements::-webkit-scrollbar { display: none; }
.ach { flex: 0 0 96px; text-align: center; padding: 14px 8px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--stroke); }
.ach .medal { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .06); }
.ach b { display: block; font-size: 12.5px; line-height: 1.2; }
.ach small { color: var(--muted); font-size: 11.5px; }
.ach.on { border-color: rgba(255, 201, 77, .4); background: linear-gradient(180deg, rgba(255, 201, 77, .14), rgba(255, 201, 77, .03)); }
.ach.on .medal { background: var(--grad-gold); box-shadow: 0 8px 22px -6px rgba(255, 171, 40, .8); }
.ach:not(.on) .medal { filter: grayscale(1); opacity: .45; }

.week { margin-bottom: 18px; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 10px; }
.week-head b { font-size: 14px; }
.week-head span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.day {
  aspect-ratio: 1 / 1.22; border-radius: 16px; display: grid; place-items: center; align-content: center; gap: 2px;
  background: var(--card); border: 1px solid var(--stroke); position: relative; transition: transform .15s;
}
.day:active { transform: scale(.92); }
.day .num { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.day .mark { font-size: 15px; line-height: 1; }
.day.locked { opacity: .5; }
.day.locked .mark { font-size: 12px; filter: grayscale(1); }
.day.done { background: linear-gradient(160deg, rgba(255, 201, 77, .28), rgba(255, 159, 28, .1)); border-color: rgba(255, 201, 77, .5); }
.day.done .mark { filter: drop-shadow(0 0 6px rgba(255, 201, 77, .9)); }
.day.today { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 46, 147, .25), 0 10px 24px -8px rgba(255, 46, 147, .8); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 46, 147, .12), 0 10px 24px -8px rgba(255, 46, 147, .8); } }
.day.open { border: 1.5px dashed rgba(76, 201, 240, .7); }

/* ---------- экран тренировки ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px; border-radius: 12px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.w-hero { text-align: center; padding: 8px 0 4px; }
.w-hero .emo { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 32px; display: grid; place-items: center; font-size: 50px; background: var(--grad); box-shadow: 0 18px 40px -14px rgba(255, 46, 147, .8); }
.w-hero .kicker { color: #ff6fb5; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.w-hero h1 { font-size: 26px; margin: 8px 0 6px; }
.w-hero .chips { justify-content: center; margin-top: 14px; }

.habit { margin-top: 20px; display: flex; gap: 14px; align-items: center; background: linear-gradient(150deg, rgba(62, 230, 168, .14), rgba(62, 230, 168, .03)); border-color: rgba(62, 230, 168, .3); }
.habit .ic { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; background: rgba(62, 230, 168, .18); }
.habit small { color: var(--mint); font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.habit p { margin: 2px 0 0; font-weight: 600; }

.ex-list { display: grid; gap: 8px; }
.ex { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--stroke); }
.ex .e { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; background: var(--card-strong); }
.ex b { display: block; font-size: 15px; }
.ex small { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex .t { font-weight: 800; font-size: 14px; color: #4CC9F0; white-space: nowrap; }

.tip { margin-top: 18px; display: flex; gap: 12px; font-size: 14px; }
.tip .ic { font-size: 22px; }

/* ---------- плеер ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; display: none; background: var(--bg); overflow-y: auto; }
.overlay.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.player { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; padding: 16px 16px calc(20px + var(--safe-bottom)); position: relative; }
.player.rest { --accent: var(--mint); }
.p-top { display: flex; align-items: center; gap: 12px; }
.p-close { width: 40px; height: 40px; border-radius: 14px; background: var(--card-strong); font-size: 18px; flex-shrink: 0; }
.p-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.p-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s ease; }
.p-meta { text-align: center; color: var(--muted); font-weight: 700; font-size: 13px; margin-top: 14px; letter-spacing: .04em; text-transform: uppercase; }
.p-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 0; }
.p-ring { position: relative; width: min(72vw, 270px); aspect-ratio: 1; margin: 6px 0 22px; }
.p-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.p-ring .track { stroke: rgba(255, 255, 255, .07); }
.p-ring .bar { stroke: url(#pGrad); stroke-linecap: round; }
.player.rest .p-ring .bar { stroke: var(--mint); }
.player.prep .p-ring .bar { stroke: var(--gold); }
.p-ring .inner { position: absolute; inset: 0; display: grid; place-content: center; }
.p-ring .emo { font-size: 58px; line-height: 1; }
.p-ring .sec { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.p-ring .sec.tick { animation: tick .35s ease; }
@keyframes tick { 30% { transform: scale(1.18); color: var(--gold); } }
.p-main h2 { font-size: 24px; }
.p-main p { color: var(--muted); max-width: 32ch; margin: 10px auto 0; }
.p-next { margin: 18px auto 0; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); font-size: 14px; color: var(--muted); }
.p-next b { color: var(--text); }
.p-controls { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

.finish { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding: 20px 0; }
.finish .trophy { font-size: 92px; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 16px 40px rgba(255, 171, 40, .6)); }
.finish h1 { font-size: 28px; }
.finish .habit { text-align: left; }

/* ---------- награда ---------- */
#reward { background: radial-gradient(circle at 50% 38%, rgba(255, 201, 77, .22), transparent 60%), var(--bg); }
.reward { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px 20px calc(24px + var(--safe-bottom)); gap: 10px; }
.big-star { font-size: 130px; line-height: 1; animation: starIn 1s cubic-bezier(.3, 1.5, .5, 1) both; filter: drop-shadow(0 0 40px rgba(255, 201, 77, .9)); }
@keyframes starIn { 0% { transform: scale(0) rotate(-180deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.rays { position: absolute; width: 360px; height: 360px; left: 50%; top: 50%; translate: -50% -50%; background: repeating-conic-gradient(rgba(255, 201, 77, .14) 0 10deg, transparent 10deg 30deg); border-radius: 50%; mask: radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 18s linear infinite; z-index: -1; }
.star-wrap { position: relative; margin-bottom: 10px; }
.reward h1 { font-size: 30px; }
.reward .plus { font-family: var(--font-display); font-size: 22px; color: var(--gold); font-weight: 800; }
.reward .new-ach { margin-top: 10px; display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 20px; width: 100%; background: linear-gradient(150deg, rgba(255, 201, 77, .2), rgba(255, 201, 77, .04)); border: 1px solid rgba(255, 201, 77, .4); animation: rise .6s .5s both; }
.reward .new-ach .medal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--grad-gold); flex-shrink: 0; }
.reward .new-ach small { color: var(--gold); font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.reward .btn { margin-top: 18px; }

/* ---------- прочее ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s ease;
  padding: 12px 18px; border-radius: 16px; background: rgba(19, 22, 42, .96); border: 1px solid var(--stroke);
  font-weight: 700; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

.devbar { position: fixed; bottom: 96px; left: 10px; max-width: 46px; max-height: 40px; overflow: hidden; z-index: 70; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .7); border: 1px solid var(--stroke); font-size: 12px; }
.devbar.open { max-width: none; max-height: none; }
.devbar b { color: var(--gold); cursor: pointer; white-space: nowrap; }
.devbar button { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; text-align: left; }

@media (max-width: 360px) {
  .hero h1 { font-size: 28px; }
  .features { grid-template-columns: 1fr; }
  .progress-card { grid-template-columns: 96px 1fr; }
  .ring { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- админ-панель ---------- */
.admin-entry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 14px; background: linear-gradient(150deg, rgba(255, 201, 77, .16), rgba(255, 201, 77, .03)); border-color: rgba(255, 201, 77, .35); }
.admin-entry .ic { font-size: 24px; }
.admin-entry div { flex: 1; font-size: 14px; }
.admin-entry b { display: block; }
.admin-entry .count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; background: var(--pink); font-weight: 800; font-size: 13px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; background: var(--card-strong); border: 1px solid var(--stroke); flex-shrink: 0; }
.topbar .right { display: flex; gap: 8px; align-items: center; }

.adm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.adm-head h1 { font-size: 22px; flex: 1; }
.adm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-stat { padding: 14px 16px; }
.adm-stat b { font-family: var(--font-display); font-size: 26px; display: block; line-height: 1.1; }
.adm-stat small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.adm-stat.hot { background: linear-gradient(150deg, rgba(255, 46, 147, .22), rgba(255, 46, 147, .05)); border-color: rgba(255, 46, 147, .4); }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 18px 0 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--stroke); }
.tabs button { padding: 10px 4px; border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs button.on { background: var(--card-strong); color: var(--text); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5); }
.tabs .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 11.5px; }
.tabs .n.alert { background: var(--pink); color: #fff; }

.search { width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23a69dc9' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 14px center; color: var(--text); font: inherit; font-size: 15px; outline: none; margin-bottom: 12px; }
.search:focus { border-color: rgba(76, 201, 240, .6); }
.search::placeholder { color: var(--dim); }

.ulist { display: grid; gap: 10px; }
.urow { padding: 14px; }
.urow .top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--grad); }
.urow .who { flex: 1; min-width: 0; }
.urow .who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urow .who small { color: var(--muted); font-size: 12.5px; }
.urow .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.urow .meta .chip { padding: 5px 10px; font-size: 12px; }
.chip.ok { color: var(--mint); border-color: rgba(62, 230, 168, .35); }
.chip.warn { color: #4CC9F0; border-color: rgba(76, 201, 240, .35); }
.chip.gold { color: var(--gold); border-color: rgba(255, 201, 77, .35); }
.mini-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 12px; }
.mini-bar i { display: block; height: 100%; background: var(--grad-gold); border-radius: 99px; }
.urow .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.urow .actions.three { grid-template-columns: auto 1fr 1fr; }
.btn.approve { background: linear-gradient(135deg, #2fe0a0, #18a39b); box-shadow: 0 10px 24px -10px rgba(31, 194, 141, .8); min-height: 46px; font-size: 14px; border-radius: 14px; }
.btn.reject { background: rgba(255, 92, 92, .1); border: 1px solid rgba(255, 92, 92, .35); color: #ff8a8a; box-shadow: none; min-height: 46px; font-size: 14px; border-radius: 14px; }
.btn.receipt { min-height: 46px; font-size: 14px; border-radius: 14px; padding: 0 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .ic { font-size: 44px; display: block; margin-bottom: 10px; }

.modal { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; padding: 20px; background: rgba(5, 7, 14, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.active { display: grid; animation: fade .2s ease; }
.modal img { max-width: 100%; max-height: 80vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.modal .icon-btn.close { position: absolute; top: 16px; right: 16px; }
.urow .actions .btn { white-space: nowrap; padding: 0 10px; }

/* ---------- анимация упражнения в кружке таймера ---------- */
.p-media {
  position: absolute; inset: 20px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #1d2346 0%, #0e1222 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -30px 60px rgba(0, 0, 0, .35);
  display: grid; place-items: center;
}
.p-media video { width: 100%; height: 100%; object-fit: cover; }
.p-media .fig { width: 86%; height: 86%; margin-top: -6%; }
.p-ring .inner.with-media { place-content: center; pointer-events: none; }
.p-ring .sec.sec-pill {
  margin: 0; font-size: 76px; line-height: 1; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .5);
  text-shadow: 0 2px 18px rgba(11, 15, 25, .6);
}
.p-ring .sec.sec-pill.tick { animation: tickSoft .35s ease; }
@keyframes tickSoft { 30% { transform: scale(1.15); color: rgba(255, 201, 77, .8); } }
.fig line, .fig circle { stroke: #fff; stroke-width: 10; stroke-linecap: round; fill: none; }
.fig circle { fill: #fff; stroke-width: 0; }
.fig line.back { stroke: #4CC9F0; opacity: .55; }
.fig .body { filter: drop-shadow(0 0 10px rgba(255, 46, 147, .45)); }
.fig .floor { fill: rgba(0, 0, 0, .35); }
.ex .e.has-fig { background: radial-gradient(circle at 50% 38%, #1d2346, #0e1222); padding: 4px; }
.ex .e.has-fig .fig { width: 100%; height: 100%; }
.ex .e.has-fig .fig line { stroke-width: 12; }
.ex .e.has-fig .fig .body { filter: none; }
.ex .e.has-fig video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.fig line.prop { stroke: #6d5fa8; stroke-width: 6; opacity: .75; }
.fig .band { stroke: #FF2E93; stroke-width: 6; opacity: .95; filter: drop-shadow(0 0 6px rgba(255, 46, 147, .8)); }
.fig .db line { stroke: #ffc94d; stroke-width: 5; }
.fig .db circle, .fig circle.db { fill: #ffc94d; stroke: #b9781a; stroke-width: 2; }
.gear-card { margin-top: 12px; display: flex; gap: 14px; align-items: center; background: linear-gradient(150deg, rgba(255, 46, 147, .14), rgba(255, 201, 77, .05)); border-color: rgba(255, 46, 147, .3); }
.gear-card .ic { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; background: rgba(255, 46, 147, .16); }
.gear-card small { color: #ff6fb5; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.gear-card p { margin: 2px 0 0; font-weight: 600; }

/* ---------- задание дня в карточке «Сегодня» ---------- */
.habit-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: -4px 0 14px;
  padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
}
.habit-row > span { font-size: 20px; }
.habit-row div { flex: 1; min-width: 0; }
.habit-row small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.habit-row p { margin: 1px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.habit-row b { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #E0157F; font-size: 17px; flex-shrink: 0; }
.habit-row.done { opacity: .9; }
.habit .habit-btn { min-height: 40px; width: 44px; padding: 0; flex-shrink: 0; margin-left: auto; background: linear-gradient(135deg, #2fe0a0, #18a39b); box-shadow: none; }
.habit .habit-ok { margin-left: auto; font-size: 22px; }
.habit > div { flex: 1; }
.day .hd { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); }

/* ---------- уровень ---------- */
.progress-card .level { grid-column: 1 / -1; margin-top: 4px; }
.level-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.level-top small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.level .mini-bar { margin-top: 8px; }

/* ---------- замеры ---------- */
.measure-card.empty-m { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.measure-card.empty-m .ic { font-size: 30px; }
.measure-card.empty-m > div { flex: 1; min-width: 180px; }
.measure-card.empty-m p { margin: 4px 0 0; font-size: 13.5px; }
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-cell { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.m-cell small { display: block; font-size: 11.5px; }
.m-cell b { display: block; font-family: var(--font-display); font-size: 20px; margin: 2px 0; }
.m-cell .good { color: var(--mint); font-weight: 800; }
.m-cell .bad { color: #4CC9F0; font-weight: 800; }
.chart { width: 100%; height: 96px; margin-top: 12px; display: block; }
.m-hint { font-size: 13px; margin: 12px 0 0; }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.measure-form { width: min(100%, 420px); display: grid; gap: 12px; background: var(--bg-2); }
.measure-form h2 { font-size: 19px; }
.measure-form p { margin: 0; font-size: 13.5px; }
.measure-form label { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; }
.measure-form input { height: 48px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .06); color: var(--text); padding: 0 14px; font: inherit; font-size: 17px; outline: none; }
.measure-form input:focus { border-color: rgba(76, 201, 240, .7); }
.measure-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }

/* ---------- рейтинг ---------- */
.rating-card { display: grid; gap: 6px; width: 100%; text-align: left; padding: 12px; }
.r-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; }
.r-row.me { background: linear-gradient(135deg, rgba(76, 201, 240, .22), rgba(255, 46, 147, .14)); border: 1px solid rgba(76, 201, 240, .4); }
.r-place { width: 30px; text-align: center; font-family: var(--font-display); font-size: 18px; flex-shrink: 0; }
.r-name { flex: 1; min-width: 0; }
.r-name b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-name small { font-size: 12px; }
.r-stars { font-weight: 800; color: var(--gold); white-space: nowrap; }
.r-sep { text-align: center; color: var(--dim); letter-spacing: .3em; }
.r-foot { text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 700; padding-top: 4px; }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; }
.toggle > div { flex: 1; }
.toggle b { display: block; font-size: 14.5px; }
.toggle small { font-size: 12.5px; }
.toggle input { display: none; }
.toggle .sw { width: 48px; height: 28px; border-radius: 99px; background: rgba(255, 255, 255, .15); position: relative; transition: .2s; flex-shrink: 0; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + .sw { background: var(--mint); }
.toggle input:checked + .sw::after { left: 23px; }
.day.preview { border: 1.5px dashed rgba(114, 9, 183, .7); }
.preview-note { margin: -4px 4px 14px; padding: 10px 12px; border-radius: 14px; font-size: 13px; color: #c9b3ff; background: rgba(114, 9, 183, .12); border: 1px solid rgba(114, 9, 183, .3); }
.admin-entry.reset-me { margin: 14px 0 0; background: rgba(255, 255, 255, .05); border-color: var(--stroke); }
.community-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 14px; background: linear-gradient(150deg, rgba(114, 9, 183, .22), rgba(255, 46, 147, .08)); border-color: rgba(114, 9, 183, .4); }
.community-card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(114, 9, 183, .25); flex-shrink: 0; }
.community-card div { flex: 1; }
.community-card b { display: block; }
.community-card .muted { font-size: 13px; }
.community-card .go { font-size: 18px; color: var(--muted); }

/* ---------- человечек ---------- */
.mascot { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.mascot .m-svg { width: 120px; height: 120px; overflow: visible; }
.mascot.small .m-svg { width: 74px; height: 74px; }
.mascot.big .m-svg { width: 190px; height: 190px; }
.m-bubble {
  position: relative; margin-bottom: 6px; padding: 9px 13px; border-radius: 16px; max-width: 230px;
  background: #fff; color: #2b1d4a; font-weight: 700; font-size: 13.5px; line-height: 1.3; text-align: center;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); animation: bubbleIn .5s cubic-bezier(.3, 1.6, .5, 1) both;
}
.m-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.6) translateY(8px); } }
.m-svg * { transform-box: view-box; }
.mood-wave .m-arm-r { animation: mWave .6s ease-in-out infinite alternate; }
@keyframes mWave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.mood-wave .m-body, .mood-happy .m-body { animation: mBob 1.2s ease-in-out infinite; }
@keyframes mBob { 50% { transform: translateY(-4px); } }
.mood-cheer .m-body { animation: mJump .5s ease-in-out infinite alternate; }
@keyframes mJump { to { transform: translateY(-10px); } }
.mood-cheer .m-arm-l { animation: mPumpL .5s ease-in-out infinite alternate; }
.mood-cheer .m-arm-r { animation: mPumpR .5s ease-in-out infinite alternate; }
@keyframes mPumpL { to { transform: rotate(-12deg); } }
@keyframes mPumpR { to { transform: rotate(12deg); } }
.mood-highfive .m-arm-r { animation: mHigh .8s ease-in-out infinite alternate; }
@keyframes mHigh { to { transform: rotate(-10deg) translateX(4px); } }
.mood-highfive .m-spark { animation: mSpark .8s ease-in-out infinite alternate; transform-origin: 172px 64px; }
@keyframes mSpark { from { opacity: .3; transform: scale(.7); } to { opacity: 1; transform: scale(1.1); } }
.mood-sad .m-sit { animation: mBreath 3s ease-in-out infinite; transform-origin: 100px 180px; }
@keyframes mBreath { 50% { transform: scaleY(.97); } }
.mood-sad .m-tilt { transform: translate(0, 6px) rotate(-8deg); }
.mood-sad .m-tear { animation: mTear 2.2s ease-in infinite; }
@keyframes mTear { 0%, 30% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }
.mood-tired .m-standing { animation: mFall 2.4s ease-in forwards; }
@keyframes mFall {
  0% { transform: rotate(0); } 12% { transform: rotate(-7deg); } 24% { transform: rotate(7deg); } 36% { transform: rotate(-5deg); }
  46% { transform: rotate(0); opacity: 1; } 56% { transform: rotate(60deg) translateY(10px); opacity: 0; } 100% { opacity: 0; }
}
.mood-tired .m-sweat { animation: mTear 1s ease-in infinite; }
.mood-tired .m-lying { opacity: 0; animation: mLand 2.4s ease-out forwards; }
@keyframes mLand { 0%, 54% { opacity: 0; transform: translateY(-14px); } 64% { opacity: 1; transform: translateY(4px); } 72%, 100% { opacity: 1; transform: translateY(0); } }
.mood-tired .m-dizzy { animation: mSpin 1.6s linear infinite; }
@keyframes mSpin { to { transform: rotate(360deg); } }

/* человечек на главном */
.buddy-row { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: -6px 0 6px; }
.buddy-row .mascot { flex-direction: row-reverse; align-items: center; gap: 2px; }
.buddy-row .m-bubble { margin: 0 0 30px; max-width: 200px; text-align: left; }
.buddy-row .m-bubble::after { left: auto; right: -5px; bottom: 16px; transform: rotate(45deg); }

/* ---------- огонёк ---------- */
.fire-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px 8px 9px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: rgba(255, 46, 147, .14); border: 1px solid rgba(255, 46, 147, .4); color: #4CC9F0;
}
.fire-pill .f { font-size: 18px; display: inline-block; }
.fire-pill.lit .f { animation: flame 1.2s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(76, 201, 240, .9)); }
.fire-pill.risk .f { animation: flicker 1.6s ease-in-out infinite; }
.fire-pill.out { background: rgba(255, 255, 255, .06); border-color: var(--stroke); color: var(--dim); }
.fire-pill.out .f { filter: grayscale(1) brightness(.7); }
@keyframes flame { 50% { transform: scale(1.15) rotate(-4deg); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 40% { opacity: .45; } 60% { opacity: .9; } 75% { opacity: .5; } }

/* ---------- сундук ---------- */
#chest { background: radial-gradient(circle at 50% 40%, rgba(114, 9, 183, .25), transparent 60%), var(--bg); }
.chest-wrap { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px 20px calc(24px + var(--safe-bottom)); text-align: center; }
.chest-box { font-size: 120px; line-height: 1; cursor: pointer; filter: drop-shadow(0 18px 40px rgba(255, 171, 40, .5)); animation: chestShake 1.4s ease-in-out infinite; transition: transform .2s; }
.chest-box:active { transform: scale(.92); }
@keyframes chestShake { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-8deg) scale(1.05); } 72% { transform: rotate(8deg) scale(1.05); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(5deg); } }
.chest-box.opening { animation: chestOpen .6s ease-in forwards; }
@keyframes chestOpen { 40% { transform: scale(1.25) rotate(-6deg); } 100% { transform: scale(0); opacity: 0; } }
.chest-wrap h1 { font-size: 26px; }
.prize { width: 100%; animation: rise .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.prize .prize-ic { font-size: 70px; margin-bottom: 6px; }
.prize .card { text-align: left; }
.prize ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.promo-code { display: inline-block; margin: 10px 0; padding: 12px 20px; border-radius: 14px; font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 800; letter-spacing: .06em; background: rgba(255, 201, 77, .14); border: 2px dashed var(--gold); color: var(--gold); }
.chest-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 14px; background: linear-gradient(150deg, rgba(255, 201, 77, .2), rgba(76, 201, 240, .06)); border-color: rgba(255, 201, 77, .45); }
.chest-card .ic { font-size: 34px; animation: chestShake 1.6s ease-in-out infinite; }
.chest-card div { flex: 1; }
.chest-card b { display: block; }

/* ---------- сториз ---------- */
#story { background: var(--bg); }
.story-wrap { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px calc(20px + var(--safe-bottom)); }
.story-wrap img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.story-wrap .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reward .share { margin-top: 8px; }

/* человечек в плеере и на финише */
/* тренер в плеере — отдельной строкой над кнопками, ничего не перекрывает */
.p-buddy { display: flex; justify-content: flex-start; margin: 4px 0 10px; min-height: 84px; pointer-events: none; }
.p-buddy .mascot { flex-direction: row; align-items: center; gap: 8px; }
.p-buddy .mascot .m-bubble { order: 2; margin: 0 0 18px; font-size: 13px; padding: 8px 12px; max-width: 220px; }
.p-buddy .m-bubble::after { left: -5px; bottom: 12px; transform: rotate(45deg); }
.p-buddy .mascot.trainer .t-wrap { height: 84px; }
.p-buddy .m-svg { width: 74px; height: 74px; }
.finish .mascot { margin: 0 auto; }
.today-card .btn.light-btn { background: linear-gradient(135deg, #2fe0a0, #18a39b); color: #fff; margin-bottom: 10px; }
.today-card .btn.ghost-on-card { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .35); }

/* ---------- настоящий тренер на фото ---------- */
.mascot.trainer .t-wrap { position: relative; height: 196px; display: flex; align-items: flex-end; justify-content: center; }
.mascot.trainer.small .t-wrap { height: 96px; }
.mascot.trainer.big .t-wrap { height: 250px; }
.mascot.trainer .t-img { height: 100%; width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); }
/* низ фото плавно растворяется — маска на контейнере, чтобы свечение шло по силуэту */
.mascot.trainer .t-wrap { padding: 16px 20px 0; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }

.mood-wave.trainer .t-img { animation: tSway 2.4s ease-in-out infinite; }
@keyframes tSway { 50% { transform: rotate(-2.5deg); } }

.mood-happy.trainer .t-img { animation: tBounce 1.1s ease-in-out infinite; }
@keyframes tBounce { 50% { transform: translateY(-5px) scale(1.01); } }

.mood-cheer.trainer .t-img { animation: tJump .55s ease-in-out infinite alternate; }
@keyframes tJump { to { transform: translateY(-9px) scale(1.02); } }

.mood-sad.trainer .t-img { filter: grayscale(.55) brightness(.85) drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); transform: rotate(-3deg) translateY(4px); animation: tSigh 3.4s ease-in-out infinite; }
@keyframes tSigh { 50% { transform: rotate(-4deg) translateY(7px); } }

.mood-highfive.trainer .t-img { animation: tLean 1s ease-in-out infinite alternate; }
@keyframes tLean { to { transform: rotate(2deg) scale(1.03); } }

.mood-tired.trainer .t-img { animation: tTired 2.6s ease-in forwards; }
@keyframes tTired {
  0% { transform: rotate(0); } 12% { transform: rotate(-5deg); } 24% { transform: rotate(5deg); } 36% { transform: rotate(-4deg); }
  55%, 100% { transform: rotate(14deg) translateY(10%) scale(.94); filter: brightness(.9) drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); }
}
.buddy-row .mascot.trainer { gap: 0; }


/* ---------- «Кибер-спорт»: неоновые свечения ---------- */
.btn:not(.ghost):not(.gold):not(.approve):not(.reject) { box-shadow: 0 10px 28px -10px rgba(255, 46, 147, .8), 0 0 18px rgba(255, 46, 147, .35), inset 0 1px 0 rgba(255,255,255,.22); }
.today-card { box-shadow: 0 24px 50px -20px rgba(255, 46, 147, .75), 0 0 30px rgba(114, 9, 183, .35); }
.day.today { box-shadow: 0 0 0 3px rgba(255, 46, 147, .3), 0 0 22px rgba(255, 46, 147, .7); }
.p-ring > svg { filter: drop-shadow(0 0 10px rgba(255, 46, 147, .45)); }
.player.rest .p-ring .bar { stroke: var(--cyan); }
.player.rest .p-ring > svg { filter: drop-shadow(0 0 10px rgba(76, 201, 240, .5)); }
.ring .bar { filter: drop-shadow(0 0 6px rgba(255, 46, 147, .6)); }
.fig .body { filter: drop-shadow(0 0 10px rgba(255, 46, 147, .5)); }
.p-ring .sec.sec-pill { text-shadow: 0 0 18px rgba(76, 201, 240, .55); }
.stat .ic, .icon-btn { box-shadow: inset 0 0 0 1px rgba(76, 201, 240, .15); }
/* неоновое свечение вокруг тренера */
.mascot.trainer .t-img { filter: drop-shadow(0 0 10px rgba(255, 46, 147, .65)) drop-shadow(0 0 26px rgba(114, 9, 183, .5)) drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.mood-sad.trainer .t-img { filter: grayscale(.55) brightness(.85) drop-shadow(0 0 10px rgba(76, 201, 240, .5)) drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }

.p-buddy .mascot.trainer .t-wrap { height: 96px; padding: 10px 12px 0; }
.p-buddy .mascot.trainer .t-img { filter: drop-shadow(0 0 5px rgba(255, 46, 147, .7)) drop-shadow(0 0 12px rgba(114, 9, 183, .45)); }

/* ---------- урок в день восстановления ---------- */
.lesson { margin-top: 18px; }
.lesson p { margin: 0 0 12px; line-height: 1.55; }
.lesson .l-intro { font-size: 16px; font-weight: 600; }
.lesson .l-h { font-family: var(--font-display); font-size: 16px; margin: 18px 0 8px; }
.lesson ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.lesson li { line-height: 1.45; }
.lesson li::marker { color: var(--pink); }
.l-tip { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(76, 201, 240, .1); border: 1px solid rgba(76, 201, 240, .3); font-weight: 600; font-size: 14px; }
.l-tool { margin: 6px 0 16px; }
.plate { width: min(100%, 260px); display: block; margin: 0 auto; filter: drop-shadow(0 0 16px rgba(255, 46, 147, .35)); }
.plate .pl-t { font: 800 12px var(--font); fill: #0B0F19; }
.plate-side { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.plate-side span { padding: 6px 12px; border-radius: 99px; background: var(--card-strong); font-size: 13px; font-weight: 700; }
.calc { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); }
.calc label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
.calc input, .calc select { height: 46px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .06); color: var(--text); padding: 0 12px; font: inherit; font-size: 16px; outline: none; min-width: 0; }
.calc select { font-size: 14px; }
.calc input:focus, .calc select:focus { border-color: rgba(255, 46, 147, .7); }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); }
.seg label { display: block; }
.seg input { display: none; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--grad); color: #fff; }
.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-res > div { padding: 12px; border-radius: 14px; background: var(--card-strong); text-align: center; }
.calc-res > div.hl { background: linear-gradient(135deg, rgba(255, 46, 147, .25), rgba(114, 9, 183, .25)); border: 1px solid rgba(255, 46, 147, .45); }
.calc-res b { display: block; font-family: var(--font-display); font-size: 26px; margin: 2px 0; }
.calc-res small { color: var(--muted); font-size: 12px; }
#water-out .calc-res { grid-template-columns: 1fr; }
.bju { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bju span { padding: 7px 10px; border-radius: 10px; background: var(--card-strong); font-size: 13px; }
.stretch-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 12px; }
.stretch-card .ic { font-size: 28px; }
.stretch-card div { flex: 1; }
.stretch-card b { display: block; }
.stretch-card .muted { font-size: 13px; }
.day.rest:not(.done):not(.today) { border-style: dashed; border-color: rgba(76, 201, 240, .45); }
.fig .cuff { fill: #2a2f4f; stroke: #4CC9F0; stroke-width: 3; }

/* ---------- розыгрыш приза ---------- */
.prize-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 12px;
  background: linear-gradient(140deg, rgba(255, 46, 147, .2), rgba(114, 9, 183, .18) 60%, rgba(76, 201, 240, .1)); border-color: rgba(255, 46, 147, .45);
  box-shadow: 0 0 26px rgba(255, 46, 147, .2); }
.prize-card .prize-pic { width: 76px; flex-shrink: 0; }
.prize-pic .airfryer { width: 100%; height: auto; filter: drop-shadow(0 0 12px rgba(76, 201, 240, .45)); animation: float 4s ease-in-out infinite; }
.prize-pic.big { width: 110px; margin: 0 auto; }
.prize-card small { color: #ff6fb5; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.prize-card b { display: block; font-family: var(--font-display); font-size: 19px; margin: 2px 0; }
.prize-card p { margin: 2px 0 0; font-size: 13px; }
.pz-body { flex: 1; min-width: 0; }
.pz-row { font-size: 13px; margin-top: 6px; }
.prize-card .mini-bar { margin-top: 6px; }
.pz-link { display: inline-block; margin-top: 8px; color: var(--cyan); font-weight: 800; font-size: 13px; }
.rules { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.45; }

/* ---------- видеокружок тренера в уроке ---------- */
.vcircle { position: relative; width: min(64vw, 250px); aspect-ratio: 1; margin: 18px auto 6px; cursor: pointer; }
.vcircle video { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 50%; object-fit: cover; background: #13162A;
  box-shadow: 0 0 24px rgba(255, 46, 147, .45), 0 0 48px rgba(114, 9, 183, .35); }
.vc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vc-ring circle { fill: none; stroke-width: 4; }
.vc-track { stroke: rgba(255, 255, 255, .12); }
.vc-bar { stroke: #FF2E93; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 46, 147, .8)); transition: stroke-dashoffset .25s linear; }
.vc-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; color: #fff; background: rgba(11, 15, 25, .55); border: 2px solid rgba(255, 255, 255, .7); backdrop-filter: blur(4px); transition: opacity .2s; }
.vcircle.playing .vc-play { opacity: 0; }
.vc-cap { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 4px; }

/* ---------- мини-тест после урока ---------- */
.quiz { margin-top: 14px; border-color: rgba(76, 201, 240, .35); background: linear-gradient(160deg, rgba(76, 201, 240, .1), rgba(114, 9, 183, .08)); }
.q-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.q-head > span { font-size: 26px; }
.q-head b { display: block; font-family: var(--font-display); font-size: 16px; }
.q-head small { font-size: 12.5px; }
.q-item { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--stroke); }
.q-text { margin: 0 0 10px; font-weight: 700; }
.q-opts { display: grid; gap: 8px; }
.q-opt { text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--card-strong); border: 1px solid var(--stroke); font-weight: 600; transition: .15s; }
.q-opt:active { transform: scale(.98); }
.q-opt.right { background: rgba(62, 230, 168, .2); border-color: var(--mint); color: #b9ffe4; }
.q-opt.right::after { content: " ✓"; }
.q-opt.wrong { background: rgba(255, 92, 92, .15); border-color: rgba(255, 92, 92, .6); color: #ffb3b3; animation: shake .35s; }
.q-opt:disabled { opacity: 1; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.q-exp { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- трекер воды ---------- */
.water-card { padding: 14px 12px 12px; }
.water-card.done { border-color: rgba(76, 201, 240, .5); box-shadow: 0 0 22px rgba(76, 201, 240, .2); }
.cups { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.cup-btn { padding: 2px; border-radius: 10px; }
.cup-btn:active { transform: scale(.88); }
.cup { width: 100%; height: auto; display: block; }
.cup-glass { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.cup-water { fill: transparent; transition: fill .25s; }
.cup.full .cup-water { fill: #4CC9F0; filter: drop-shadow(0 0 4px rgba(76, 201, 240, .8)); }
.cup.full .cup-glass { stroke: #4CC9F0; }
.water-card small { display: block; text-align: center; font-size: 12.5px; }

/* ---------- приведи подругу ---------- */
.ref-card { display: flex; gap: 12px; margin-top: 12px; border-color: rgba(76, 201, 240, .35); }
.ref-card .ic { font-size: 30px; }
.ref-body { flex: 1; min-width: 0; }
.ref-body b { display: block; font-size: 15px; }
.ref-body .muted { font-size: 13px; display: block; margin-top: 2px; }
.ref-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ref-actions .btn.small { min-height: 40px; font-size: 13px; padding: 0 14px; }

/* ---------- акционная цена ---------- */
.price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.old-price { font-family: var(--font-display); font-size: 22px; color: var(--muted); text-decoration-thickness: 3px; text-decoration-color: #FF2E93; }
.sale { padding: 5px 10px; border-radius: 99px; font-weight: 800; font-size: 14px; color: #fff; background: var(--grad); box-shadow: 0 0 16px rgba(255, 46, 147, .6); animation: bump 1.6s ease-in-out infinite; }
.price-note { margin: 4px 0 6px; font-weight: 700; font-size: 13.5px; color: #ff6fb5; }

/* ---------- рацион ---------- */
.menu-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 14px; background: linear-gradient(150deg, rgba(62, 230, 168, .16), rgba(76, 201, 240, .08)); border-color: rgba(62, 230, 168, .35); }
.menu-card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(62, 230, 168, .2); flex-shrink: 0; }
.menu-card div { flex: 1; }
.menu-card b { display: block; }
.menu-card .muted { font-size: 13px; }
.goal-card { margin-top: 18px; display: grid; gap: 8px; }
.goal-card > b { font-family: var(--font-display); font-size: 18px; }
.goal-card > .muted { font-size: 14px; line-height: 1.4; }
.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.goal-btn { padding: 14px 0 10px; border-radius: 16px; background: var(--card-strong); border: 1px solid var(--stroke); font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); display: grid; gap: 2px; }
.goal-btn small { font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 600; }
.goal-btn.on { background: var(--grad); box-shadow: var(--glow); border-color: transparent; }
.goal-btn.on small { color: #fff; }
.goal-btn:active { transform: scale(.95); }
.nursing { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.nursing input, .shop-list input { width: 20px; height: 20px; accent-color: var(--pink); flex-shrink: 0; }
.goal-modal { width: 100%; max-width: 420px; }
.goal-modal .goal-card { margin-top: 0; background: var(--bg-2); }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(150deg, rgba(255, 46, 147, .16), rgba(114, 9, 183, .12)); border-color: rgba(255, 46, 147, .3); }
.menu-top .kicker { color: #ff6fb5; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.menu-top .kcal { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 2px 0; }
.menu-top .kcal small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 600; }
.small { font-size: 13px; }
.center { text-align: center; }
.menu-note { display: flex; gap: 10px; margin-top: 12px; font-size: 14px; line-height: 1.45; border-color: rgba(255, 201, 77, .35); background: rgba(255, 201, 77, .08); }
.menu-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-top: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--stroke); }
.menu-tabs button { padding: 10px 0; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); }
.menu-tabs button.on { background: var(--card-strong); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 46, 147, .45); }
.menu-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.md-btn { padding: 10px 0; border-radius: 12px; background: var(--card); border: 1px solid var(--stroke); font-weight: 800; font-size: 13px; color: var(--muted); }
.md-btn.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.meal { margin-bottom: 10px; display: grid; gap: 6px; }
.meal-head { display: flex; justify-content: space-between; font-size: 12px; }
.meal .slot { color: var(--cyan); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.meal > b { font-size: 16px; }
.meal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.meal li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--stroke); }
.meal li span:last-child { font-weight: 700; white-space: nowrap; }
.meal small { line-height: 1.4; }
.shop-list { display: grid; gap: 2px; }
.shop-list label { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--stroke); }
.shop-list label:last-child { border-bottom: 0; }
.shop-list span { flex: 1; }
.shop-list input:checked ~ span { text-decoration: line-through; color: var(--dim); }
.swaps { display: grid; gap: 10px; font-size: 14px; line-height: 1.4; }
.swaps b { display: block; }
button.menu-note { width: 100%; text-align: left; color: var(--text); }

/* ---------- фото еды ---------- */
.food-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: linear-gradient(150deg, rgba(255, 159, 28, .16), rgba(255, 46, 147, .08)); border-color: rgba(255, 159, 28, .35); }
.food-card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 159, 28, .2); flex-shrink: 0; align-self: flex-start; }
.food-card > div { flex: 1; }
.food-card b { display: block; }
.food-card .muted { font-size: 13px; display: block; margin-bottom: 10px; }
.food-card.done .muted { margin-bottom: 0; }
.food-card .btn { width: 100%; }
.food-thumb { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; font-size: 26px; background: var(--card-strong); }
.food-thumb img, .food-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.food-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.food-item { display: grid; gap: 4px; padding: 10px; }
.food-item small { font-size: 12px; }
.food-item .btn { margin-top: 4px; width: 100%; min-height: 36px; font-size: 13px; }
.food-img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-size: 28px; background: var(--card-strong); margin-bottom: 4px; }
.food-grid .empty, .food-grid .loader { grid-column: 1 / -1; min-height: 0; }

/* ---------- юридическая оговорка ---------- */
.disclaimer { margin-top: 16px; padding: 12px 14px; border-radius: 16px; font-size: 12px; line-height: 1.45; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px dashed var(--stroke); }
.nursing.agree { align-items: flex-start; font-size: 13px; line-height: 1.4; padding: 10px; border-radius: 12px; background: rgba(255, 201, 77, .07); border: 1px solid rgba(255, 201, 77, .3); }
.shake { animation: shake .5s; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; padding: 10px 12px; font-size: 13px; overflow: visible; }
.food-card > .food-thumb { flex: 0 0 64px; }

/* ---------- шаги ---------- */
.steps-card { background: linear-gradient(150deg, rgba(76, 201, 240, .16), rgba(114, 9, 183, .1)); border-color: rgba(76, 201, 240, .35); }
.steps-card .ic { background: rgba(76, 201, 240, .2); }
.steps-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.steps-btns .btn { flex-direction: column; gap: 0; line-height: 1.2; padding: 0 8px; }
.steps-btns .btn small { font-size: 11px; }
.kind-chip { justify-self: start; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255, 159, 28, .16); color: var(--gold); }
.kind-chip.steps { background: rgba(76, 201, 240, .16); color: var(--cyan); }
.kind-chip.pending { background: rgba(255, 46, 147, .18); color: #ff6fb5; min-height: 0; display: inline-block; place-content: normal; text-align: left; gap: 0; } /* .pending — ещё и класс экрана ожидания оплаты */
.approve-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.approve-row .btn { min-height: 36px; font-size: 12px; padding: 0 4px; }

/* ---------- компактная главная: «Сегодня» и нижнее меню ---------- */
.tasks-card { margin-top: 14px; }
.tasks-head { display: flex; justify-content: space-between; align-items: baseline; }
.tasks-head b { font-family: var(--font-display); font-size: 16px; }
.tasks-head span { color: var(--gold); font-weight: 800; font-size: 14px; }
.tasks-card .mini-bar { margin-top: 10px; }
.habit-line { display: flex; gap: 8px; margin: 12px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.habit-line span { color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tile { display: grid; justify-items: center; gap: 3px; padding: 12px 4px 10px; border-radius: 16px; background: var(--card-strong); border: 1px solid var(--stroke); color: var(--text); text-align: center; transition: transform .15s ease; }
.tile:active { transform: scale(.95); }
.tile .t-ic { font-size: 26px; line-height: 1.1; }
.tile b { font-size: 13px; }
.tile small { font-size: 11.5px; color: var(--gold); font-weight: 700; }
.tile.done { background: rgba(62, 230, 168, .1); border-color: rgba(62, 230, 168, .35); }
.tile.done small { color: var(--mint); }
.tasks-water { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--stroke); }
.tasks-water .cups { margin-bottom: 4px; }
.tasks-water small { display: block; text-align: center; font-size: 12px; }
.tab-title { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 4px 4px; }
.tab-title h2 { font-size: 22px; }
.tab-title span { font-size: 13px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + var(--safe-bottom));
  background: rgba(11, 15, 25, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--stroke);
}
.tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 14px; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.tabbar .ti { font-size: 22px; filter: grayscale(.8); opacity: .7; transition: .2s; }
.tabbar button.on { color: var(--text); background: rgba(255, 46, 147, .12); }
.tabbar button.on .ti { filter: none; opacity: 1; transform: translateY(-1px); }
.tabbar .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }

/* ---------- потоки: подготовка к старту ---------- */
.today-card.prestart h2 { font-size: 26px; }
.cd-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 4px; }
.cd-boxes div { display: grid; justify-items: center; padding: 10px 0 8px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.cd-boxes b { font-family: var(--font-display); font-size: 24px; }
.cd-boxes small { font-size: 11px; opacity: .85; font-weight: 700; }
.prep-list { display: grid; gap: 10px; }
.prep { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); }
.prep .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--card-strong); flex-shrink: 0; }
.prep div { flex: 1; }
.prep b { display: block; }
.prep .muted { font-size: 13px; }
.prep.done { border-color: rgba(62, 230, 168, .35); background: rgba(62, 230, 168, .07); }
.prep-what { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.stream-pill { display: inline-block; margin-top: 14px; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; background: rgba(255, 201, 77, .12); border: 1px solid rgba(255, 201, 77, .35); color: var(--gold); }
/* админка: потоки */
.streams-card { margin-top: 12px; display: grid; gap: 10px; }
.streams-card > b { font-family: var(--font-display); font-size: 16px; }
.stream-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card-strong); }
.stream-row div { flex: 1; }
.stream-row b { display: block; }
.stream-row small { color: var(--muted); font-size: 12.5px; }
.stream-row .del { color: var(--dim); font-size: 18px; padding: 4px 8px; }
.stream-add { display: flex; gap: 8px; }
.stream-add input { flex: 1; min-width: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--card); color: var(--text); font: inherit; color-scheme: dark; }
.stream-filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; scrollbar-width: none; }
.stream-filter button { flex: 0 0 auto; padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--stroke); }
.stream-filter button.on { color: #fff; background: var(--grad); border-color: transparent; }
.stream-pill .seats { color: var(--pink); }

/* ---------- вариант A: вода одной кнопкой, крупнее подписи ---------- */
.tasks-water { display: flex; align-items: center; gap: 10px; }
.tasks-water .w-info { flex: 1; min-width: 0; display: grid; gap: 6px; }
.tasks-water .w-info b { font-size: 15px; }
.tasks-water .w-info small { font-size: 13px; color: var(--muted); text-align: left; }
.w-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.w-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4CC9F0, #7AD7F5); transition: width .4s ease; }
.w-plus { flex-shrink: 0; min-height: 52px; padding: 0 16px; border-radius: 16px; font-weight: 800; font-size: 15px; color: #06202b; background: linear-gradient(135deg, #7AD7F5, #4CC9F0); box-shadow: 0 8px 22px -10px rgba(76, 201, 240, .9); }
.w-plus:active, .w-minus:active { transform: scale(.94); }
.w-minus { flex-shrink: 0; width: 44px; min-height: 52px; border-radius: 16px; font-size: 22px; font-weight: 800; color: var(--muted); background: var(--card-strong); border: 1px solid var(--stroke); }
.tasks-water.done .w-info b { color: var(--cyan); }
.tile b { font-size: 14px; }
.tile small { font-size: 13px; }
.habit-line { font-size: 14.5px; }
.tasks-head span { font-size: 15px; }
.tabbar button { font-size: 12.5px; color: #B4B9C6; }
.tabbar .ti { filter: grayscale(.35); opacity: .9; }
.tabbar button.on { color: #fff; background: rgba(255, 46, 147, .18); box-shadow: inset 0 0 0 1px rgba(255, 46, 147, .35); }
.menu-card .muted, .food-card .muted, .prep .muted { font-size: 13.5px; }
/* карточка «день выполнен» — компактнее */
.today-card.done.compact { padding-top: 16px; padding-bottom: 16px; }
.today-card.done.compact .big-emoji { font-size: 44px; top: 14px; }
.today-card.done.compact h2 { font-size: 20px; margin: 4px 0; }
.today-card.done.compact .countdown { font-size: 22px; }
.today-card.done.compact .chips { display: none; }
.today-card.done.compact .btn { min-height: 46px; margin-top: 10px; }

/* ---------- кошелёк, магазин, спасение огонька ---------- */
button.stars-pill { cursor: pointer; font-family: inherit; }
button.stat { width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.rescue-card { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
  background: linear-gradient(150deg, rgba(255, 94, 58, .22), rgba(255, 201, 77, .06)); border-color: rgba(255, 120, 70, .5); }
.rescue-card .ic { font-size: 34px; animation: flicker 1.6s ease-in-out infinite; }
.rescue-card div { flex: 1; display: grid; gap: 6px; }
.rescue-card .btn { justify-self: start; }
.shop { display: grid; gap: 10px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card-strong); border: 1px solid var(--stroke); }
.shop-item .ic { font-size: 26px; }
.shop-item div { flex: 1; min-width: 0; }
.shop-item b { display: block; font-size: 14.5px; }
.shop-item small { display: block; font-size: 12px; }
.shop-item .btn { width: auto; flex-shrink: 0; padding-inline: 14px; }
.btn[disabled] { opacity: .5; }

/* ---------- сундуки по редкости ---------- */
.chest-card.rare { background: linear-gradient(150deg, rgba(200, 220, 255, .22), rgba(76, 201, 240, .08)); border-color: rgba(190, 215, 255, .6); }
.chest-card.legendary { background: linear-gradient(150deg, rgba(255, 201, 77, .35), rgba(255, 46, 147, .12)); border-color: rgba(255, 201, 77, .8);
  box-shadow: 0 0 28px -6px rgba(255, 201, 77, .7); }
.chest-box.rare svg { filter: grayscale(1) brightness(1.5) drop-shadow(0 0 18px rgba(170, 210, 255, .9)); }
.chest-box.legendary { filter: drop-shadow(0 0 30px rgba(255, 201, 77, 1)) drop-shadow(0 0 60px rgba(255, 46, 147, .6)); }
.chest-box.legendary svg { filter: saturate(1.4) brightness(1.15); }
.chest-wrap.legendary h1 { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prize-extra { margin-top: 10px; display: grid; gap: 6px; justify-items: center; }
.prize-extra .prize-ic { font-size: 44px; }

/* ---------- карточки тренера ---------- */
.cards-card { display: grid; gap: 12px; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tcard { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 6px; min-height: 92px;
  border-radius: 14px; text-align: center; color: inherit; font: inherit; cursor: pointer;
  background: var(--card-strong); border: 1px solid var(--stroke); }
.tcard .tc-e { font-size: 26px; line-height: 1.2; }
.tcard b { font-size: 11.5px; line-height: 1.2; }
.tcard.rare { border-color: rgba(170, 210, 255, .7); background: linear-gradient(180deg, rgba(170, 210, 255, .16), rgba(170, 210, 255, .03)); }
.tcard.legendary { border-color: rgba(255, 201, 77, .9); background: linear-gradient(180deg, rgba(255, 201, 77, .22), rgba(255, 46, 147, .06)); }
.tcard.locked { cursor: default; opacity: .45; }
.tcard.locked .tc-e { font-family: var(--font-display); color: var(--dim); }
.tcard.locked b { color: var(--dim); font-weight: 600; }
.tcard.big { padding: 22px 18px 18px; gap: 8px; min-height: 0; cursor: default; }
.tcard.big .tc-e { font-size: 54px; }
.tcard.big b { font-size: 19px; font-family: var(--font-display); }
.tcard.big p { margin: 0; font-size: 15px; line-height: 1.45; }
.tcard .tc-r { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tcard.rare .tc-r { color: #b9d7ff; }
.tcard.legendary .tc-r { color: var(--gold); }

/* ---------- рейтинг: до соседки ---------- */
.r-gap { margin-top: 4px; padding: 8px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; background: rgba(255, 201, 77, .1); color: var(--gold); }

/* ---------- окна «задание дня» и «как собрать звёзды» ---------- */
button.tasks-head { width: 100%; text-align: left; color: var(--text); padding: 0; }
.tasks-head .info { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; font-style: normal; font-size: 11px; font-family: var(--font); background: var(--card-strong); color: var(--muted); vertical-align: 2px; }
.sheet .sheet-kicker { color: #ff6fb5; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sheet h2 { font-size: 20px; line-height: 1.3; }
.sheet p { font-size: 14px; line-height: 1.45; }
.si-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-strong); }
.si-row > span { font-size: 22px; }
.si-row b { display: block; font-size: 15px; }
.si-row small { color: var(--muted); font-size: 13px; }
.si-row.done { background: rgba(62, 230, 168, .1); }

/* ---------- тренер-рассказчик: кнопка в облачке ---------- */
.buddy-row .m-bubble { max-width: 220px; }
.m-act { display: block; width: 100%; margin-top: 10px; min-height: 44px; padding: 0 12px; border-radius: 14px; font-weight: 800; font-size: 14px; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(255, 46, 147, .8); }
.m-act.gold { background: var(--grad-gold); color: #3a2300; box-shadow: 0 8px 18px -8px rgba(255, 171, 40, .8); }
.m-act:active { transform: scale(.96); }

/* ---------- «Отдышаться» после тренировки ---------- */
.breathe { display: flex; align-items: center; gap: 14px; margin: 14px auto 6px; padding: 12px 16px; border-radius: 18px; background: rgba(76, 201, 240, .08); border: 1px solid rgba(76, 201, 240, .3); max-width: 340px; text-align: left; }
.breathe b { display: block; font-size: 17px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.breathe small { color: var(--muted); font-size: 12.5px; }
.b-circle { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle, rgba(76, 201, 240, .55), rgba(76, 201, 240, .12)); transform: scale(.6); transition: transform 4s ease-in-out; }
.breathe.in .b-circle { transform: scale(1); transition-duration: 4s; }
.breathe.out .b-circle { transform: scale(.6); transition-duration: 6s; }
.breathe.done .b-circle { transform: scale(.8); }
@media (prefers-reduced-motion: reduce) { .b-circle { transition: none !important; } }

/* ---------- квиз, план, цена в день, частые вопросы ---------- */
.quiz { display: grid; gap: 14px; padding-top: 18px; }
.quiz-hero { padding-top: 30px; }
.quiz-hero h1 { font-size: 26px; text-wrap: balance; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; font-weight: 700; }
.quiz .mini-bar { margin-top: 0; }
.quiz-q { font-size: 22px; margin-top: 8px; text-wrap: balance; }
.quiz .muted { margin: -6px 0 0; font-size: 14px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { width: 100%; text-align: left; min-height: 56px; font-size: 16px; font-weight: 700; color: var(--text); }
.quiz-opt.on { border-color: var(--pink); background: rgba(255, 46, 147, .14); box-shadow: inset 0 0 0 1px var(--pink); }
.quiz-weight { display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
.quiz-weight .muted { margin: 0; font-weight: 500; font-size: 13px; }
.quiz-weight input { padding: 14px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--card); color: var(--text); font: inherit; font-size: 18px; color-scheme: dark; }
.link { color: var(--cyan); font-weight: 700; font-size: 14px; padding: 6px 0; }
.center-link { justify-self: center; color: var(--muted); }
.plan-card { margin-top: 14px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; border-color: rgba(255, 46, 147, .35); background: linear-gradient(150deg, rgba(255, 46, 147, .12), rgba(114, 9, 183, .08)); }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-head b { font-family: var(--font-display); font-size: 16px; }
.per-day { margin: 6px 0 2px; font-weight: 800; color: var(--gold); font-size: 15px; }
.faq { display: grid; gap: 8px; }
.faq-item { padding: 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 16px; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--pink); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 16px 15px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.goal-btn.suggest { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.goal-btn.suggest small { color: var(--gold); }
.remind-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 14px; color: var(--text); }
.remind-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--card-strong); flex-shrink: 0; }
.remind-card div { flex: 1; } .remind-card b { display: block; } .remind-card .muted { font-size: 13px; }
.remind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* ---------- второй круг: пробный день 0 ---------- */
.stream-pill .seats:not(.hot) { color: var(--gold); }
.trial-card { margin-top: 14px; display: grid; gap: 10px; border-color: rgba(62, 230, 168, .35); background: linear-gradient(135deg, rgba(62, 230, 168, .10), rgba(76, 201, 240, .06)); }
.trial-card.waiting { border-color: rgba(255, 201, 77, .45); background: linear-gradient(135deg, rgba(255, 201, 77, .12), rgba(255, 46, 147, .08)); }
.trial-card.done { border-color: var(--stroke); background: var(--card); }
.trial-head { display: flex; align-items: center; gap: 12px; }
.trial-head .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--card-strong); flex-shrink: 0; }
.trial-head div { flex: 1; min-width: 0; }
.trial-head small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.trial-head b { font-family: var(--font-display); font-size: 16px; white-space: nowrap; }
.trial-card p { margin: 0; font-size: 14px; line-height: 1.45; }


/* ---------- второй круг: стартовый квест ---------- */
.quest-card { margin-top: 12px; display: grid; gap: 10px; border-color: rgba(255, 201, 77, .35); }
.quest-card.ready { background: linear-gradient(135deg, rgba(255, 201, 77, .14), rgba(255, 46, 147, .08)); }
.quest-head { display: flex; align-items: center; gap: 12px; }
.quest-head .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--card-strong); flex-shrink: 0; }
.quest-head small { display: block; color: var(--gold); font-size: 12px; font-weight: 800; }
.quest-head b { font-family: var(--font-display); font-size: 16px; }
.quest-steps { display: grid; gap: 6px; }
.quest-step { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 14px; background: var(--card-strong); color: var(--text); text-align: left; }
.quest-step.done { opacity: .7; }
.quest-step .qs-ic { font-size: 20px; width: 26px; text-align: center; }
.quest-step .qs-t { flex: 1; min-width: 0; }
.quest-step b { display: block; font-size: 14px; }
.quest-step small { color: var(--muted); font-size: 12px; }
.quest-step .go { color: var(--muted); }
.quest-prize { margin: 0; font-size: 12.5px; }

/* ---------- второй круг: время напоминаний ---------- */
.remind-card { margin-top: 12px; display: grid; gap: 12px; }
.remind-head { display: flex; align-items: center; gap: 12px; }
.remind-head .ic, .remind-row .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--card-strong); flex-shrink: 0; }
.remind-head b, .remind-row b { display: block; }
.remind-head .muted, .remind-row .muted { font-size: 13px; }
.remind-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.remind-chip { padding: 9px 13px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--text); background: var(--card-strong); border: 1px solid var(--stroke); }
.remind-chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.remind-row { margin-top: 12px; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); }
.remind-row div { flex: 1; }
.remind-row .go { color: var(--muted); }

/* ---------- второй круг: воронка в админке ---------- */
.funnel-card { margin-top: 12px; display: grid; gap: 10px; }
.funnel-card > b { font-family: var(--font-display); font-size: 16px; }
.fn-row { display: grid; gap: 4px; }
.fn-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.fn-top small { color: var(--muted); font-weight: 600; }
.fn-bar { height: 8px; border-radius: 99px; background: var(--card-strong); overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.fn-row > small { font-size: 12px; }
.fn-ref { font-size: 13.5px; padding: 10px 12px; border-radius: 14px; background: var(--card-strong); }

/* ---------- второй круг: парный огонёк ---------- */
.pair-card { margin-top: 12px; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); border-color: rgba(255, 46, 147, .35); }
.pair-card.lit { background: linear-gradient(135deg, rgba(255, 159, 28, .16), rgba(255, 46, 147, .10)); border-color: rgba(255, 159, 28, .5); }
.pair-flames { display: flex; flex-shrink: 0; }
.pair-flames span { font-size: 26px; filter: grayscale(1) opacity(.45); }
.pair-flames span + span { margin-left: -8px; }
.pair-flames span.on { filter: none; }
.pair-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pair-body small { color: var(--muted); font-size: 12px; font-weight: 700; }
.pair-body b { font-family: var(--font-display); font-size: 16px; }
.pair-body .muted { font-size: 13px; }
.pair-setup { margin-top: 12px; display: grid; gap: 10px; border-color: rgba(255, 46, 147, .3); }
.pair-head { display: flex; gap: 12px; align-items: center; }
.pair-head .ic { font-size: 30px; }
.pair-head b { display: block; }
.pair-head .muted { font-size: 13px; }
.pair-code { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pair-setup .ref-actions { margin-top: 0; }
.pair-setup > .btn.small { justify-self: start; min-height: 36px; font-size: 13px; padding: 0 14px; }

/* ---------- «Эстетика тела»: разминка отдельной кнопкой, подходы ---------- */
.warmup-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 14px; color: var(--text); border-color: rgba(76, 201, 240, .35); background: linear-gradient(135deg, rgba(76, 201, 240, .12), rgba(114, 9, 183, .08)); }
.warmup-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--card-strong); flex-shrink: 0; }
.warmup-card div { flex: 1; min-width: 0; }
.warmup-card b { display: block; font-size: 16px; }
.warmup-card .muted { font-size: 13px; }
.warmup-card .go { color: var(--cyan); font-size: 18px; }
.sets-done { margin: 12px auto 4px; padding: 12px 18px; border-radius: 18px; background: rgba(62, 230, 168, .1); border: 1px solid rgba(62, 230, 168, .3); display: inline-grid; gap: 2px; }
.sets-done b { font-family: var(--font-display); font-size: 26px; color: #3ee6a8; }
.sets-done small { color: var(--muted); font-size: 13px; }
.ex .easy { display: block; margin-top: 3px; font-size: 13px; color: #3ee6a8; font-weight: 600; }
.approve-row .btn.icon-big { font-size: 22px; min-height: 44px; }
.prize-card.won { border-color: rgba(255, 201, 77, .6); background: linear-gradient(135deg, rgba(255, 201, 77, .18), rgba(255, 46, 147, .12)); }
.cleanup-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 16px; color: var(--text); }
.cleanup-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--card-strong); flex-shrink: 0; }
.cleanup-card b { display: block; } .cleanup-card .muted { font-size: 13px; }

/* ---------- озвученный совет в уроке ---------- */
.m-say { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 6px; vertical-align: middle; border-radius: 50%; font-size: 15px; background: rgba(255, 46, 147, .12); }
.m-say.on { background: var(--grad); }

/* ---------- кружок таймера: фиолетовый фон и бирюзовый неон (Иван, 22.10, вариант «фиолетовый и бирюза») ---------- */
.p-media { background: radial-gradient(circle at 50% 38%, #2a1f5c 0%, #1a1240 72%); }
/* цифры почти прозрачные — упражнение под ними хорошо видно (Иван, 22.10) */
.p-ring .sec.sec-pill {
  color: rgba(255, 255, 255, .05);
  -webkit-text-stroke: 1.5px rgba(76, 201, 240, .38); paint-order: stroke fill;
  text-shadow: 0 0 6px rgba(76, 201, 240, .2);
}

/* ---------- человечек «объёмный»: толстые розовые руки-ноги, телесная голова (Иван, 22.10) ---------- */
.fig .body > line:not(.band):not(.prop) { stroke: url(#figGrad); stroke-width: 17; }
.fig .body > line.back { stroke: #7a5cff; opacity: .6; }
.fig .body > circle:not(.db):not(.cuff) { fill: #ffd2b8; }
.fig .body { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.ex .e.has-fig .fig .body > line:not(.band):not(.prop) { stroke-width: 18; }
.ex .e.has-fig .fig .body { filter: none; }

/* ---------- психология: «Мне сейчас тяжело» и «Голова тоже тренируется» (Иван, 22.10) ---------- */
.sos-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 14px; color: var(--text); border-color: rgba(255, 201, 77, .35); background: linear-gradient(135deg, rgba(255, 201, 77, .1), rgba(255, 46, 147, .08)); }
.sos-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--card-strong); flex-shrink: 0; }
.sos-card div { flex: 1; min-width: 0; } .sos-card b { display: block; font-size: 16px; } .sos-card .muted { font-size: 13px; }
.sos-card .go { color: var(--gold); font-size: 18px; }
.sos-list { display: grid; gap: 8px; margin: 6px 0 4px; }
.sos-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--card-strong); color: var(--text); font-weight: 700; font-size: 15px; }
.sos-opt span { font-size: 22px; }
.sos-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.sos-tip { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(76, 201, 240, .1); font-size: 14px; line-height: 1.45; }
.mind-card { margin-top: 14px; border-color: rgba(76, 201, 240, .3); background: linear-gradient(135deg, rgba(76, 201, 240, .08), rgba(114, 9, 183, .08)); }
.mind-head { display: flex; align-items: center; gap: 12px; }
.mind-head > span { font-size: 28px; }
.mind-head small { display: block; color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.mind-head b { font-size: 16px; }
.mind-card ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; }

/* ---------- рецепты: блюдо дня и «Конструктор дня» (Иван, 22.10) ---------- */
.dish-day { display: flex; align-items: center; gap: 12px; margin-top: 4px; cursor: pointer; border-color: rgba(255, 201, 77, .35); background: linear-gradient(135deg, rgba(255, 201, 77, .12), rgba(255, 46, 147, .06)); }
.dish-day .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--card-strong); flex-shrink: 0; }
.dish-day div { flex: 1; min-width: 0; } .dish-day small { display: block; color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dish-day b { display: block; font-size: 16px; } .dish-day .muted { font-size: 13px; }
.planner { margin-top: 14px; display: grid; gap: 8px; }
.planner-head { display: grid; gap: 2px; } .planner-head b { font-family: var(--font-display); font-size: 17px; } .planner-head .muted { font-size: 13px; }
.slot { display: flex; gap: 8px; align-items: stretch; }
.slot-main { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--card-strong); color: var(--text); min-width: 0; }
.s-ic { font-size: 24px; flex-shrink: 0; }
.s-t { display: grid; gap: 1px; min-width: 0; }
.s-t small { color: var(--muted); font-size: 12px; font-weight: 700; }
.s-t b { font-size: 15px; line-height: 1.25; }
.s-t em { font-style: normal; color: var(--cyan); font-size: 12.5px; font-weight: 700; }
.slot-swap { width: 46px; border-radius: 14px; background: var(--card-strong); color: var(--text); font-size: 20px; flex-shrink: 0; }
.planner-actions { gap: 8px; }
.recipe-sheet h3 { margin: 10px 0 2px; font-size: 15px; }
.recipe-sheet p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.r-portion { padding: 10px 12px; border-radius: 12px; background: rgba(76, 201, 240, .1); font-size: 15px; }
.r-note { color: var(--gold); }
.pick-search { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--card); color: var(--text); font: inherit; font-size: 15px; }
.pick-list { display: grid; gap: 6px; max-height: 52vh; overflow: auto; }
.pick-row { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 11px 12px; border-radius: 12px; background: var(--card-strong); color: var(--text); font-size: 14.5px; }
.pick-row small { color: var(--muted); white-space: nowrap; }
.pick-row.on { box-shadow: inset 0 0 0 1px var(--pink); background: rgba(255, 46, 147, .12); }
.sos-sweet { display: grid; gap: 6px; margin-top: 4px; } .sos-sweet b { font-size: 14px; }

/* ---------- 22.10 Иван: белый объёмный человечек, секунды без свечения, цитата на заставке ---------- */
.fig .body > line:not(.band):not(.prop) { stroke: #fff; }
.fig .body > line.back { stroke: #cfd8ff; opacity: .45; }
.fig .body > circle:not(.db):not(.cuff) { fill: #fff; }
.p-ring .sec.sec-pill { color: rgba(255, 255, 255, .3); -webkit-text-stroke: 0; text-shadow: none; }
.loader-title + p.loader-quote { margin: 18px auto 0; max-width: 260px; font-size: 15px; font-style: italic; color: #c9cfe0; line-height: 1.45; }

/* ИИ-фото блюд: маленькие в списках, «витрина» в рецепте (фото 200 px — фон размыт, само фото не растянуто) */
.f-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--card-strong); }
.f-thumb.big { width: 64px; height: 64px; border-radius: 16px; }
.f-thumb.sm { width: 40px; height: 40px; border-radius: 10px; }
.pick-row { align-items: center; }
.pick-row b { flex: 1; min-width: 0; }
.meal-title { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.food-hero { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; margin-bottom: 12px; background: var(--card-strong); }
.food-hero .fh-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(22px) brightness(.75) saturate(1.2); }
.food-hero img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* Окна-листы (рецепт, блюдо дня, «Мне тяжело» и др.): длинный текст прокручивается внутри окна пальцем */
.sheet { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; align-content: start; }
.sheet { grid-auto-rows: max-content; }

/* «Вопрос тренеру» */
.coach-ask { display: block; margin: 8px 0 0 auto; padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--text); background: linear-gradient(135deg, rgba(255, 46, 147, .25), rgba(76, 201, 240, .2)); border: 1px solid rgba(255, 255, 255, .14); }
.coach-ask.wide { width: 100%; margin: 4px 0 0; }
.coach-log { display: grid; gap: 8px; max-height: 38vh; overflow-y: auto; padding: 2px; }
.cm { padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; max-width: 88%; }
.cm small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.cm.me { justify-self: end; background: rgba(255, 46, 147, .16); }
.cm.coach { justify-self: start; background: var(--card-strong); }
.coach-text { width: 100%; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .06); color: var(--text); padding: 12px 14px; font: inherit; font-size: 16px; resize: vertical; outline: none; }
.coach-text:focus { border-color: rgba(76, 201, 240, .7); }
.m-ask { display: block; width: 100%; margin-top: 8px; padding: 7px 0 0; border-top: 1px solid rgba(0, 0, 0, .12); background: none; text-align: left; font: inherit; font-weight: 800; color: #d61f7c; }

/* Человечек «девушка» (Иван 24.10): пучок волос, изящные руки, торс и ноги чуть плотнее */
.fig .body > line.arm:not(.band):not(.prop) { stroke-width: 13; }
.fig .body > line.torso:not(.band):not(.prop) { stroke-width: 19; }
.fig .body > line.leg:not(.band):not(.prop) { stroke-width: 15; }
.ex .e.has-fig .fig .body > line.arm:not(.band):not(.prop) { stroke-width: 14; }
.ex .e.has-fig .fig .body > line.torso:not(.band):not(.prop) { stroke-width: 20; }
.ex .e.has-fig .fig .body > line.leg:not(.band):not(.prop) { stroke-width: 16; }
.fig .body > circle.bun { fill: #fff; }

/* Экран тренировки, вариант B (Иван 24.10): ссылка под главной кнопкой */
.sticky-cta .cta-link { display: block; margin: 8px auto 0; padding: 4px 8px; background: none; color: #cfd3ea; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.proof-alert { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); border-color: rgba(255, 46, 147, .5); background: linear-gradient(135deg, rgba(255, 46, 147, .18), rgba(255, 201, 77, .08)); margin-bottom: 12px; }
.proof-alert .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--card-strong); flex-shrink: 0; }
.proof-alert div { flex: 1; } .proof-alert b { display: block; } .proof-alert .muted { font-size: 13px; } .proof-alert .go { color: var(--pink, #ff2e93); font-size: 18px; }
.weight-tip { margin: 10px auto 0; max-width: 340px; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; color: #ffe2a3; background: rgba(255, 201, 77, .1); border: 1px solid rgba(255, 201, 77, .25); }
.food-img.gone { display: grid; place-content: center; gap: 4px; text-align: center; font-size: 26px; color: var(--muted); }
.food-img.gone small { font-size: 12px; }
