/* ===========================================================
   THÉA — design system
   Two worlds: warm/light + dark data-viz. SF Pro system stack.
   =========================================================== */

:root {
  /* light world — editorial gallery canvas */
  --bg:        #F6F5F2;
  --bg-warm:   #F1EEE7;
  --card:      #FFFFFF;
  --cream:     #EFEAE0;
  --ink:       #141414;
  --ink-2:     #56524A;
  --ink-3:     #98948C;
  --hairline:  rgba(20,18,14,0.07);

  /* crayon accents — sampled from Théa's character art */
  --marigold:  #F4B62B;
  --gold-deep: #EFA01A;
  --tangerine: #EA471C;
  --tangerine-2:#FF8A4C;
  --cobalt:    #2A5BD0;
  --indigo:    #2A5BD0;
  --blush:     #F3A3AF;
  --blush-2:   #F6C0C8;
  /* brand primary = warm crayon */
  --brand:     #EA471C;

  /* dark world */
  --d-bg:      #0B0B0E;
  --d-bg-2:    #111016;
  --d-panel:   rgba(28,28,34,0.66);
  --d-ink:     #F4F2EE;
  --d-ink-2:   #A7A3AE;
  --d-ink-3:   #6E6A77;
  --d-line:    rgba(255,255,255,0.10);
  --viz:       #2E6BF0;
  --viz-cyan:  #46E0E6;

  --r-lg: 30px;
  --r-md: 22px;
  --r-sm: 15px;

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-soft: cubic-bezier(0.34, 1.3, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }

body {
  background: #100F12;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  color: var(--ink);
  user-select: none;
}
/* iOS WebKit: the global user-select:none above blocks the caret in form fields → can't type.
   Re-enable editing on every field AND its wrapper (WebKit needs it on the container too), and
   explicitly mark inputs read-write so an inherited user-select:none can't make them inert. */
input, textarea, select, [contenteditable="true"], .hl-field, .hl-name {
  -webkit-user-select: text !important; user-select: text !important;
  -webkit-touch-callout: default !important; touch-action: auto !important; pointer-events: auto !important;
}
/* iOS WebKit: backdrop-filter (esp. the SVG url(#lqg-card) lens) on an <input> breaks the caret/typing. */
input, textarea, [contenteditable="true"] {
  -webkit-user-modify: read-write !important; cursor: text;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important;
}
.hl-name { background: rgba(255,255,255,0.94) !important; }

/* ---------- presentation stage ---------- */
#stage {
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 100% at 50% -10%, #1d1c22 0%, #0c0b0e 55%, #060508 100%);
}
#stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; pointer-events: none;
}

#scaler { position: absolute; top: 50%; left: 50%; transform-origin: center center; }

/* still mode (for static capture / reduced motion) — show entrance end-states */
html.still .rise, html.still .orb-float { animation: none !important; }
html.still .rise { opacity: 1 !important; transform: none !important; }

/* ---------- phone shell ---------- */
.phone {
  position: relative;
  width: 393px; height: 852px;
  border-radius: 56px;
  background: #000;
  padding: 5px;
  box-shadow:
    0 0 0 2px #2a2a2e,
    0 0 0 6px #050506,
    0 50px 110px -30px rgba(0,0,0,0.85),
    0 30px 60px -40px rgba(0,0,0,0.9);
}
.screen {
  position: absolute; inset: 5px;
  border-radius: 51px;
  overflow: hidden;
  background: var(--bg);
}
/* dynamic island */
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 35px; border-radius: 20px;
  background: #000; z-index: 200; pointer-events: none;
}

/* ---------- status bar ---------- */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; padding-top: 14px;
  font-size: 16px; font-weight: 600; letter-spacing: 0.2px;
  z-index: 150; pointer-events: none;
  color: var(--ink);
}
.statusbar.dark { color: #fff; }
.statusbar .sb-right { display: flex; align-items: center; gap: 7px; }

/* home indicator */
.home-ind {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
  width: 138px; height: 5px; border-radius: 3px;
  background: rgba(22,21,15,0.28); z-index: 150;
}
.home-ind.dark { background: rgba(255,255,255,0.5); }

/* ---------- dark mode (token remap — flips light-world surfaces) ---------- */
html[data-theme="dark"] {
  --bg: #100F14; --bg-warm: #19171f; --card: #1c1a24; --cream: #232030;
  --ink: #F3F1EC; --ink-2: #B7B2C0; --ink-3: #7E7889; --hairline: rgba(255,255,255,0.10);
}
html[data-theme="dark"] .world.light { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .world.light .grain { mix-blend-mode: overlay; opacity: 0.5; }
html[data-theme="dark"] .card, html[data-theme="dark"] .card-flat { box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 26px -16px rgba(0,0,0,0.6); }
html[data-theme="dark"] .pill { background: var(--card); }
html[data-theme="dark"] .home-aura { opacity: 0.5; }
html[data-theme="dark"] .iconbtn { background: rgba(255,255,255,0.07); }

/* affirmation reveal */
@keyframes affWord { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.aff-word { animation: affWord 0.5s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes affFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.still .aff-word { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }

/* iMessage chat bubbles with tails — authentic Apple layout, metrics & colors (true iMessage blue) */
.imsg { position: relative; font-size: 17px; font-weight: 400; line-height: 1.28; padding: 7px 13px; border-radius: 18px; max-width: 100%; letter-spacing: -0.01em; word-break: break-word; -webkit-font-smoothing: antialiased; }
.imsg-in { background: #E9E9EB; color: #000; }
.imsg-out { background: #0A7CFF; background: linear-gradient(180deg,#2B9BFF 0%,#0A7AFF 100%); color: #fff; }
/* seamless iMessage tail: colored hook (z0, matched to bubble's bottom color so no visible step) + page-bg cutout (z1) sculpts the concave flick */
.imsg-in::before  { content: ""; position: absolute; z-index: 0; bottom: 0; left: -7px; width: 16px; height: 14px; background: #E9E9EB; border-bottom-right-radius: 16px 13px; }
.imsg-in::after   { content: ""; position: absolute; z-index: 1; bottom: 0; left: -18px; width: 18px; height: 19px; background: #fff; border-bottom-right-radius: 16px 12px; }
.imsg-out::before { content: ""; position: absolute; z-index: 0; bottom: 0; right: -7px; width: 16px; height: 14px; background: #0A7AFF; border-bottom-left-radius: 16px 13px; }
.imsg-out::after  { content: ""; position: absolute; z-index: 1; bottom: 0; right: -18px; width: 18px; height: 19px; background: #fff; border-bottom-left-radius: 16px 12px; }
/* grouped (non-tail) bubbles in a run keep a fuller corner, no tail */
.imsg-grp.imsg-in { border-bottom-left-radius: 18px; border-top-left-radius: 7px; }
.imsg-grp.imsg-out { border-bottom-right-radius: 18px; border-top-right-radius: 7px; }
.imsg-grp::after, .imsg-grp::before { display: none; }
/* spring bubble-in */
@keyframes msgIn { from { opacity: 0; transform: translateY(9px) scale(0.92); } to { opacity: 1; transform: none; } }
.msg-in { animation: msgIn 0.42s cubic-bezier(0.22,1.2,0.36,1) both; transform-origin: bottom center; }
html.still .msg-in { animation: none !important; opacity: 1 !important; transform: none !important; }
/* delivered / timestamp meta */
.imsg-meta { font-size: 11px; font-weight: 600; color: #8E8E93; letter-spacing: 0.01em; }
.imsg-time { font-size: 10.5px; font-weight: 700; color: #8E8E93; text-transform: none; letter-spacing: 0.02em; opacity: 0.85; }
html[data-theme="dark"] .imsg-in { background: #29292B; color: #fff; }
html[data-theme="dark"] .imsg-in::before { background: #29292B; }
html[data-theme="dark"] .imsg-in::after { background: #000; }

/* products pinch-overview deck */
@keyframes deckIn { from { opacity: 0; transform: scale(1.32) translateY(46px); } to { opacity: 1; transform: none; } }
.deck-in { animation: deckIn 0.72s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes pageZoomIn { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: scale(1); } }
.page-zoom { animation: pageZoomIn 0.5s cubic-bezier(0.22,1,0.36,1) both; }
/* the signature: you start INSIDE a page, it zooms OUT to reveal the whole deck */
@keyframes zoomOutToDeck { 0% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(0.5) translateY(-60px); } }
.zoom-out-page { animation: zoomOutToDeck 0.9s cubic-bezier(0.5,0,0.2,1) both; }
@keyframes deckReveal { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
.deck-reveal { animation: deckReveal 0.66s cubic-bezier(0.175,0.885,0.32,1.1) 0.32s both; }
/* each card springs into its stacked slot with a soft elastic settle */
@keyframes cardSettle { 0% { opacity: 0; transform: translateY(var(--from,30px)) scale(0.92); } 100% { opacity: 1; transform: none; } }
.pcard { animation: cardSettle 0.62s cubic-bezier(0.175,0.885,0.32,1.1) both; }
html.still .pcard { animation: none !important; opacity: 1 !important; transform: none !important; }
/* slow drifting gradient inside cards */
@keyframes gradDrift { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }
.grad-move { background-size: 200% 200% !important; animation: gradDrift 14s ease-in-out infinite; }
html.still .deck-in, html.still .page-zoom, html.still .zoom-out-page, html.still .deck-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
html.still .grad-move { animation: none !important; }

/* fast light-sweep over text (e.g. "swipe up to enter") — a bright glint slides across repeatedly */
@keyframes lightSweep { 0% { background-position: 220% 0; } 100% { background-position: -120% 0; } }
.text-sweep {
  background-image: linear-gradient(100deg,
    var(--ink-3) 0%, var(--ink-3) 38%,
    #fff6ec 47%, var(--marigold,#F6A623) 50%, #fff6ec 53%,
    var(--ink-3) 62%, var(--ink-3) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lightSweep 2.1s linear infinite;
}
html.still .text-sweep { animation: none !important; }

.world { position: absolute; inset: 0; }
.world.light { background: var(--bg); color: var(--ink); }
.world.dark  { background: var(--d-bg);  color: var(--d-ink); }

/* grain overlay (per screen) — sits BEHIND the scrollable content (.body) so noise
   stays purely in the background and never muddies cards/text. */
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; opacity: 0.72;
}
.world.dark .grain { opacity: 0.95; mix-blend-mode: overlay; }
.world.light .grain { opacity: 0.28; mix-blend-mode: multiply; }

/* mesh blooms */
.mesh { position: absolute; inset: -10% -10% auto -10%; height: 70%; z-index: 0; pointer-events: none; filter: blur(20px); }

/* scroll body */
.body {
  position: absolute; inset: 0;
  padding-top: 54px;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 10;
}
.body::-webkit-scrollbar { width: 0; display: none; }
.body.no-status { padding-top: 0; }

/* ---------- typography ---------- */
.display {
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
  font-size: 38px;
}
.h1 { font-weight: 700; letter-spacing: -0.025em; font-size: 30px; line-height: 1.08; }
.h2 { font-weight: 650; letter-spacing: -0.02em; font-size: 22px; line-height: 1.15; }
.eyebrow {
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.dim { color: var(--ink-2); }
.world.dark .dim { color: var(--d-ink-2); }
.serif-tea { font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  position: relative; width: 100%;
  border: none; outline: none; cursor: pointer;
  font-family: inherit; font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em;
  padding: 22px 24px; border-radius: 100px;
  color: #fff; overflow: hidden;
  transition: transform 0.18s var(--spring-soft), box-shadow 0.25s var(--spring);
  background: linear-gradient(177deg, rgba(255,168,112,0.98) 0%, rgba(244,106,33,0.98) 46%, rgba(231,62,21,0.99) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.7),
    inset 0 -2px 5px rgba(150,45,12,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.22),
    0 18px 42px -12px rgba(234,71,28,0.55),
    0 5px 13px rgba(170,55,20,0.26);
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 7px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.5;
}
.btn::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 3px; height: 48%;
  border-radius: 100px; background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0));
  opacity: 0.72; pointer-events: none;
}
.btn:active { transform: scale(0.965); }
.btn.ghost {
  /* clear Apple-style liquid glass — Safari-safe blur + bevel, never washed-out */
  background: linear-gradient(160deg, rgba(255,255,255,0.5), rgba(255,255,255,0.22)); color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.04);
  backdrop-filter: blur(18px) saturate(180%) brightness(1.04);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.9), inset 0 -1px 2px rgba(120,90,60,0.12), 0 10px 26px -14px rgba(80,50,25,0.3);
}
.btn.ghost::before { content: ""; display: block; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); padding: 7px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; }
.btn.ghost::after { content: ""; display: block; position: absolute; left: 7%; right: 7%; top: 3px; height: 42%; border-radius: 100px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0)); opacity: 0.6; pointer-events: none; }
.world.dark .btn.ghost {
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)); color: var(--d-ink); border-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.35), inset 0 -1px 2px rgba(0,0,0,0.3), 0 10px 26px -14px rgba(0,0,0,0.5);
}
.btn.dark-solid { background: linear-gradient(180deg,#fff,#ECEAE4); color: var(--ink); box-shadow: inset 0 2px 1px rgba(255,255,255,0.9), 0 12px 30px -12px rgba(0,0,0,0.6); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.dark-solid::after { opacity: 0.9; }
.btn.dark-solid::before { display: none; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Apple Liquid Glass button (real refraction + specular rim + living sheen) ---------- */
.btn.liquid {
  color: #fff; font-weight: 750;
  /* MIX: warm translucent orange + the liquid glass lens showing through it */
  background: linear-gradient(172deg, rgba(255,156,98,0.66) 0%, rgba(238,86,34,0.52) 55%, rgba(222,62,22,0.58) 100%);
  backdrop-filter: url(#liquidGlassBtn) blur(1px) saturate(195%) brightness(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(195%) brightness(1.1);
  border: 1.5px solid rgba(255,214,184,0.72);
  text-shadow: 0 1px 2px rgba(150,45,12,0.45);
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,0.85),         /* fat bright top edge = thickness */
    inset 2px 0 3px rgba(255,236,220,0.45),
    inset -2px 0 3px rgba(255,236,220,0.45),
    inset 0 -10px 18px rgba(255,170,110,0.45),       /* warm lower inner glow */
    inset 0 -2px 1px rgba(150,55,18,0.4),
    0 0 0 0.5px rgba(255,220,190,0.55),
    0 16px 42px -8px rgba(234,71,28,0.55),
    0 5px 14px rgba(180,60,25,0.30);
}
.btn.liquid::before {  /* edge refraction band — extra warped blur hugging the rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  backdrop-filter: url(#liquidGlassBtn) blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 10px; opacity: 0.85;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn.liquid::after {  /* living specular sheen sweeping across the glass */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-18deg); opacity: 0.6; pointer-events: none;
  animation: liquidSheen 4.6s var(--ease-out) infinite;
}
@keyframes liquidSheen {
  0%, 18% { left: -60%; } 52%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) { .btn.liquid::after { animation: none; left: -60%; } }
.btn.liquid:active { transform: scale(0.965); }

.btn-row { display: flex; flex-direction: column; gap: 10px; }

/* tap targets */
.tap { cursor: pointer; transition: transform 0.16s var(--spring-soft); }
.tap:active { transform: scale(0.97); }

/* ---------- glass (refraction-band recipe) ---------- */
.glass {
  position: relative;
  backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.55),
    inset 0 -1px 1px rgba(0,0,0,0.12),
    0 12px 48px rgba(0,0,0,0.22);
}
.glass::before, .glass-dark::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  padding: 9px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass-dark {
  position: relative;
  backdrop-filter: url(#lqg-pill) blur(6px) saturate(160%) brightness(1.05);
  -webkit-backdrop-filter: url(#lqg-pill) blur(6px) saturate(160%) brightness(1.05);
  background: linear-gradient(135deg, rgba(48,46,52,0.52), rgba(18,18,22,0.32));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.22),
    inset 0 -1px 2px rgba(0,0,0,0.4),
    0 20px 56px rgba(0,0,0,0.55);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255,255,255,0.9); }
  .glass-dark { background: rgba(24,24,28,0.94); }
}
html.no-lens .glass-dark { backdrop-filter: blur(24px) saturate(160%) brightness(1.05); -webkit-backdrop-filter: blur(24px) saturate(160%) brightness(1.05); }


/* ---------- cards ---------- */
.card {
  background: var(--card); border-radius: var(--r-md);
  box-shadow:
    0 1px 2px rgba(22,21,15,0.04),
    0 8px 24px -14px rgba(22,21,15,0.16),
    0 2px 6px -4px rgba(22,21,15,0.08);
}
.card-flat { background: var(--card); border-radius: var(--r-md); border: 1px solid var(--hairline); }

/* ---------- orb (Théa) ---------- */
.orb-wrap { position: relative; display: inline-grid; place-items: center; }
.orb {
  position: relative; border-radius: 50%;
  background:
    radial-gradient(38% 34% at 38% 32%, #ffffff 0%, rgba(255,255,255,0.92) 18%, rgba(255,244,222,0.78) 40%, rgba(243,163,175,0.34) 62%, rgba(244,182,43,0.30) 100%),
    radial-gradient(120% 120% at 72% 80%, rgba(234,71,28,0.42) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(160deg, #ffffff 0%, #FFF4DD 45%, #FCE9D6 100%);
  box-shadow:
    inset 0 -10px 22px rgba(232,110,40,0.26),
    inset 6px 8px 16px rgba(255,255,255,0.9),
    0 18px 40px -10px rgba(232,120,40,0.4),
    0 6px 16px rgba(244,182,43,0.28);
}
.orb::after {
  content: ""; position: absolute; top: 14%; left: 20%; width: 30%; height: 22%;
  border-radius: 50%; background: rgba(255,255,255,0.95); filter: blur(3px);
}
.orb-glow {
  position: absolute; inset: -45%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,182,43,0.42) 0%, rgba(243,163,175,0.20) 35%, rgba(255,255,255,0) 68%);
  filter: blur(14px);
}
@keyframes breathe {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-7px) scale(1.025); }
}
.orb-float { animation: breathe 5.2s var(--spring) infinite; }

/* ---------- Théa character avatar ---------- */
.thea-av {
  position: relative; border-radius: 50%; overflow: hidden; background: #FBF3E3;
  box-shadow: 0 14px 34px -12px rgba(232,120,40,0.42), inset 0 0 0 1px rgba(0,0,0,0.05);
}
.thea-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thea-av.ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--marigold), 0 16px 36px -12px rgba(232,120,40,0.45); }
.world.dark .thea-av.ring { box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 0 0 5.5px var(--marigold), 0 16px 40px -10px rgba(244,182,43,0.4); }

/* dark orb (glows) */
.world.dark .orb-glow { background: radial-gradient(circle, rgba(244,182,43,0.5) 0%, rgba(234,71,28,0.2) 36%, rgba(0,0,0,0) 70%); filter: blur(18px); }

/* ---------- chat bubble ---------- */
.bubble {
  background: var(--card); border-radius: 26px; border-top-left-radius: 8px;
  padding: 18px 20px; font-size: 21px; line-height: 1.32; font-weight: 600;
  letter-spacing: -0.02em; max-width: 290px;
  box-shadow: 0 10px 30px -16px rgba(22,21,15,0.22), 0 1px 2px rgba(22,21,15,0.04);
}
.bubble.sm { font-size: 16px; font-weight: 500; padding: 13px 16px; letter-spacing: -0.01em; }

/* ---------- pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 100px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--hairline); color: var(--ink);
}
.chip-check {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--hairline); flex: none; transition: all 0.2s var(--spring-soft);
}
.chip-check.on { background: var(--blush); border-color: var(--blush); }

/* ---------- progress dots ---------- */
.dots { display: flex; gap: 6px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 4px; background: var(--hairline); transition: all 0.4s var(--spring); }
.dot.on { width: 22px; background: var(--ink); }
.world.dark .dot.on { background: var(--d-ink); }

/* ---------- entrance utilities (GSAP also used) ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: riseIn 0.7s var(--ease-out) both; }

/* typing dots */
@keyframes tdot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: tdot 1.1s infinite; }

/* intro photo-wall tile pop-in */
@keyframes tileIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes introPop { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: scale(1); } }
html.still .introtile { opacity: 1 !important; transform: none !important; animation: none !important; }

/* welcome chat bubbles — frosted glass on cream, readable */
/* welcome chat bubbles — REAL Apple liquid glass: clear, refraction + magnify, bright rim */
.welcome-bubble {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)) !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
  backdrop-filter: url(#liquidGlassBubble) saturate(180%) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(2px) saturate(180%) brightness(1.08) !important;
  color: #4a3320 !important;
  text-shadow: 0 1px 1px rgba(255,255,255,0.7);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.95),
    inset 1px 0 1px rgba(255,255,255,0.5),
    inset -1px 0 1px rgba(255,255,255,0.5),
    0 10px 26px -12px rgba(60,40,20,0.30) !important;
}
.welcome-bubble::after {  /* soft top specular highlight (glass sheen) */
  content: ""; position: absolute; left: 8%; right: 8%; top: 3px; height: 42%;
  border-radius: 100px; background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  opacity: 0.7; pointer-events: none;
}
.welcome-bubble b { color: #2c1c0e !important; font-weight: 800; }
.edit-caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 1.5px; background: currentColor; vertical-align: -0.12em; opacity: 0.8; animation: editblink 0.85s step-end infinite; }
@keyframes editblink { 50% { opacity: 0; } }

/* analysing scan sweep line */
@keyframes scansweep { 0% { top: 4%; } 100% { top: 92%; } }
.scansweep > div { animation: scansweep 1.7s cubic-bezier(0.45,0,0.55,1) infinite alternate; }
@media (prefers-reduced-motion: reduce) { .scansweep > div { animation: none; top: 48%; } }

/* screen transition layers */
.scene { position: absolute; inset: 0; will-change: transform, opacity, filter; }

/* misc */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}.gap14{gap:14px}.gap16{gap:16px}.gap20{gap:20px}
.grow { flex: 1; }
.center { display: grid; place-items: center; }
.px { padding-left: 24px; padding-right: 24px; }
.spark { color: var(--marigold); }

/* link */
.uline { text-decoration: underline; text-underline-offset: 3px; color: var(--cobalt); }

/* back btn */
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(22,21,15,0.04); border: 1px solid var(--hairline);
  transition: transform 0.16s var(--spring-soft);
}
.iconbtn:active { transform: scale(0.92); }
.world.dark .iconbtn { background: rgba(255,255,255,0.07); border-color: var(--d-line); }

/* ===========================================================
   EMBEDDED / FULLSCREEN MODE (real phone or installed PWA)
   no fake bezel, no fake status bar — fills the device screen
   =========================================================== */
html.embedded, html.embedded body { background: #FAF3E6; overflow: hidden; }
html.embedded #stage { position: fixed; inset: 0; background: #FAF3E6; display: block; }
html.embedded #stage::before { display: none; }
html.embedded #scaler {
  position: fixed; inset: 0; top: 0; left: 0;
  transform: none !important; width: 100vw; height: 100vh; height: 100dvh;
}
html.embedded .phone {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 0; padding: 0; background: transparent; box-shadow: none;
}
html.embedded .screen { position: absolute; inset: 0; border-radius: 0; }
html.embedded .island { display: none; }
html.embedded .statusbar { display: none; }      /* use the real OS status bar */
html.embedded .home-ind { display: none; }        /* use the real OS home indicator */
/* reserve room for the real status bar / home indicator via safe-area insets */
/* iOS standalone with status-bar-style "default" ALREADY lays the webview out
   below the opaque OS status bar — so re-reserving a full safe-area band here
   stacks into a big empty frame at the top (the ~110px gap). In embedded mode we
   only need a hair of breathing room. !important overrides each screen's inline
   paddingTop (54–58, meant for the FAKE bezel status bar) in one place. */
html.embedded .body:not(.no-status) { padding-top: 14px !important; }
html.embedded .body.no-status { padding-top: 0 !important; }

/* ---------- premium animated noise-gradient (subtle, barely-there) ---------- */
.world.light::before {
  content: ""; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 38% at 18% 6%, rgba(255,176,108,0.12), transparent 62%),
    radial-gradient(46% 34% at 86% 2%, rgba(255,150,150,0.09), transparent 62%),
    radial-gradient(60% 46% at 50% 104%, rgba(140,140,235,0.06), transparent 60%);
  will-change: transform; animation: bgdrift 26s ease-in-out infinite alternate;
}
@keyframes bgdrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-2.2%,0) scale(1.06); }
}
/* living grain — drifts very slowly so the surface feels alive, not static */
@keyframes graindrift {
  0% { transform: translate3d(0,0,0); } 25% { transform: translate3d(-2%,1%,0); }
  50% { transform: translate3d(1%,-2%,0); } 75% { transform: translate3d(-1%,2%,0); }
  100% { transform: translate3d(0,0,0); }
}
.grain { will-change: transform; animation: graindrift 7s steps(10) infinite; }
@media (prefers-reduced-motion: reduce) {
  .world.light::before, .grain { animation: none; }
}

/* streak reward */
@keyframes confFall { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(540deg); opacity: 0.9; } }
@keyframes flamePulse { 0%,100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes emblemFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.streak-emblem { animation: emblemFloat 3.4s ease-in-out infinite; }
@keyframes splashIn { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }

/* ritual gate: liquid-glass blob organic edge + bubble burst */
@keyframes blobMorph {
  0%,100% { border-radius: 49% 51% 52% 48% / 53% 47% 53% 47%; }
  25%     { border-radius: 53% 47% 48% 52% / 48% 53% 47% 52%; }
  50%     { border-radius: 47% 53% 53% 47% / 51% 49% 52% 48%; }
  75%     { border-radius: 51% 49% 47% 53% / 49% 52% 48% 51%; }
}
.blob-edge { animation: blobMorph 4.5s ease-in-out infinite; }
@keyframes bubbleFloat {
  0%   { transform: translate(0,0) scale(0.4); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(var(--bs)); opacity: 0; }
}

/* home "good morning" animated mesh aura (Dot vibe) */
.home-aura { position: absolute; top: 0; left: 0; right: 0; height: 46%; z-index: 0; pointer-events: none; overflow: hidden; }
.home-aura::before {
  content: ""; position: absolute; inset: -30% -10% 0 -10%;
  background:
    radial-gradient(42% 50% at 20% 8%, rgba(255,150,90,0.34), transparent 62%),
    radial-gradient(40% 46% at 84% 0%, rgba(255,120,150,0.28), transparent 62%),
    radial-gradient(50% 55% at 55% 30%, rgba(245,180,90,0.22), transparent 64%);
  filter: blur(14px); will-change: transform; animation: auraDrift 16s ease-in-out infinite alternate;
}
@keyframes auraDrift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%,3%,0) scale(1.1); }
}
/* gentle 3D parallax float (Dot stacked-card vibe) */
.floaty { animation: floaty 6.5s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes floaty {
  0%,100% { transform: perspective(900px) rotateX(0deg) translateY(0); }
  50% { transform: perspective(900px) rotateX(1.4deg) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .home-aura::before, .floaty { animation: none; } }

/* animated orange gradient for the "today, just this" card */
.today-anim { background: #F4571B !important; }
.today-anim::before { content: ""; position: absolute; inset: -60%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 30%, #FFB152, transparent 70%),
    radial-gradient(closest-side at 72% 35%, #EA3F12, transparent 65%),
    radial-gradient(closest-side at 45% 78%, #FF7A2E, transparent 70%),
    radial-gradient(closest-side at 80% 80%, #FF5A12, transparent 68%);
  filter: blur(14px); animation: blender 11s ease-in-out infinite; }
@keyframes blender {
  0%   { transform: rotate(0deg) scale(1.25); }
  25%  { transform: rotate(140deg) scale(1.5); }
  50%  { transform: rotate(190deg) scale(1.2); }
  75%  { transform: rotate(310deg) scale(1.55); }
  100% { transform: rotate(360deg) scale(1.25); }
}
@keyframes todayShift { 0% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } 100% { background-position: 0% 30%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetUp { from { transform: translateY(38px); opacity: 0; } to { transform: none; opacity: 1; } }
html.still .sheet-up { animation: none !important; transform: none !important; opacity: 1 !important; }

/* memories: blur → focus (skin coming clear). base = blurred; .in-focus clears it */
.mem-img { filter: blur(15px) saturate(1.1); transform: scale(1.06); transition: filter 1.1s var(--ease-out), transform 1.1s var(--ease-out); will-change: filter, transform; }
.mem-img.in-focus { filter: blur(0px) saturate(1); transform: scale(1); }
html.still .mem-img { filter: none !important; transform: none !important; }
@keyframes memRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.mem-rise { animation: memRise .6s var(--ease-out) both; }
html.still .mem-rise { animation: none !important; opacity: 1 !important; transform: none !important; }
/* soft headline blur-in */
@keyframes blurIn { from { filter: blur(14px); opacity: 0; } to { filter: blur(0); opacity: 1; } }
.blur-in { animation: blurIn 1.1s var(--ease-out) both; }
html.still .blur-in { animation: none !important; filter: none !important; opacity: 1 !important; }

/* ===== memories hero: per-line blur→focus that settles soft(top)→sharp(bottom) + glow ===== */
@keyframes memFocus { from { filter: blur(20px); opacity: 0; transform: translateY(10px); } to { filter: var(--rest, blur(0)); opacity: 1; transform: none; } }
.mem-line { display: block; animation: memFocus 1.5s var(--ease-out) both; will-change: filter, transform; }
html.still .mem-line { animation: none !important; filter: var(--rest, none) !important; opacity: 1 !important; transform: none !important; }
/* frosted glass surfaces (translucent over the blurred floral bg) */
.mem-frost { background: rgba(255,255,255,0.52); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid rgba(255,255,255,0.62); }
.mem-pill { background: rgba(255,255,255,0.24); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,0.46); }
.mem-tile { background: rgba(255,255,255,0.30); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255,255,255,0.4); }

/* ===== dreamy animated "blender" backdrop (full-screen, behind frosted content) + visible noise ===== */
.dream-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #ECE7F7; }
.dream-bg::before {
  content: ""; position: absolute; inset: -35%;
  background:
    radial-gradient(34% 34% at 26% 26%, #9DAEEC 0%, transparent 60%),
    radial-gradient(32% 32% at 74% 30%, #E7A6CE 0%, transparent 60%),
    radial-gradient(40% 40% at 52% 74%, #C4A2E6 0%, transparent 62%),
    radial-gradient(30% 30% at 84% 76%, #F6C8AC 0%, transparent 60%),
    radial-gradient(30% 30% at 14% 72%, #A6DCCE 0%, transparent 60%);
  filter: blur(32px) saturate(1.4);
  animation: dreamBlend 18s ease-in-out infinite;
}
.dream-bg::after {
  content: ""; position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px; opacity: 0.45; mix-blend-mode: soft-light;
  animation: iriNoise 0.55s steps(5) infinite;
}
@keyframes dreamBlend {
  0%   { transform: translate(-3%,-2%) rotate(0deg) scale(1.18); }
  33%  { transform: translate(5%,3%)  rotate(22deg) scale(1.34); }
  66%  { transform: translate(-2%,5%) rotate(-15deg) scale(1.24); }
  100% { transform: translate(-3%,-2%) rotate(0deg) scale(1.18); }
}
html.still .dream-bg::before, html.still .dream-bg::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .dream-bg::before, .dream-bg::after { animation: none !important; } }

/* ===== animated iridescent "blender" gradient + visible boiling noise =====
   apply .iri-blend (+ keep the card's dark base bg). drifting color blobs sit behind
   all content (negative-z inside an isolated stacking context), so no markup changes. */
.iri-blend { position: relative; isolation: isolate; }
.iri-blend::before {
  content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 42% at 28% 30%, #5e4080 0%, transparent 62%),
    radial-gradient(38% 38% at 72% 38%, #6c4a92 0%, transparent 62%),
    radial-gradient(44% 44% at 50% 76%, #3a2b52 0%, transparent 64%),
    radial-gradient(34% 34% at 82% 80%, #7a5aa6 0%, transparent 60%);
  filter: blur(20px) saturate(1.05);
  animation: iriBlend 14s ease-in-out infinite;
}
.iri-blend::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px; opacity: 0.5; mix-blend-mode: overlay;
  animation: iriNoise 0.5s steps(5) infinite;
}
@keyframes iriBlend {
  0%   { transform: translate(-5%,-3%) rotate(0deg) scale(1.35);  filter: blur(20px) saturate(1.05); }
  33%  { transform: translate(7%,4%)  rotate(30deg) scale(1.5);  filter: blur(22px) saturate(1.1); }
  66%  { transform: translate(-4%,6%) rotate(-20deg) scale(1.42); filter: blur(21px) saturate(1.08); }
  100% { transform: translate(-5%,-3%) rotate(0deg) scale(1.35);  filter: blur(20px) saturate(1.05); }
}
@keyframes iriNoise {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-7%,5%); }
  40%  { transform: translate(6%,-6%); }
  60%  { transform: translate(-5%,7%); }
  80%  { transform: translate(7%,3%); }
  100% { transform: translate(0,0); }
}
html.still .iri-blend::before, html.still .iri-blend::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .iri-blend::before, .iri-blend::after { animation: none !important; } }

/* ===== liquid glass material (static) — same #liquidGlass refraction as the ritual bubble:
   translucent frost, backdrop displacement/zoom lens, specular bevel that catches light ===== */
.liquid-glass {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(152deg, rgba(255,255,255,0.46), rgba(255,255,255,0.24)) !important;
  -webkit-backdrop-filter: blur(6px) saturate(1.8) brightness(1.06) url(#liquidGlass);
  backdrop-filter: blur(6px) saturate(1.8) brightness(1.06) url(#liquidGlass);
  border: 1px solid rgba(255,255,255,0.7) !important;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,1),
    inset 0 -12px 20px rgba(255,255,255,0.32),
    inset 1.5px 0 2px rgba(255,255,255,0.6),
    inset -1.5px 0 2px rgba(255,255,255,0.5),
    inset 0 0 22px rgba(255,255,255,0.26),
    0 2px 3px rgba(255,255,255,0.5),
    0 16px 34px -16px rgba(60,45,30,0.42) !important;
}
/* top specular sweep — the glass catches an overhead light */
.liquid-glass::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 55%, transparent 100%);
}
/* a soft diagonal glare highlight (a sharper light streak) */
.liquid-glass::after {
  content: ""; position: absolute; top: -50%; left: -25%; width: 60%; height: 200%; z-index: -1; pointer-events: none;
  background: linear-gradient(72deg, transparent 38%, rgba(255,255,255,0.6) 50%, transparent 62%);
  transform: rotate(10deg);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid-glass { background: linear-gradient(152deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82)) !important; }
}
@media (prefers-reduced-motion: reduce) { .today-anim { animation: none; } }

/* floating collage cards on the shelf page — slow bob (composes with gyro parallax on the parent) */
@keyframes shelfBob { from { transform: translateY(-3px); } to { transform: translateY(4px); } }
.shelf-bob { animation: shelfBob 6.5s ease-in-out infinite alternate; }
html.still .shelf-bob { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .shelf-bob { animation: none !important; } }

/* ===== chat (iMessage) — theme-aware surfaces ===== */
.world.light.chat-world { background: #FFFFFF; }
.chat-frost { background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0) 100%); }
.chat-halo { background: radial-gradient(circle, rgba(255,255,255,0.9) 38%, rgba(255,255,255,0) 72%); }
.chat-name-pill { background: rgba(255,255,255,0.5); }
.chat-name { color: #000; }
.imsg-day { font-weight: 700; color: #3c3c43; }
.chat-field { background: #fff; border: 1px solid #C8C8CD; }
.chat-field input { color: #000; }
.chat-field input::placeholder { color: #8e8e93; }
.chat-tray-tile { background: rgba(0,0,0,0.035); }
.chat-composer-fade { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0.55) 72%, rgba(255,255,255,0.85) 100%); }
html[data-theme="dark"] .world.light.chat-world { background: #000; }
html[data-theme="dark"] .chat-frost { background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); }
html[data-theme="dark"] .chat-halo { background: radial-gradient(circle, rgba(0,0,0,0.82) 38%, rgba(0,0,0,0) 72%); }
html[data-theme="dark"] .chat-name-pill { background: rgba(22,22,24,0.55); }
html[data-theme="dark"] .chat-name { color: #fff; }
html[data-theme="dark"] .imsg-day { color: #98989F; }
html[data-theme="dark"] .chat-field { background: #1C1C1E; border-color: #3A3A3C; }
html[data-theme="dark"] .chat-field input { color: #fff; }
html[data-theme="dark"] .chat-field input::placeholder { color: #6e6e73; }
html[data-theme="dark"] .chat-tray-tile { background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .chat-composer-fade { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0.85) 100%); }
html[data-theme="dark"] .chat-world .liquid-glass { box-shadow: 0 6px 16px -6px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.25) !important; }

/* =========================================================== GLOW KITCHEN v2 — editorial gallery DNA (refs: gallery home · my lists · tomato pie · raspberry) */
.k2 { background: #F6F5F2; }
.k2 .grain { opacity: 0.18; }
/* big editorial heading — black, tight, gallery-style */
.k2-title { font-weight: 800; letter-spacing: -0.04em; font-size: 36px; line-height: 1.0; color: #111; }
.k2-meta { font-size: 12.5px; font-weight: 600; color: #98948C; }
/* black pill CTA (refs use black as the contrast element) */
.k2-cta { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 20px; border-radius: 100px;
  background: #141414; color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 18px 36px -16px rgba(10,10,10,0.55), inset 0 1px 0 rgba(255,255,255,0.12); }
/* tempting liquid-glass glow CTA — warm tangerine glass that gently breathes + a shine sweeps across,
   so it actively pulls the tap (used for "see my plan" on the strengths reveal). */
.k2-cta-glow { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 58px; border-radius: 100px; cursor: pointer;
  font-size: 16.5px; font-weight: 750; color: #fff; letter-spacing: -0.01em;
  background: linear-gradient(135deg, rgba(244,150,40,0.96), rgba(232,69,30,0.94));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 14px 36px -12px rgba(234,71,28,0.6), inset 0 1.5px 1px rgba(255,255,255,0.45), inset 0 -3px 8px rgba(120,20,0,0.28);
  animation: k2CtaBreathe 2.6s ease-in-out infinite; }
.k2-cta-glow .ic, .k2-cta-glow svg { position: relative; z-index: 1; }
@keyframes k2CtaBreathe {
  0%,100% { transform: scale(1); box-shadow: 0 14px 34px -14px rgba(234,71,28,0.55), inset 0 1.5px 1px rgba(255,255,255,0.45), inset 0 -3px 8px rgba(120,20,0,0.28); }
  50% { transform: scale(1.022); box-shadow: 0 20px 48px -10px rgba(234,71,28,0.8), inset 0 1.5px 1px rgba(255,255,255,0.55), inset 0 -3px 8px rgba(120,20,0,0.28); } }
.k2-cta-glow-shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  background-size: 250% 100%; animation: k2CtaShine 2.9s linear infinite; }
@keyframes k2CtaShine { 0% { background-position: 165% 0; } 100% { background-position: -65% 0; } }
html.still .k2-cta-glow, html.still .k2-cta-glow-shine { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .k2-cta-glow, .k2-cta-glow-shine { animation: none !important; } }
/* image-led card: art fills, content sits on a soft white fade (ref 1) */
.k2-card { position: relative; border-radius: 24px; overflow: hidden; background: #ECEAE6;
  box-shadow: 0 2px 4px rgba(20,18,14,0.05), 0 18px 40px -26px rgba(20,18,14,0.35); }
.k2-fadeup { position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, rgba(20,16,12,0) 0%, rgba(20,16,12,0.42) 62%, rgba(20,16,12,0.66) 100%); }
.k2-fadeup.light { background: linear-gradient(180deg, rgba(248,247,245,0) 0%, rgba(248,247,245,0.88) 58%, #F8F7F5 100%); }
/* die-cut sticker (my-lists product cutouts) */
.k2-sticker { display: grid; place-items: center; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 2px rgba(20,18,14,0.10), 0 8px 18px -8px rgba(20,18,14,0.30), inset 0 0 0 1px rgba(20,18,14,0.04); }
/* dark glass panel over imagery (tomato pie) — real lens */
.k2-glass-dark { background: linear-gradient(160deg, rgba(30,24,18,0.46), rgba(14,11,9,0.34)); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: url(#lqg-card) blur(8px) saturate(1.6); -webkit-backdrop-filter: url(#lqg-card) blur(8px) saturate(1.6);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.16); }
html.no-lens .k2-glass-dark { backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.k2-chip-dark { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 100px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 12.5px; font-weight: 650; }
/* category chips (what's-cooking / my-lists) — real dock liquid glass */
.k2-chip { padding: 10px 17px; border-radius: 100px; font-size: 13.5px; font-weight: 700; cursor: pointer; color: #3a372f;
  background: linear-gradient(160deg, rgba(255,255,255,0.55), rgba(255,255,255,0.22));
  border: 1px solid rgba(255,255,255,0.6);
  -webkit-backdrop-filter: url(#lqg-pill) blur(3px) saturate(1.8) brightness(1.05);
  backdrop-filter: url(#lqg-pill) blur(3px) saturate(1.8) brightness(1.05);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.9), inset 0 -1px 2px rgba(120,90,60,0.1), 0 8px 22px -12px rgba(80,50,25,0.3);
  transition: all .22s var(--spring-soft); }
.k2-chip.on { background: #141414; color: #fff; border-color: #141414; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 22px -10px rgba(20,18,14,0.5); }
html.no-lens .k2-chip { -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }

/* ===== floating glass capsule tab bar (ref 1) — real lens ===== */
.k2-dock-wrap { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 70; display: flex; justify-content: center; pointer-events: none; }
.k2-dock { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 100px;
  transform-origin: center center; transition: transform .18s cubic-bezier(.4, 0, .2, 1);
  background: linear-gradient(160deg, rgba(255,255,255,0.4), rgba(252,251,249,0.18));
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: url(#lqg-pill) blur(3px) saturate(1.9) brightness(1.06);
  -webkit-backdrop-filter: url(#lqg-pill) blur(3px) saturate(1.9) brightness(1.06);
  box-shadow: 0 14px 36px -12px rgba(20,18,14,0.35), inset 0 1.5px 1px rgba(255,255,255,0.9), inset 0 -1px 1px rgba(20,18,14,0.06); }
html.no-lens .k2-dock { backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); }
/* dock + chat companion travel as one group — this is what applyDockScale() scales on scroll */
.k2-dock-row { display: flex; align-items: center; gap: 7px; pointer-events: none; transform-origin: center center; transition: transform .18s cubic-bezier(.4, 0, .2, 1); }
.k2-dock-row > * { pointer-events: auto; }
/* chat-with-Théa companion — EXACT same liquid glass as the dock, her face set into the glass */
.k2-dock-chat { flex: none; position: relative; width: 56px; height: 56px; border-radius: 50%; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: grid; place-items: center; transform-origin: center center; transition: transform .18s cubic-bezier(.4, 0, .2, 1);
  background: linear-gradient(160deg, rgba(255,255,255,0.4), rgba(252,251,249,0.18));
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: url(#lqg-circle) blur(3px) saturate(1.9) brightness(1.06);
  -webkit-backdrop-filter: url(#lqg-circle) blur(3px) saturate(1.9) brightness(1.06);
  box-shadow: 0 14px 36px -12px rgba(20,18,14,0.35), inset 0 1.5px 1px rgba(255,255,255,0.9), inset 0 -1px 1px rgba(20,18,14,0.06); }
.k2-dock-chat:active { transform: scale(0.9); }
html.no-lens .k2-dock-chat { backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); }
.k2-dock-chat-face { width: 72%; height: 72%; border-radius: 50%; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), 0 2px 6px rgba(20,18,14,0.2); }
.k2-dock-chat-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; pointer-events: none; }
.k2-dock-chat-dot { position: absolute; right: 0; bottom: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--tangerine); display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(20,18,14,0.32), 0 0 0 2px rgba(255,255,255,0.94); }
html[data-theme="dark"] .k2-dock-chat { background: rgba(28,26,24,0.6); border-color: rgba(255,255,255,0.12); }

/* ===== progressive bottom veil — content melts into blur under the dock ===== */
.k2-veil, .k2-veil-2 { position: absolute; left: 0; right: 0; bottom: -16px; pointer-events: none; }
.k2-veil {
  height: 130px;
  backdrop-filter: blur(7px) saturate(1.15);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  -webkit-mask: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 45%, #000 78%);
  mask: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 45%, #000 78%);
}
.k2-veil-2 {
  height: 84px;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 86%);
  mask: linear-gradient(180deg, transparent 0%, #000 86%);
  background: linear-gradient(180deg, rgba(246,245,242,0) 0%, rgba(246,245,242,0.55) 100%);
}

/* ===== trending marquee — auto-scroll, seamless, finger pauses ===== */
.k2-marquee { width: max-content; animation: k2marq 46s linear infinite; will-change: transform; }
.k2-marquee:active { animation-play-state: paused; }
@keyframes k2marq { to { transform: translate3d(-50%, 0, 0); } }
html.still .k2-marquee { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .k2-marquee { animation: none !important; } }

/* ===== pulse line — the rotating stat ===== */
@keyframes pulseIn { 0% { opacity: 0; transform: translateY(10px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
.k2-pulse-item { animation: pulseIn .55s var(--spring) both; }
html.still .k2-pulse-item { animation: none !important; }

/* posters + polaroids: lean at rest, straighten + lift under the finger */
.k2-poster { transform: rotate(var(--rot, 0deg)); transition: transform .35s var(--spring-soft); }
.k2-poster:active { transform: rotate(0deg) scale(1.05) translateY(-4px); }
.k2-polaroid { transform: rotate(var(--rot, 0deg)); transition: transform .3s var(--spring-soft); }
.k2-polaroid:active { transform: rotate(0deg) scale(1.18); }

/* CTA shimmer — a light sweep crosses the black pill every few seconds */
.k2-cta-shimmer::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
  animation: ctaSweep 4.6s ease-in-out infinite; }
@keyframes ctaSweep { 0%, 64% { transform: translateX(0); } 88%, 100% { transform: translateX(420%); } }
html.still .k2-cta-shimmer::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .k2-cta-shimmer::after, .k2-pulse-item { animation: none !important; } }

/* ===== aurora drift — the living canvas ===== */
.k2-aurawrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.k2-aurab { position: absolute; border-radius: 50%; will-change: transform; }
.k2-aurab.a { width: 360px; height: 360px; left: -120px; top: 18%;
  background: radial-gradient(closest-side, rgba(255,209,150,0.5), transparent 70%);
  animation: auraA 38s ease-in-out infinite alternate; }
.k2-aurab.b { width: 300px; height: 300px; right: -100px; top: 42%;
  background: radial-gradient(closest-side, rgba(246,192,212,0.42), transparent 70%);
  animation: auraB 47s ease-in-out infinite alternate; }
.k2-aurab.c { width: 320px; height: 320px; left: 26%; bottom: -90px;
  background: radial-gradient(closest-side, rgba(214,200,245,0.4), transparent 70%);
  animation: auraC 56s ease-in-out infinite alternate; }
@keyframes auraA { to { transform: translate3d(70px, 60px, 0) scale(1.18); } }
@keyframes auraB { to { transform: translate3d(-60px, -70px, 0) scale(1.12); } }
@keyframes auraC { to { transform: translate3d(50px, -50px, 0) scale(1.22); } }
html.still .k2-aurab { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .k2-aurab { animation: none !important; } }

/* streak flame flicker */
@keyframes flameFlicker { 0%, 100% { transform: scale(1) rotate(-1.5deg); } 50% { transform: scale(1.14) rotate(2deg); } }
.flame-flicker { animation: flameFlicker 1.5s ease-in-out infinite; transform-origin: 50% 85%; }
html.still .flame-flicker { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .flame-flicker { animation: none !important; } }

/* settings: membership-card sheen + row press */
.k2-card-shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 28%; pointer-events: none; z-index: 1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
  animation: cardShine 6s ease-in-out 1s infinite; }
@keyframes cardShine { 0%, 60% { transform: translateX(0); } 90%, 100% { transform: translateX(620%); } }
.k2-srow:active { background: rgba(20,18,14,0.03); }
html.still .k2-card-shine { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .k2-card-shine { animation: none !important; } }

/* ===== kitchen bowl cards (Delicious-Salads DNA) ===== */
.k2-bowlcard { transition: transform .25s var(--spring-soft), box-shadow .25s ease; }
.k2-bowlcard:active { transform: scale(0.975); }

/* =========================================================== KITCHEN HUB v3 — Photos-app editorial cards */
.kh-h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; color: #141414; }
.kh-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 100px; font-size: 11.5px; font-weight: 750; white-space: nowrap;
  color: #fff; background: linear-gradient(160deg, rgba(42,34,28,0.34), rgba(20,16,12,0.26));
  -webkit-backdrop-filter: url(#lqg-pill) blur(6px) saturate(1.6) brightness(1.04); backdrop-filter: url(#lqg-pill) blur(6px) saturate(1.6) brightness(1.04);
  border: 1px solid rgba(255,255,255,0.3); box-shadow: inset 0 1px 1px rgba(255,255,255,0.32), 0 6px 16px -8px rgba(0,0,0,0.4); }
.kh-chip.sm { padding: 5px 10px; font-size: 11px; }
html.no-lens .kh-chip { -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); }
.kh-card, .kh-hero { transition: transform .3s var(--spring-soft), box-shadow .3s ease; }
.kh-card:active, .kh-hero:active { transform: scale(0.975); }
.kh-hero { box-shadow: 0 4px 8px rgba(20,18,14,0.06), 0 30px 56px -30px rgba(20,18,14,0.5); }
.kh-play { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; flex: none;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.9); transition: transform .16s var(--spring-soft); }
.kh-play:active { transform: scale(0.9); }
.kh-cap-t { font-size: 14px; font-weight: 750; letter-spacing: -0.015em; color: #141414; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-cap-m { font-size: 11.5px; font-weight: 600; color: #98948C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* hero ken-burns */
.kh-pan { animation: khPan 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes khPan { 0% { transform: scale(1.06) translate(-1.4%, -1%); } 100% { transform: scale(1.12) translate(1.4%, 1%); } }
html.still .kh-pan { animation: none !important; transform: scale(1.06) !important; }
@media (prefers-reduced-motion: reduce) { .kh-pan { animation: none !important; } }
/* staggered entrance */
@keyframes khRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kh-rise { animation: khRise .62s var(--spring) both; }
html.still .kh-rise { animation: none !important; opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .kh-rise { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* =========================================================== DIARY v3 — light editorial canvas, blush living aura */
.diary-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.diary-aura::before {
  content: ""; position: absolute; inset: -14% -22% 18% -22%;
  background:
    radial-gradient(42% 34% at 22% 8%, rgba(232,150,196,0.42), transparent 64%),
    radial-gradient(46% 38% at 86% 4%, rgba(182,150,236,0.34), transparent 66%),
    radial-gradient(60% 50% at 60% 36%, rgba(255,206,196,0.30), transparent 72%);
  filter: blur(6px); animation: youAura 26s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .diary-aura::before { animation: none; } }
/* slow caption blur-clear for memory captions */
.dy-stat { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 100px; font-size: 13px; font-weight: 750; color: #3A332C; }

/* ===== Cal-AI-style food scanner ===== */
.cam-btn { border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, rgba(60,56,52,0.42), rgba(20,18,16,0.32));
  -webkit-backdrop-filter: url(#lqg-circle) blur(6px) saturate(1.5); backdrop-filter: url(#lqg-circle) blur(6px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.18); box-shadow: inset 0 1px 1px rgba(255,255,255,0.22), 0 8px 20px -10px rgba(0,0,0,0.5); }
.cam-btn:active { transform: scale(0.92); }
html.no-lens .cam-btn { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cam-shutter { transition: transform .12s var(--spring-soft); }
.tap:active .cam-shutter { transform: scale(0.86); }
.cal-line { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.cal-line.on { animation: calLine .55s ease forwards; }
@keyframes calLine { 0% { stroke-dashoffset: 100; opacity: 0; } 14% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
.cal-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%) scale(0);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.32), 0 2px 8px rgba(0,0,0,0.5); }
.cal-dot.on { animation: calDot .42s var(--spring) .12s forwards; }
@keyframes calDot { to { transform: translate(-50%,-50%) scale(1); } }
.cal-pill { position: absolute; transform: translate(-50%,-50%) scale(0.5); opacity: 0; padding: 9px 15px; border-radius: 100px;
  background: #fff; color: #16150F; font-size: 15px; font-weight: 750; white-space: nowrap; box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5); }
.cal-pill.on { animation: calPill .5s var(--spring) forwards; }
@keyframes calPill { to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.cal-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2.4px solid rgba(255,255,255,0.3); border-top-color: #fff; animation: calSpin .8s linear infinite; flex: none; }
@keyframes calSpin { to { transform: rotate(360deg); } }
html.still .cal-spinner { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .cal-line.on, .cal-dot.on, .cal-pill.on { animation-duration: .01s; } .cal-spinner { animation: none !important; } }

/* curly hand-drawn arrow to the scanner (Cal-AI) — draws on, then gently bobs */
.k2-arrow { animation: arrowBob 2.1s ease-in-out 1.9s infinite; }
.k2-arrow-path { stroke-dasharray: 210; stroke-dashoffset: 210; animation: arrowDraw 1.4s cubic-bezier(0.4,0,0.2,1) .35s forwards; }
.k2-arrow-head { opacity: 0; animation: arrowHead .25s ease 1.65s forwards; }
@keyframes arrowDraw { to { stroke-dashoffset: 0; } }
@keyframes arrowHead { to { opacity: 1; } }
@keyframes arrowBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
html.still .k2-arrow, html.still .k2-arrow-path, html.still .k2-arrow-head { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .k2-arrow { animation: none !important; } }
.k2-addbtn { transition: transform .16s var(--spring-soft); box-shadow: 0 6px 14px -6px rgba(20,18,14,0.5); }
.k2-addbtn:active { transform: scale(0.86); }

/* ===== reels tab — special-sauce chrome ===== */
.reel-match-ring { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
@keyframes fuelPop { 0% { transform: scale(0.7); opacity: 0; } 55% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.reel-fuel-pop { animation: fuelPop .5s var(--spring-soft) both; }
html.still .reel-fuel-pop { animation: none !important; }

/* ===== the iOS 26 selection blob — raised glass lens with chromatic rim ===== */
.dock-blob {
  background: linear-gradient(165deg, rgba(255,255,255,0.5), rgba(255,255,255,0.08) 55%, rgba(255,255,255,0.22));
  backdrop-filter: url(#lqg-blob) saturate(2) brightness(1.1);
  -webkit-backdrop-filter: url(#lqg-blob) saturate(2) brightness(1.1);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.95),
    inset 0 -1px 1.5px rgba(255,255,255,0.35),
    0 6px 18px -6px rgba(20,18,14,0.3),
    0 1px 3px rgba(20,18,14,0.1);
  will-change: transform;
}
/* Safari / iOS WebKit (no-lens): nested backdrop-filter renders wrong, so the blob is a
   SELF-CONTAINED glossy glass lens — translucent white + bevel + specular, no backdrop sampling.
   Looks identical; all slide/stretch/snap physics are JS-driven and unaffected. */
html.no-lens .dock-blob {
  background: linear-gradient(165deg, rgba(255,255,255,0.66) 0%, rgba(255,255,255,0.26) 52%, rgba(255,255,255,0.5) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow:
    inset 0 2px 1.5px rgba(255,255,255,1),
    inset 0 -1.5px 2.5px rgba(255,255,255,0.55),
    inset 0 0 10px rgba(255,255,255,0.5),
    0 8px 20px -6px rgba(20,18,14,0.34),
    0 1px 3px rgba(20,18,14,0.12);
}
/* edge-only zoom blur — soft-faded outer ~14% ring; appears only while held */
.dock-blob-edgeblur {
  opacity: 0;
  backdrop-filter: blur(2.2px) saturate(1.2);
  -webkit-backdrop-filter: blur(2.2px) saturate(1.2);
  -webkit-mask: radial-gradient(closest-side, transparent 58%, rgba(0,0,0,0.12) 74%, rgba(0,0,0,0.38) 86%, rgba(0,0,0,0.7) 94%, #000 100%);
  mask: radial-gradient(closest-side, transparent 58%, rgba(0,0,0,0.12) 74%, rgba(0,0,0,0.38) 86%, rgba(0,0,0,0.7) 94%, #000 100%);
  will-change: transform, opacity;
}
html.no-lens .dock-blob-edgeblur { display: none; }
/* chromatic aberration — same soft-faded edge ring, additive fringe, press-gated */
.dock-blob-chroma {
  opacity: 0; mix-blend-mode: screen;
  backdrop-filter: url(#lqg-blob-fr);
  -webkit-backdrop-filter: url(#lqg-blob-fr);
  -webkit-mask: radial-gradient(closest-side, transparent 58%, rgba(0,0,0,0.12) 74%, rgba(0,0,0,0.38) 86%, rgba(0,0,0,0.7) 94%, #000 100%);
  mask: radial-gradient(closest-side, transparent 58%, rgba(0,0,0,0.12) 74%, rgba(0,0,0,0.38) 86%, rgba(0,0,0,0.7) 94%, #000 100%);
  will-change: transform, opacity;
}
/* faux chromatic rim for no-lens (Safari) — a thin iridescent ring at the edge, screen-blended,
   press-gated by the same JS opacity. Keeps the dispersion feel without an SVG backdrop filter. */
html.no-lens .dock-blob-chroma {
  display: block;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: conic-gradient(from 210deg, rgba(255,90,90,0.42), rgba(255,205,90,0.36), rgba(110,200,255,0.42), rgba(180,110,255,0.42), rgba(255,90,90,0.42));
}
.dock-blob::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  padding: 1.5px;
  background: linear-gradient(165deg, rgba(255,255,255,0.9), rgba(255,255,255,0.12) 45%, rgba(255,255,255,0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.85;
}
/* specular catch-light */
.dock-blob::after {
  content: ""; position: absolute; left: 16%; right: 34%; top: 7%; height: 30%; border-radius: 100px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
}
.k2-dock-it { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; position: relative;
  transition: background .25s var(--spring-soft), transform .18s var(--spring-soft); }
.k2-dock-it:active { transform: scale(0.92); }
.k2-dock-scan { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin: 0 2px;
  background: linear-gradient(165deg,#FF9356,#EA471C); box-shadow: 0 10px 22px -8px rgba(234,71,28,0.6), inset 0 1.5px 1px rgba(255,255,255,0.45);
  transition: transform .18s var(--spring-soft); }
.k2-dock-scan:active { transform: scale(0.9); }
html[data-theme="dark"] .k2-dock { background: rgba(28,26,24,0.6); border-color: rgba(255,255,255,0.12); }

/* macro-blur food field (no photos yet — art-directed depth-of-field, never flat) */
.k2-art { position: absolute; inset: 0; overflow: hidden; }
.k2-art .blob { position: absolute; border-radius: 50%; will-change: auto; }
.k2-art > .vig { position: absolute; inset: 0; }

/* install coach — quiet bouncing arrow toward Safari's share button */
@keyframes installArrow { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(7px); opacity: 1; } }
.install-arrow { animation: installArrow 1.4s ease-in-out infinite; }

/* =========================================================== GLOW LOOP — kitchen, meal read, pantry, reels, apple pay */
.no-sb { scrollbar-width: none; -ms-overflow-style: none; }
.no-sb::-webkit-scrollbar { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* blender */
@keyframes blendSpin { to { transform: rotate(360deg); } }
.blend-vortex { animation: blendSpin 1.6s linear infinite; transform-origin: 50% 50%; will-change: transform; }
@keyframes blendShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-1.6px) rotate(-0.4deg); } 75% { transform: translateX(1.6px) rotate(0.4deg); } }
.blend-shake { animation: blendShake 0.09s linear infinite; }
@keyframes blendBubble { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 25% { opacity: 0.9; } 100% { transform: translateY(-46px) scale(1); opacity: 0; } }
.blend-bubble { position: absolute; bottom: 6px; border-radius: 50%; background: rgba(255,255,255,0.75); animation: blendBubble 1s ease-out infinite; }

/* steam + flame + oven */
@keyframes steamRise { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 20% { opacity: 0.7; } 100% { transform: translateY(-46px) scaleX(1.6); opacity: 0; } }
.steam-wisp { position: absolute; top: 16px; width: 9px; height: 26px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(200,205,215,0.8)); filter: blur(3px);
  animation: steamRise 1.9s ease-out infinite; will-change: transform, opacity; }
@keyframes flameLick { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.45); } }
.flame-lick { animation: flameLick 0.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes ovenGlow { 0%,100% { opacity: 0.65; } 50% { opacity: 1; } }

/* simple step micro-anims */
@keyframes animWhisk { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(6deg); } }
.anim-whisk { animation: animWhisk 0.7s ease-in-out; }
@keyframes animChop { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-9px); } 50% { transform: translateY(1px) scaleY(0.94); } 70% { transform: translateY(-5px); } }
.anim-chop { animation: animChop 0.6s ease-in-out; }
@keyframes animDrop { 0% { transform: translateY(-14px) scale(0.94); } 55% { transform: translateY(2px) scale(1.03); } 100% { transform: translateY(0) scale(1); } }
.anim-drop { animation: animDrop 0.55s var(--spring-soft); }
.anim-idle { transition: transform .2s var(--spring-soft); }

/* meal read theatre — scan sweep over the plate photo */
@keyframes scanSweep { 0% { transform: translateY(-110%); } 100% { transform: translateY(240%); } }
.scan-sweep { position: absolute; left: -10%; right: -10%; top: 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,210,120,0.45) 50%, rgba(255,150,60,0.6) 52%, transparent);
  animation: scanSweep 1.6s ease-in-out infinite; will-change: transform; }

/* pantry scanner beam */
@keyframes pantryBeam { 0% { transform: translateY(-60px); } 100% { transform: translateY(110vh); } }
.pantry-beam { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(140,255,200,0.28) 50%, rgba(90,230,170,0.5) 53%, transparent);
  animation: pantryBeam 1.7s cubic-bezier(0.4,0,0.6,1) infinite; will-change: transform; }
@keyframes pantryWiggle { 0%,100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }
.pantry-wiggle { animation: pantryWiggle 0.28s ease-in-out infinite; }

/* reels — ken-burns pan, floating hero, sparkle drift, progress, heart burst */
@keyframes reelPan { 0% { transform: translate3d(-2.5%, -1.5%, 0) scale(1.04); } 100% { transform: translate3d(2.5%, 1.5%, 0) scale(1.1); } }
.reel-pan { animation: reelPan 7s ease-in-out infinite alternate; will-change: transform; }
html.still .reel-pan, html.still .reel-progress, html.still .reel-spark { animation: none !important; }
html.no-lens .lg { -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.05); backdrop-filter: blur(16px) saturate(180%) brightness(1.05); }
html.no-lens .lg-on-color { -webkit-backdrop-filter: blur(12px) saturate(150%) brightness(1.08); backdrop-filter: blur(12px) saturate(150%) brightness(1.08); }
@keyframes reelFloat { 0%,100% { transform: translate(-50%,-50%) rotate(-3deg); } 50% { transform: translate(-50%,-56%) rotate(3deg); } }
.reel-float { animation: reelFloat 4.2s ease-in-out infinite; }
@keyframes reelSpark { 0% { transform: translateY(20vh); opacity: 0; } 18% { opacity: 0.9; } 100% { transform: translateY(-58vh); opacity: 0; } }
.reel-spark { position: absolute; bottom: 18%; color: rgba(255,255,255,0.85); animation: reelSpark 5.5s linear infinite; will-change: transform, opacity; }
@keyframes reelProgress { from { width: 0; } to { width: 100%; } }
.reel-progress { animation: reelProgress 8s linear infinite; }
@keyframes likePop { 0% { transform: scale(0.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.like-pop { animation: likePop 0.45s var(--spring-soft); }
@keyframes heartBit { 0% { transform: translate(0,0) scale(0.4); opacity: 1; } 100% { transform: translate(var(--hx), var(--hy)) scale(1); opacity: 0; } }
.heart-bit { position: absolute; font-size: 13px; animation: heartBit 0.85s ease-out both; pointer-events: none; }

/* apple pay sheet */
@keyframes applePayUp { from { transform: translateY(104%); } to { transform: translateY(0); } }
@keyframes sidebtnPulse { 0%,100% { opacity: 0.55; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.08); } }
.sidebtn-pulse { animation: sidebtnPulse 0.9s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes faceidScan { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.faceid-scan { animation: faceidScan 0.8s ease-in-out infinite; }

/* hero state machine card breathing accent */
@keyframes heroPulse { 0%,100% { box-shadow: 0 20px 40px -18px rgba(234,71,28,0.5); } 50% { box-shadow: 0 22px 46px -16px rgba(234,71,28,0.66); } }

@media (prefers-reduced-motion: reduce) {
  .blend-vortex, .blend-shake, .blend-bubble, .steam-wisp, .flame-lick, .scan-sweep, .pantry-beam,
  .pantry-wiggle, .reel-pan, .reel-float, .reel-spark, .reel-progress, .sidebtn-pulse, .faceid-scan { animation: none !important; }
}
html.still .install-arrow { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .install-arrow { animation: none !important; } }

/* ===== wordless pinch coach (StackRoom) — two fingertip ghosts pinching inward ===== */
.pinch-hint { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.ph-wrap { position: relative; width: 150px; height: 150px; opacity: 0; animation: phIn 2.7s ease forwards; }
@keyframes phIn { 0% { opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.ph-dot { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  background: rgba(255,255,255,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.85), 0 0 0 1px rgba(255,255,255,0.5); }
.ph-d1 { animation: phD1 1.25s ease-in-out 2; }
.ph-d2 { animation: phD2 1.25s ease-in-out 2; }
@keyframes phD1 { 0%, 100% { transform: translate(-44px, 30px); } 55%, 72% { transform: translate(-13px, 9px); } }
@keyframes phD2 { 0%, 100% { transform: translate(44px, -30px); } 55%, 72% { transform: translate(13px, -9px); } }
.ph-cap { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
html.still .ph-wrap { animation: none !important; opacity: 1; }
html.still .ph-dot { animation: none !important; transform: translate(-13px, 9px); }
html.still .ph-d2 { transform: translate(13px, -9px); }
@media (prefers-reduced-motion: reduce) { .pinch-hint { display: none; } }

/* ===== THÉA OPS — desktop admin dashboard in the letterbox beside the phone ===== */
#admin-root { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.adm-panel { position: absolute; top: 16px; bottom: 16px; width: calc((100vw - 520px) / 2 - 30px); max-width: 430px;
  overflow-y: auto; pointer-events: auto; padding: 20px 20px 14px; border-radius: 22px;
  background: rgba(22,17,13,0.96); border: 1px solid rgba(255,255,255,0.07);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  scrollbar-width: none; }
.adm-panel::-webkit-scrollbar { display: none; }
.adm-left { left: 16px; }
.adm-right { right: 16px; }
.adm-btn { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  padding: 5px 10px; border-radius: 100px; color: #9C8A76; background: rgba(255,255,255,0.06); user-select: none; }
.adm-btn:hover { color: #EDE4D8; background: rgba(255,255,255,0.1); }
.adm-btn-big { display: block; text-align: center; font-size: 13px; letter-spacing: 0.02em; text-transform: none;
  padding: 13px; color: #F4A259; background: rgba(244,162,89,0.1); border: 1px solid rgba(244,162,89,0.25); }
.adm-btn-big:hover { background: rgba(244,162,89,0.16); color: #FFC890; }
@media (max-width: 1140px) { #admin-root { display: none; } }
html.embedded #admin-root { display: none; }

/* ===== StackRoom room bg =====
   perf: NO filter:blur (GPU killer on mobile Safari) — softness comes from the
   radial gradients themselves; drift is transform-only on composited layers. */
.stackroom-bg { position: absolute; inset: 0; background: #171110; overflow: hidden; contain: strict; }
.stackroom-bg .blob { position: absolute; border-radius: 50%; will-change: transform; }
.stackroom-bg .b1 { width: 460px; height: 460px; left: -32%; top: -14%; background: radial-gradient(circle, rgba(184,92,34,0.6) 0%, rgba(184,92,34,0.22) 42%, transparent 68%); animation: roomDrift1 16s ease-in-out infinite alternate; }
.stackroom-bg .b2 { width: 420px; height: 420px; right: -30%; top: 28%; background: radial-gradient(circle, rgba(122,66,88,0.55) 0%, rgba(122,66,88,0.2) 42%, transparent 68%); animation: roomDrift2 21s ease-in-out infinite alternate; }
.stackroom-bg .b3 { width: 470px; height: 470px; left: -14%; bottom: -24%; background: radial-gradient(circle, rgba(156,106,46,0.5) 0%, rgba(156,106,46,0.18) 42%, transparent 68%); animation: roomDrift3 19s ease-in-out infinite alternate; }
@keyframes roomDrift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.15); } }
@keyframes roomDrift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-50px,-30px) scale(0.95); } }
@keyframes roomDrift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,-50px) scale(1.12); } }
html.still .stackroom-bg .blob { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .stackroom-bg .blob { animation: none !important; } }
/* system chrome flips light while the dark room shows */
html.stack-room .statusbar { color: #fff; transition: color .35s ease; }

/* =========================================================== REAL LIQUID GLASS (lens refraction — filters injected by liquid_glass.js) */
.lqg, .lqg-dark {
  position: relative;
  backdrop-filter: url(#lqg-pill) blur(2px) saturate(1.85) brightness(1.06);
  -webkit-backdrop-filter: url(#lqg-pill) blur(2px) saturate(1.85) brightness(1.06);
}
.lqg {
  background: linear-gradient(160deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.92), inset 0 -1px 1.5px rgba(20,18,14,0.09), 0 12px 32px -14px rgba(20,18,14,0.35);
}
.lqg-dark {
  background: linear-gradient(160deg, rgba(34,28,22,0.38), rgba(14,12,10,0.26));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), inset 0 -1px 1.5px rgba(0,0,0,0.3), 0 12px 32px -14px rgba(0,0,0,0.5);
  color: #fff;
}
.lqg-circle, .lqg-circle-dark {
  position: relative;
  backdrop-filter: url(#lqg-circle) blur(2px) saturate(1.85) brightness(1.06);
  -webkit-backdrop-filter: url(#lqg-circle) blur(2px) saturate(1.85) brightness(1.06);
}
.lqg-circle { background: linear-gradient(160deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12)); border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.92), inset 0 -1px 1.5px rgba(20,18,14,0.09), 0 10px 26px -12px rgba(20,18,14,0.35); }
.lqg-circle-dark { background: linear-gradient(160deg, rgba(34,28,22,0.38), rgba(14,12,10,0.26)); border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 10px 26px -12px rgba(0,0,0,0.5); color: #fff; }
.lqg-card, .lqg-card-dark {
  position: relative;
  backdrop-filter: url(#lqg-card) blur(6px) saturate(1.7) brightness(1.04);
  -webkit-backdrop-filter: url(#lqg-card) blur(6px) saturate(1.7) brightness(1.04);
}
.lqg-card { background: linear-gradient(160deg, rgba(255,255,255,0.46), rgba(255,255,255,0.2)); border: 1px solid rgba(255,255,255,0.65);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.9), 0 24px 60px -26px rgba(20,18,14,0.45); }
.lqg-card-dark { background: linear-gradient(160deg, rgba(30,24,18,0.46), rgba(12,10,8,0.32)); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 24px 60px -28px rgba(0,0,0,0.6); color: #fff; }
.lqg::after, .lqg-dark::after, .lqg-circle::after, .lqg-circle-dark::after, .lqg-card::after, .lqg-card-dark::after {
  content: ""; position: absolute; left: 6%; right: 40%; top: 2px; height: 38%; border-radius: 100px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  opacity: 0.8;
}
.lqg-circle::after, .lqg-circle-dark::after { left: 14%; right: 30%; top: 6%; height: 32%; }
html.no-lens .lqg, html.no-lens .lqg-dark, html.no-lens .lqg-circle, html.no-lens .lqg-circle-dark,
html.no-lens .lqg-card, html.no-lens .lqg-card-dark {
  backdrop-filter: blur(18px) saturate(1.8) brightness(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.8) brightness(1.05);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lqg, .lqg-circle, .lqg-card { background: rgba(252,251,248,0.94); }
  .lqg-dark, .lqg-circle-dark, .lqg-card-dark { background: rgba(22,18,15,0.92); }
}

/* editorial type — the gallery DNA, globally */
.display, .h1 { font-weight: 800 !important; letter-spacing: -0.035em !important; }

/* universal liquid-glass chip (Safari-safe blur+bevel) for custom buttons */
.lg {
  -webkit-backdrop-filter: url(#lqg-pill) blur(3px) saturate(180%) brightness(1.05);
  backdrop-filter: url(#lqg-pill) blur(3px) saturate(180%) brightness(1.05);
  background: linear-gradient(160deg, rgba(255,255,255,0.55), rgba(255,255,255,0.22));
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.9), inset 0 -1px 2px rgba(120,90,60,0.1), 0 8px 22px -12px rgba(80,50,25,0.3);
}
.lg-on-color {  /* glass over a colored/orange surface — frosted white tint */
  -webkit-backdrop-filter: url(#lqg-pill) blur(4px) saturate(150%) brightness(1.08);
  backdrop-filter: url(#lqg-pill) blur(4px) saturate(150%) brightness(1.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.4), rgba(255,255,255,0.16));
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.7), 0 6px 16px -8px rgba(0,0,0,0.25);
}
.world.dark .lg {
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.22);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.3), 0 8px 22px -12px rgba(0,0,0,0.5);
}

/* animated noise grain layer for the orange "today" card (and any orange surface) */
.orange-noise { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.orange-noise::before {
  content: ""; position: absolute; inset: -30%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.22; mix-blend-mode: overlay; will-change: transform; animation: graindrift 9s steps(6) infinite;
}2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.10; mix-blend-mode: overlay; will-change: transform; animation: graindrift 12s steps(6) infinite;
}
.orange-noise::after {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(40% 50% at 80% 12%, rgba(255,214,120,0.55), transparent 60%),
              radial-gradient(50% 60% at 12% 100%, rgba(210,40,12,0.45), transparent 62%);
  will-change: transform; animation: bgdrift 18s ease-in-out infinite alternate;
}

/* ============================================================
   YOU / SETTINGS — liquid-glass redesign (refs: control center,
   glass profile card). One material, monochrome, composed.
   ============================================================ */
.you-world { background: #F3F0EA; }
/* living warm aura behind the glass so every panel has colour to refract */
.you-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.you-aura::before {
  content: ""; position: absolute; inset: -12% -22% 24% -22%;
  background:
    radial-gradient(44% 36% at 20% 10%, rgba(255,176,116,0.62), transparent 64%),
    radial-gradient(50% 40% at 88% 4%, rgba(255,142,104,0.46), transparent 66%),
    radial-gradient(64% 52% at 62% 36%, rgba(255,214,158,0.40), transparent 72%);
  filter: blur(4px);
  animation: youAura 24s ease-in-out infinite alternate;
}
@keyframes youAura { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(0,-2.5%,0) scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .you-aura::before { animation: none; } }

/* white pill CTA — the refs' "Contact me" / "Add Member" */
.wpill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  background: #fff; color: #1A1714; font-weight: 750; border-radius: 100px; border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.85), 0 14px 28px -14px rgba(40,24,12,0.55), 0 2px 6px -2px rgba(40,24,12,0.18);
  transition: transform .16s var(--spring-soft); }
.wpill:active { transform: scale(0.97); }

/* frosted chip + stat tile that sit ON the warm hero gradient */
.you-chip { background: rgba(255,255,255,0.24); border: 1px solid rgba(255,255,255,0.42); color: #fff;
  -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5); }
.you-stat { background: rgba(255,255,255,0.17); border: 1px solid rgba(255,255,255,0.34); border-radius: 18px;
  -webkit-backdrop-filter: blur(9px) saturate(1.3) brightness(1.05); backdrop-filter: blur(9px) saturate(1.3) brightness(1.05);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.45); }

/* control-center quick-toggle tile (ref 1) */
.cc-tile { position: relative; overflow: hidden; cursor: pointer; border-radius: 22px;
  transition: background .32s var(--spring-soft), box-shadow .32s var(--spring), transform .16s var(--spring-soft);
  background: linear-gradient(160deg, rgba(255,255,255,0.52), rgba(255,255,255,0.26));
  border: 1px solid rgba(255,255,255,0.72);
  -webkit-backdrop-filter: url(#lqg-card) blur(6px) saturate(1.6) brightness(1.04);
  backdrop-filter: url(#lqg-card) blur(6px) saturate(1.6) brightness(1.04);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.9), 0 14px 30px -20px rgba(40,24,12,0.42); }
.cc-tile:active { transform: scale(0.97); }
.cc-tile.on { background: linear-gradient(158deg, #FF9356 0%, #EA471C 100%); border-color: rgba(255,255,255,0.5);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.45), 0 16px 32px -16px rgba(234,71,28,0.6); }
html.no-lens .cc-tile { -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }

/* monochrome icon chip + glass list row */
.you-ic { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #6A6056;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.72); box-shadow: inset 0 1px 1px rgba(255,255,255,0.8); }
.you-row { display: flex; align-items: center; gap: 13px; padding: 14px 15px; cursor: pointer; transition: background .18s; }
.you-row:active { background: rgba(255,255,255,0.4); }
.you-divide { border-top: 1px solid rgba(40,24,12,0.07); }

/* =========================================================== RECIPE HUB v4 — drop · feed · browse · creators */
/* "NEW this week" drop badge */
.rh-new { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 100px; font-size: 10px; font-weight: 850;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: #fff; background: linear-gradient(150deg, #FF8A4C, #EA471C);
  box-shadow: 0 6px 14px -6px rgba(234,71,28,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
/* save heart over photo */
.rh-heart { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; cursor: pointer;
  transition: transform .16s var(--spring-soft); }
.rh-heart:active { transform: scale(0.84); }
/* creator follow pill */
.rh-follow { padding: 8px 18px; border-radius: 100px; font-size: 12.5px; font-weight: 750; cursor: pointer; white-space: nowrap;
  transition: all .2s var(--spring-soft); }
.rh-follow:active { transform: scale(0.96); }
/* search field */
.rh-search { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-radius: 100px;
  background: #fff; border: 1px solid rgba(20,18,14,0.07); box-shadow: 0 1px 2px rgba(20,18,14,0.04), 0 10px 24px -18px rgba(20,18,14,0.3); }
.rh-search input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14.5px; font-weight: 600; color: #141414; }
.rh-search input::placeholder { color: #B0AAA0; font-weight: 600; }
/* browse facet chip — outline, compact */
.rh-facet { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 100px; font-size: 12.5px; font-weight: 700;
  white-space: nowrap; cursor: pointer; color: #56524A; background: #fff; border: 1px solid rgba(20,18,14,0.1);
  transition: all .18s var(--spring-soft); }
.rh-facet:active { transform: scale(0.96); }
.rh-facet.on { background: #141414; color: #fff; border-color: #141414; box-shadow: 0 8px 18px -10px rgba(20,18,14,0.5); }
.rh-facet-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #B0AAA0; }
/* live feed card */
.rh-feed { display: flex; gap: 13px; padding: 11px; border-radius: 22px; background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,18,14,0.04), 0 14px 32px -24px rgba(20,18,14,0.34); transition: transform .2s var(--spring-soft); }
.rh-feed:active { transform: scale(0.985); }
/* drop countdown banner */
.rh-drop-band { position: relative; overflow: hidden; border-radius: 24px; padding: 18px 20px;
  background: linear-gradient(120deg, #20140E 0%, #3A2114 60%, #5A2E16 100%); color: #fff; }
/* creator profile cover */
.rh-cover { position: relative; overflow: hidden; }
.rh-pillchip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 100px; font-size: 11px; font-weight: 700;
  background: rgba(20,18,14,0.05); color: #56524A; }
.rh-statnum { font-size: 19px; font-weight: 850; letter-spacing: -0.02em; color: #141414; font-variant-numeric: tabular-nums; }
.rh-statlab { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: #98948C; }

/* ===== liquid-glass recipe card (Marline-ref): photo + title overlay + frosted footer ===== */
.rh-glasscard { position: relative; border-radius: 30px; overflow: hidden; background: #E7E4DF;
  box-shadow: 0 2px 8px rgba(20,18,14,0.07), 0 32px 60px -34px rgba(36,34,44,0.55);
  transition: transform .3s var(--spring-soft); }
.rh-glasscard:active { transform: scale(0.975); }
.rh-gc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* soft bottom blur — the photo melts into a frosted base (no hard bar) */
.rh-gc-blur { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; z-index: 1;
  -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 58%); mask: linear-gradient(180deg, transparent 0%, #000 58%); }
html.no-lens .rh-gc-blur { display: none; }
.rh-gc-scrim { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(16,12,8,0.34) 0%, rgba(16,12,8,0) 26%, rgba(16,12,8,0) 48%, rgba(16,12,8,0.5) 100%); }
.rh-gc-title { position: absolute; left: 14px; right: 14px; top: 44px; text-align: center; color: #fff; z-index: 2;
  font-family: "Fredoka", "Quicksand", -apple-system, sans-serif; font-weight: 600; letter-spacing: 0.005em; line-height: 1.08;
  text-shadow: 0 1px 14px rgba(8,6,4,0.42); text-wrap: balance; }
.rh-gc-sub { display: block; margin-top: 7px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.92);
  font-family: "Fredoka", "Quicksand", -apple-system, sans-serif; text-shadow: 0 1px 8px rgba(8,6,4,0.45); }
.rh-gc-fit { font-size: 10.5px; font-weight: 800; color: #fff; padding: 4px 9px; border-radius: 100px; white-space: nowrap;
  background: rgba(20,16,12,0.34); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); border: 1px solid rgba(255,255,255,0.25); }
/* meta sits directly on the photo (bottom-left) */
.rh-gc-metarow { position: absolute; left: 15px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 9px; max-width: 56%; }
.rh-gc-handle2 { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 8px rgba(8,6,4,0.55); }
.rh-gc-time2 { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.82); white-space: nowrap; text-shadow: 0 1px 8px rgba(8,6,4,0.55); }
/* floating white pill (bottom-right) */
.rh-gc-pill { position: absolute; right: 15px; bottom: 15px; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 100px;
  background: #fff; color: #141414; font-size: 14px; font-weight: 800; box-shadow: 0 12px 26px -10px rgba(20,18,14,0.5); transition: transform .14s var(--spring-soft); }
.rh-gc-pill:active { transform: scale(0.95); }
.rh-gc-pillc { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 20px -8px rgba(20,18,14,0.5); transition: transform .14s var(--spring-soft); }
.rh-gc-pillc:active { transform: scale(0.9); }

/* =========================================================== FACE / SKIN ANALYSIS (Photos-ref) */
.fa-title { font-size: 34px; font-weight: 850; letter-spacing: -0.04em; color: #141414; line-height: 1; }
.fa-h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: #141414; }
.fa-count { display: inline-flex; align-items: center; gap: 3px; font-size: 14.5px; font-weight: 650; color: #98948C; }
.fa-sort { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4)); border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 6px 16px -10px rgba(20,18,14,0.35), inset 0 1px 1px rgba(255,255,255,0.9); }
.fa-sort:active { transform: scale(0.92); }
/* big skin-read card */
.fa-bigcard { position: relative; flex: none; border-radius: 26px; overflow: hidden; background: #E7E4DF;
  box-shadow: 0 2px 6px rgba(20,18,14,0.06), 0 24px 50px -30px rgba(20,18,14,0.45); transition: transform .3s var(--spring-soft); }
.fa-bigcard:active { transform: scale(0.978); }
.fa-bigphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fa-pct { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: baseline; gap: 3px;
  padding: 6px 12px; border-radius: 100px; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
html.no-lens .fa-pct { background: rgba(255,255,255,0.85); }
.fa-pct b { font-size: 15px; font-weight: 850; color: #141414; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fa-pct span { font-size: 10.5px; font-weight: 700; color: #56524A; }
.fa-bigfoot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.fa-bigfoot.dark .fa-bf-date, .fa-bigfoot.dark .fa-bf-meta { color: #fff; text-shadow: 0 1px 8px rgba(8,6,4,0.5); }
.fa-bigfoot.dark .fa-bf-year { color: rgba(255,255,255,0.7); }
.fa-bf-thumb { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.5), 0 6px 14px -6px rgba(0,0,0,0.4); }
.fa-bf-date { font-size: 15px; font-weight: 800; color: #141414; letter-spacing: -0.02em; line-height: 1.15; }
.fa-bf-year { font-weight: 650; color: #98948C; }
.fa-bf-meta { font-size: 11.5px; font-weight: 650; color: #56524A; line-height: 1.25; }
/* recent square tile */
.fa-tile { position: relative; flex: none; border-radius: 18px; overflow: hidden; background: #E7E4DF;
  box-shadow: 0 2px 4px rgba(20,18,14,0.05), 0 14px 30px -22px rgba(20,18,14,0.4); transition: transform .25s var(--spring-soft); }
.fa-tile:active { transform: scale(0.97); }
.fa-tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* insight (food→skin) card — clean white, monochrome */
.fa-insight { position: relative; flex: none; border-radius: 22px; padding: 15px 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #fff; border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(20,18,14,0.04), 0 14px 32px -26px rgba(20,18,14,0.4); }
.fa-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 100px; align-self: flex-start; }
.fa-trend.up { color: #1F8A5B; background: rgba(31,138,91,0.12); }
.fa-trend.down { color: #C2410C; background: rgba(234,71,28,0.12); }
.fa-trend.flat { color: #7A746A; background: rgba(20,18,14,0.06); }

/* =========================================================== SKIN ROUTINE COACH (skincare-app ref) */
.sr-hello { font-size: 30px; font-weight: 820; letter-spacing: -0.03em; color: #141414; line-height: 1.04; }
.sr-hello b { color: var(--tangerine); font-weight: 820; }
.sr-sub { font-size: 14.5px; font-weight: 600; color: #98948C; margin-top: 7px; }
.sr-points { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 100px; background: #fff; border: 1px solid var(--hairline);
  font-size: 12.5px; font-weight: 750; color: #141414; box-shadow: 0 6px 16px -11px rgba(20,18,14,0.3); }
.sr-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg,#FFD9B0,#F2A65A); box-shadow: 0 0 0 2px #fff, 0 6px 14px -8px rgba(20,18,14,0.4); cursor: pointer; }
.sr-av:active { transform: scale(0.94); }
/* daily routine progress */
.sr-routine { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 22px; background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,18,14,0.04), 0 16px 38px -28px rgba(20,18,14,0.42); transition: transform .2s var(--spring-soft); }
.sr-routine:active { transform: scale(0.98); }
.sr-bar { position: relative; height: 7px; border-radius: 6px; background: rgba(20,18,14,0.08); overflow: hidden; }
.sr-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg,#F4B62B,#EA471C); transition: width .8s var(--spring); }
/* week day selector */
.sr-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 0 11px; border-radius: 19px; cursor: pointer;
  background: #fff; border: 1px solid var(--hairline); transition: all .22s var(--spring-soft); }
.sr-day .n { font-size: 18px; font-weight: 820; color: #141414; font-variant-numeric: tabular-nums; line-height: 1; }
.sr-day .l { font-size: 10px; font-weight: 750; color: #98948C; text-transform: uppercase; letter-spacing: 0.05em; }
.sr-day.on { background: #141414; border-color: #141414; box-shadow: 0 12px 24px -12px rgba(20,18,14,0.5); }
.sr-day.on .n { color: #fff; }
.sr-day.on .l { color: rgba(255,255,255,0.65); }
/* featured "for you" card */
.sr-feature { position: relative; height: 152px; border-radius: 24px; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 6px rgba(20,18,14,0.06), 0 22px 46px -28px rgba(20,18,14,0.45); transition: transform .2s var(--spring-soft); }
.sr-feature:active { transform: scale(0.985); }
.sr-feat-label { position: absolute; left: 14px; bottom: 14px; right: 70px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
html.no-lens .sr-feat-label { background: rgba(255,255,255,0.9); }
.sr-play { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 10px 24px -8px rgba(20,18,14,0.5); }
/* product / ingredient card */
.sr-prod { position: relative; border-radius: 22px; overflow: hidden; cursor: pointer; transition: transform .2s var(--spring-soft);
  box-shadow: 0 1px 2px rgba(20,18,14,0.04), 0 16px 34px -26px rgba(20,18,14,0.42); }
.sr-prod:active { transform: scale(0.97); }
.sr-prod-art { position: relative; display: grid; place-items: center; }
.sr-prod-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-step { font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #98948C; }
.sr-check { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #141414; box-shadow: 0 4px 10px -4px rgba(20,18,14,0.5); }
/* simple bottle silhouette (placeholder until product photos land) */
.sr-bottle { position: relative; width: 30px; height: 50px; border-radius: 9px 9px 11px 11px; background: rgba(20,18,14,0.18); }
.sr-bottle::before { content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 13px; height: 8px; border-radius: 3px 3px 1px 1px; background: rgba(20,18,14,0.18); }
.sr-when { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 100px; font-size: 12.5px; font-weight: 750; cursor: pointer;
  background: #fff; border: 1px solid var(--hairline); color: #56524A; transition: all .18s var(--spring-soft); }
.sr-when.on { background: #141414; color: #fff; border-color: #141414; }

/* ===== food → skin → skincare bridge cards (the THÉA thesis) ===== */
.fy-bridge { position: relative; flex: none; width: 270px; border-radius: 24px; padding: 16px; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 6px rgba(20,18,14,0.05), 0 18px 42px -28px rgba(20,18,14,0.45); transition: transform .2s var(--spring-soft); }
.fy-bridge:active { transform: scale(0.975); }
.fy-foodemoji { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; flex: none;
  background: rgba(255,255,255,0.65); box-shadow: inset 0 1px 1px rgba(255,255,255,0.85), 0 4px 10px -6px rgba(20,18,14,0.25); }
.fy-tag { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #9A8C7A; }
.fy-foodname { font-size: 17px; font-weight: 820; letter-spacing: -0.02em; color: #141414; text-transform: capitalize; line-height: 1.05; }
.fy-active { display: flex; align-items: center; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.fy-active .a { font-size: 13.5px; font-weight: 800; color: #141414; }
.fy-eq { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 100px; background: #141414; color: #fff; white-space: nowrap; }
.fy-does { display: block; font-size: 12px; font-weight: 600; color: #56524A; margin-top: 7px; line-height: 1.38; }
.fy-pair { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 11px; border-radius: 15px;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
html.no-lens .fy-pair { background: rgba(255,255,255,0.92); }
.fy-pair .pp { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: #141414; flex: none; }
.fy-pair .p { font-size: 12.5px; font-weight: 800; color: #141414; line-height: 1.1; }
.fy-pair .w { font-size: 10.5px; font-weight: 600; color: #7A746A; line-height: 1.2; }

/* =========================================================== DESPENSA (produce-browser ref) */
.dp-icbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; cursor: pointer; flex: none;
  box-shadow: 0 6px 16px -11px rgba(20,18,14,0.3), inset 0 0 0 1px var(--hairline); transition: transform .15s var(--spring-soft); }
.dp-icbtn:active { transform: scale(0.92); }
.dp-av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 6px 14px -8px rgba(20,18,14,0.4); }
.dp-title { font-size: 34px; font-weight: 850; letter-spacing: -0.04em; color: #141414; line-height: 1; text-transform: capitalize; }
.dp-sub { font-size: 14px; font-weight: 600; color: #A8A29A; margin-top: 7px; }
.dp-card { position: relative; background: #fff; border-radius: 26px; padding: 8px 8px 0; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 6px rgba(20,18,14,0.05), 0 22px 46px -30px rgba(20,18,14,0.4); transition: transform .25s var(--spring-soft); }
.dp-card:active { transform: scale(0.98); }
.dp-card-photo { position: relative; height: 152px; border-radius: 19px; overflow: hidden; }
.dp-card-name { display: block; text-align: center; font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; color: #141414; padding: 13px 8px 15px; }
.dp-fit { position: absolute; top: 9px; left: 9px; z-index: 2; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 100px; color: #141414;
  background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 10px -6px rgba(20,18,14,0.3); }
html.no-lens .dp-fit { background: rgba(255,255,255,0.94); }
/* light photo holder (ready for the AI ingredient photo Claude Code resolves by name) */
.dp-holder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #F4F2ED 0%, #E7E3DB 100%); }
.dp-holder-l { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #B7B1A6; font-family: ui-monospace, Menlo, monospace; text-align: center; padding: 0 10px; }
.dp-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* right category rail */
.dp-rail { position: absolute; right: 0; top: 4px; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 11px 9px; border-radius: 26px;
  background: #F0EEEA; box-shadow: inset 0 0 0 1px rgba(20,18,14,0.03); }
.dp-railic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; color: #B8B2A8; transition: all .2s var(--spring-soft); }
.dp-railic.on { background: #fff; color: var(--tangerine); box-shadow: 0 8px 18px -8px rgba(20,18,14,0.35); transform: scale(1.04); }
.dp-railexp { position: absolute; left: -13px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(20,18,14,0.4); cursor: pointer; z-index: 6; }
/* detail */
.dp-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #A8A29A; }
.dp-freq { display: flex; align-items: baseline; gap: 18px; }
.dp-freq .f { font-size: 15px; font-weight: 750; color: #C4BEB4; font-variant-numeric: tabular-nums; cursor: pointer; transition: all .2s var(--spring-soft); white-space: nowrap; }
.dp-freq .f.on { color: var(--tangerine); font-weight: 850; }
.dp-buy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 13px 20px; border-radius: 20px; cursor: pointer;
  background: linear-gradient(160deg, #F0573A, #D8341A); color: #fff; box-shadow: 0 16px 30px -12px rgba(216,52,26,0.55); transition: transform .15s var(--spring-soft); }
.dp-buy:active { transform: scale(0.95); }

/* ===========================================================
   ONBOARDING SWIPE DECK — NEOM "Pick your future" card-stack (copied 1:1):
   warm gradient bg · top chrome (avatar · serif heading · bell) · a stacked
   card whose DARK HEADER carries an icon + serif-caps title + the line, photo
   filling the lower half, a tiny footer label · a floating glass dock.
   =========================================================== */
.qd { position: absolute; inset: 0; overflow: hidden; background: #F1F1ED; }
.qd-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 82% at 50% 32%, #FBFBF9 0%, #F2F2EF 58%, #E9E9E4 100%); }

/* ---- top chrome ---- */
.qd-top { position: absolute; top: 58px; left: 20px; right: 20px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; }
.qd-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.7), 0 6px 16px -6px rgba(120,90,50,0.45); }
.qd-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.qd-heading { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.06;
  text-align: center; color: #2c2c2c; letter-spacing: 0.01em; font-weight: 500; }
.qd-bell { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(0,0,0,0.04); color: #4a4a4a; cursor: pointer; }

/* ---- stage: a single card sized to the reference ratio (~0.71 w/h), not full height ---- */
/* liquid-glass GLOW progress (deck) — a warm tea-glow fills a frosted capsule; the fill width eases
   fast→slow (set in JS), animates smoothly, with a living shine + a glowing liquid meniscus at the front */
.qd-prog { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: 208px; height: 9px; border-radius: 100px; overflow: hidden;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(20,18,14,0.06);
  box-shadow: inset 0 1px 1.5px rgba(255,255,255,0.7), inset 0 -1px 2px rgba(20,18,14,0.06), 0 2px 8px -4px rgba(20,18,14,0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qd-prog-fill { position: relative; height: 100%; min-width: 9px; border-radius: 100px; overflow: hidden;
  background: linear-gradient(90deg, #FBC85A 0%, #F4972B 55%, #EA5A1C 100%);
  box-shadow: 0 0 12px rgba(244,150,40,0.65), inset 0 1px 1px rgba(255,255,255,0.5);
  transition: width 0.65s cubic-bezier(0.22,1,0.36,1); }
.qd-prog-shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,0.6) 50%, transparent 72%);
  background-size: 260% 100%; animation: qdProgShine 2.6s linear infinite; }
@keyframes qdProgShine { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }
.qd-prog-meniscus { position: absolute; top: -1px; bottom: -1px; right: -2px; width: 7px; border-radius: 100px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,248,224,0.95), rgba(255,210,140,0.5) 60%, transparent 80%);
  box-shadow: 0 0 9px 2px rgba(255,225,160,0.85); animation: qdProgBob 1.8s ease-in-out infinite; }
@keyframes qdProgBob { 0%,100% { transform: scaleY(0.86); opacity: 0.85; } 50% { transform: scaleY(1.05); opacity: 1; } }
.qd-stage { position: absolute; left: 0; right: 0; top: 150px; height: 463px; z-index: 10; perspective: 1300px; }
.qd-stage.blurred { filter: blur(9px) brightness(1.05) saturate(1.05); transition: filter .5s var(--ease-out); }

/* ---- a single card — FULL PHOTO with a soft coloured glow halo (no dark gradients) ---- */
.qd-card { position: absolute; left: 32px; right: 32px; top: 0; bottom: 0;
  border-radius: 38px; transform-origin: 50% 0%; will-change: transform, opacity;
  -webkit-user-select: none; user-select: none; touch-action: none; }
.qd-card.active { cursor: pointer; }
/* ambient colour glow — a big, soft, downward-biased blurred copy of the photo (green from the lower half) */
.qd-glow { position: absolute; left: 5%; right: 5%; top: 24%; bottom: -13%; z-index: 0; border-radius: 60% 60% 46% 46% / 40%;
  background-size: cover; background-position: center bottom; filter: blur(46px) saturate(1.5) brightness(1.05);
  opacity: 0.5; animation: qdGlowBreath 5.5s ease-in-out infinite; }
@keyframes qdGlowBreath { 0%,100% { opacity: 0.46; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.05); } }
/* the clipped card body.
   `transform: translateZ(0)` (+ backface-visibility) pins this to its OWN GPU layer so the rounded
   `overflow:hidden` clip is rasterized into the layer. Without it, pressing the card (a scale on the
   parent `.qd-card`) momentarily broke the corners to square — the classic Safari/Chrome bug where a
   transformed ancestor re-clips a composited child (the auto-zooming photo/video) a frame late. */
.qd-card-inner { position: absolute; inset: 0; z-index: 1; border-radius: 38px; overflow: hidden;
  transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  /* iOS Safari belt-and-suspenders: translateZ alone did NOT hold the rounded clip when the parent
     `.qd-card` scales on press/like — Safari re-clips a composited child a frame late. clip-path is
     applied in the element's own space and travels WITH it under an ancestor transform, so the rounded
     corners never flash square. (Reported repeatedly on device — this is the fix that sticks on iOS.) */
  -webkit-clip-path: inset(0 round 38px); clip-path: inset(0 round 38px);
  background: #cdd6dc; box-shadow: 0 26px 50px -22px rgba(50,60,80,0.4), inset 0 1px 0 rgba(255,255,255,0.28); }
/* top legibility gradient — a gentle darkening so the white question reads on bright photos.
   This is now the SINGLE source of top-darkening (folded in from the old duplicate ::before that
   used to clip the rim to 30% height and paint a seam across the card). */
.qd-card-inner::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34%; z-index: 3; pointer-events: none;
  border-radius: 38px 38px 0 0;
  background: linear-gradient(to bottom, rgba(15,11,20,0.34), rgba(15,11,20,0)); }
/* liquid-glass rim — a thin specular edge that catches light like a glass panel (pure CSS, Safari-safe,
   no backdrop-filter so it never ghosts the photo). Bright at the top, soft all around. */
.qd-card-inner::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 38px;
  box-shadow:
    inset 0 1.8px 0.5px rgba(255,255,255,0.7),
    inset 0 0 0 1.1px rgba(255,255,255,0.24),
    inset 0 -1.4px 1px rgba(255,255,255,0.14),
    inset 2px 0 1px -1px rgba(255,255,255,0.2),
    inset -2px 0 1px -1px rgba(255,255,255,0.2); }
.qd-card-photo { position: absolute; inset: 0; z-index: 1; }
.qd-card-photo img, .qd-card-photo video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none; filter: saturate(0.96) brightness(1.03); }
.qd-card.active .qd-live { animation: qdLive 7s ease-in-out infinite; }
@keyframes qdLive {
  0%   { transform: scale(1.05) translate(0,0); }
  25%  { transform: scale(1.055) translate(-3px,2px); }
  50%  { transform: scale(1.052) translate(2px,-2px); }
  75%  { transform: scale(1.056) translate(-1px,3px); }
  100% { transform: scale(1.05) translate(0,0); }
}
.qd-card-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* the question — a big rounded white title at the top */
.qd-card-title { position: absolute; top: 40px; left: 22px; right: 22px; z-index: 4; text-align: center;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 500; font-size: 27px; line-height: 1.12;
  letter-spacing: 0; color: #fff; text-wrap: balance;
  text-shadow: 0 1px 4px rgba(20,30,50,0.42), 0 4px 22px rgba(15,22,40,0.34); }
/* bottom-left identity chip — plain white text over the photo (no pill), like the reference */
.qd-card-chip { position: absolute; left: 20px; bottom: 18px; z-index: 4; display: flex; align-items: center; gap: 11px; }
.qd-card-chip .av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.6); }
.qd-card-chip .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.qd-card-chip .h { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.12; letter-spacing: -0.01em;
  text-shadow: 0 1px 7px rgba(10,18,30,0.32); }
.qd-card-chip .s { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.82); line-height: 1.12; margin-top: 2px;
  text-shadow: 0 1px 7px rgba(10,18,30,0.32); }

/* a CLEAN gradient scrim at the bottom so the chip reads — NO frosted glass, NO duplicate-photo
   trick. That "liquid glass" footer rendered as an ugly blurry ghost over the photo on iOS Safari
   (Safari can't do url() in backdrop-filter, so it fell back to a blurred copy of the photo).
   A plain dark gradient is crisp + premium on every browser and matches the design reference. */
.qd-card-veil { position: absolute; left: 0; right: 0; top: 54%; bottom: 0; z-index: 3; pointer-events: none;
  border-radius: 0 0 38px 38px;
  background: linear-gradient(to top, rgba(15,11,20,0.52), rgba(15,11,20,0.16) 48%, rgba(15,11,20,0)); }
/* (top darkening moved to .qd-card-inner::after — a duplicate ::before here used to clip the
   liquid-glass rim to 30% height and draw a horizontal seam across the photo. Do not re-add.) */
/* keep the real liquid-glass refraction on the dock + home chips (just not on the exam card photo) */
html:not(.no-lens) .qd-dock { -webkit-backdrop-filter: blur(10px) saturate(1.4) url(#lqg-pill); backdrop-filter: blur(10px) saturate(1.4) url(#lqg-pill); }
html:not(.no-lens) .hl-chip { -webkit-backdrop-filter: blur(7px) saturate(1.3) url(#lqg-pill); backdrop-filter: blur(7px) saturate(1.3) url(#lqg-pill); }
html:not(.no-lens) .hl-name { -webkit-backdrop-filter: blur(9px) saturate(1.2) url(#lqg-card); backdrop-filter: blur(9px) saturate(1.2) url(#lqg-card); }
/* the old Safari duplicate-photo lens is gone for good */
.qd-card-lens { display: none !important; }

/* shimmer (Daniel's photos arrive from Code) — soft neutral, never a gray box */
.qd-shimmer { position: absolute; inset: 0; background: linear-gradient(135deg, #ccd5db 0%, #dde3e7 50%, #ccd5db 100%); }
.qd-shimmer::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  background-size: 220% 100%; animation: qdShimmer 1.7s linear infinite; }
@keyframes qdShimmer { from { background-position: 140% 0; } to { background-position: -60% 0; } }
/* k2-skel — warm photo skeleton: a gray-cream card with a white light sweeping across, behind every
   recipe photo until it loads (FoodArt fades the <img> in on load + hides this). Makes the app feel lighter. */
.k2-skel { position: absolute; inset: 0; z-index: 0; opacity: 1; transition: opacity .45s ease;
  background: linear-gradient(135deg, #e9dfce 0%, #f4ecdd 50%, #e9dfce 100%); }
.k2-skel::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,0.62) 50%, transparent 68%);
  background-size: 220% 100%; animation: qdShimmer 1.6s linear infinite; }
html.still .k2-skel::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .k2-skel::after { animation: none; } }
.qd-shimmer-note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 2; font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em; color: rgba(80,90,100,0.5); text-transform: lowercase; }

/* ===== LIKE — the kept moment: light bloom + dew halo + sparks ===== */
/* light bloom from the touch point */
.qd-bloom { position: absolute; z-index: 9; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,248,232,0.95) 0%, rgba(255,226,182,0.5) 36%, rgba(255,212,150,0) 70%);
  animation: qdBloom .64s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes qdBloom { 0% { opacity: 0; transform: scale(0.2); } 16% { opacity: 1; } 100% { opacity: 0; transform: scale(9.5); } }
/* expanding light halo rings */
.qd-halo { position: absolute; z-index: 10; top: 50%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.92); pointer-events: none;
  box-shadow: 0 0 24px rgba(255,236,200,0.6), inset 0 0 18px rgba(255,236,200,0.35);
  animation: qdHalo .82s cubic-bezier(.2,.7,.3,1) forwards; }
.qd-halo.two { animation-delay: .12s; border-color: rgba(247,219,151,0.85); }
@keyframes qdHalo { 0% { opacity: 0; transform: scale(0.3); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(2.5); } }
/* glowing dew-heart core */
.qd-core { position: absolute; z-index: 11; top: 50%; left: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  border-radius: 50%; display: grid; place-items: center; pointer-events: none; color: #fff;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,236,200,0.5) 50%, rgba(255,236,200,0) 72%);
  filter: drop-shadow(0 2px 12px rgba(255,210,150,0.75));
  animation: qdCore .86s cubic-bezier(.34,1.7,.5,1) forwards; }
@keyframes qdCore { 0% { opacity: 0; transform: scale(0.4); } 40% { opacity: 1; transform: scale(1.06); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
/* dew + sparks burst */
.qd-burst { position: absolute; top: 50%; left: 50%; z-index: 10; pointer-events: none; }
.qd-dot { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform, opacity;
  box-shadow: 0 0 7px rgba(255,250,240,0.7); animation: qdDot .74s cubic-bezier(.2,.7,.3,1) both; }
.qd-dot.star { border-radius: 0; background: currentColor !important;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); box-shadow: 0 0 10px currentColor; }
@keyframes qdDot {
  0% { opacity: 0; transform: translate(0,0) scale(0.4); }
  18% { opacity: 1; transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * 0.3)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }

/* ===== SKIP — released: the card dissolves up into cool light-motes ===== */
.qd-skipfx { position: absolute; inset: 0; z-index: 28; pointer-events: none; }
/* a soft light puff at the instant of release */
.qd-puff { position: absolute; top: 46%; left: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(236,245,251,0.85) 0%, rgba(220,235,245,0.4) 40%, transparent 70%);
  animation: qdPuff .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes qdPuff { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 0.9; } 100% { opacity: 0; transform: scale(2.7); } }
/* a soft vertical light streak rising where the card lifted */
.qd-streak { position: absolute; left: 50%; top: 14%; width: 64px; height: 64%; margin-left: -32px; border-radius: 50%;
  background: linear-gradient(to top, rgba(220,235,245,0) 0%, rgba(228,240,250,0.55) 42%, rgba(255,255,255,0) 100%);
  filter: blur(12px); animation: qdStreak .62s ease-out forwards; }
@keyframes qdStreak {
  0% { opacity: 0; transform: translateY(20px) scaleY(0.5); }
  28% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-110px) scaleY(1.35); } }
/* cool motes drifting up + fading */
.qd-mote { position: absolute; border-radius: 50%; will-change: transform, opacity;
  box-shadow: 0 0 8px rgba(228,240,250,0.85); animation: qdMote .76s cubic-bezier(.3,.5,.3,1) both; }
.qd-mote.star { border-radius: 0; background: currentColor !important;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); box-shadow: 0 0 9px currentColor; }
@keyframes qdMote {
  0% { opacity: 0; transform: translate(0,0) scale(0.4); }
  22% { opacity: 1; transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * 0.26)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.35); } }

/* a faint gesture hint, just above the dock */
.qd-hint { position: absolute; left: 0; right: 0; bottom: 86px; z-index: 30; display: flex;
  align-items: center; justify-content: center; gap: 10px; pointer-events: none;
  font-size: 12px; font-weight: 600; color: #80715a; transition: opacity .5s var(--ease-out); }
.qd-hint b { color: #4a4a4a; font-weight: 750; }
.qd-hint .sep { width: 3px; height: 3px; border-radius: 50%; background: #9a9a96; opacity: 0.6; }
/* soft early-exit pill — appears after ~5 keeps, sits in the safe gap above the dock */
.qd-earlyexit { position: absolute; left: 50%; bottom: 98px; z-index: 32; transform: translateX(-50%);
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 100px; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: #5a564e; cursor: pointer;
  background: rgba(255,255,255,0.74); border: 1px solid rgba(20,18,14,0.07);
  box-shadow: 0 10px 26px -16px rgba(20,18,14,0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: qdEarlyIn 0.4s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes qdEarlyIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
/* a faint "skip" affordance that fades in at the top while dragging up */
.qd-skiphint { position: absolute; left: 50%; top: 126px; transform: translateX(-50%); z-index: 35; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: #8a8a86;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* identity cluster: avatar + the kept-glow counter */
.qd-id { position: relative; display: flex; align-items: center; }
.qd-kept { position: absolute; left: 25px; bottom: -3px; display: flex; align-items: center; gap: 2px;
  height: 18px; padding: 0 6px 0 5px; border-radius: 100px; background: linear-gradient(180deg,#F2698F,#D4537E);
  color: #fff; font-size: 11px; font-weight: 800; will-change: transform;
  box-shadow: 0 4px 12px -3px rgba(212,83,126,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.qd-kept span { line-height: 1; }

/* ---- floating glass dock ---- */
.qd-dock { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 40;
  display: flex; gap: 6px; padding: 9px 12px; border-radius: 30px;
  background: rgba(255,255,255,0.62); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 30px -10px rgba(40,50,70,0.28), inset 0 0 0 1px rgba(255,255,255,0.6); }
.qd-dockic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; position: relative;
  color: #9a9a96; cursor: pointer; transition: background .2s, color .2s, transform .15s var(--spring-soft); }
.qd-dockic:active { transform: scale(0.9); }
.qd-dockic.on { background: rgba(0,0,0,0.06); color: #2b2f36; }
.qd-dock-badge { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 100px;
  background: linear-gradient(180deg,#F2698F,#D4537E); color: #fff; font-size: 9.5px; font-weight: 800; line-height: 15px; text-align: center;
  box-shadow: 0 2px 6px -1px rgba(212,83,126,0.6); }

/* ---- "your glow" tray (opens above the dock) ---- */
.qd-tray-scrim { position: absolute; inset: 0; z-index: 38; }
.qd-tray { position: absolute; left: 18px; right: 18px; bottom: 84px; z-index: 41; padding: 16px; border-radius: 24px;
  background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 18px 44px -16px rgba(40,50,70,0.34), inset 0 0 0 1px rgba(255,255,255,0.6);
  animation: qdTrayUp .34s cubic-bezier(.34,1.4,.5,1) both; }
@keyframes qdTrayUp { 0% { opacity: 0; transform: translateY(16px) scale(0.97); } 100% { opacity: 1; transform: none; } }
html:not(.no-lens) .qd-tray { -webkit-backdrop-filter: blur(16px) saturate(1.4) url(#lqg-card); backdrop-filter: blur(16px) saturate(1.4) url(#lqg-card); }
.qd-tray-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.qd-tray-h span:first-child { font-family: "Fredoka", system-ui, sans-serif; font-size: 16px; font-weight: 600; color: #2a2520; }
.qd-tray-n { font-size: 12px; font-weight: 600; color: #9b9082; }
.qd-tray-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.qd-tray-pick { position: relative; flex: none; width: 64px; height: 84px; border-radius: 13px; background-size: cover; background-position: center;
  box-shadow: 0 6px 14px -6px rgba(40,50,70,0.4), inset 0 0 0 1.5px rgba(255,255,255,0.5); overflow: hidden;
  animation: qdPickIn .4s cubic-bezier(.34,1.5,.5,1) both; }
.qd-tray-pick span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 5px; font-size: 9px; font-weight: 700; color: #fff;
  text-align: center; line-height: 1.1; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5)); }
@keyframes qdPickIn { 0% { opacity: 0; transform: scale(0.7); } 100% { opacity: 1; transform: none; } }
.qd-tray-empty { font-size: 14px; font-weight: 500; line-height: 1.4; color: #6a6258; text-align: center; padding: 10px 6px; }
/* progress panel */
.qd-prog-bar { height: 7px; border-radius: 100px; background: rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 14px; }
.qd-prog-bar span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg,#F2698F,#D4537E); transition: width .4s var(--ease-out); }
.qd-prog-stats { display: flex; gap: 8px; }
.qd-prog-stats div { flex: 1; text-align: center; background: rgba(255,255,255,0.5); border-radius: 13px; padding: 10px 4px; }
.qd-prog-stats b { display: block; font-family: "Fredoka", system-ui, sans-serif; font-size: 21px; font-weight: 600; color: #2a2520; }
.qd-prog-stats span { font-size: 11px; font-weight: 600; color: #9b9082; }
/* théa hint */
.qd-hintbox { display: flex; align-items: center; gap: 12px; }
.qd-hintbox-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #F4C0D1; }
.qd-hintbox-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.qd-hintbox-say { font-size: 14.5px; font-weight: 500; line-height: 1.34; color: #3a342e; }

/* Théa bonding interstitial */
.qd-veil { position: absolute; inset: 0; z-index: 60;
  background: radial-gradient(58% 46% at 50% 60%, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.62) 70%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; animation: qdVeil .5s var(--ease-out) both; }
@keyframes qdVeil { from { opacity: 0; } to { opacity: 1; } }
.qd-veil.out { animation: qdVeilOut .3s ease-in both; }
@keyframes qdVeilOut { from { opacity: 1; } to { opacity: 0; } }
.qd-moment { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 38px; }
.qd-moment::before { content: ""; position: absolute; z-index: -2; width: 330px; height: 330px; left: 50%; top: 36%;
  transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,238,214,0.72) 0%, rgba(244,192,209,0.26) 40%, transparent 70%); }
.qd-veil.out .qd-moment { animation: qdPopOut .3s ease-in both; }
@keyframes qdPop { 0% { opacity: 0; transform: scale(0.7) translateY(46px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes qdPopOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.85) translateY(10px); } }
/* Théa emerges from a light portal with a breathing aura */
.qd-portal { position: relative; width: 100px; height: 100px; display: grid; place-items: center;
  animation: qdPop .55s cubic-bezier(.34,1.56,.4,1) both; }
.qd-aura { position: absolute; inset: -16px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,236,210,0) 40%, rgba(244,192,209,0.55) 54%, rgba(255,236,210,0) 72%);
  animation: qdAura 2.3s ease-in-out infinite; }
@keyframes qdAura { 0%,100% { transform: scale(1); opacity: 0.65; } 50% { transform: scale(1.14); opacity: 1; } }
.qd-thea-av { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F4C0D1, 0 16px 40px -10px rgba(180,120,150,0.4); }
.qd-thea-av.big { width: 100px; height: 100px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F4C0D1, 0 18px 46px -10px rgba(180,120,150,0.48); }
.qd-thea-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
/* your kept picks fan out behind her head — she's reacting to YOUR taste */
.qd-fan { position: absolute; top: 10px; left: 50%; width: 0; height: 0; z-index: -1; }
.qd-fancard { position: absolute; width: 52px; height: 70px; left: -26px; top: -16px; border-radius: 11px;
  background-size: cover; background-position: center; transform-origin: 50% 150%;
  box-shadow: 0 12px 24px -8px rgba(50,60,80,0.55), 0 0 0 3px #fff; animation: qdFan .64s cubic-bezier(.34,1.56,.4,1) both; }
@keyframes qdFan {
  0% { opacity: 0; transform: rotate(0deg) translateY(26px) scale(0.3); }
  100% { opacity: 1; transform: rotate(var(--rot)) translateY(var(--ty)) scale(1); } }
.qd-thea-say { background: #fff; border-radius: 22px; padding: 14px 20px; max-width: 290px; text-align: center;
  font-size: 16px; font-weight: 500; line-height: 1.3; color: #993556;
  box-shadow: 0 10px 32px rgba(180,120,150,0.28); }
/* the line types in, word by word */
.qd-word { display: inline-block; animation: qdWord .42s cubic-bezier(.2,.8,.3,1) both; }
@keyframes qdWord { 0% { opacity: 0; transform: translateY(7px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
.qd-floater { position: absolute; z-index: 1; color: #F4C0D1; pointer-events: none; animation: qdFloat 2.5s ease-out both; }
.qd-floater.sparkle { color: #F7DB97; }
@keyframes qdFloat { 0% { opacity: 0; transform: translateY(20px) scale(0.6); } 30% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-104px) scale(1); } }

/* finale */
.qd-finale { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 34px; }
@media (prefers-reduced-motion: reduce) {
  .qd-card.active .qd-live { animation: none; }
  .qd-shimmer::after { animation: none; }
  .qd-glow { animation: none; }
}

/* ===========================================================
   HELLO — meeting Théa (warm living greeting before the deck)
   =========================================================== */
.hl { position: absolute; inset: 0; overflow: hidden; background: #F4EFE7; }
.hl-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(135% 72% at 50% -10%, #FFF6EC 0%, #F7EEE1 44%, #EFE4D3 100%); }
.hl-motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hl-mote { position: absolute; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(255,240,220,0.9) 0%, rgba(255,224,188,0) 70%);
  animation-name: hlDrift; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes hlDrift {
  0% { transform: translateY(30px) scale(0.7); opacity: 0; }
  18% { opacity: 0.7; } 80% { opacity: 0.45; }
  100% { transform: translateY(-180px) scale(1.15); opacity: 0; } }

.hl-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 96px 22px 0; }
.hl-head { display: flex; align-items: flex-end; gap: 13px; }
.hl-thea { position: relative; width: 72px; height: 72px; flex: none; animation: hlFloat 4.2s ease-in-out infinite; }
.hl-thea img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F4C0D1, 0 14px 34px -10px rgba(180,120,150,0.42); position: relative; z-index: 1; }
.hl-aura { position: absolute; inset: -11px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,236,210,0) 42%, rgba(244,192,209,0.5) 56%, transparent 73%);
  animation: qdAura 2.5s ease-in-out infinite; }
@keyframes hlFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hl-greet { background: #fff; border-radius: 24px; border-bottom-left-radius: 9px; padding: 15px 18px; flex: 1;
  box-shadow: 0 14px 38px -18px rgba(120,90,60,0.4), 0 1px 2px rgba(120,90,60,0.05);
  animation: hlReact .5s var(--ease-out) both; }
.hl-greet-main { font-family: "Fredoka", system-ui, sans-serif; font-size: 21px; font-weight: 600; line-height: 1.16; color: #2a2520; }
.hl-greet-sub { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.32; color: #9b9082; }

.hl-field { margin-top: 30px; }
.hl-name { width: 100%; border: none; outline: none; border-radius: 22px; padding: 20px 22px;
  background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: "Fredoka", system-ui, sans-serif; font-size: 23px; font-weight: 600; color: #2a2520;
  box-shadow: 0 12px 32px -18px rgba(120,90,60,0.34), inset 0 0 0 1px rgba(255,255,255,0.6);
  transition: box-shadow .3s var(--ease-out); }
.hl-name::placeholder { color: #c6bcac; font-weight: 500; }
.hl-name:focus { box-shadow: 0 16px 38px -16px rgba(234,71,28,0.34), inset 0 0 0 2px rgba(234,113,40,0.55); }
.hl-react { margin: 11px 6px 0; min-height: 18px; font-size: 14.5px; font-weight: 600; color: #C26A3A;
  transition: opacity .35s var(--ease-out); }

.hl-age { margin-top: 28px; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--spring-soft); }
.hl-age.show { opacity: 1; transform: none; pointer-events: auto; }
.hl-q { font-family: "Fredoka", system-ui, sans-serif; font-size: 19px; font-weight: 600; color: #2a2520; margin-bottom: 14px; }
.hl-ages { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-chip { padding: 13px 19px; border-radius: 100px; font-size: 15px; font-weight: 600; cursor: pointer; color: #2a2520;
  background: rgba(255,255,255,0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -10px rgba(120,90,60,0.32), inset 0 0 0 1px rgba(255,255,255,0.6);
  transition: transform .22s var(--spring-soft), box-shadow .22s var(--ease-out), background .22s, color .2s; }
.hl-chip:active { transform: scale(0.95); }
.hl-chip.on { background: linear-gradient(165deg, #FF8A4C, #EA471C); color: #fff; transform: translateY(-1px);
  box-shadow: 0 13px 28px -10px rgba(234,71,28,0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
.hl-edu { margin-top: 13px; min-height: 18px; font-size: 13.5px; line-height: 1.4; color: #9b9082; max-width: 305px;
  transition: opacity .35s var(--ease-out); }

.hl-cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 24px 24px 30px;
  background: linear-gradient(180deg, transparent, #EFE4D3 42%); }
@media (prefers-reduced-motion: reduce) {
  .hl-mote, .hl-thea, .hl-aura { animation: none; }
}

/* ===========================================================
   GALLERY — faithful recreation of the photo-library "Home" screen
   =========================================================== */
.gal { position: absolute; inset: 0; background: #F0EFF1; }
.gal-scroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 56px 0 140px; }
.gal-scroll::-webkit-scrollbar { display: none; }
.gal-row { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding: 0 24px; }
.gal-row::-webkit-scrollbar { display: none; }

/* header */
.gal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 16px; }
.gal-title { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; color: #1b1b1d; }
.gal-sort { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 3px 10px -4px rgba(0,0,0,0.18); border: 1px solid rgba(0,0,0,0.05); transition: transform .15s var(--spring-soft); }
.gal-sort:active { transform: scale(0.92); }

/* big cards */
.gal-bigrow { gap: 14px; padding: 0 24px 4px; }
.gal-big { position: relative; flex: none; width: 214px; height: 372px; border-radius: 22px; overflow: hidden; scroll-snap-align: start;
  background: #d8d6d4; box-shadow: 0 12px 30px -16px rgba(0,0,0,0.35); cursor: pointer;
  content-visibility: auto; contain-intrinsic-size: 214px 372px; }
.gal-big > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.gal-big-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.28) 42%, transparent); }
.gal-pct { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 11px; font-size: 13px; font-weight: 700; color: #1f6b3a;
  background: rgba(255,255,255,0.78); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.6); }
.gal-big-info { position: absolute; left: 15px; right: 15px; bottom: 14px; }
.gal-big-date { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.1; }
.gal-big-date span { color: rgba(255,255,255,0.6); font-weight: 600; }
.gal-big-meals { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 3px; font-weight: 500; }
.gal-meals { display: flex; gap: 5px; margin-top: 9px; }
.gal-meal { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32); }
.gal-meal img { width: 100%; height: 100%; object-fit: cover; }
.gal-meal.more { display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* section header */
.gal-sec { display: flex; align-items: center; justify-content: space-between; padding: 28px 24px 14px; }
.gal-sec-t { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; color: #1b1b1d; }
.gal-sec-more { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; color: #a3a3a7; cursor: pointer; }

/* recent thumbs */
.gal-recrow { gap: 13px; padding: 0 24px 2px; }
.gal-thumb { flex: none; width: 138px; }
.gal-thumb-img { width: 138px; height: 138px; border-radius: 17px; overflow: hidden; background: #d8d6d4; box-shadow: 0 8px 20px -14px rgba(0,0,0,0.3); }
.gal-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb-date { font-size: 15px; font-weight: 700; color: #1b1b1d; margin-top: 11px; letter-spacing: -0.01em; }
.gal-thumb-date span { color: #b0b0b4; font-weight: 600; }
.gal-thumb-size { font-size: 13px; color: #a3a3a7; margin-top: 2px; font-weight: 500; }

/* trips */
.gal-triprow { gap: 13px; padding: 0 24px 2px; }
.gal-trip { flex: none; width: 178px; height: 132px; border-radius: 20px; overflow: hidden; background: #d8d6d4; box-shadow: 0 10px 24px -16px rgba(0,0,0,0.32); }
.gal-trip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* kitchen complementary bits */
.gal-kicker { padding: 0 24px 4px; margin-top: -4px; font-size: 14px; font-weight: 500; color: #8a8a8e; }
.gal-feature { position: relative; margin: 2px 24px 0; height: 152px; border-radius: 22px; overflow: hidden; cursor: pointer;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.35); }
.gal-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-feature .gal-big-scrim { height: 72%; }
.gal-feature-tag { position: absolute; top: 14px; left: 16px; z-index: 4; font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,0.45); }
.gal-feature-info { position: absolute; left: 16px; right: 16px; bottom: 15px; z-index: 4; }
.gal-feature-name { font-size: 21px; font-weight: 750; color: #fff; letter-spacing: -0.015em; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.gal-feature-sub { font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 3px; font-weight: 500; text-shadow: 0 1px 5px rgba(0,0,0,0.4); }
.gal-pantrycta { display: flex; align-items: center; gap: 12px; margin: 16px 24px 0; padding: 14px 16px; border-radius: 18px; cursor: pointer;
  background: rgba(255,255,255,0.7); box-shadow: 0 8px 20px -14px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform .15s var(--spring-soft); }
.gal-pantrycta:active { transform: scale(0.98); }
.gal-pantrycta-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(0,0,0,0.04); }
.gal-pantrycta-t { font-size: 14.5px; font-weight: 700; color: #2a2a2c; }
.gal-pantrycta-s { font-size: 12.5px; color: #a3a3a7; font-weight: 500; }
.gal-foot { text-align: center; font-size: 13px; font-weight: 500; color: #a8a8ac; padding: 24px 40px 6px; line-height: 1.4; }

/* pantry ("tu despensa") — skincare ingredient shelves by category */
.gal-pantry-cat { display: flex; align-items: baseline; gap: 8px; padding: 18px 24px 10px; }
.gal-pantry-cat b { font-size: 15px; font-weight: 750; color: #2a2a2c; letter-spacing: -0.01em; }
.gal-pantry-cat span { font-size: 12.5px; color: #a8a8ac; font-weight: 600; }
.gal-shelf { gap: 11px; padding: 0 24px 2px; }
.gal-ing { flex: none; width: 104px; }
.gal-ing-img { position: relative; width: 104px; height: 104px; border-radius: 17px; overflow: hidden; box-shadow: 0 8px 18px -13px rgba(0,0,0,0.35); }
.gal-ing-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-ing-ph { width: 100%; height: 100%; display: grid; place-items: center; }
.gal-ing-ph svg { opacity: 0.55; }
.gal-ing-name { font-size: 12.5px; font-weight: 700; color: #34343a; margin-top: 9px; line-height: 1.18; letter-spacing: -0.01em; }
.gal-ing-sub { font-size: 11px; color: #a8a8ac; margin-top: 1px; font-weight: 500; }

/* paywall glow-up curve — draws on mount (pathLength=1 normalizes the length) */
.pw-curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pwDraw 1.25s cubic-bezier(.33,0,.2,1) .2s forwards; }
@keyframes pwDraw { to { stroke-dashoffset: 0; } }

/* ===== glow-profile reveal ("ok, i get you now") — identity chips bloom, verdict lands after ===== */
.gp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 326px; }
.gp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 100px;
  font-size: 13.5px; font-weight: 650; line-height: 1; white-space: nowrap;
  opacity: 0; animation: gpBloom .5s cubic-bezier(0.34,1.3,0.64,1) both; }
.gp-chip.more { background: transparent !important; border: none !important; color: var(--ink-3) !important; font-weight: 600; }
@keyframes gpBloom { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
.gp-verdict { opacity: 0; animation: gpRise .5s var(--ease-out) both; }
@keyframes gpRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gp-get { color: #D4537E; display: inline-block; animation: gpPulse .42s ease both; }
@keyframes gpPulse { 0% { transform: scale(1); } 45% { transform: scale(1.09); } 100% { transform: scale(1); } }
.gp-fancard { width: 50px !important; height: 66px !important; }
html.still .gp-chip, html.still .gp-verdict, html.still .gp-get, html.still .qd-fancard { animation: none !important; opacity: 1 !important; }
html.still .gp-chip, html.still .gp-verdict, html.still .gp-get { transform: none !important; }
html.still .qd-fancard { transform: rotate(var(--rot)) translateY(var(--ty)) scale(1) !important; }

/* CC-RIM-OVERRIDE */  /* collision-proof exam-card glass rim — do not let a Design ::before seam the photo */
.qd-card-inner::before { content:""; position:absolute !important; inset:0 !important; height:auto !important;
  z-index:3; pointer-events:none; border-radius:38px; background:none !important;
  box-shadow: inset 0 1.8px 0.5px rgba(255,255,255,0.7), inset 0 0 0 1.1px rgba(255,255,255,0.24),
    inset 0 -1.4px 1px rgba(255,255,255,0.14), inset 2px 0 1px -1px rgba(255,255,255,0.2),
    inset -2px 0 1px -1px rgba(255,255,255,0.2); }
.qd-card-inner::after { content:""; position:absolute !important; left:0; right:0; top:0; bottom:auto !important;
  height:34% !important; z-index:3; pointer-events:none; border-radius:38px 38px 0 0;
  background: linear-gradient(to bottom, rgba(15,11,20,0.34), rgba(15,11,20,0)) !important; }

/* CC-DOCK-TWEAK */  /* owner: bottom dock a little smaller + nudged up */
.k2-dock-wrap { bottom: 28px !important; }
.k2-dock { padding: 6px 8px !important; gap: 5px !important; }
.k2-dock-it { width: 43px !important; height: 43px !important; }
.k2-dock-scan { width: 49px !important; height: 49px !important; }
.dock-blob, .dock-blob-chroma, .dock-blob-edgeblur { width: 50px !important; height: 50px !important; }
.k2-dock-chat { width: 52px !important; height: 52px !important; }
.k2-dock-row { gap: 6px !important; }

/* CC-DESKTOP-PHONE */  /* owner: Théa renders as a phone even on desktop — cap width, center, never stretch */
@media (min-width: 480px) {
  html.embedded, html.embedded body { background: radial-gradient(120% 90% at 50% 0%, #E9E8E6, #DAD9D6) !important; }
  html.embedded #scaler { display: flex !important; align-items: stretch; justify-content: center; }
  html.embedded .phone { position: relative !important; inset: auto !important; left: auto !important; top: auto !important;
    width: 100% !important; max-width: 430px !important; height: 100% !important; max-height: 932px; margin: auto !important;
    border-radius: 0 !important; box-shadow: 0 24px 90px -20px rgba(20,18,14,0.4) !important; overflow: hidden; }
  html.embedded .screen { position: absolute !important; inset: 0 !important; border-radius: 0 !important; }
}
