/* Bloom — app layer on top of liquid-glass.css. Colours only from lg tokens. */
html, body { margin: 0; height: 100%; }
body.lg[data-mode="light"] { --lg-bg: #FFFFFF; --lg-scroll-fade: rgba(255,255,255,.7); }
body.lg { background: var(--lg-bg); overflow: hidden; overscroll-behavior: none; }
#app { position: relative; height: 100%; height: 100dvh; max-width: 520px; margin: 0 auto; overflow: hidden; isolation: isolate; }
@media (min-width: 560px) { #app { box-shadow: 0 0 0 .5px var(--lg-separator), 0 30px 80px -40px rgba(0,0,0,.5); } }
.tabroot { position: absolute; inset: 0; }
.lg { --lg-nav-top: calc(env(safe-area-inset-top, 0px) + 8px); --lg-top: calc(env(safe-area-inset-top, 0px) + 62px); --lg-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px); --lg-edge-h: calc(env(safe-area-inset-top, 0px) + 64px); }
.lg-page { --lg-page-bg: linear-gradient(rgba(0,0,0,var(--lg-dim,0)), rgba(0,0,0,var(--lg-dim,0))), var(--lg-wall, none) center / cover no-repeat, var(--lg-bg); }
.lg-large-title { margin-top: 4px; }
.sub-title { margin: -8px 4px 0; }

/* rows of small things */
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 10px; }
.muted { color: var(--lg-label-2); }
.tiny { font: 500 11.5px/1.25 var(--lg-font); color: var(--lg-label-2); }
.ink { color: var(--lg-accent-ink); }
.big-num { font: 700 44px/1 var(--lg-font-rounded); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mid-num { font: 700 26px/1 var(--lg-font-rounded); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.unit { font: 600 15px/1 var(--lg-font); color: var(--lg-label-2); margin-left: 3px; letter-spacing: 0; }
.card-title { font: 650 17px/1.25 var(--lg-font); margin: 0; }
.prose { font: 400 15.5px/1.55 var(--lg-font); }
.prose p { margin: 0 0 12px; } .prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; } .prose li { margin: 0 0 7px; }
.prose b { font-weight: 650; }
.lg-card hr, .sheet-hr { border: 0; height: .5px; background: var(--lg-separator); margin: 6px 0; width: 100%; }
.nav-pill { height: 44px; padding: 0 16px; border-radius: 22px; border: 0; font: 650 14px/1 var(--lg-font); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-pill svg { width: 17px; height: 17px; }

/* hero */
.hero { gap: 12px; padding: 18px; }
.hero__title { font: 750 30px/1.08 var(--lg-font-display); letter-spacing: -.025em; margin: 0; }
.badge-soft { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--lg-accent-soft); color: var(--lg-accent-ink); font: 650 12px/1 var(--lg-font); }
.reason { display: flex; gap: 8px; align-items: flex-start; font: 400 13.5px/1.4 var(--lg-font); color: var(--lg-label-2); }
.reason svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--lg-accent-ink); }

/* mood choice */
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mood { height: 64px; border-radius: 20px; border: 0; background: var(--lg-fill); display: grid; place-items: center; gap: 2px; padding: 8px 4px; cursor: pointer; font: 600 12.5px/1 var(--lg-font); color: var(--lg-label-2);
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy), background-color .2s, color .2s; }
.mood span { font-size: 24px; line-height: 1; }
.mood[aria-pressed="true"] { background: var(--lg-accent-soft); color: var(--lg-accent-ink); box-shadow: inset 0 0 0 1.5px var(--lg-accent); }

/* intensity cards */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.level { position: relative; border: 0; border-radius: 20px; padding: 12px 10px 11px; text-align: left; background: var(--lg-fill); cursor: pointer; display: grid; gap: 4px; color: inherit;
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy), background-color .2s; }
.level b { font: 700 15px/1.1 var(--lg-font); }
.level small { font: 500 11.5px/1.2 var(--lg-font); color: var(--lg-label-2); }
.level[aria-pressed="true"] { background: var(--lg-accent); color: var(--lg-on-accent); }
.level[aria-pressed="true"] small { color: inherit; opacity: .85; }
.level .tag { position: absolute; top: -7px; right: 8px; height: 17px; padding: 0 7px; border-radius: 9px; background: var(--lg-label); color: var(--lg-bg); font: 700 9.5px/17px var(--lg-font); letter-spacing: .03em; text-transform: uppercase; }

/* habit tiles */
.habits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.habit { min-height: 96px; gap: 6px; align-content: start; background: color-mix(in srgb, var(--c, var(--lg-accent)) 13%, var(--lg-glass)); }
.habit .lg-tile__title { display: flex; align-items: center; gap: 6px; }
.habit .hv { font: 700 22px/1 var(--lg-font-rounded); font-variant-numeric: tabular-nums; }
.habit .hv small { font: 600 12.5px var(--lg-font); color: var(--lg-label-2); }
.habit .lg-progress { height: 5px; }
.habit .lg-progress > i { background: var(--c, var(--lg-accent)); }
.emoji { font-size: 17px; line-height: 1; }

/* suggestions */
.tips .lg-row { align-items: flex-start; }
.tips .lg-symbol { margin-top: 1px; }
.tip-act { margin-top: 8px; }

/* garden */
.garden { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.garden__cell { aspect-ratio: 1; border-radius: 14px; background: var(--lg-fill); display: grid; place-items: center; position: relative; }
.garden__cell svg { width: 78%; height: 78%; }
.garden__cell.is-today { box-shadow: inset 0 0 0 1.5px var(--lg-accent); }
.garden__day { font: 600 10.5px/1 var(--lg-font); color: var(--lg-label-2); text-align: center; margin-top: 4px; }
.garden--weeks { grid-template-columns: repeat(7, 1fr); gap: 5px; }
.garden--weeks .garden__cell { border-radius: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lg-label-3); display: inline-block; }

/* badges */
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge { border-radius: 20px; padding: 12px 8px; text-align: center; display: grid; gap: 6px; justify-items: center; background: var(--lg-fill); }
.badge__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--lg-accent-soft); }
.badge.is-locked { opacity: .42; filter: grayscale(1); }
.badge b { font: 650 12px/1.2 var(--lg-font); }
.badge small { font: 400 10.5px/1.2 var(--lg-font); color: var(--lg-label-2); }

/* exercise demo figure: chibi girl */
.lg { --fig-legging: #4A4466; --fig-hair: #3A2B33; --fig-ink: #2A1D2E; --fig-shoe: #FFFFFF; }
.lg[data-mode="dark"] { --fig-legging: #9C95C9; --fig-hair: #2A1F26; --fig-shoe: #E8E6F5; }
.fig { width: 100%; height: auto; display: block; }
.fig-floor { fill: var(--lg-label-3); opacity: .35; }
.fig-bench rect { fill: color-mix(in srgb, var(--lg-label) 24%, transparent); }
.fig-bench line { stroke: color-mix(in srgb, var(--lg-label) 24%, transparent); stroke-width: 3.5; stroke-linecap: round; }
.fig-leg { stroke: var(--fig-legging); stroke-width: 8.5; stroke-linecap: round; }
.fig-arm { stroke: var(--skin, #F3C7A6); stroke-width: 6.5; stroke-linecap: round; filter: drop-shadow(0 0 .7px rgba(60,30,40,.55)); }
.fig-top { stroke: var(--lg-accent); stroke-width: 14; stroke-linecap: round; }
.fig-shoe { stroke: var(--fig-shoe); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 .6px rgba(0,0,0,.5)); }
.fig-far { opacity: .42; }
.fig-hair { fill: var(--fig-hair); }
.fig-hijab { fill: color-mix(in srgb, var(--lg-accent) 50%, #fff); }
.fig-skin { fill: var(--skin, #F3C7A6); filter: drop-shadow(0 0 .7px rgba(60,30,40,.5)); }
.fig-eye { fill: var(--fig-ink); }
.fig-blush { fill: #FF8FB1; opacity: .6; }
.fig-db rect { fill: var(--lg-label); opacity: .82; }
.fig-wrap { border-radius: 22px; background: color-mix(in srgb, var(--lg-fill) 70%, transparent); padding: 8px 12px 4px; }
.fig-thumb { width: 64px; flex: none; border-radius: 14px; background: var(--lg-fill); padding: 3px; }
.fig-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.fig-strip::-webkit-scrollbar { display: none; }
.fig-strip .fig-thumb { width: 58px; background: color-mix(in srgb, var(--lg-fill) 80%, transparent); }
/* mascot */
.ch-hair { fill: var(--fig-hair); } .ch-hijab { fill: color-mix(in srgb, var(--lg-accent) 50%, #fff); }
.ch-eye { fill: var(--fig-ink); } .ch-line { stroke: var(--fig-ink); stroke-width: 3; stroke-linecap: round; fill: none; }
.ch-mouth { fill: #C44A6B; } .ch-blush { fill: #FF8FB1; opacity: .55; } .ch-dot { fill: var(--lg-label-3); }
.ch-z { font: 800 14px var(--lg-font-rounded); fill: var(--lg-indigo); }
.chibi { flex: none; display: block; }
.mascot { display: flex; align-items: flex-end; gap: 6px; }
.speech { position: relative; flex: 1; min-width: 0; margin-bottom: 14px; padding: 11px 14px; border-radius: 20px 20px 20px 6px; background: var(--lg-glass-strong);
  box-shadow: inset 0 0 0 .5px var(--lg-edge); font: 500 14.5px/1.38 var(--lg-font); }
.speech b { font-weight: 700; }
.chibi-pick { display: flex; gap: 10px; }
.chibi-pick button { border: 0; border-radius: 20px; background: var(--lg-fill); padding: 6px; cursor: pointer; }
.chibi-pick button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--lg-accent); background: var(--lg-accent-soft); }
.skin { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.skin[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--lg-bg), 0 0 0 4.5px var(--lg-accent); }

/* lists inside cards go flat */
.lg-card .lg-list { background: transparent; box-shadow: none; border-radius: 18px; margin: 0 -8px; }
.lg-card .lg-list::after { display: none; }
.num-list { counter-reset: n; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font: 400 15px/1.45 var(--lg-font); }
.num-list li::before { content: counter(n); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lg-accent-soft); color: var(--lg-accent-ink); font: 700 12.5px/1 var(--lg-font-rounded); }
.x-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.x-list li { display: flex; gap: 8px; font: 400 14.5px/1.4 var(--lg-font); }
.x-list li::before { content: "✕"; color: var(--lg-red); font-weight: 700; font-size: 12px; margin-top: 2px; }

/* session */
.ex-card { gap: 10px; }
.ex-head { display: flex; gap: 12px; align-items: center; }
.sets { display: grid; gap: 6px; }
.set { display: grid; grid-template-columns: 24px 1fr 1fr 48px; gap: 8px; align-items: center; }
.set__n { font: 700 13px/1 var(--lg-font-rounded); color: var(--lg-label-2); text-align: center; }
.stepper { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; height: 44px; border-radius: 15px; background: var(--lg-fill); }
.stepper button { height: 44px; border: 0; background: none; font: 600 20px/1 var(--lg-font); color: var(--lg-label-2); cursor: pointer; border-radius: 15px; padding: 0; }
.stepper button:active { background: var(--lg-fill); }
.stepper output { text-align: center; font: 700 16px/1 var(--lg-font-rounded); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper output small { font: 600 10.5px var(--lg-font); color: var(--lg-label-2); margin-left: 1px; }
.check { width: 48px; height: 44px; border-radius: 15px; border: 0; background: var(--lg-fill); display: grid; place-items: center; cursor: pointer; color: var(--lg-label-3);
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy), background-color .2s, color .2s; }
.check svg { width: 22px; height: 22px; }
.set.is-done .check { background: var(--lg-green); color: #fff; }
.set.is-done .stepper { opacity: .7; }
.set-head { display: grid; grid-template-columns: 24px 1fr 1fr 48px; gap: 8px; font: 600 11px/1 var(--lg-font); color: var(--lg-label-2); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.feels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.feel { height: 40px; border-radius: 14px; border: 0; background: var(--lg-fill); font: 600 12.5px/1 var(--lg-font); cursor: pointer; color: var(--lg-label); padding: 0 4px; }
.feel[aria-pressed="true"] { background: var(--lg-label); color: var(--lg-bg); }
.ex-card.is-complete { opacity: .78; }
.cue { font: 500 13.5px/1.4 var(--lg-font); color: var(--lg-label-2); display: flex; gap: 7px; }
.cue::before { content: "★"; color: var(--lg-accent-ink); font-size: 12px; margin-top: 1px; }
.timer-acc { justify-content: space-between; padding: 0 8px 0 18px; cursor: default; }
.timer-acc .mid-num { font-size: 22px; }

/* food */
.rings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ring-stat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ring-stat .lg-ring { --s: 54px; --lg-ring-hole: color-mix(in srgb, var(--lg-bg) 88%, transparent); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { height: 38px; border-radius: 19px; border: 0; padding: 0 13px; background: var(--lg-fill); font: 600 13.5px/1 var(--lg-font); cursor: pointer; color: var(--lg-label); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy), background-color .2s; }
.chip small { color: var(--lg-label-2); font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--lg-label); color: var(--lg-bg); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.food-row .lg-row__value { font: 650 14px/1 var(--lg-font-rounded); }
.plate { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.plate svg { width: 96px; height: 96px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.check-row[aria-checked="true"] .lg-row__title { text-decoration: line-through; color: var(--lg-label-2); }
.cb { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px var(--lg-label-3); flex: none; display: grid; place-items: center; }
.cb svg { width: 15px; height: 15px; opacity: 0; color: #fff; }
[aria-checked="true"] > .cb { background: var(--lg-green); box-shadow: none; }
[aria-checked="true"] > .cb svg { opacity: 1; }

/* chart */
.chart { position: relative; touch-action: pan-y; }
.chart svg { width: 100%; height: 190px; display: block; overflow: visible; }
.chart .grid { stroke: var(--lg-separator); stroke-width: 1; }
.chart .axis { font: 500 10.5px var(--lg-font); fill: var(--lg-label-2); }
.chart .goal { stroke: var(--lg-label-2); stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart .avg { stroke: var(--lg-accent); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: url(#bloomArea); }
.chart .pt { fill: var(--lg-label-3); }
.chart .xhair { stroke: var(--lg-label-3); stroke-width: 1; }
.chart .hot { fill: var(--lg-accent); stroke: var(--lg-bg); stroke-width: 2; }
.tooltip { position: absolute; top: 0; transform: translateX(-50%); padding: 7px 10px; border-radius: 12px; background: var(--lg-label); color: var(--lg-bg); font: 600 12px/1.3 var(--lg-font); pointer-events: none; white-space: nowrap; z-index: 2; }
.tooltip small { display: block; font-weight: 500; opacity: .75; }

/* forms */
.field-label { font: 600 13px/1 var(--lg-font); color: var(--lg-label-2); margin: 4px 4px 7px; display: block; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lg-field[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.lg-row input.inline { width: 92px; height: 38px; border-radius: 12px; border: 0; background: var(--lg-fill); text-align: right; padding: 0 12px; font: 600 15.5px var(--lg-font-rounded); color: var(--lg-label); outline: none; }
.lg-row input.inline:focus, .lg-row select.inline:focus { box-shadow: 0 0 0 2px var(--lg-accent); }
.lg-row select.inline { height: 38px; border-radius: 12px; border: 0; background: var(--lg-fill); padding: 0 10px; font: 600 15px var(--lg-font); color: var(--lg-label); max-width: 170px; }
.days-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days-pick button { height: 44px; border-radius: 14px; border: 0; background: var(--lg-fill); font: 650 13px/1 var(--lg-font); cursor: pointer; color: var(--lg-label); padding: 0; }
.days-pick button[aria-pressed="true"] { background: var(--lg-accent); color: var(--lg-on-accent); }
.wp { flex: 0 0 60px; height: 104px; border-radius: 14px; border: 0; background-size: cover; position: relative; cursor: pointer; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.wp[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--lg-accent); }
.wp span { position: absolute; left: 0; right: 0; bottom: 5px; font: 600 9.5px/1 var(--lg-font); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); text-align: center; }
.acc { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; }
.acc[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--lg-bg), 0 0 0 4.5px currentColor; }
.lg-seg button small { font-size: 11px; }
.scale5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale5 .mood { height: 52px; }
.foot-note { padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--lg-glass) 60%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.onb-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 26px 18px 20px; }
.onb-hero svg { width: 86px; height: 86px; }
.quote { font: 500 16px/1.45 var(--lg-font-display); letter-spacing: -.005em; }
.lg-eyebrow svg, .badge-soft svg, .lg-link svg { width: 14px; height: 14px; vertical-align: -2px; flex: none; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 5px; }
.timer-acc svg { width: 20px; height: 20px; flex: none; }
.lg-row > svg:not(.lg-row__chev) { width: 18px; height: 18px; flex: none; color: var(--lg-label-2); }

/* video (thumbnail first; the YouTube player loads only when tapped) */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #000 center / cover no-repeat; cursor: pointer; overflow: hidden; padding: 0; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: rgba(255,255,255,.88); color: var(--lg-accent-ink); box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.yt__play svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
iframe.yt--on { cursor: auto; background: #000; }
.fig-mini { width: 120px; flex: none; border-radius: 18px; background: var(--lg-fill); padding: 4px; }
/* folding rows */
.fold { position: relative; }
.fold + .fold::before { content: ""; position: absolute; left: 58px; right: 0; top: 0; height: .5px; background: var(--lg-separator); }
.fold summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 16px; cursor: pointer; font: 600 16px/1.28 var(--lg-font); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .lg-row__chev { transition: transform var(--lg-dur-snappy) var(--lg-ease-snappy); }
.fold[open] summary .lg-row__chev { transform: rotate(90deg); }
.fold__body { padding: 0 16px 14px 58px; display: grid; gap: 8px; }
/* coach steps */
.csteps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.cstep { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font: 400 15px/1.35 var(--lg-font); }
.cstep__dot { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px var(--lg-label-3); display: grid; place-items: center; color: #fff; margin-top: 1px; }
.cstep__dot svg { width: 14px; height: 14px; }
.cstep.is-done .cstep__dot { background: var(--lg-green); box-shadow: none; }
.cstep.is-done > span:last-child > b { text-decoration: line-through; color: var(--lg-label-2); }
/* recipes */
.recipe-tile { width: 148px; min-height: 140px; }
.recipe-emoji { font-size: 40px; line-height: 1; }
.recipe-hero { justify-items: center; text-align: center; gap: 12px; }
.recipe-big { font-size: 72px; line-height: 1.05; }
.recipe-hero .rings { width: 100%; }
/* form check */
.fc-video { width: 100%; max-height: 52vh; border-radius: 20px; background: #000; display: block; }
.field-label svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.lg-row input.inline[type="time"] { width: 118px; text-align: center; padding: 0 8px; }

/* ---------- levelling ---------- */
.rank { --c: var(--lg-gray); width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff;
  font: 900 24px/1 var(--lg-font-rounded); letter-spacing: -.02em; transform: rotate(-4deg);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 6px 14px -6px var(--c); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.rank--big { width: 68px; height: 68px; font-size: 36px; border-radius: 20px; }
.hunter { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.hunter__name { font: 700 16px/1.2 var(--lg-font); }
.xpbar { height: 9px; border-radius: 5px; background: var(--lg-track); overflow: hidden; }
.xpbar > i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--lg-accent), color-mix(in srgb, var(--lg-accent) 55%, var(--lg-yellow)));
  box-shadow: 0 0 10px -1px color-mix(in srgb, var(--lg-accent) 70%, transparent); transition: width .9s var(--lg-ease-smooth); }
.xpbar--boss > i { background: linear-gradient(90deg, var(--lg-indigo), var(--lg-pink)); }
.xpbar--stat { height: 6px; }
.xp-chip { font: 800 11.5px/1 var(--lg-font-rounded); color: var(--lg-accent-ink); background: var(--lg-accent-soft); padding: 5px 8px; border-radius: 9px; white-space: nowrap; }
.quests { display: grid; gap: 6px; margin: 2px 0; }
.quest { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 18px; background: var(--lg-fill); text-align: left; color: inherit; cursor: pointer;
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy), background-color .25s; }
.quest:active { transform: scale(.98); }
.quest__icon { font-size: 22px; width: 30px; text-align: center; flex: none; }
.quest__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.quest__text b { font: 600 15px/1.25 var(--lg-font); }
.quest__text small { font: 400 12.5px/1.25 var(--lg-font); color: var(--lg-label-2); }
.quest__xp { flex: none; min-width: 40px; height: 28px; border-radius: 14px; display: grid; place-items: center; font: 800 12px/1 var(--lg-font-rounded); color: var(--lg-accent-ink); background: var(--lg-accent-soft); }
.quest__xp svg { width: 16px; height: 16px; }
.quest.is-done { background: color-mix(in srgb, var(--lg-green) 14%, transparent); }
.quest.is-done .quest__text b { color: var(--lg-label-2); text-decoration: line-through; }
.quest.is-done .quest__xp { background: var(--lg-green); color: #fff; }
.boss { display: grid; gap: 6px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--lg-indigo) 10%, transparent); font: 650 14.5px/1.2 var(--lg-font); margin-top: 4px; }
.boss.is-done { background: color-mix(in srgb, var(--lg-green) 14%, transparent); }
.hunter-big { gap: 12px; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 4px; }
.stat { display: grid; gap: 5px; }
.stat b { font: 800 13px/1 var(--lg-font-rounded); letter-spacing: .06em; }
.stat .lg-num { font: 800 15px/1 var(--lg-font-rounded); }
.stat small { font: 400 11.5px/1 var(--lg-font); color: var(--lg-label-2); }
.lg-row.is-locked { opacity: .55; }
.lg-row > .rank { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }

/* ---------- plate + hands ---------- */
.meals { display: grid; gap: 6px; margin-top: 6px; }
.meal { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 6px; min-height: 48px; }
.meal__e { font-size: 20px; text-align: center; }
.meal__t { font: 600 15px/1.2 var(--lg-font); }
.pchip { height: 40px; border: 0; border-radius: 20px; padding: 0 12px; background: var(--lg-fill); font: 600 13px/1 var(--lg-font); color: var(--lg-label-2); cursor: pointer; white-space: nowrap;
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy), background-color .2s, color .2s; }
.pchip:active { transform: scale(.94); }
.pchip[aria-pressed="true"] { background: var(--lg-accent); color: var(--lg-on-accent); }
.pchip[aria-pressed="true"] + .pchip[aria-pressed="true"], .pchip[data-arg$=":v"][aria-pressed="true"] { background: var(--lg-green); color: #fff; }
.hands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hand { border-radius: 22px; padding: 14px 12px; display: grid; gap: 3px; justify-items: start; }
.hand__e { font-size: 30px; line-height: 1.1; }
.hand b { font: 700 15px/1.2 var(--lg-font); }
.hand__what { font: 600 13px/1.2 var(--lg-font); color: var(--lg-accent-ink); }
.hand small { font: 400 12px/1.3 var(--lg-font); color: var(--lg-label-2); margin-bottom: 4px; }
.recipe-palms { display: grid; justify-items: center; gap: 4px; font-size: 28px; }

/* ---------- Coach Saif, floating ---------- */
.coach { position: absolute; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); z-index: 45; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; max-width: calc(100% - 24px); transition: bottom var(--lg-dur-smooth) var(--lg-ease-smooth); }
.has-rest .coach { bottom: calc(env(safe-area-inset-bottom, 0px) + 158px); }
.coach__btn { position: relative; pointer-events: auto; width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--lg-accent) 14%, var(--lg-glass-strong)); box-shadow: 0 0 0 2px #fff, 0 10px 24px -10px rgba(0,0,0,.45);
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy); }
.coach__btn:active { transform: scale(1.1); }
.coach__face { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.coach__bubble { order: -1; max-width: 250px; padding: 10px 13px; border-radius: 18px 18px 6px 18px; font: 500 14px/1.38 var(--lg-font); pointer-events: auto;
  opacity: 0; transform: translateY(8px) scale(.94); transform-origin: bottom right; visibility: hidden; transition: opacity .25s, transform .3s var(--lg-ease-snappy), visibility 0s .3s; }
.coach.is-talking .coach__bubble { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .3s var(--lg-ease-snappy), visibility 0s; }
.lg-tabbar--mini ~ .coach { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }

/* ---------- level up ---------- */
.levelup { position: absolute; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(20,10,30,.45); }
.levelup__card { width: 100%; max-width: 340px; border-radius: 32px; padding: 24px 20px 20px; display: grid; justify-items: center; gap: 8px; text-align: center; background: var(--lg-glass-sheet); }
.levelup__kicker { font: 900 13px/1 var(--lg-font-rounded); letter-spacing: .3em; color: var(--lg-accent-ink); }
.levelup__lv { font: 900 64px/1 var(--lg-font-rounded); letter-spacing: -.03em; background: linear-gradient(135deg, var(--lg-accent), var(--lg-indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- rewards ---------- */
.rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.reward { border: 0; border-radius: 18px; padding: 10px 6px; background: var(--lg-fill); display: grid; justify-items: center; gap: 3px; text-align: center; cursor: pointer; color: inherit;
  transition: transform var(--lg-dur-bouncy) var(--lg-ease-bouncy), background-color .2s; }
.reward:active { transform: scale(.95); }
.reward__e { font-size: 26px; line-height: 1.1; }
.reward b { font: 650 11.5px/1.2 var(--lg-font); }
.reward small { font: 500 10.5px/1.1 var(--lg-font); color: var(--lg-label-2); }
.reward.is-locked { opacity: .5; cursor: default; }
.reward.is-on { background: var(--lg-accent-soft); box-shadow: inset 0 0 0 1.8px var(--lg-accent); }
.reward.is-on small { color: var(--lg-accent-ink); font-weight: 700; }
.me-avatar { position: relative; width: 92px; flex: none; }
.me-avatar > .rank { position: absolute; right: -6px; bottom: -4px; width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
.xp-gold .xpbar > i { background: linear-gradient(90deg, #E0A800, #FFE27A, #E0A800); background-size: 200% 100%; animation: lg-shimmer 2.4s linear infinite; }
.ch-brow { stroke: #2A1F26; stroke-width: 3.4; stroke-linecap: round; fill: none; }
.coach__face .chibi { display: block; }

/* ---------- workout clock ---------- */
.wo-timer { gap: 8px; }
.wo-clock { font: 800 46px/1 var(--lg-font-rounded); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.wo-timer.is-paused .wo-clock { color: var(--lg-label-3); }
.wo-pause { width: 56px; height: 56px; }
.wo-pause svg { width: 24px; height: 24px; }
.wo-navclock { font: 800 15px/1 var(--lg-font-rounded); font-variant-numeric: tabular-nums; cursor: default; }
.wobar { position: absolute; left: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); z-index: 44; height: 44px; padding: 0 14px; border: 0; border-radius: 22px; display: inline-flex; align-items: center; gap: 7px;
  font: 800 15px/1 var(--lg-font-rounded); font-variant-numeric: tabular-nums; color: var(--lg-label); cursor: pointer; }
.wobar small { font: 600 12px/1 var(--lg-font); color: var(--lg-accent-ink); }
.fig-eye { display: none; }
