/* Ramekin theme: the final layer. One green, cool sage-white neutrals, Bricolage Grotesque for titles and Hanken Grotesk for everything else,
   (the Instrument Serif italic accent was retired on 2026-11-16: one display face only). Everything earlier in style.css reads these tokens, so this file re-skins it. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* mulberry ramp, one hue (the brand colour; the old green is gone) */
  --g-50: #f7effa; --g-100: #eddcf3; --g-200: #dbbbe8; --g-300: #c28fd4; --g-400: #a463b9; --g-500: #8b3fa3; --g-600: #7a2e8e; --g-700: #62246f; --g-800: #4a1a55; --g-900: #31113a;
  --bg: #fffbf5; --card: #ffffff; --card-2: #faf4fd; --ink: #2b1236; --muted: #6f5a7c; --line: #eadff0; --line-soft: rgba(43, 18, 54, .07);
  --accent: var(--g-600); --accent-deep: var(--g-700); --accent-ink: #ffffff; --soft: var(--g-100); --ok: #2f9e66; --gold: #f0b429; --butter: #ffd166; --pop: #d42f5c; --pop-d: #9c1f42; --danger: #b3382b;
  --r: 22px; --r-sm: 14px; --r-lg: 28px;
  --sh1: 0 1px 2px rgba(49, 17, 58, .05), 0 6px 18px -8px rgba(49, 17, 58, .12);
  --sh2: 0 18px 40px -16px rgba(49, 17, 58, .38);
  --glass: rgba(255, 255, 255, .86); --glass-bg: rgba(255, 251, 245, .84);
  --serif: "Bricolage Grotesque", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --editorial: var(--serif);   /* 2026-11-16: one display face only (the italic serif is retired) */
  --ease: cubic-bezier(.22, .9, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root {
    --bg: #130a17; --card: #1d1224; --card-2: #170e1d; --ink: #f3e9f7; --muted: #a897b5; --line: #2e2038; --line-soft: rgba(255, 255, 255, .07);
    --accent: #d79cf0; --accent-deep: #ecc8fa; --accent-ink: #2a0f35; --soft: #2a1a35; --ok: #5fd09a; --gold: #ffd166; --butter: #ffd166; --pop: #d4315c; --pop-d: #8f1d3f; --danger: #ef8b7e;
    --sh1: 0 1px 2px rgba(0, 0, 0, .4); --sh2: 0 18px 40px -16px rgba(0, 0, 0, .75);
    --glass: rgba(29, 18, 36, .86); --glass-bg: rgba(19, 10, 23, .84);
    color-scheme: dark;
  }
}

html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; letter-spacing: 0; font-optical-sizing: auto; font-feature-settings: "ss01", "cv11"; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- type ---------- */
h1, h2, h3, .card .title, .book .bt, .tonight .tt, .sect > summary, .nutri b, .meta b, .week-nav b, .shelf-h, .day h3, .boot-title {
  font-family: var(--serif); font-variation-settings: "opsz" 48; text-wrap: balance;
}
h1 { font-size: var(--fs-32); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; margin: 6px 0 14px; }
h2 { font-size: var(--fs-24); font-weight: 640; letter-spacing: -.025em; margin: 30px 0 10px; }
h3 { font-weight: 620; letter-spacing: -.015em; }
label { font-size: var(--fs-12); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.muted { color: var(--muted); }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ing-group { font-family: var(--serif); font-style: normal; font-weight: 650; font-size: var(--fs-18); letter-spacing: 0; color: var(--accent-deep); margin: 22px 0 2px; }
.eyebrow, .aisle { font-family: var(--sans); font-weight: 700; font-size: var(--fs-12); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }

/* ---------- buttons: tonal by default, one solid green for the main action ---------- */
.btn { border: 0; background: var(--soft); color: var(--accent-deep); box-shadow: none; border-radius: 14px; padding: 12px 20px; font-weight: 650; letter-spacing: -.005em; transition: transform .16s var(--ease), background .16s, box-shadow .2s; }
.btn:active { transform: scale(.965); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent)); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:active { background: var(--accent-deep); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.btn.small { padding: 8px 14px; border-radius: 12px; font-size: var(--fs-14); }
.btn:disabled { opacity: .45; }
.icon-btn { color: var(--ink); border-radius: 14px; min-width: 42px; height: 42px; }
.icon-btn:active { background: var(--soft); }
.topbar .icon-btn { background: var(--glass); box-shadow: var(--sh1); border-radius: 50%; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.fab { border-radius: 20px; width: 58px; height: 58px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 30px -10px color-mix(in srgb, var(--accent) 80%, black); }

/* ---------- inputs ---------- */
input[type=text], input[type=url], input[type=email], input[type=number], input[type=password], input[type=search], textarea, select {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; font-size: var(--fs-16); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type=search] { background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2362756a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; padding-left: 42px; }
input[type=checkbox] { accent-color: var(--accent); }

/* ---------- chips, tags, segmented control ---------- */
.chips { gap: 8px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: var(--fs-14); padding: 7px 14px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag { background: var(--soft); color: var(--accent-deep); font-weight: 600; padding: 4px 11px; }
.seg { background: color-mix(in srgb, var(--ink) 6%, transparent); border: 0; box-shadow: none; padding: 4px; border-radius: 16px; }
.seg button { border-radius: 12px; font-weight: 650; color: var(--muted); padding: 9px 4px; transition: background .2s var(--ease), color .2s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 10px -4px rgba(40, 20, 44, .18); }

/* ---------- panels and rows ---------- */
.day, .ask, .nutri div, .meta { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: none; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pick { padding: 15px 4px; border-bottom: 1px solid var(--line-soft); }
.gitem, .ing, .logrow { border-bottom: 1px solid var(--line-soft); }
.avoid-warn { border-radius: var(--r-sm); }

/* ---------- recipe cards ---------- */
.grid { gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 24px; box-shadow: var(--sh1); }
.card .img { aspect-ratio: 1 / 1.02; }
.card .body { padding: 13px 15px 15px; }
.card .title { font-size: var(--fs-16); font-weight: 620; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 6px; }
.card .body > .muted{ display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: var(--fs-12); color: var(--muted); }
.card .body > .muted .ic { width: 1em; height: 1em; vertical-align: -.14em; margin-right: 2px; }
.card .fav { background: var(--glass); color: var(--gold); box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.ph .ic { opacity: .75; }

/* ---------- navigation ---------- */
nav.tabs { background: var(--glass); border: 1px solid var(--line-soft); border-radius: 30px; box-shadow: 0 18px 40px -14px rgba(40, 20, 44, .38); padding: 7px; gap: 2px; }
nav.tabs a { border-radius: 23px; font-weight: 650; font-size: var(--fs-12); letter-spacing: .01em; color: var(--muted); padding: 9px 0 7px; transition: background .25s var(--ease), color .2s; }
nav.tabs a.on { background: var(--soft); color: var(--accent-deep); }
nav.tabs a i .ic { width: 1.4rem; height: 1.4rem; transition: transform .25s var(--ease); }
nav.tabs a.on i .ic { transform: translateY(-1px) scale(1.06); }
.topbar { background: transparent; }

/* ---------- recipe page ---------- */
.hero { border-radius: 0 0 var(--r-lg) var(--r-lg); aspect-ratio: 4 / 4.2; background-color: var(--g-800); box-shadow: 0 24px 40px -28px rgba(40, 20, 44, .6); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 9, 19, .38) 0%, rgba(17, 9, 19, 0) 26%, rgba(17, 9, 19, 0) 46%, rgba(17, 9, 19, .78) 100%); pointer-events: none; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 76px 22px 20px; color: #fff; z-index: 1; }
.hero-copy h1 { color: #fff; margin: 0; font-size: var(--fs-32); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }


.hero-edit { right: 16px; bottom: 20px; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; z-index: 2; }
.hero-edit .ic { width: 1.15rem; height: 1.15rem; margin: 0; }
.meta { margin: 16px 0 14px; }
.meta > div { padding: 14px 8px; border-right-color: var(--line-soft); }
.meta b { font-size: var(--fs-18); font-weight: 640; letter-spacing: -.02em; }
.meta span { letter-spacing: .1em; font-weight: 600; }
.actions button { background: var(--card); border: 1px solid var(--line-soft); box-shadow: none; border-radius: 18px; padding: 14px 4px 11px; }
.actions button .ic { color: var(--accent); }
.actions button span { color: var(--ink); opacity: .75; font-weight: 650; }
.ing { padding: 13px 2px; align-items: center; gap: 12px; }
.ing::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1.7px solid var(--g-300); flex: none; transition: background .2s var(--ease), border-color .2s; }
.ing.done::before { background: var(--accent) var(--tick) center/14px no-repeat; border-color: var(--accent); }
.ing.done { opacity: .5; text-decoration: none; }
.ing.done .grow { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.ing .q { color: var(--accent-deep); font-weight: 650; min-width: 3.4em; }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.step { padding: 16px 0; gap: 14px; }
.step .n { width: 32px; height: 32px; font-family: var(--serif); font-weight: 650; font-size: var(--fs-16); background: var(--soft); color: var(--accent-deep); border: 0; }
.step > div:last-child { font-size: var(--fs-16); line-height: 1.62; }
.sect { border-top: 1px solid var(--line-soft); }
.sect > summary { font-size: var(--fs-18); font-weight: 640; letter-spacing: -.02em; }
.timer { background: var(--soft); color: var(--accent-deep); font-weight: 650; }
.stars button { color: var(--gold); }

/* ---------- home ---------- */


.greet { font-family: var(--serif); font-style: normal; font-weight: 650; font-size: var(--fs-18); line-height: 1.1; color: var(--muted); margin-bottom: 2px; }

.avatar { width: 42px; height: 42px; border-radius: 50%; border: 0; background: linear-gradient(160deg, var(--g-500), var(--g-700)); color: #fff; font-family: var(--serif); font-weight: 650; font-size: var(--fs-16); cursor: pointer; box-shadow: var(--sh1); }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-soft); background: var(--card); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; box-shadow: var(--sh1); }
.tonight { border: 1px solid var(--line-soft); box-shadow: var(--sh1); border-radius: var(--r); }
.tonight .eyebrow { color: var(--accent-deep); }
.book .mosaic { border-radius: 26px; box-shadow: var(--sh1); border: 1px solid var(--line-soft); }
.book .bt { font-size: var(--fs-18); font-weight: 630; }
.shelf-img { border-radius: 20px; }
.hometabs { margin: 10px 0 14px; }

/* ---------- sheets, toast, misc ---------- */
.modal-bg { background: rgba(17, 9, 19, .5); }
.modal { background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; animation: sheet .16s ease-out; }
.modal h2 { margin: 0; font-size: var(--fs-24); }
.modal::before { background: color-mix(in srgb, var(--ink) 18%, transparent); width: 40px; margin-left: -20px; }
@keyframes sheet { from { transform: translateY(18px); opacity: 0; } }
#toast { background: color-mix(in srgb, var(--ink) 94%, transparent); color: var(--bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 20px; font-weight: 600; }
.spinner { border-width: 2.5px; }
.empty .big { color: var(--g-300); }
.empty p { font-family: var(--serif); font-style: normal; font-weight: 650; font-size: var(--fs-24); color: var(--muted); }
.bar { height: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bar > i { background: linear-gradient(90deg, var(--g-500), var(--accent)); border-radius: 99px; }
.cookmode { background: var(--bg); }
.cm-text { font-family: var(--serif); font-size: 1.75rem; line-height: 1.38; letter-spacing: -.02em; font-weight: 520; }
.cm-nav .btn { border-radius: 18px; padding: 17px; font-size: var(--fs-16); }

/* ---------- sign in: the first screen people see ---------- */
body:has(.login) { background: var(--g-900); }
#app:has(.login) { padding: 0; max-width: none; }
.login { margin: 0; max-width: none; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: stretch; text-align: left; padding: 40px 28px calc(40px + env(safe-area-inset-bottom)); color: #fff;
  background: radial-gradient(120% 70% at 85% -5%, rgba(175, 105, 187, .34), transparent 60%), radial-gradient(90% 60% at -10% 105%, rgba(175, 105, 187, .18), transparent 60%), linear-gradient(170deg, var(--g-800), var(--g-900) 70%); }
.login .ic { width: 3.1rem; height: 3.1rem; color: #e0c3e5; margin-bottom: 18px; }
.login h1 { font-size: 3rem; color: #fff; margin: 0 0 6px; letter-spacing: -.045em; }
.login > p.muted { font-family: var(--serif); font-style: normal; font-weight: 650; font-size: var(--fs-18); color: #cbadd0; margin: 0 0 26px; }
.login input { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.login input::placeholder { color: rgba(255, 255, 255, .5); }
.login input:focus { border-color: #ce97d8; box-shadow: 0 0 0 4px rgba(206, 151, 216, .2); }
.login .btn.primary { background: #fff; color: var(--g-800); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); padding: 16px; font-size: var(--fs-16); }
.login a { color: #e0c3e5; }
.login .btn.primary:active { background: #f1e7f3; }

/* ---------- motion ---------- */
#app > * { animation: none; }   /* screens appear at once: no fade-in or slide */
#app > *:nth-child(2) { animation-delay: .04s; } #app > *:nth-child(3) { animation-delay: .08s; } #app > *:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card, .book, .shelf-i, .btn, .pick, .actions button { -webkit-tap-highlight-color: transparent; }
@media (hover: hover){ .card:hover { transform: translateY(-4px); box-shadow: var(--sh2); } }
@media (prefers-reduced-motion: reduce){ *, ::before, ::after { animation: none !important; transition: none !important; } }

/* ---------- finishing ---------- */
.ingl { opacity: .28; }
.ingl:active { opacity: 1; }
.login h1 + p.muted { font-family: var(--serif); font-style: normal; font-weight: 650; font-size: 1.3rem; color: #cbadd0; margin: 0 0 28px; }
.stars button { padding: 0 2px; }
.stars .ic{ width: 1.05em; height: 1.05em; vertical-align: -.12em; }
.card .muted span[style*="gold"] { display: inline-flex; gap: 1px; }
.chip .ic { width: 1em; height: 1em; vertical-align: -.14em; }

/* ---------- round checkboxes and radios ---------- */
input[type=checkbox]:not([hidden]), input[type=radio] { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 1.7px solid var(--g-300); background: transparent; display: inline-grid; place-items: center; flex: none; cursor: pointer; transition: background .2s var(--ease), border-color .2s, transform .15s; margin: 0; }
input[type=checkbox]:not([hidden]):checked { background: var(--accent) var(--tick) center/15px no-repeat; border-color: var(--accent); }
input[type=checkbox]:not([hidden]):active, input[type=radio]:active { transform: scale(.9); }
input[type=radio]:checked { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, transparent 50%); }
.gitem input { width: 24px; height: 24px; }
.gitem { padding: 14px 2px; }
.gitem.done .t { opacity: .45; }

/* ---------- plan rows: actions drop under a long title instead of squeezing it ---------- */
.meal { flex-wrap: wrap; gap: 6px 12px; }
.meal .grow { flex: 1 1 130px; min-width: 0; }
.macts { display: flex; gap: 0; margin-left: auto; }
.macts .icon-btn { min-width: 38px; height: 38px; color: var(--muted); }
.macts .icon-btn:first-child { color: var(--accent-deep); }
.meal .thumb { border-radius: 14px; }

/* ---------- small corrections ---------- */

.day .icon-btn { color: var(--muted); min-width: 36px; height: 36px; }
.day .icon-btn .ic { width: 1.1rem; height: 1.1rem; }




.book .bt .ic { width: 1em; height: 1em; vertical-align: -.1em; margin-right: 2px; }

/* ---------- intro cards and guided tour ---------- */
.intro { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 45% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.itop { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 0; position: relative; z-index: 1; font-family: var(--serif); font-weight: 650; letter-spacing: -.02em; }
.iskip { background: none; border: 0; color: var(--muted); font-weight: 650; font-size: var(--fs-16); padding: 8px 4px; cursor: pointer; }
.itrack { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; z-index: 1; }
.itrack::-webkit-scrollbar { display: none; }
.islide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 30px; gap: 0; }
.islide h2 { font-size: var(--fs-32); line-height: 1.08; letter-spacing: -.035em; margin: 22px 0 10px; max-width: 14ch; }
.islide p { color: var(--muted); font-size: var(--fs-16); line-height: 1.55; max-width: 30ch; margin: 0; }
.itile { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; color: #fff; background: linear-gradient(155deg, var(--g-400), var(--g-700)); box-shadow: 0 22px 36px -16px color-mix(in srgb, var(--g-700) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.28); }
.itile .ic { width: 2.5rem; height: 2.5rem; }
.imock { margin-top: 26px; width: min(300px, 100%); min-height: 96px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 22px; padding: 14px; box-shadow: var(--sh1); display: flex; flex-direction: column; gap: 10px; justify-content: center; text-align: left; }
.imock:empty { display: none; }
.im-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.im-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: var(--fs-12); font-weight: 650; color: var(--ink); }
.im-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.im-chip.sm { padding: 2px 8px; font-size: var(--fs-12); margin-left: auto; background: var(--soft); border-color: transparent; color: var(--accent-deep); }
.im-chip .ic { width: .95em; height: .95em; }
.im-line { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); font-weight: 600; padding: 7px 10px; background: var(--card-2); border-radius: 12px; }
.im-line b { margin-left: auto; font-size: var(--fs-12); color: var(--accent-deep); background: var(--soft); padding: 2px 9px; border-radius: 99px; }
.im-line.warn { color: #8a5a00; background: color-mix(in srgb, var(--gold) 20%, var(--card)); }
.im-pill { margin-left: auto; font-size: var(--fs-12); font-weight: 700; background: var(--soft); color: var(--accent-deep); padding: 2px 9px; border-radius: 99px; }
.im-pill.warn { background: color-mix(in srgb, var(--gold) 28%, transparent); color: #8a5a00; }

.im-week { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.im-week span { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.im-week b { display: block; min-height: 44px; border-radius: 12px; background: var(--card-2); border: 1px dashed var(--line); font-size: var(--fs-12); letter-spacing: 0; text-transform: none; color: var(--ink); padding: 6px; }
.im-week span:not(:last-child) b:not(:empty) { background: var(--soft); border: 1px solid transparent; }
.im-week .lo b { background: color-mix(in srgb, var(--gold) 20%, transparent); }
.ifinal { display: flex; flex-direction: column; gap: 10px; width: min(280px, 100%); margin-top: 26px; }
.ifinal .btn { width: 100%; padding: 15px; font-size: var(--fs-16); }
.ibot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); }
.idots { display: flex; gap: 7px; } .idots i { width: 7px; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: width .3s var(--ease), background .3s; cursor: pointer; } .idots i.on { width: 22px; background: var(--accent); }
.ibot .btn { min-width: 112px; }
.tour { position: fixed; inset: 0; z-index: 70; }
.tspot { position: fixed; display: none; box-shadow: 0 0 0 9999px rgba(17, 9, 19, .66), 0 0 0 3px rgba(255, 255, 255, .85); transition: all .35s var(--ease); pointer-events: none; }
.ttip { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: 22px; padding: 18px 18px 14px; box-shadow: var(--sh2); animation: rise .3s var(--ease); }
.ttip h3 { margin: 2px 0 4px; font-size: var(--fs-18); font-family: var(--serif); letter-spacing: -.02em; }
.ttip p { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-16); line-height: 1.5; }
.tcount { font-size: var(--fs-12); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.trow { display: flex; justify-content: space-between; align-items: center; }
.trow [data-t=skip] { background: none; box-shadow: none; color: var(--muted); padding-left: 0; }

/* the real Ramekin mark (the R. app icon) wherever a logo is shown */
.brand { width: 76px; height: 76px; border-radius: 22px; display: block; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); margin-bottom: 22px; }
.brand.big { width: 104px; height: 104px; border-radius: 30px; margin: 0; box-shadow: 0 22px 36px -16px color-mix(in srgb, var(--g-700) 80%, transparent); }
.login .brand { margin-bottom: 20px; }

/* ---------- home header: the app's own identity first ---------- */
.brand-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 4px; }
.brand-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-id img { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(40, 20, 44, .5), 0 0 0 1px var(--line-soft); flex: none; }
.wordmark { font-family: var(--serif); font-weight: 680; font-size: 1.45rem; letter-spacing: -.045em; color: var(--ink); }
.brand-bar .row { gap: 8px; }
h1.home-title { font-family: var(--serif); font-style: normal; font-weight: 650; font-size: var(--fs-32); letter-spacing: -.01em; line-height: 1.1; color: var(--muted); margin: 14px 0 12px; }

/* Simple view: bigger, calmer rows for the "get these" list */
.simple-view .sv-body { justify-content: flex-start; padding-top: 12px; }
.sv-h { font-family: var(--serif); font-size: 1.7rem; margin: 4px 0; }
.sv-ing { font-size: 1.25rem; padding: 14px 6px; align-items: center; }
.sv-ing .q { min-width: 3.2em; font-weight: 600; }
.sv-ing.done { opacity: .45; text-decoration: line-through; }

.ing-link.make { background: transparent; border: 1px dashed var(--accent-deep); }

/* No pinch or double-tap zoom: it is an app, not a page */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
input, select, textarea { font-size: max(16px, 1em); }
.gselbar { margin: 10px 0 0; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; background: var(--bg); padding: 6px 0; }

/* Easy-read font for the Simple view and the cook mode started from it (OpenDyslexic, SIL OFL 1.1) */
@font-face { font-family: "OpenDyslexic"; src: url(/fonts/opendyslexic.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "OpenDyslexic"; src: url(/fonts/opendyslexic-bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
body.dys .cookmode, body.dys .cookmode :where(div, span, p, h1, h2, h3, b, button, label, small) { font-family: "OpenDyslexic", "Atkinson Hyperlegible", "Comic Sans MS", sans-serif; letter-spacing: .02em; line-height: 1.7; font-style: normal; }
body.dys .cookmode :where(b, h1, h2, h3) { font-weight: 700; }

body.rf-serif .cookmode, body.rf-serif .cookmode :where(div, span, p, h1, h2, h3, b, button, label, small) { font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
body.rf-big .cookmode .cm-text, body.rf-big .cookmode .sv-ing, body.rf-big .cookmode .sv-body p { font-size: 1.35em; line-height: 1.55; letter-spacing: .01em; }

/* Easy mode: app-wide simple interface */
body.easy .tabs, body.easy .fab { display: none !important; }
.easy-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 2px; }
.easy-t { font-size: 1.15rem; flex: 1; text-align: center; }
.easy-icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 1.5rem; }
.easy-h { font-size: 2rem; line-height: 1.2; margin: 8px 0 14px; }
.easy-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; margin: 0 0 12px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: 1.3rem; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; }
.easy-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.easy-in { font-size: 1.2rem; min-height: 56px; }
.easy-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 600; }
.easy-thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; background: var(--soft) center/cover; }
.easy-photo { height: 200px; border-radius: 18px; background: var(--soft) center/cover; margin-bottom: 14px; }
.easy-ing { font-size: 1.15rem; padding: 14px 4px; }
.easy-g { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1.25rem; }
.easy-g input { width: 30px; height: 30px; flex: none; }
.easy-g.done .grow { opacity: .45; text-decoration: line-through; }
body.easy .step .n + div { font-size: 1.15rem; line-height: 1.55; }
body.easy.dys #app, body.easy.dys #app :where(div, span, p, h1, h2, h3, b, button, a, input, label, small), body.easy.dys .modal :where(div, span, p, h2, b, button, label) { font-family: "OpenDyslexic", "Atkinson Hyperlegible", sans-serif; letter-spacing: .02em; line-height: 1.6; }
body.easy.rf-serif #app, body.easy.rf-serif #app :where(div, span, p, h1, h2, h3, b, button, a, input, label, small) { font-family: Georgia, "Times New Roman", serif; }
.easy-g { text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.easy-day { border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.easy-day.today { border-color: var(--accent); }
.easy-dh { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.easy-meal { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 1.2rem; font-weight: 600; }
.easy-meal a { color: var(--ink); text-decoration: none; }
.easy-meal.done a { opacity: .5; text-decoration: line-through; }
.easy-icon.sm { width: 44px; height: 44px; font-size: 1.1rem; flex: none; }
.easy-add { width: 100%; min-height: 52px; margin-top: 4px; border-radius: 14px; border: 1px dashed var(--line); background: none; color: var(--accent-deep); font: inherit; font-size: 1.1rem; font-weight: 600; }
.ing-or { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .12em; color: var(--muted, #888); padding: 2px 0 0 4px; }






/* More menu: compact rows, descriptions only where they carry information */
#mm .pick, #mm .pick:has(> .ic:first-child) { display: flex !important; align-items: center; gap: 12px; padding: 11px 4px !important; flex-wrap: wrap; }
#mm .pick > .ic { flex: none; }
#mm .pick::after { content: "›"; margin-left: auto; color: var(--muted, #8a948f); font-size: var(--fs-18); }
#mm .pick > .muted { display: none; }


.mm-chip { flex: 1; text-align: center; padding: 11px 8px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line-soft); font-weight: 600; font-size: var(--fs-14); cursor: pointer; }

.round-btn.dot { position: relative; }
.round-btn.dot::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg, #fff); }

/* Update banner (phone apps) */
.annbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 14px; background: var(--accent-deep, #5e3565); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: translateY(-115%); transition: transform .4s var(--ease, ease); border-radius: 0 0 20px 20px; }
.annbar.on { transform: translateY(0); }
.annbar .anntext { font-weight: 600; font-size: var(--fs-16); line-height: 1.35; margin-bottom: 10px; }
.annbar .annrow { display: flex; gap: 8px; }
.annbar .btn { background: rgba(255,255,255,.18); color: #fff; border: 0; text-decoration: none; }
.annbar .btn.primary { background: #fff; color: #371b3c; }

/* sentence case everywhere: small labels no longer shout in capitals (the content keeps whatever capitals it was written with) */
.meta span,
.ing-group,
.aisle,
.meal .slot,
.nutri span,
label,
.tonight .eyebrow,
.eyebrow,
.im-week span,
.tcount,
.ing-or {
  text-transform: none !important;
  letter-spacing: .01em !important;
}

/* grocery lines: tappable recipe names, and the small recipe cards */
.gsrcs { display: block; }
a.gsrc { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 2px; font-weight: 600; }
.peek { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; margin: 6px 0; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; text-align: left; cursor: pointer; color: var(--ink); }
.peek .thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--card) center/cover; flex: none; }
.peek small { display: block; color: var(--muted); font-weight: 400; }
.peek-card { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.peek-card .thumb { border-radius: 12px; background: var(--soft) center/cover; flex: none; }

.easy-sub { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; }
.easy-sub .easy-t { text-align: left; }

/* Tonight as a photo hero, and the "last 30 days" value strip. Instant: no animation. */
.tonight.thero { position: relative; display: block; padding: 0; min-height: 210px; overflow: hidden; border: 0; border-radius: var(--r-lg); box-shadow: var(--sh2); cursor: pointer; margin: 4px 0 14px; color: #fff; }
.tonight.thero:active { transform: scale(.985); }
.tonight .hbg, .tonight .hbg img, .tonight .hbg .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tonight .hshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 9, 19, .30) 0%, rgba(17, 9, 19, .05) 30%, rgba(17, 9, 19, .82) 100%); }
.tonight .hchips { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.tonight .hchip { background: rgba(255, 255, 255, .9); color: #1e1420; font: 700 var(--fs-12) var(--sans); padding: 5px 10px; border-radius: 99px; }
.tonight .hbody { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 16px; gap: 4px; }
.tonight .htitle { font: 700 var(--fs-24)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.tonight .hmeta { font-size: var(--fs-14); opacity: .92; }
.tonight .hrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.tonight .hcook { background: #fff; color: var(--g-800); padding: 12px 20px; border-radius: 99px; font: 700 var(--fs-16) var(--serif); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.tonight .hghost { background: rgba(255, 255, 255, .18); color: #fff; padding: 12px 18px; border-radius: 99px; font: 700 var(--fs-14) var(--serif); }
.tonight .hsafe { font-size: var(--fs-12); background: rgba(255, 255, 255, .16); padding: 5px 10px; border-radius: 99px; }
.tonight .hsafe.warn { background: #fbe6df; color: #8a2f1c; font-weight: 700; }
.tonight.thero .ph { background: linear-gradient(145deg, var(--g-800), var(--g-500)); }   /* no photo yet: a rich green, never a washed-out grey */
.tonight.thero .ph i { color: #fff; opacity: .16; transform: scale(1.6) translate(18%, -8%); }
.tonight.thero.empty .ph i { display: none; }
.valuestrip { display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--sh1); padding: 12px 14px; margin: 0 0 12px; }
.valuestrip:active { transform: scale(.985); }
.valuestrip .vhead { font: 700 var(--fs-12) var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.valuestrip .vcols { display: flex; gap: 10px; }
.valuestrip .vcols > div { flex: 1; min-width: 0; }
.valuestrip b { display: block; font: 700 var(--fs-24)/1.1 var(--serif); letter-spacing: -.02em; color: var(--accent-deep); }
.valuestrip span { font-size: var(--fs-12); color: var(--muted); }

/* Photo-first recipe cards: the picture is the card, the title sits on it. A recipe with no photo gets a rich colour panel, never a washed-out grey tile. */
.ph { background: linear-gradient(150deg, hsl(var(--h) 52% 36%), hsl(var(--h) 58% 22%)); }
.ph .ic { color: hsl(var(--h) 70% 86%); opacity: .38; width: 46%; height: 46%; }
.grid > .card { position: relative; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--g-800); content-visibility: auto; contain-intrinsic-size: auto 240px; }
.grid > .card > .swp-in { position: absolute; inset: 0; width: auto; background: transparent; }
.grid > .card .img { position: absolute; inset: 0; aspect-ratio: auto; background: transparent; }
.grid > .card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grid > .card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 12px 12px; background: linear-gradient(180deg, rgba(17, 9, 19, 0) 0%, rgba(17, 9, 19, .86) 100%); color: #fff; }
.grid > .card .title { color: #fff; font-size: var(--fs-16); margin-bottom: 3px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.grid > .card .body > .muted, .grid > .card .muted { color: rgba(255, 255, 255, .9); }
.grid > .card .muted span[style*="gold"] { color: #f4c95d !important; }
.grid > .card .fav { top: 10px; right: 10px; z-index: 2; }
.grid > .card:active { transform: scale(.985); }

/* Screen moves, the iPhone way (see navStep in app.js). The old screen stays on show until the new one is ready. Push: the new screen slides in from the right while the old one
   eases left and dims. Fade: a quick crossfade (tabs, and arriving back at a tab). None: just swap (the iOS swipe-back animates itself). The tab bar and + button stay put. */
.tabs { view-transition-name: rbtabs; }
.fab { view-transition-name: rbfab; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition { background: var(--bg); }   /* whatever shows through is the page colour, never white */
html[data-vt="fade"]::view-transition-old(root) { animation: none; }   /* the old screen stays solid underneath while the new one fades in on top: no dip to the background (that was the flash) */
html[data-vt="fade"]::view-transition-new(root) { animation: vtin .2s ease both; }
html[data-vt="push"]::view-transition-old(root) { animation: vtpushold .3s cubic-bezier(.2, .8, .2, 1) both; }
html[data-vt="push"]::view-transition-new(root) { animation: vtpushnew .3s cubic-bezier(.2, .8, .2, 1) both; box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }
@keyframes vtin { from { opacity: 0; } }
@keyframes vtout { to { opacity: 0; } }
@keyframes vtpushnew { from { transform: translateX(100%); } }
@keyframes vtpushold { to { transform: translateX(-26%); } }
@media (prefers-reduced-motion: reduce){ ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Freezer: our own suggestion list under "What is it?" */
.fsug { display: flex; flex-direction: column; margin: 4px 0 6px; border: 1px solid var(--line); border-radius: var(--r-md, 16px); background: var(--surface, #fff); overflow: hidden; max-height: 230px; overflow-y: auto; }
.fsug[hidden] { display: none; }
.fsug-i { all: unset; box-sizing: border-box; padding: 12px 16px; font-size: var(--fs-16); color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--line-soft, rgba(0,0,0,.06)); }
.fsug-i:last-child { border-bottom: 0; }
.fsug-i:active { background: color-mix(in srgb, var(--accent, #6c3775) 12%, transparent); }

/* ---------- Sparkle: celebrations, mascot, pulses ---------- */
.mascot { display: block; overflow: visible; }
.mc-puff { transform-origin: 60px 58px; animation: mcpuff 2.6s ease-in-out infinite; }
.mc-spk { transform-box: fill-box; transform-origin: center; animation: mcspk 1.8s ease-in-out infinite; }
.mc-spk:nth-of-type(2) { animation-delay: .6s; }
@keyframes mcpuff { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.04, 1.07) translateY(-1px); } }
@keyframes mcspk { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }

.cele { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 40%, #763881 0%, #4f2157 55%, #311337 100%); color: #fff; animation: celein .22s ease-out; overflow: hidden; }
.cele.out { opacity: 0; transition: opacity .18s; }
.cele-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, .15) 0 9deg, rgba(255, 255, 255, 0) 9deg 18deg); animation: celespin 24s linear infinite; pointer-events: none; }
.cele-conf { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cele-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 420px; }
.cele-tag { background: #fff; color: var(--g-700); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; animation: celepop .5s var(--ease) both; }
.cele-title { font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 11vw, 3.4rem); line-height: .98; letter-spacing: -.03em; text-transform: uppercase; margin: 0; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); animation: celepop .55s .05s var(--ease) both; }
.cele-mascot { position: relative; animation: celebounce .7s .1s var(--ease) both; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28)); }
.cele-mascot .mascot { animation: mcbob 2.2s 1s ease-in-out infinite; }
.cele-big { position: absolute; right: -22px; top: -14px; font-size: 3.2rem; animation: celepop .6s .35s var(--ease) both; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.cele-sub { font-size: 1.1rem; line-height: 1.35; color: rgba(255, 255, 255, .92); margin: 0; max-width: 20em; animation: celepop .5s .25s var(--ease) both; }
.cele-cta { position: relative; width: min(100%, 420px); border: 0; border-radius: 999px; padding: 18px 24px; font: 800 1.15rem var(--serif); letter-spacing: .02em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, #ff7a5c, #ee5a3c); box-shadow: 0 6px 0 #b8402a, 0 14px 24px -8px rgba(0, 0, 0, .45); cursor: pointer; animation: celepop .5s .35s var(--ease) both; }
.cele-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8402a; }
@keyframes celein { from { opacity: 0; } to { opacity: 1; } }
@keyframes celespin { to { transform: rotate(360deg); } }
@keyframes celepop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes celebounce { 0% { transform: translateY(60px) scale(.4); opacity: 0; } 60% { transform: translateY(-14px) scale(1.06); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes mcbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* a button that breathes: draws the eye to the one thing to tap */
.pulse { animation-name: celepop, pulseglow; animation-duration: .5s, 2s; animation-delay: .35s, 1s; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; animation-timing-function: var(--ease), ease-in-out; }
@keyframes pulseglow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.fab { animation: fabnudge 6s 3s ease-in-out infinite; }
@keyframes fabnudge { 0%, 88%, 100% { transform: none; } 92% { transform: scale(1.1) rotate(-6deg); } 96% { transform: scale(1.05) rotate(4deg); } }

.cheer { position: fixed; left: 50%; bottom: calc(112px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; background: var(--g-800); color: #fff; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55); font-weight: 700; max-width: calc(100vw - 32px); animation: cheerin .45s var(--ease) both; }
.cheer.out { opacity: 0; transform: translateX(-50%) translateY(10px); transition: all .2s; }
.cheer .mascot { flex: none; margin-top: -14px; }
@keyframes cheerin { 0% { transform: translateX(-50%) translateY(40px) scale(.7); opacity: 0; } 100% { transform: translateX(-50%); opacity: 1; } }
@media (prefers-reduced-motion: reduce){ .cele-rays, .cele-mascot .mascot, .mc-puff, .mc-spk, .pulse, .fab { animation: none !important; } }
.empty .emp-mascot { display: flex; justify-content: center; margin-bottom: 6px; }

/* ---------- Daily treats ---------- */
.treatcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; text-decoration: none; margin: 0 0 10px; padding: 12px 16px 12px 12px; border-radius: var(--r); cursor: pointer; }
.treatcard .tc-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.treatcard b { font-family: var(--serif); font-weight: 750; font-size: var(--fs-18); letter-spacing: -.01em; }
.treatcard small { color: inherit; opacity: .78; font-size: var(--fs-14); }
.treatcard.ready { background: linear-gradient(135deg, #f6c453 0%, #ef9a3a 100%); color: #3b2504; box-shadow: 0 10px 24px -12px rgba(227, 166, 58, .9); animation: treatpulse 2.4s ease-in-out infinite; }


.treatcard.done { background: var(--card); box-shadow: var(--sh1); padding: 12px 16px; }
.treatcard .tc-e { font-size: 1.6rem; } .treatcard .tc-go { font-size: 1.6rem; color: var(--muted); }
@keyframes treatpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }

.cele.treat .tbox-wrap { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28)); animation: celebounce .7s .1s var(--ease) both; }
.tbox-wrap .tbox { display: block; animation: boxfloat 2.4s 1s ease-in-out infinite; }
.tbox-wrap.shake .tbox { animation: boxshake .9s ease-in-out both; transform-origin: 50% 90%; }
.tbox-wrap.shake .tb-lid { animation: lidpop .9s ease-in both; }
@keyframes boxfloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes boxshake { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-9deg); } 20% { transform: rotate(9deg); } 30% { transform: rotate(-11deg) scale(1.04); } 40% { transform: rotate(11deg) scale(1.06); } 50% { transform: rotate(-13deg) scale(1.08); } 60% { transform: rotate(13deg) scale(1.1); } 80% { transform: rotate(0) scale(1.14); } }
@keyframes lidpop { 0%, 60% { transform: none; } 100% { transform: translateY(-26px) rotate(-8deg); opacity: .0; } }
.treat-art { position: relative; min-height: 160px; display: flex; align-items: center; justify-content: center; animation: celebounce .7s .05s var(--ease) both; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .3)); }
.treat-art .t-em { line-height: 1; display: block; animation: mcbob 2.2s 1s ease-in-out infinite; }
.t-gold { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.05) drop-shadow(0 0 14px rgba(255, 220, 120, .9)); display: inline-block; }
.cele-skip { position: relative; background: none; border: 0; color: rgba(255, 255, 255, .85); font: 700 1rem var(--sans); text-decoration: underline; padding: 6px 12px; cursor: pointer; }
.cele-skip[hidden] { display: none; }
.cele[data-rarity="rare"] { background: radial-gradient(circle at 50% 40%, #3f86ee 0%, #2459c4 55%, #13307a 100%); }
.cele[data-rarity="super"] { background: radial-gradient(circle at 50% 40%, #a45cf5 0%, #7a2fd8 55%, #3a1585 100%); }
.cele[data-rarity="legendary"] { background: radial-gradient(circle at 50% 40%, #ffd76a 0%, #f0a92a 50%, #9a4d0a 100%); }
.cele[data-rarity="legendary"] .cele-title, .cele[data-rarity="legendary"] .cele-sub { color: #fff; text-shadow: 0 3px 0 rgba(120, 60, 0, .45); }
.cele[data-rarity="super"] .cele-rays, .cele[data-rarity="legendary"] .cele-rays { background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 255, 255, .26) 0 9deg, rgba(255, 255, 255, 0) 9deg 18deg); animation-duration: 14s; }

.sh-top { margin-bottom: 4px; }
.pulse-soft { animation: pulseglow 2s ease-in-out infinite; }
.sh-h { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.sh-pill { font-weight: 800; font-size: var(--fs-12); letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; color: #fff; }
.sh-pill.common { background: var(--g-500); } .sh-pill.rare { background: #2f6fe0; } .sh-pill.super { background: #8b3df0; } .sh-pill.legendary { background: linear-gradient(90deg, #f0a92a, #d9701a); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.st { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px 6px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--sh1); min-height: 104px; border: 2px solid transparent; }
.st b { font-size: var(--fs-12); line-height: 1.15; font-family: var(--sans); font-weight: 700; }
.st.rare { border-color: #9dbcf5; } .st.super { border-color: #c9a0f5; } .st.legendary { border-color: #f0c35a; background: color-mix(in srgb, #f6c453 14%, var(--card)); }
.st.lock { opacity: .55; filter: grayscale(1); box-shadow: none; background: var(--card-2); border-color: transparent; }
.st .sa { display: flex; align-items: center; justify-content: center; min-height: 54px; }
.st .t-em { line-height: 1; }
.st .sx { position: absolute; top: 6px; right: 8px; font-style: normal; font-weight: 800; font-size: var(--fs-12); background: var(--g-100); color: var(--g-700); padding: 1px 7px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce){ .treatcard.ready, .tbox-wrap .tbox, .tbox-wrap.shake .tbox, .tbox-wrap.shake .tb-lid, .pulse-soft, .treat-art .t-em { animation: none !important; } }

/* ---------- Chef rank ---------- */
.rankpill { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--card); box-shadow: var(--sh1); color: var(--ink); text-decoration: none; }
.rankpill .rp-e { font-size: 1.35rem; line-height: 1; background: color-mix(in srgb, var(--gold) 22%, var(--card)); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.rankpill .rp-t { display: flex; flex-direction: column; gap: 4px; min-width: 96px; }
.rankpill b { font-family: var(--serif); font-weight: 750; font-size: var(--fs-16); line-height: 1; }
.rankpill .rp-bar { display: block; height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rankpill .rp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f6c453, #e3a63a); border-radius: 4px; }
.rankpill small { font-weight: 800; color: var(--muted); font-size: var(--fs-12); }
.rank-card .rc-e { font-size: 2.2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--gold) 22%, var(--card)); }
.rank-card .bar i { background: linear-gradient(90deg, #f6c453, #e3a63a); }
.rc-how { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: var(--fs-14); color: var(--muted); }
.rc-how b { color: var(--g-700); font-weight: 800; }

/* ---------- Welcome ---------- */
.fmhead { display: flex; align-items: center; gap: 12px; margin: -6px 0 6px; }
.fmhead .mascot { flex: none; }
.fmhead .fmdots { margin: 0; flex: 1; }
.cele.welcome .cele-title { font-size: clamp(2.6rem, 13vw, 3.8rem); }
.cele.welcome .cele-sub { max-width: 21em; }

/* ---------- Mulberry and butter: chunky buttons and the new rarity colours ---------- */
.btn.primary { background: var(--pop); color: #fff; border: 0; border-radius: 16px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 4px 0 var(--pop-d); transition: transform .08s, box-shadow .08s; }
.btn.primary:active { background: var(--pop); transform: translateY(3px); box-shadow: 0 1px 0 var(--pop-d); }
.btn.primary:disabled { opacity: .6; transform: none; box-shadow: 0 4px 0 var(--pop-d); }
.fab { background: var(--pop); color: #fff; border-radius: 22px; box-shadow: 0 5px 0 var(--pop-d), 0 14px 24px -10px color-mix(in srgb, var(--pop) 60%, transparent); }
.fab:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pop-d); }
.cele-cta { background: linear-gradient(180deg, #e8527b, var(--pop)); box-shadow: 0 6px 0 #9c1f42, 0 14px 24px -8px rgba(0, 0, 0, .45); }
.cele-cta:active { box-shadow: 0 2px 0 #9c1f42; }
.cele[data-rarity="super"] { background: radial-gradient(circle at 50% 40%, #ff7aa2 0%, #d42f5c 55%, #7d1736 100%); }
.sh-pill.super { background: linear-gradient(90deg, #ef476f, #d42f5c); }
.st.super { border-color: #f5a9c0; }
.treatcard.ready{ color: #3b2504; }
.tabs a.on, .tabs a.on i { color: var(--accent-deep); }

/* ---------- Rami: no arms, but plenty of life ---------- */
.mascot { transform-origin: 50% 100%; }



.mc-eyes { transform-box: fill-box; transform-origin: 50% 55%; animation: ramiblink 5.5s infinite; }
@keyframes ramijump { 0%, 100% { transform: translateY(0) scale(1, 1); } 22% { transform: translateY(-14px) scale(.96, 1.06); } 48% { transform: translateY(0) scale(1.07, .92); } 62% { transform: translateY(-5px) scale(1, 1.02); } }
@keyframes ramipop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ramidroop { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .94) translateY(2px); } }
@keyframes ramiblink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce){  .mc-eyes { animation: none !important; } }

/* ---------- Rami's line on Home ---------- */
.ramihost { display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0 14px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
.ramihost.tap { cursor: pointer; }
.ramihost .rh-m { flex: none; margin-bottom: -4px; }
.ramihost .rh-b { position: relative; flex: 1; background: var(--card); border-radius: 18px 18px 18px 5px; padding: 11px 14px 12px; box-shadow: var(--sh1); font-weight: 650; line-height: 1.3; font-size: var(--fs-16); }
.ramihost .rh-b small { display: block; color: var(--accent); font-weight: 900; font-size: var(--fs-12); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.ramihost.tap .rh-b { outline: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.ramihost.tap:active .rh-b { transform: scale(.99); }

/* ---------- Sticker book, signature dishes, wardrobe ---------- */
.hubtabs { display: flex; gap: 6px; padding: 4px; background: var(--soft); border-radius: 999px; margin: 4px 0 12px; }
.hubtabs a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 999px; font-weight: 800; font-size: var(--fs-14); color: var(--muted); text-decoration: none; }
.hubtabs a.on { background: var(--card); color: var(--accent-deep); box-shadow: var(--sh1); }
.stk { --ring: #c98a4b; position: relative; display: inline-block; width: var(--px); height: var(--px); flex: none; transform: rotate(var(--rot, 0deg)); filter: drop-shadow(0 4px 5px rgba(43, 18, 54, .22)); }
.stk.l2 { --ring: #aeb9c7; } .stk.l3 { --ring: #f2b53b; filter: drop-shadow(0 0 7px rgba(242, 181, 59, .75)) drop-shadow(0 4px 5px rgba(43, 18, 54, .22)); }
.stk-i { position: absolute; inset: 0; border-radius: 50%; background: #fff center / cover no-repeat; border: calc(var(--px) * .075) solid #fff; box-shadow: 0 0 0 calc(var(--px) * .045) var(--ring); display: flex; align-items: center; justify-content: center; font: 800 calc(var(--px) * .42) var(--serif); color: var(--accent-deep); }
.stk-i.noimg { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.stk-star { position: absolute; left: -4%; top: -4%; width: calc(var(--px) * .34); height: calc(var(--px) * .34); border-radius: 50%; background: #ffd166; color: #7a4a00; display: grid; place-items: center; font-style: normal; font-size: calc(var(--px) * .22); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.stk-n { position: absolute; right: -6%; bottom: -2%; background: var(--ring); color: #fff; font-size: calc(var(--px) * .16); font-weight: 900; padding: 2px 7px; border-radius: 999px; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.stk-row { display: flex; flex: none; } .stk-row .stk { margin-right: -12px; } .stk-row .stk:last-child { margin-right: 0; }
.stk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-top: 10px; }
.stk-t { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: inherit; padding: 6px 2px; }
.stk-t b { font-size: .8rem; line-height: 1.15; font-family: var(--sans); font-weight: 700; } .stk-t small { color: var(--muted); font-size: .7rem; line-height: 1.2; }
.cele-sticker { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .3)); animation: celebounce .7s .1s var(--ease) both; padding: 10px; }
.wd-stage { display: flex; justify-content: center; margin: 4px 0 6px; padding: 12px 0 4px; border-radius: var(--r); background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 14%, var(--card)) 0%, var(--card) 70%); }
.wd-rami { border: 0; background: none; padding: 0; cursor: pointer; }
.wd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.wd-t { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 6px 12px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--sh1); border: 2px solid transparent; font: inherit; color: inherit; cursor: pointer; }
.wd-t b { font-size: var(--fs-12); line-height: 1.15; font-family: var(--sans); font-weight: 750; } .wd-t small { color: var(--muted); font-size: var(--fs-12); line-height: 1.2; }
.wd-t.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.wd-t.lock .wd-p svg { filter: grayscale(1) opacity(.45); } .wd-p { position: relative; display: block; } .wd-lock { position: absolute; right: -2px; bottom: 0; font-style: normal; font-size: var(--fs-16); }

/* ---------- Home, tidied: Rami's bubble carries the rank and the treat prompt; shelf and stickers share a row ---------- */
.rh-line { display: block; }
.rh-rank { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: var(--fs-12); font-weight: 700; color: var(--muted); }
.rh-rank .rh-re { font-size: var(--fs-16); line-height: 1; } .rh-rank b { color: var(--ink); font-family: var(--serif); font-weight: 750; white-space: nowrap; }
.rh-rank .rh-bar { flex: 1; min-width: 28px; height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; } .rh-rank .rh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f6c453, #e3a63a); }
.rh-rank small { font-weight: 800; white-space: nowrap; }
.ramihost.treat .rh-b { background: linear-gradient(135deg, #f6c453 0%, #ef9a3a 100%); color: #3b2504; outline: 0; box-shadow: 0 10px 24px -12px rgba(227, 166, 58, .9); }
.ramihost.treat .rh-b small { color: #7a4a00; } .ramihost.treat .rh-rank { border-top-color: rgba(59, 37, 4, .18); color: #7a4a00; } .ramihost.treat .rh-rank b { color: #3b2504; } .ramihost.treat .rh-rank .rh-bar { background: rgba(59, 37, 4, .15); }
.rh-open { position: absolute; right: 12px; top: 12px; font-style: normal; background: #3b2504; color: #fff; font-weight: 800; font-size: var(--fs-12); padding: 6px 13px; border-radius: 999px; animation: pulseglow 2s ease-in-out infinite; }





 


@media (prefers-reduced-motion: reduce){ .rh-open { animation: none; } }
.ramihost.treat .rh-line { padding-right: 62px; }
.stk-t { border: 0; background: none; font: inherit; cursor: pointer; }

.rest-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: var(--fs-12); color: var(--muted); line-height: 1.3; }
.rest-pips { display: flex; gap: 4px; flex: none; } .rest-pips i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--line); color: var(--muted); } .rest-pips i.on { background: #ffd166; color: #5a3a00; }

/* Recipe page actions: the everyday ones sit in the open as small chips; the rare ones tuck into a quiet "More" line */
.actions.mini { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.actions.mini button { flex-direction: row; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: var(--fs-16); }
.actions.mini button span { font-size: var(--fs-14); opacity: 1; font-weight: 650; color: var(--accent-deep, var(--accent)); }




/* Groceries: the gentle pantry hint under an item */
.gitem .ghave { display: block; color: var(--accent-deep, var(--accent)); font-size: var(--fs-12); margin-top: 2px; }
.gitem .ghave a { font-weight: 700; margin-left: 4px; text-decoration: underline; }

/* Pantry screen: fridge and pantry groups */


/* Passport: a stamp per cuisine you have cooked */
.pp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin-top: 12px; }
.pp-t { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 0; background: none; font: inherit; cursor: pointer; padding: 4px 2px; color: inherit; -webkit-tap-highlight-color: transparent; }
.pp-t .pp-s { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; border: 2px dashed var(--line); filter: grayscale(1); opacity: .5; background: var(--soft); }
.pp-t.got .pp-s { border: 3px solid var(--accent); background: color-mix(in srgb, var(--butter) 35%, var(--card)); filter: none; opacity: 1; transform: rotate(-6deg); box-shadow: inset 0 0 0 3px var(--card), 0 2px 6px rgba(0,0,0,.12); }
.pp-t:nth-child(even).got .pp-s { transform: rotate(5deg); }
.pp-t b { font-size: var(--fs-12); line-height: 1.15; font-family: var(--sans); font-weight: 700; }
.pp-t small { color: var(--muted); font-size: var(--fs-12); line-height: 1.2; }

/* welcome preview + feedback */
.obpv { background: var(--accent-soft, #f3e6f7); color: var(--accent, #7a2e8e); font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; border-radius: 9px; padding: 5px 8px; margin: 0 0 8px; }
.obrates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.obrate { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--card, #fff); color: inherit; font: inherit; font-size: var(--fs-14); cursor: pointer; text-align: center; }
.obrate.on { border-color: var(--accent); background: var(--accent-soft, #f3e6f7); font-weight: 700; }

/* cook mode step one: Prepare your ingredients (compact: fits most recipes without scrolling) */
.prep-h { margin: 0 0 2px; font-size: var(--fs-18); letter-spacing: -.01em; }
.cm-body.prep-body { justify-content: flex-start; padding-top: 2px; }
.cm-text.prep-text { font-family: var(--sans, inherit); font-size: .92rem; line-height: 1.25; letter-spacing: 0; font-weight: 500; }
.prep-text .prep-sec { margin: 8px 0 0; font-size: var(--fs-12); }
.prep-text .ing.prep-ing { padding: 5px 2px; gap: 8px; align-items: center; }
.prep-text .prep-ing .q { min-width: 3.3em; font-size: var(--fs-14); }
.prep-text .prep-ing b { font-weight: 700; }
.prep-ing .prepwhat { color: var(--accent, #7a2e8e); font-weight: 600; font-size: .9em; margin-left: 4px; }
.prep-ing .prepwhat.ok { color: var(--muted, #745f7a); font-weight: 400; }
.prep-ing.done b { text-decoration: line-through; opacity: .55; }

/* paywall */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 22px 12px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--card, #fff); color: inherit; font: inherit; font-size: var(--fs-14); cursor: pointer; }
.plan b { font-size: var(--fs-16); }
.plan.on { border-color: var(--accent); background: var(--accent-soft, #f3e6f7); }
.plan .pbadge { position: absolute; top: 6px; left: 12px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent, #7a2e8e); }
