@font-face { font-family: Matahari; font-weight: 100; font-display: swap; src: url("fonts/Matahari-100.ttf") format("truetype"); }
@font-face { font-family: Matahari; font-weight: 300; font-display: swap; src: url("fonts/Matahari-300.ttf") format("truetype"); }
@font-face { font-family: Matahari; font-weight: 400; font-display: swap; src: url("fonts/Matahari-400.ttf") format("truetype"); }
@font-face { font-family: Matahari; font-weight: 600; font-display: swap; src: url("fonts/Matahari-600.ttf") format("truetype"); }

:root {
  --ink: #3a0f22;
  --line: rgba(58, 15, 34, .1);
  --brand: #db1654;
  --yellow: #ffe36e;
  --green: #5bb98c;
  --lime: #ddf04a;
  --pink: #fbd3df;
  --bg: #ffe8ef;
  --mesh-a: #f6749f;
  --mesh-b: #fbb6cc;
}

body[data-theme="green"] { --ink: #1f2c17; --line: rgba(31, 44, 23, .1); --bg: #eef4e4; --mesh-a: #a9cb94; --mesh-b: #f6a9bc; }
body[data-theme="blue"] { --ink: #16293f; --line: rgba(22, 41, 63, .1); --bg: #dce8f5; --mesh-a: #9dbee6; --mesh-b: #f2c4d2; }
body[data-theme="white"] { --bg: #fff5f8; --mesh-a: #fbd3df; --mesh-b: #cfe1f5; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.4 Matahari, system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(45% 35% at 70% 55%, var(--mesh-a), transparent),
    radial-gradient(40% 30% at 30% 78%, var(--mesh-b), transparent);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-4%, -3%); } to { transform: translate(4%, 3%); } }

button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; text-decoration: none; }
input, select { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px calc(104px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
}
.screen.full { padding-bottom: 28px; }

.g {
  background: rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .65);
}
.white { background: #fff; border-radius: 34px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.brand { font-size: 15px; font-weight: 600; margin-right: auto; }
.top { display: flex; align-items: center; gap: 10px; }
.pts-pill { border-radius: 14px; padding: 5px 11px; background: var(--yellow); font-size: 14px; font-weight: 600; white-space: nowrap; }
.round { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.small { font-size: 14px; }
.tiny { font-size: 13px; }
.muted { opacity: .72; }
.big-title { font-size: clamp(36px, 12vw, 46px); line-height: 1.02; font-weight: 100; letter-spacing: -1px; }
.title { font-size: 27px; font-weight: 300; line-height: 1.15; }
.name { font-size: 22px; font-weight: 300; line-height: 1.15; }
.error { color: var(--brand); font-size: 14px; font-weight: 600; }

.tabs {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 440px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  border-radius: 30px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  z-index: 20;
}
.tabs button { min-height: 50px; border-radius: 25px; font-size: 13px; text-align: center; transition: background .2s ease; }
.sheen { position: absolute; top: -20%; bottom: -20%; left: -45%; width: 38%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); animation: sheen 5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(420%); } }
.fresh { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); border: 1px solid #fff; margin-right: 7px; animation: fresh 2.4s ease-in-out infinite; }
@keyframes fresh { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.ring circle { transition: stroke-dasharray .7s cubic-bezier(.2, .8, .2, 1); }
.tabs button.on { background: #fff; font-weight: 600; }

.btn { min-height: 56px; border-radius: 28px; background: #fff; font-size: 17px; font-weight: 600; text-align: center; width: 100%; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.btn.pink { background: var(--pink); }
.btn.soft { background: rgba(255, 255, 255, .55); font-size: 15px; }
.btn.lime { background: var(--lime); }
.btn:disabled { opacity: .55; }

.row-card { border-radius: 26px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
svg.chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tint-blue { background: rgba(195, 220, 248, .55); }
.tint-green { background: rgba(205, 228, 185, .6); }

.week-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.week-bars span { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.week-bars span.done { background: var(--ink); }

.task { border-radius: 30px; padding: 18px 16px 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.task-check { width: 52px; height: 52px; border-radius: 50%; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.task-check.on { background: var(--lime); }
.task-check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip-pts { border-radius: 10px; padding: 1px 8px; background: var(--yellow); font-size: 13px; font-weight: 600; }

.tiles { display: flex; gap: 6px; }
.tile { flex: 1 1 0; min-width: 0; height: 74px; border-radius: 18px; padding: 9px 7px; display: flex; align-items: flex-end; font-size: clamp(11px, 3.2vw, 13px); line-height: 1.1; overflow-wrap: anywhere; }

.glasses { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.glass-btn { height: 44px; display: flex; align-items: center; justify-content: center; }
.glass-btn svg { width: 24px; height: 28px; }

.report { display: flex; align-items: center; gap: 16px; }
.ring { width: 112px; height: 112px; position: relative; flex-shrink: 0; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 100; }
.report-grid { flex-grow: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.report-btn { min-height: 52px; border-radius: 20px; padding: 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 14px; line-height: 1.15; }
.report-btn small { font-size: 12px; }
.report-btn.on { background: var(--lime); font-weight: 600; }

.gain { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); border-radius: 22px; padding: 8px 20px; background: var(--yellow); font-size: 24px; font-weight: 300; z-index: 40; pointer-events: none; animation: gain 1.1s ease-out both; }
@keyframes gain { 0% { transform: translate(-50%, 16px) scale(.7); opacity: 0; } 25% { transform: translate(-50%, 0) scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -34px); opacity: 0; } }
.reward { position: fixed; inset: 0; z-index: 50; background: rgba(58, 15, 34, .28); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); animation: fade .2s ease-out both; }
.reward-card { width: 100%; max-width: 456px; background: #fff; border-radius: 34px; padding: 22px 20px 16px; display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; animation: reward-up .32s cubic-bezier(.2, .9, .3, 1.15) both; }
.reward-points { font-size: 72px; font-weight: 100; line-height: 1; letter-spacing: -2px; }
.reward-sub { font-size: 15px; }
.reward-next { border-radius: 20px; background: #fff5f8; padding: 12px 14px; font-size: 16px; line-height: 1.32; margin: 6px 0 4px; width: 100%; }
.reward .btn { min-height: 52px; }
.reward .btn.soft { background: transparent; font-weight: 400; min-height: 44px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reward-up { from { transform: translateY(40px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.cf-box { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 60; }
.cf { position: absolute; top: 0; width: 8px; height: 13px; border-radius: 2px; animation: cf 1.6s cubic-bezier(.25, .5, .5, 1) both; }
@keyframes cf { 0% { transform: translateY(-24px) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(100vh) rotate(620deg); opacity: 0; } }

.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: -10px; }
.day-strip button { min-height: 58px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; }
.day-strip b { font-size: 18px; font-weight: 300; line-height: 1; }
.day-strip .on { background: rgba(255, 255, 255, .75); }
.day-strip .on b { font-weight: 600; }
.day-strip button:disabled { opacity: .4; }
.week-switch { display: flex; gap: 8px; margin: -6px 0 16px; }
.week-switch .chip { flex: 1; text-align: center; justify-content: center; min-height: 40px; border-radius: 20px; font-size: 14px; background: rgba(255, 255, 255, .35); }
.week-switch .chip.on { background: rgba(255, 255, 255, .8); font-weight: 600; }
.kcal { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; text-align: center; }
.kcal b { font-size: 88px; font-weight: 100; line-height: 1; letter-spacing: -3px; }
.macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.macros div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.macros div::before { content: ""; height: 2px; background: #fff; }
.macros b { font-size: 20px; font-weight: 300; }

.meal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meal { background: #fff; border-radius: 30px; padding: 7px 7px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.meal-photo { display: block; height: 118px; border-radius: 24px; background: linear-gradient(160deg, #dce9cd, #f4e3e4); overflow: hidden; }
.meal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meal-text { display: flex; flex-direction: column; gap: 6px; padding: 0 9px; flex-grow: 1; }
.meal-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.2px solid rgba(31, 44, 23, .35); flex-shrink: 0; }
.dot.on { background: var(--lime); border-color: #b8c935; }
.meal-title { font-size: 16px; line-height: 1.15; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meal-kcal { font-size: 22px; font-weight: 300; }

.overlay { background: var(--bg); }
.hero-photo { height: 320px; flex-shrink: 0; border-radius: 34px; background: linear-gradient(160deg, #dce9cd, #f4e3e4); position: relative; overflow: hidden; margin: -6px -6px 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .round { position: absolute; left: 12px; top: 12px; }
.hero-photo .badge { position: absolute; right: 12px; top: 18px; border-radius: 14px; padding: 6px 12px; font-size: 13px; }
.recipe-title { font-size: 30px; line-height: 1.08; font-weight: 300; letter-spacing: -.4px; }
.kv { min-height: 44px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.kv span:last-child { font-weight: 300; text-align: right; flex-shrink: 0; }
.step { display: flex; gap: 12px; line-height: 1.38; }
.step b { font-size: 22px; font-weight: 100; line-height: 1.05; width: 22px; flex-shrink: 0; }
.sticky-action { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 10px 26px rgba(70, 40, 50, .2); }

.shop-item { min-height: 48px; width: 100%; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.shop-item i { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; border: 1.2px solid rgba(31, 44, 23, .4); }
.shop-item.on i { background: var(--lime); border-color: #b8c935; }
.shop-item span { flex-grow: 1; line-height: 1.2; }
.shop-item em { font-style: normal; font-size: 15px; font-weight: 300; white-space: nowrap; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.seg button { min-height: 44px; border-radius: 22px; background: rgba(255, 255, 255, .35); font-size: 14px; text-align: center; line-height: 1.1; padding: 2px 4px; }
.seg button.on { background: #fff; font-weight: 600; }
.seg button:disabled { opacity: .5; }

.train-hero { height: 300px; flex-shrink: 0; border-radius: 36px; position: relative; overflow: hidden; background: radial-gradient(60% 55% at 72% 34%, #f2c4d2, transparent), linear-gradient(165deg, #9dbee6, #dce8f5 72%); width: 100%; display: block; }
.train-hero img { position: absolute; right: -85px; top: 22px; width: 280px; height: 373px; }
.train-hero .when { position: absolute; left: 20px; top: 20px; display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.train-hero .when b { font-weight: 600; }
.train-hero .info { position: absolute; left: 20px; right: 16px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.train-hero .info > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; }
.train-hero strong { font-size: 38px; font-weight: 100; line-height: 1.05; letter-spacing: -.8px; }
.play { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.play svg { width: 20px; height: 20px; fill: currentColor; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan { height: 190px; border-radius: 26px; position: relative; overflow: hidden; display: block; width: 100%; }
.plan .when { position: absolute; left: 14px; right: 30px; top: 14px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.plan .when b { font-weight: 600; }
.plan .what { position: absolute; left: 14px; right: 14px; bottom: 42px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.15; }
.plan strong { font-size: 25px; font-weight: 300; line-height: 1.05; letter-spacing: -.3px; }
.plan .time { position: absolute; left: 12px; bottom: 10px; border-radius: 12px; padding: 3px 9px; font-size: 13px; }
.plan .mark { position: absolute; right: 14px; top: 17px; width: 12px; height: 12px; border-radius: 50%; border: 1.2px solid #fff; }
.plan .mark.done { background: #fff; }
.plan .mark.today { background: var(--lime); }
.plan.locked { opacity: .6; }
.player { width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; background: #000; display: block; }
.player-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.player-tools button { min-height: 40px; padding: 0 12px; border-radius: 20px; background: rgba(58, 15, 34, .06); font-size: 13px; font-weight: 600; }
.player-tools button.on { background: var(--pink); }
.watch-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.watch-bar i { display: block; height: 100%; background: var(--green); }

.path-wrap { position: relative; margin: 0 -20px; display: flex; justify-content: center; overflow: hidden; }
.path-map { position: relative; flex-shrink: 0; }
.path-map > svg { position: absolute; inset: 0; }
.stage { position: absolute; left: 20px; right: 20px; border-radius: 26px; padding: 12px 16px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.stage strong { font-size: 28px; font-weight: 100; line-height: 1.08; letter-spacing: -.5px; }
.node { position: absolute; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.node span { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.node svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .55; }
.sheet { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; bottom: calc(88px + env(safe-area-inset-bottom)); border-radius: 32px; padding: 18px; background: rgba(255, 255, 255, .92); display: flex; flex-direction: column; gap: 6px; z-index: 30; max-height: 70vh; overflow-y: auto; }
.pts-tag { flex-shrink: 0; border-radius: 12px; padding: 3px 9px; font-size: 13px; font-weight: 600; background: rgba(58, 15, 34, .06); }
.pts-tag.on { background: var(--yellow); }

.mat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mat { height: 208px; border-radius: 30px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.mat-title { font-size: clamp(17px, 5vw, 20px); font-weight: 300; line-height: 1.14; hyphens: auto; overflow-wrap: anywhere; }
.mat-video { display: inline-flex; align-items: center; gap: 5px; border-radius: 12px; background: #fff; padding: 4px 10px 4px 8px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.mat-video svg { width: 10px; height: 10px; fill: currentColor; }
.article-hero { height: 200px; border-radius: 34px; position: relative; overflow: hidden; flex-shrink: 0; margin: -6px -6px 0; }
.article-hero .round { position: absolute; left: 12px; top: 12px; }
.article-hero strong { position: absolute; left: 20px; bottom: 18px; font-size: 50px; font-weight: 100; line-height: 1; letter-spacing: -1.2px; }
.article { display: flex; flex-direction: column; gap: 12px; }
.article h2 { margin: 10px 0 0; font-size: 24px; line-height: 1.14; font-weight: 300; }
.article p { line-height: 1.45; }
.article .note { margin: 2px 0; border-radius: 22px; background: var(--pink); padding: 14px 16px; font-size: 18px; line-height: 1.3; font-weight: 300; }
.article .formula { border-radius: 18px; background: #f6edea; padding: 12px 14px; font-size: 15px; }
.article .li { display: flex; gap: 9px; line-height: 1.4; }
.article .li b { flex-shrink: 0; width: 18px; font-weight: 600; }
.article .table { display: flex; flex-direction: column; border-radius: 18px; background: #fbf6f4; padding: 4px 12px; }
.article .tr { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid rgba(58, 15, 34, .1); font-size: 13px; line-height: 1.28; }
.article .tr:first-child { border-top: 0; font-weight: 600; }
.article .tr span { min-width: 0; overflow-wrap: anywhere; }
.article video { width: 100%; border-radius: 18px; background: #000; display: block; }

.line-row { min-height: 62px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 0; }
.line-row strong { font-size: 20px; font-weight: 300; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stats div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(58, 15, 34, .14); padding-top: 9px; font-size: 13px; }
.stats b { font-size: 27px; font-weight: 300; }
.total-cm { display: flex; align-items: baseline; gap: 8px; }
.total-cm b { font-size: 88px; font-weight: 100; line-height: 1; letter-spacing: -3px; }
.total-cm span { font-size: 22px; font-weight: 300; }
.measure-input { width: 92px; min-height: 44px; border-radius: 14px; border: 1px solid rgba(58, 15, 34, .25); background: #fff; padding: 0 8px; text-align: right; font-size: 18px; font-weight: 300; }
.photo { width: 100%; border-radius: 22px; display: block; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field { width: 100%; min-height: 52px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .6); padding: 0 14px; font-size: 17px; outline: none; }
.white .field { border-color: var(--line); background: #fff; }
.file-btn input { display: none; }

.onboard { min-height: 100vh; display: flex; flex-direction: column; padding: 24px 24px 28px; max-width: 480px; margin: 0 auto; position: relative; overflow: hidden; gap: 14px; }
.dots { display: flex; gap: 4px; position: relative; z-index: 2; }
.dots span { flex: 1; height: 2px; background: rgba(255, 255, 255, .4); }
.dots span.on { background: #fff; }
.onboard .brand { margin: 0; text-align: center; position: relative; z-index: 2; }
.onboard-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; z-index: 2; animation: rise .45s ease-out both; }
.onboard-body.top-align { justify-content: flex-start; padding-top: 22px; text-align: center; align-items: center; gap: 8px; }
.onboard h1 { font-size: 42px; line-height: 1.05; font-weight: 100; letter-spacing: -1px; text-align: center; }
.onboard-foot { display: flex; gap: 8px; position: relative; z-index: 2; }
.onboard-foot .btn { flex-grow: 1; width: auto; }
.onboard-foot .round { width: 56px; height: 56px; }
.founder { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: min(112%, 440px); z-index: 1; }
.founder-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 1; background: linear-gradient(to bottom, rgba(251, 190, 210, 0), rgba(251, 190, 210, .92) 62%, #fbbed2); }
.choice { min-height: 64px; border-radius: 24px; padding: 12px 18px; width: 100%; font-size: 19px; font-weight: 300; }
.choice.on { background: #fff; font-weight: 400; }
.body-row { min-height: 68px; border-top: 1px solid rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; }
.body-row input { width: 112px; min-height: 50px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .55); padding: 0 12px; text-align: right; font-size: 24px; font-weight: 300; outline: none; }
.result-kcal { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.result-kcal b { font-size: 88px; font-weight: 100; line-height: 1; letter-spacing: -3px; }

.test-days { display: flex; flex-wrap: wrap; gap: 6px; }
.test-days button { min-height: 40px; padding: 0 12px; border-radius: 20px; background: rgba(58, 15, 34, .06); font-size: 13px; }
.test-days button.on { background: var(--pink); font-weight: 600; }
.center { text-align: center; }
.rise { animation: rise .45s ease-out both; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body::before, .rise, .onboard-body, .gain, .sheen, .fresh, .reward, .reward-card { animation: none; } .cf-box { display: none; } }

/* Сюрпризы и подарок в конверте */
.reward-next.surprise { background: linear-gradient(135deg, #fff7c9, #ffe36e); font-weight: 600; }
.reward-next.surprise b { font-weight: 600; color: var(--brand); white-space: nowrap; }
.envelope { position: relative; width: 132px; height: 92px; margin: 4px auto 10px; animation: env-wiggle 1.1s ease-in-out .3s 2; }
.env-back { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(160deg, #f6749f, #db1654); box-shadow: 0 14px 30px rgba(219, 22, 84, .35); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58px; background: #fbb6cc; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 14px 14px 0 0; }
.env-heart { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: #ffe36e; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; }
@keyframes env-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg) scale(1.04); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .envelope { animation: none; } }

/* Финиш */
.letter { gap: 10px; }
.letter p { margin: 0; font-size: 16px; line-height: 1.4; }
.letter-sign { font-style: italic; opacity: .8; }
.finish-step { align-items: center; }
.finish-step.done { opacity: .7; }
.small-btn-app { flex-shrink: 0; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--brand); color: #fff; font: 600 15px inherit; font-family: inherit; }
.card-preview { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; align-self: center; border-radius: 22px; box-shadow: 0 12px 30px rgba(58, 15, 34, .18); background: #fbd3df; object-fit: cover; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 44px; }
.check-row input { width: 22px; height: 22px; accent-color: var(--brand); }
.upload-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(58, 15, 34, .06); }
#review-text { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; font: inherit; font-size: 16px; resize: vertical; background: #fff; color: var(--ink); }

/* Секретный конверт в «Моём пути» (по макету «Апгрейд: стеклянный дизайн») */
.wins-pill { margin-left: auto; border: 0; border-radius: 20px; min-height: 40px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); }
.env-banner { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; border-radius: 26px; padding: 14px 16px; margin-top: 12px; background: linear-gradient(135deg, #fff7c9, #ffe36e); color: var(--ink); font: inherit; box-shadow: 0 10px 26px rgba(219, 22, 84, .18); animation: env-wiggle 1.2s ease-in-out .8s 2; }
.env-mini { position: relative; flex-shrink: 0; width: 64px; height: 46px; }
.env-mini .env-back { border-radius: 8px; }
.env-mini .env-flap { height: 29px; border-radius: 8px 8px 0 0; }
.env-mini .env-heart { top: 19px; width: 18px; height: 18px; font-size: 10px; }
.env-screen { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: radial-gradient(120% 60% at 0% 0%, #f6749f 0%, rgba(246,116,159,0) 60%), radial-gradient(120% 70% at 100% 100%, #fbb6cc 0%, rgba(251,182,204,0) 65%), #ffe8ef; animation: fade .25s ease-out both; }
.env-inner { min-height: 100%; box-sizing: border-box; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: calc(16px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); }
.env-title { margin: 0 0 8px; font-weight: 100; font-size: 46px; line-height: 1.02; letter-spacing: -1px; }
.env-card { width: 100%; background: #fff; border-radius: 34px; padding: 26px 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: reward-up .4s cubic-bezier(.2, .9, .3, 1.15) both; }
.star-badge { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; animation: star-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.star-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-badge b { position: relative; font-weight: 100; font-size: 64px; letter-spacing: -2px; }
.spark { position: absolute; color: #f6749f; font-style: normal; font-size: 22px; }
.spark.s1 { left: 6px; top: 34px; font-size: 28px; } .spark.s2 { right: 10px; top: 18px; font-size: 16px; } .spark.s3 { right: 0; bottom: 30px; font-size: 30px; } .spark.s4 { left: 30px; bottom: 14px; font-size: 14px; }
@keyframes star-pop { 0% { transform: scale(.3) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.white-btn { width: 100%; background: #fff; margin-top: 10px; }
.gift-card { width: 100%; background: #fff; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; animation: reward-up .4s cubic-bezier(.2, .9, .3, 1.15) both; }
.gift-photo { width: 100%; display: block; aspect-ratio: 1026 / 1100; object-fit: cover; object-position: top; }
.gift-photo.app { aspect-ratio: 1050 / 898; }
.gift-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.gift-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 20px; background: linear-gradient(160deg, #b9cdf1 0%, #e6d7ef 55%, #fbd3df 100%); }
.gift-chat-title { font-weight: 100; font-size: 36px; line-height: 1.05; margin-bottom: 8px; }
.bubble { background: rgba(255, 255, 255, .8); border-radius: 18px; padding: 10px 14px; font-size: 15px; max-width: 80%; }
.bubble.me { align-self: flex-end; }
.bubble.wide { max-width: 100%; align-self: stretch; text-align: center; font-weight: 600; background: #fff; }
@media (prefers-reduced-motion: reduce) { .env-banner, .star-badge, .env-card, .gift-card { animation: none; } }

/* Объявления команды на «Сегодня» */
.news-card { border-radius: 26px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .72); }
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-x { width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .06); font-size: 14px; line-height: 30px; text-align: center; flex-shrink: 0; }
.news-open { min-height: 44px; margin-top: 4px; background: #fff; }
.new-chip { display: inline-block; background: #fff; color: #e2457a; border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: 700; }

/* Фото «до» и «после»: три ракурса */
.photo-slot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.photo-slot .photo { max-height: 360px; object-fit: cover; }
.photo-review { background: #fff1f4; border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; }
.photo-review p { margin: 0; }
.theater { position: fixed; inset: 0; z-index: 10000; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.theater video { max-width: none; aspect-ratio: auto; border-radius: 0; object-fit: contain; background: #000; flex: none; }
.theater-close { position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 22px;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 20px; z-index: 1; }
body.theater-on { overflow: hidden; }
.article .lead-in b { font-weight: 600; }
.article .li span { min-width: 0; }
.fresh-card { border-radius: 26px; padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: left; }
.fresh-card .name { font-size: 22px; line-height: 1.15; }
.tile { position: relative; }
.tile-chip { position: absolute; top: 7px; left: 7px; font-size: 10px; }
