/* App screens drawn in HTML (website/screens.mjs), at 390 × 844 pt, scaled into the phone by screens.js (--s).
   Colours: mobile/src/theme/tokens.ts (LIGHT and DARK). Font: the system font (SF on iPhone, the app's own font; Segoe UI / Roboto elsewhere). */
.live { position: relative; overflow: hidden; }
.scr { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; transform: scale(var(--s, .7)); overflow: hidden;
  font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
  --bg: #F0F4F8; --card: #FFFFFF; --soft: #E7EDF4; --track: #D9E2EC; --line: rgba(40, 70, 110, .14); --ink: #171B19; --ink2: #57534E; --mute: #66706A;
  --blue: #176AA0; --sky: #38A9E8; --btn: #171B19; --amber: #B45309; background: var(--bg); color: var(--ink); }
.scr.dark { --bg: #000; --card: #111113; --soft: #1B1B1E; --track: #2A2A2D; --line: rgba(255, 255, 255, .09); --ink: #F5F5F7; --ink2: #C7C7CC; --mute: #98989F; --blue: #4DA6E8; --btn: #2470AD; --amber: #F5A524; }
.scr b { font-weight: 800; }
.scr h4, .scr p { margin: 0; }
.s-status { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 4px 26px 0 44px; font-size: 17px; }
.s-status b { font-weight: 600; }
.s-round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); flex: none; }
.s-round.dark { background: #262628; border: 0; color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--sky); vertical-align: -3px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.s-box { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--track); flex: none; background: var(--card); }
.s-box svg { opacity: 0; }
.s-box.pick { background: var(--blue); border-color: var(--blue); }
.s-box.pick svg { opacity: 1; }
.s-cta { position: absolute; left: 20px; right: 20px; bottom: 34px; height: 52px; border-radius: 26px; background: var(--btn); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800; }

/* ---------- Today (measured on the app's own screenshot, see todayScreen) ---------- */
.t-hello { position: absolute; top: 60px; left: 21px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.t-date { position: absolute; top: 94px; left: 21px; font-size: 15px; color: var(--ink2); }
.t-days { position: absolute; top: 117px; left: 21px; right: 21px; display: flex; justify-content: space-between; }
.t-days span { display: grid; justify-items: center; gap: 9px; width: 44px; padding: 12px 0 10px; border-radius: 22px; font-size: 13px; color: var(--ink2); }
.t-days i { font-style: normal; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--track); font-size: 15px; color: var(--ink); }
.t-days .on { background: var(--card); color: var(--blue); font-weight: 800; border: 1px solid var(--line); }
.t-days .on i { border: 2.5px solid var(--ink); border-right-color: transparent; font-weight: 800; }
.t-days .fut i { border-color: transparent; color: var(--mute); }
.t-card { position: absolute; left: 21px; right: 21px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.t-pro { top: 213px; height: 292px; }
.t-cap { position: absolute; top: 17px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .07em; color: var(--ink2); }
.t-cap img { width: 16px; height: 18px; object-fit: contain; }
.t-swap { position: absolute; top: 12px; right: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--ink); }
.t-l, .t-r { position: absolute; top: 64px; width: 96px; display: grid; justify-items: center; gap: 2px; }
.t-l { left: 8px; } .t-r { right: 8px; }
.t-l b, .t-r b { font-size: 23px; font-weight: 900; letter-spacing: -.03em; }
.t-l b small, .t-r b small { font-size: 14px; color: var(--ink2); font-weight: 800; }
.t-l > span, .t-r > span { font-size: 14px; color: var(--ink2); font-weight: 600; }
.t-l em { margin-top: 8px; font-style: normal; display: grid; place-items: center; min-width: 84px; padding: 4px 8px; border-radius: 10px; background: #E3F0FA; color: var(--blue); font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; }
.dark .t-l em { background: #10283A; }
.t-arc { position: absolute; top: 40px; left: 50%; width: 132px; height: 132px; margin-left: -66px; }
.t-arc svg { width: 100%; height: 100%; transform: rotate(135deg); }
.t-arc circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.t-arc .trk { stroke: #D6E8F6; stroke-dasharray: 75 100; }
.dark .t-arc .trk { stroke: #1D2A35; }
.t-arc .fil { stroke: #4FA3DE; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1s cubic-bezier(.2, .8, .2, 1); }
.t-mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding-top: 4px; }
.t-mid b { font-size: 36px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.t-mid b small { font-size: 15px; color: var(--ink2); margin-left: 1px; }
.t-mid > span { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.t-div { position: absolute; top: 172px; left: 16px; right: 16px; height: 1px; background: var(--line); }
.t-cap2 { position: absolute; top: 186px; left: 16px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; color: var(--ink2); }
.t-up { position: absolute; top: 180px; right: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink); transform: rotate(180deg); }
.t-mac { position: absolute; top: 214px; left: 16px; right: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.t-mac p { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.t-mac p img { width: 20px; height: 20px; object-fit: contain; }
.t-mac i { display: block; height: 4px; margin: 9px 0 8px; border-radius: 2px; background: var(--track); overflow: hidden; }
.t-mac i b { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--c); border-radius: 2px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.t-mac .v { font-size: 13.5px; font-weight: 600; color: var(--ink2); gap: 0; }
.t-mac .v b { font-size: 16px; font-weight: 900; color: var(--ink); margin-right: 2px; }
.t-dots { position: absolute; top: 523px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }
.t-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--track); }
.t-dots i.on { background: var(--ink); }
.t-water { top: 559px; height: 104px; overflow: hidden; }
.t-wave { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--w) * 100%); background: #74C5EF; transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.t-wave svg { position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; height: 14px; fill: #74C5EF; animation: wave 3.6s linear infinite; }
.dark .t-wave, .dark .t-wave svg { background: #0B4F78; fill: #0B4F78; }
.dark .t-wave svg { background: none; }
.t-wt { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.t-wt b { font-weight: 800; }
.t-ml { position: absolute; left: 16px; bottom: 14px; white-space: nowrap; }
.t-ml b { font-size: 30px; font-weight: 900; letter-spacing: -.04em; color: #0B2A3C; }
.t-ml small { font-size: 13.5px; font-weight: 800; color: #0B2A3C; }
.dark .t-ml b, .dark .t-ml small { color: #fff; }
.t-minus, .t-pill, .t-plus { position: absolute; bottom: 16px; display: grid; place-items: center; height: 32px; }
.t-minus { right: 134px; width: 32px; border-radius: 50%; background: #fff; color: #0B2A3C; font-size: 20px; font-weight: 700; }
.t-pill { right: 52px; display: flex; gap: 3px; padding: 0 10px; border-radius: 16px; background: #fff; border: 2px solid #0369A1; color: #0B2A3C; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.t-plus { right: 12px; bottom: 15px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #0369A1; color: #fff; font-size: 24px; font-weight: 500; line-height: 1; cursor: pointer; transition: transform .15s; }
.t-plus:active, .t-plus.tap { transform: scale(.85); }
.t-dots2 { top: 679px; }
.t-meals { position: absolute; top: 712px; left: 21px; right: 21px; display: flex; justify-content: space-between; align-items: center; }
.t-meals b { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.t-meals span { display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 700; color: var(--blue); }
.t-meal { top: 748px; height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; }
.t-meal > b { font-size: 15.5px; font-weight: 900; flex: 1; position: relative; top: -7px; }
.t-mbars { position: absolute; left: 16px; top: 42px; display: flex; gap: 4px; }
.t-mbars i { width: 26px; height: 5px; border-radius: 3px; }
.t-meal p { display: grid; justify-items: center; line-height: 1.1; }
.t-meal p b { font-size: 18px; font-weight: 900; } .t-meal p b small { font-size: 12px; }
.t-meal p span { font-size: 12px; color: var(--ink2); font-weight: 600; }
.t-mchev { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.t-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 6px; background: var(--card); border-top: 1px solid var(--line); }
.t-tabs span { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.t-tabs span.on { color: var(--blue); font-weight: 800; }
.t-toast { position: absolute; z-index: 4; top: 196px; left: 50%; transform: translate(-50%, 8px); padding: 8px 14px; border-radius: 999px; background: #171B19; color: #fff; font-size: 13.5px; font-weight: 800; opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.dark .t-toast { background: #2470AD; }
.t-toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes wave { to { transform: translateX(-50%); } }

/* ---------- Search ---------- */
.s-sbar { position: absolute; top: 56px; left: 16px; right: 16px; display: flex; gap: 10px; align-items: center; }
.s-field { flex: 1; height: 46px; border-radius: 23px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--mute); }
.s-field b { color: var(--ink); font-size: 17px; font-weight: 500; }
.s-tabs { position: absolute; top: 120px; left: 16px; right: 0; display: flex; gap: 24px; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; color: var(--mute); }
.s-tabs span { padding-bottom: 10px; }
.s-tabs .on { color: var(--blue); box-shadow: inset 0 -3px var(--blue); }
.s-addto { position: absolute; top: 166px; left: 16px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink2); }
.s-addto b { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--btn); color: #fff; font-size: 14px; }
.s-sec { position: absolute; top: 220px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .06em; color: var(--mute); }
.s-sec span { letter-spacing: 0; font-size: 13px; }
.s-list { position: absolute; top: 250px; left: 16px; right: 16px; display: grid; gap: 10px; }
.s-row { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; color: var(--mute); }
.s-nm { flex: 1; display: grid; gap: 4px; }
.s-nm b { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.25; }
.s-nm > span { font-size: 13.5px; color: var(--mute); }
.s-nm em { font-style: normal; color: var(--blue); font-weight: 600; }

/* ---------- Voice ---------- */
.s-vhead { position: absolute; top: 56px; left: 16px; right: 16px; display: flex; align-items: center; gap: 14px; }
.s-vhead b { font-size: 20px; font-weight: 800; }
.s-said { position: absolute; top: 130px; left: 26px; right: 26px; min-height: 80px; font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.s-mic { position: absolute; top: 300px; left: 50%; width: 120px; height: 120px; margin-left: -60px; display: grid; place-items: center; }
.s-mic .btn { position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--blue); }
.s-mic .ring { position: absolute; inset: 14px; border-radius: 50%; background: var(--sky); opacity: .35; animation: pulse 1.6s ease-out infinite; }
.s-mic .r2 { animation-delay: .8s; }
@keyframes pulse { from { transform: scale(.9); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
.s-bars { position: absolute; top: 450px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; height: 50px; }
.s-bars i { width: 5px; height: 12px; border-radius: 3px; background: var(--sky); animation: bar .9s ease-in-out var(--d) infinite alternate; }
@keyframes bar { to { height: 46px; } }
.s-vstate { position: absolute; top: 520px; left: 0; right: 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink2); }
.s-vstate span { display: none; }
.s-vres { position: absolute; left: 16px; right: 16px; top: 250px; bottom: 0; display: grid; align-content: start; gap: 10px; opacity: 0; transform: translateY(30px); }
.s-vrow { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.s-p { color: var(--blue); font-weight: 800; font-size: 15px; width: 50px; text-align: right; }
.s-k { color: var(--amber); font-weight: 800; font-size: 15px; width: 40px; text-align: right; }
.s-vtot { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--soft); font-size: 14px; font-weight: 700; color: var(--ink2); }
.s-vtot b { color: var(--ink); }
.s-vres .s-cta { position: static; margin-top: 8px; }
/* voice phases (class on .scr): listen -> look -> found */
.scr-voice .s-vstate .st-listen { display: inline; }
.scr-voice.look .s-vstate .st-listen, .scr-voice.found .s-vstate .st-listen { display: none; }
.scr-voice.look .s-vstate .st-look { display: inline; }
.scr-voice.look .s-bars i { animation-play-state: paused; height: 8px; }
.scr-voice.found .s-mic, .scr-voice.found .s-bars, .scr-voice.found .s-vstate { opacity: 0; transition: opacity .3s; }
.scr-voice.found .s-said .caret { display: none; }
.scr-voice.found .s-vres { opacity: 1; transform: none; transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.scr-voice.found .s-said { font-size: 22px; top: 120px; color: var(--ink2); transition: font-size .4s, top .4s; }

/* ---------- Barcode ---------- */
.scr-code { background: #050506; color: #fff; }
.s-chead { position: absolute; top: 56px; left: 16px; right: 16px; display: flex; align-items: center; gap: 14px; }
.s-chead b { font-size: 19px; font-weight: 800; }
.s-chint { position: absolute; top: 112px; left: 0; right: 0; text-align: center; font-size: 13.5px; color: #8E8E93; }
.s-pack { position: absolute; top: 170px; left: 40px; right: 40px; height: 420px; border-radius: 26px; background: linear-gradient(160deg, #2b2f36, #121418); display: grid; place-items: center; }
.s-label { width: 230px; padding: 16px 18px 10px; background: #fff; border-radius: 10px; display: grid; gap: 6px; }
.s-label svg { width: 100%; height: 86px; fill: #111; }
.s-label span { text-align: center; color: #111; font-size: 15px; font-weight: 600; letter-spacing: .12em; }
.s-frame { position: absolute; top: 290px; left: 70px; right: 70px; height: 170px; }
.s-frame i { position: absolute; width: 34px; height: 34px; border: 0 solid #fff; }
.s-frame .tl { left: 0; top: 0; border-width: 4px 0 0 4px; border-top-left-radius: 12px; } .s-frame .tr { right: 0; top: 0; border-width: 4px 4px 0 0; border-top-right-radius: 12px; }
.s-frame .bl { left: 0; bottom: 0; border-width: 0 0 4px 4px; border-bottom-left-radius: 12px; } .s-frame .br { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-bottom-right-radius: 12px; }
.s-laser { position: absolute; left: 10px; right: 10px; top: 50%; height: 3px; border-radius: 2px; background: #FF3B30; box-shadow: 0 0 12px #FF3B30; animation: laser 1.6s ease-in-out infinite alternate; }
@keyframes laser { from { transform: translateY(-60px); } to { transform: translateY(60px); } }
.scr-code.found .s-laser { background: #34C759; box-shadow: 0 0 14px #34C759; animation: none; transform: none; }
.scr-code.found .s-frame i { border-color: #34C759; }
.s-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 330px; padding: 14px 20px 0; border-radius: 28px 28px 0 0; background: #F0F4F8; color: #171B19; transform: translateY(105%); }
.scr-code.sheet .s-sheet { transform: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.s-grab { display: block; width: 40px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: #C9D2DC; }
.s-pname { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.s-pean { margin-top: 6px; font-size: 13.5px; color: #66706A; }
.s-pean em { font-style: normal; color: #176AA0; font-weight: 700; }
.s-tiles { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s-tiles span { display: grid; justify-items: center; gap: 4px; padding: 14px 4px; border-radius: 16px; background: #fff; border: 1px solid rgba(40, 70, 110, .14); }
.s-tiles b { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.s-tiles small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #57534E; }
.s-tiles .p b { color: #176AA0; } .s-tiles .k b { color: #B45309; }
.s-sheet .s-cta { bottom: 34px; background: #171B19; }

@media (prefers-reduced-motion: reduce) {
  .scr *, .scr { animation: none !important; transition: none !important; }
}
/* icons inside drawn screens are inline, not full-screen screenshots */
.phone-screen .scr img { position: static; inset: auto; width: 20px; height: 20px; max-width: none; object-fit: contain; flex: none; }
.phone-screen .scr .t-cap img { width: 16px; height: 18px; }

/* AddBtn (components/ui.tsx): word + egg + protein + flame + kcal, white on the button colour */
.s-add { display: flex; justify-content: center; align-items: center; gap: 12px; color: #fff; font-size: 15px; font-weight: 800; }
.s-add b { font-weight: 800; }
.s-add span { display: inline-flex; align-items: center; gap: 5px; }
.s-sheet .s-add { --btn: #171B19; }

/* water card v2 (Rod, 26/11): title band on top, water rises only in the lower band, numbers and buttons on one centred line */
.t-water { background: var(--card); }
.t-wave { left: 0; right: 0; bottom: 0; height: calc(18px + var(--w) * 44px); border-radius: 0 0 23px 23px; }
.t-wave svg { height: 10px; }
.t-wt { top: 12px; font-size: 17px; z-index: 1; }
.t-ml { left: 16px; bottom: auto; top: 54px; height: 36px; display: flex; align-items: center; z-index: 1; }
.t-ml b { font-size: 27px; }
.t-minus, .t-pill, .t-plus { top: 56px; bottom: auto; z-index: 1; }
.t-minus { right: 136px; width: 32px; height: 32px; border: 0; cursor: pointer; padding: 0; line-height: 1; transition: transform .15s; }
.t-minus.tap, .t-minus:active { transform: scale(.85); }
.t-pill { right: 52px; height: 32px; }
.t-plus { right: 12px; top: 55px; }

/* water buttons: one group, the same gap between −, 200 ml and + */
.t-btns { position: absolute; right: 12px; top: 54px; z-index: 1; display: flex; align-items: center; gap: 8px; }
.t-btns .t-minus, .t-btns .t-pill, .t-btns .t-plus { position: static; inset: auto; }
.t-btns .t-minus { width: 34px; height: 34px; }
.t-btns .t-pill { height: 34px; }
.t-btns .t-plus { width: 34px; height: 34px; }
/* water goal reached (store.ts waterCelebrate + components/confetti.tsx): glow on the card, falling drops, message */
.t-water { transition: border-color .3s, box-shadow .3s; }
.t-water.win { border: 2px solid #0EA5E9; box-shadow: 0 8px 28px rgba(14, 165, 233, .45); }
.t-confetti { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.t-confetti i { position: absolute; top: -24px; left: var(--x); width: var(--w); height: var(--h); border-radius: var(--r); background: var(--c);
  animation: drop var(--dur) cubic-bezier(.3, .1, .5, 1) var(--delay) forwards; opacity: 0; }
@keyframes drop {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  55% { opacity: 1; transform: translate(var(--sw), 430px) rotate(calc(var(--rot) * .55)); }
  100% { opacity: .8; transform: translate(calc(var(--sw) * -.6), 880px) rotate(var(--rot)); }
}

.t-ml small { margin-left: 5px; }

/* Today: protein / calorie views of the goal card (main-card.tsx), cross-fading when the swap button is used */
.t-pmode, .t-emode { position: absolute; left: 0; right: 0; top: 0; height: 172px; transition: opacity .45s ease; }
.t-emode { opacity: 0; }
.t-pro.en .t-pmode { opacity: 0; } .t-pro.en .t-emode { opacity: 1; }
.t-swap { z-index: 2; transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
.t-swap.tap { background: var(--track); }
.t-pro.en .t-swap { transform: rotate(180deg); }
.t-emode .t-cap svg { width: 18px; height: 18px; }
.t-emode .t-l b, .t-emode .t-r b { font-size: 20px; }
.t-emode .t-l b small, .t-emode .t-r b small { font-size: 12.5px; }
.t-l em.k { background: #FEF3C7; color: #B45309; }
.dark .t-l em.k { background: #3A2D12; color: #F5A524; }
.t-arc.k .trk { stroke: var(--track); }
.t-arc.k .fil { stroke: #F5A524; }
.t-emode .t-mid b { font-size: 34px; }
.t-emode .t-mid > span { margin-top: 2px; font-size: 12px; line-height: 1.2; text-align: center; }

/* hero camera (heroCamScreen): bright photo, flash inside the frame, balloons one by one, twinkling dots */
.hcam { background: #000; color: #fff; }
.hc-head { position: absolute; top: 54px; left: 16px; right: 16px; height: 42px; display: flex; align-items: center; gap: 12px; }
.hc-head b { flex: 1; font-size: 18.5px; font-weight: 800; }
.hc-meal { height: 34px; padding: 0 13px 0 14px; border-radius: 999px; background: #262628; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; }
.hc-hint { position: absolute; top: 104px; left: 0; right: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: #8E8E93; }
.hc-i { position: absolute; right: 20px; top: 97px; width: 30px; height: 30px; border-radius: 50%; background: #262628; display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.hc-card { position: absolute; left: 15px; right: 15px; top: 131px; height: 583px; border-radius: 28px; overflow: hidden; background: #1c1c1e; }
.phone-screen .scr .hc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
.hc-found { position: absolute; z-index: 2; top: 15px; left: 50%; transform: translateX(-50%); height: 34px; padding: 0 15px; border-radius: 999px; background: rgba(28, 30, 34, .78); display: flex; align-items: center; font-size: 13.5px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .35s; }
.hc-total { position: absolute; z-index: 2; left: 13px; right: 13px; top: 486px; height: 31px; border-radius: 11px; background: rgba(22, 22, 24, .8); display: flex; justify-content: space-between; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.hc-review { position: absolute; z-index: 2; left: 13px; right: 13px; top: 526px; height: 44px; border-radius: 22px; background: #2470B3; display: grid; place-items: center; font-size: 15.5px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .4s .08s, transform .4s .08s; }
.hc-lines { position: absolute; left: 0; top: 0; width: 390px; height: 844px; pointer-events: none; }
.hc-lines line { stroke: #fff; stroke-width: 1.5; stroke-opacity: .92; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease; transition-delay: calc(var(--i) * .32s + .1s); }
.hc-dot { position: absolute; width: 0; height: 0; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * .32s); }
.hc-dot b { position: absolute; left: -7.5px; top: -7.5px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 4.2px solid #1D6FB8; box-sizing: border-box; }
.hc-dot i { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .6); animation: twinkle 1.8s ease-out infinite; }
.hc-dot i + i { animation-delay: .9s; }
@keyframes twinkle { 0% { transform: scale(.55); opacity: .95; } 70% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1.5); opacity: 0; } }
.hc-chip { position: absolute; display: grid; gap: 1px; padding: 6px 10px 6px 11px; border-radius: 12px; background: rgba(255, 255, 255, .94); color: #16181A; line-height: 1.22; opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .35s, transform .4s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--i) * .32s + .12s); }
.hc-chip b { font-size: 13px; font-weight: 700; } .hc-chip span { font-size: 13px; font-weight: 800; color: #1D6FB8; }
.hc-gal { position: absolute; left: 31px; top: 743px; width: 44px; height: 44px; border-radius: 12px; background: #262628; display: grid; place-items: center; }
.hc-shutter { position: absolute; left: 156px; top: 726px; width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.hc-shutter i { width: 60px; height: 60px; border-radius: 50%; background: #F2F2F7; transition: transform .15s; }
.hcam.snap .hc-shutter i { transform: scale(.86); }
.hcam.snap .hc-flash { animation: hcFlashCard .6s ease-out; }
@keyframes hcFlashCard { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
.hcam.found .hc-found, .hcam.found .hc-dot, .hcam.found .hc-chip { opacity: 1; }
.hcam.found .hc-dot, .hcam.found .hc-chip { transform: none; }
.hcam.found .hc-lines line { stroke-dashoffset: 0; }
.hcam.total .hc-total, .hcam.total .hc-review { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hcam .hc-found, .hcam .hc-dot, .hcam .hc-chip, .hcam .hc-total, .hcam .hc-review { opacity: 1; transform: none; } .hcam .hc-lines line { stroke-dashoffset: 0; } }

/* goal card v3: one card, two modes (main-card.tsx). Everything switches at once; only the ring length rolls, 2 s after 0.3 s, ease (.4, 0, .2, 1). */
.t-pro:not(.en) .m-e, .t-pro.en .m-p { display: none !important; }
.t-pro .t-pmode, .t-pro .t-emode { display: none; }
.t-defs { position: absolute; }
.t-cap > span { display: inline-flex; align-items: center; gap: 8px; }
.t-cap > span svg { width: 18px; height: 18px; }
.t-arc svg { transform: none; }
.t-arc .trk { stroke: #DCEBF8; }
.dark .t-arc .trk { stroke: #1F3347; }
.t-pro.en .t-arc .trk { stroke: var(--track); }
.t-arc .fil { transition: stroke-dasharray 2s cubic-bezier(.4, 0, .2, 1) .3s; }
.t-pro.en .t-l b, .t-pro.en .t-r b { font-size: 20px; }
.t-pro.en .t-l b small, .t-pro.en .t-r b small { font-size: 12.5px; }
.t-mid .m-e { display: grid; justify-items: center; }
.t-mid .m-p { display: grid; justify-items: center; }
.t-mid .m-e b { font-size: 34px; }
.t-mid .m-e > span { margin-top: 2px; font-size: 12px; line-height: 1.2; text-align: center; font-weight: 600; color: var(--ink2); }
.t-mid .m-p > span { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.t-swap { transform: none !important; }
.t-mac i b { transition: width 2s cubic-bezier(.4, 0, .2, 1) .3s; }

/* barcode: a Greek-yogurt pot under the scanner, like a photo of a real package (generic art, no brand) */
.s-pack { background: radial-gradient(120% 80% at 50% 30%, #3b3f46 0%, #1b1d21 70%, #121316 100%); overflow: hidden; display: block; }
.cup { position: absolute; left: 50%; top: 26px; width: 236px; height: 372px; margin-left: -118px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.cup-lid { position: absolute; left: -6px; right: -6px; top: 0; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #f4f6f8, #c9d1da 60%, #aab4bf); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); z-index: 2; }
.cup-body { position: absolute; inset: 14px 0 0; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); background: linear-gradient(90deg, #dfe6ee 0%, #ffffff 22%, #f7f9fb 55%, #e3e9f0 85%, #cfd8e2 100%); text-align: center; color: #123A6B; }
.cup-a { margin: 30px 0 0; font-size: 15px; font-weight: 800; letter-spacing: .22em; }
.cup-b { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -.02em; line-height: 1; color: #1E5AA8; }
.cup-c { margin: 6px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #3C6EA8; }
.cup-band { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, #1E5AA8, #123A6B); }
.cup-body .s-label { position: absolute; left: 50%; top: 118px; width: 170px; margin-left: -85px; padding: 10px 12px 6px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.cup-body .s-label svg { height: 64px; }
.cup-body .s-label span { font-size: 13px; }
.cup-w { position: absolute; left: 0; right: 0; bottom: 40px; margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #fff; opacity: .9; }

.cup-a { margin-top: 26px; position: relative; top: 14px; }
.cup-b { font-size: 36px; margin-top: 14px; }
.cup-c { margin-top: 4px; }
.cup-body .s-label { top: 128px; }

.cup-a { margin-top: 36px; top: 0; }
.cup-b { margin-top: 4px; }

.scr .cup-body .cup-a { margin: 40px 0 0; top: 0; }
.scr .cup-body .cup-b { margin: 2px 0 0; }
.scr .cup-body .cup-c { margin: 4px 0 0; }
.scr .cup-body .cup-w { margin: 0; }
.scr .cup-body .s-label { top: 132px; }

/* goal card v4: live numbers; the first macro column turns from Energia (amber) into Proteína (blue) */
.t-first { --c: #F59E0B; }
.t-pro.en .t-first { --c: #38A9E8; }
.t-first i b { transition: width 2s cubic-bezier(.4, 0, .2, 1) .3s, background-color .2s; }
.t-first p:first-child > span { display: inline-flex; align-items: center; gap: 6px; }
.t-first p:first-child > span svg, .t-first p:first-child > span img { width: 20px; height: 20px; }
.t-l em { transition: none; }
.t-pro.en .t-l em { background: #FEF3C7; color: #B45309; }
.dark .t-pro.en .t-l em { background: #3A2D12; color: #F5A524; }
.t-mid > .m-p { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.t-mid > .m-e { margin-top: 2px; font-size: 12px; line-height: 1.2; text-align: center; font-weight: 600; color: var(--ink2); }
.t-pro.en .t-mid b { font-size: 34px; }
.t-l b, .t-r b, .t-mid b { white-space: nowrap; }
.t-pro.en .t-l .n, .t-pro.en .t-r .n { font-size: 20px; }

/* live numbers: keep each number with its unit on one line, the pill as text */
.t-mid > .m-p, .t-mid > .m-e { display: block; }
.t-mid b small { display: inline; }
.t-l em { display: block; text-align: center; }
.t-l b small, .t-r b small { display: inline; }
.t-mid b small.m-p, .t-mid b small.m-e { display: inline; }
.t-pro.en .t-mid b small.m-p { display: none !important; }
