/* Over the flames. Type scale = Tailwind steps; spacing = 2 4 8 12 16 24 32 40 48 64 80 96 only. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Telugu script: Manrope has none, so Telugu names use Noto Sans Telugu. */
@font-face { font-family: "Noto Sans Telugu"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/noto-sans-telugu.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CD5-1CD6, U+1CD8, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }

:root {
  /* watercolour paper + pigments */
  --bg: #FFFFFF; --card: #FFFFFF; --card-2: #F6F4F0; --line: rgba(40, 30, 20, 0.09);
  --text: #2A2119; --muted: #6E6253; --accent: #B4441F; --accent-ink: #FFFFFF; --turmeric: #C98A12;
  --veg: #2E7D32; --nonveg: #A0381F; --focus: #1F6FEB;
  --g1: #2A2119; --g2: #8A5A3B;
  --p-turmeric: 214, 154, 30; --p-kumkum: 190, 70, 40; --p-leaf: 86, 140, 70; --p-indigo: 70, 92, 150;
  --wash-a: 0; --paper-grain: 0;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131209; --card: rgba(31, 31, 31, 0.72); --card-2: rgba(49, 49, 49, 0.6); --line: rgba(240, 225, 200, 0.12);
    --text: #F3EEE6; --muted: #A89F92; --accent: #E2774E; --accent-ink: #131209; --turmeric: #E7B23C;
    --veg: #5DBB63; --nonveg: #E07A5F; --focus: #79A8FF;
    --g1: #FFFFFF; --g2: #E7B23C; --wash-a: 0.10; --paper-grain: 0.18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
--bg: #131209; --card: rgba(31, 31, 31, 0.72); --card-2: rgba(49, 49, 49, 0.6); --line: rgba(240, 225, 200, 0.12);
    --text: #F3EEE6; --muted: #A89F92; --accent: #E2774E; --accent-ink: #131209; --turmeric: #E7B23C;
    --veg: #5DBB63; --nonveg: #E07A5F; --focus: #79A8FF;
    --g1: #FFFFFF; --g2: #E7B23C; --wash-a: 0.10; --paper-grain: 0.18; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Manrope", "Noto Sans Telugu", system-ui, sans-serif; font-size: 1rem; line-height: 1.5rem; }
.te, [lang="te"] { font-family: "Noto Sans Telugu", "Manrope", sans-serif; }
img { max-width: 100%; display: block; }

/* watercolour: paper grain over everything, pigment washes behind everything */
body { position: relative; isolation: isolate; }
/* White page; the colour comes from the watercolour ingredients only (operator reference, 2026-11-12). */
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 700; }
p, li { text-wrap: pretty; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.sm { font-size: 0.875rem; line-height: 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 64px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; padding: 12px 16px; }
.top-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 9999px; padding: 8px 8px 8px 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; padding: 8px 12px; border-radius: 9999px;
  transition: background-color 700ms var(--ease), transform 700ms var(--ease); }
.nav a:hover { background: var(--card-2); }
.nav a:active { transform: translateY(1px); }
.nav a[aria-current="page"] { background: var(--text); color: var(--bg); }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav a { padding: 8px; font-size: 0.75rem; line-height: 1rem; }
}

.crumbs { max-width: 1120px; margin: 16px auto 0; padding: 0 16px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* type */
.grad { background: linear-gradient(90deg, var(--g1) 30%, var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .grad { font-size: 3rem; line-height: 1; } }
.hero .grad { font-size: 2.25rem; line-height: 2.5rem; }
@media (min-width: 768px) { .hero .grad { font-size: 3.75rem; line-height: 1; } }
.lede { font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); max-width: 680px; margin-top: 16px; }
.h-md { font-size: 1.5rem; line-height: 2rem; margin-bottom: 16px; }
.h-sm { font-size: 1rem; line-height: 1.5rem; margin-bottom: 12px; }
.eyebrow { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.te-title { font-size: 1.25rem; line-height: 1.75rem; color: var(--accent); margin: 8px 0 0; }
.te-big { font-size: 1.5rem; line-height: 2rem; color: var(--accent); margin: 0 0 8px; }
.te-line { color: var(--accent); margin: 4px 0 8px; }
.te.sm { font-size: 0.875rem; color: var(--muted); font-weight: 400; }

/* buttons + chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9999px; background: var(--accent); color: var(--accent-ink);
  font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  transition: transform 700ms var(--ease), background-color 700ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--card-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 9999px; padding: 4px 12px; font: inherit; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 700ms var(--ease), border-color 700ms var(--ease), transform 700ms var(--ease); }
a.chip:hover, button.chip:hover { background: var(--card-2); }
button.chip:active, a.chip:active { transform: scale(0.98); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] .te.sm { color: var(--bg); }
.chip:disabled { opacity: 0.45; cursor: default; }
.chip.sm { padding: 2px 8px; font-size: 0.75rem; line-height: 1rem; cursor: inherit; }
.chip.accent { border-color: var(--accent); color: var(--accent); }
.chip.draft { border-color: var(--turmeric); color: var(--turmeric); }
.chip.ghost { background: transparent; }
.chip-sep { width: 1px; height: 24px; background: var(--line); }

/* veg / non veg marks (Indian food label style) */
.diet { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.dmark { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 2px solid; border-radius: 2px; flex: none; }
.dmark i { width: 8px; height: 8px; border-radius: 9999px; background: currentColor; }
.dmark.veg { color: var(--veg); }
.dmark.nonveg { color: var(--nonveg); }
.dmark.nonveg i { border-radius: 0; width: 0; height: 0; background: none; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid currentColor; }

/* cards */
.card, .sec, .four li, .tile, .result-item, .diet-switch label {
  --pig: var(--p-turmeric);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px -24px rgba(var(--pig), 0.55);
  border-radius: 16px; }
.card { padding: 24px; }
.grid > :nth-child(4n+2), .kitchens > :nth-child(2), .ways > :nth-child(2), .four li:nth-child(2), .tiles > :nth-child(4n+2) { --pig: var(--p-kumkum); }
.grid > :nth-child(4n+3), .four li:nth-child(3), .tiles > :nth-child(4n+3) { --pig: var(--p-leaf); }
.grid > :nth-child(4n+4), .four li:nth-child(4), .tiles > :nth-child(4n+4), .side { --pig: var(--p-indigo); }
.sec { --pig: var(--p-turmeric); }
#preparation { --pig: var(--p-leaf); } #procedure { --pig: var(--p-kumkum); } #result { --pig: var(--p-indigo); }
a.card { color: var(--text); text-decoration: none; display: block; transition: transform 700ms var(--ease), border-color 700ms var(--ease); }
a.card:hover { transform: translateY(-4px); border-color: var(--muted); }
a.card:active { transform: scale(0.98); }
.card h2, .card h3 { font-size: 1.25rem; line-height: 1.75rem; }
.card-top { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; min-height: 24px; }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }
.grid.bases { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.thumbs { display: flex; gap: 4px; margin: 12px 0; }
.thumbs img { width: 28px; height: 28px; }
.variants { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.875rem; line-height: 1.25rem; margin: 8px 0 0; }
.variants .sep { color: var(--muted); }
.go { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--accent); }

/* home */
.hero { display: grid; gap: 48px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.2fr 1fr; padding-top: 80px; padding-bottom: 80px; } }
.hero-text h1, .hero-text .lede { max-width: 680px; }
/* hero: a painted still life of ingredients, overlapping, like a watercolour spread on white paper */
.hero-art { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; max-width: 520px; justify-self: center; padding: 0 24px; }
.hero-art img { width: 128px; height: 128px; margin: -16px -12px; }
.hero-art img:nth-child(3n+1) { transform: translateY(12px) scale(1.1); }
.hero-art img:nth-child(3n+2) { transform: translateY(-8px) rotate(-6deg); }
.hero-art img:nth-child(4n) { transform: scale(0.85) rotate(8deg); }
@media (max-width: 640px) { .hero-art img { width: 88px; height: 88px; margin: -8px -6px; } }
.kitchens { display: grid; gap: 16px; }
@media (min-width: 768px) { .kitchens { grid-template-columns: 1fr 1fr; } }
.kitchen { padding: 32px; }
.tagline { padding-top: 96px; padding-bottom: 96px; }
.tagline-text { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; max-width: 680px; letter-spacing: -0.02em; margin: 0; }
@media (min-width: 768px) { .tagline-text { font-size: 3rem; line-height: 1; } }
.tagline-text .w { opacity: 0.3; transition: opacity 700ms var(--ease); }
.tagline-text .w.on { opacity: 1; }
.four { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .four { grid-template-columns: repeat(4, 1fr); } }
.four li { padding: 24px; }
.four p { margin-top: 8px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.875rem; margin-right: 8px; flex: none; }
.four .num { display: grid; margin-bottom: 12px; }
.how { padding-bottom: 64px; }
.blocks-strip { margin-top: 0; }
.blocks-strip .chips { margin-top: 16px; }

/* kitchen pages */
.kitchen-head { padding-top: 48px; padding-bottom: 32px; }
.kitchen-head .te-title { margin-top: 8px; }
.ways { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 768px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { padding: 32px; }
.way-art { display: flex; gap: 8px; margin-bottom: 16px; }
.way-art img { width: 40px; height: 40px; }
.way-art.bases span { font-family: "Noto Sans Telugu", sans-serif; font-weight: 600; font-size: 0.875rem; padding: 8px 12px; border-radius: 9999px; background: var(--card-2); color: var(--accent); }
.filters { margin-top: 8px; }
.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 32px; text-align: center; margin-top: 24px; }
.empty p { margin: 0 0 4px; }
.wrap-note { margin-top: 24px; }
.base-card .te-big { margin-bottom: 4px; }

/* picker */
.picker-bar { position: sticky; top: 72px; z-index: 3; display: grid; gap: 12px; padding: 16px; margin-bottom: 24px; }
.search input { width: 100%; font: inherit; padding: 8px 16px; border-radius: 9999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.picked { margin: 0; }
.picker-cols { display: grid; gap: 32px; }
@media (min-width: 900px) { .picker-cols { grid-template-columns: 1.4fr 1fr; align-items: start; } .picker-results { position: sticky; top: 232px; } }
.tile-group { margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.tile { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; color: var(--text);
  font: inherit; cursor: pointer; text-align: center; transition: transform 700ms var(--ease), border-color 700ms var(--ease), background-color 700ms var(--ease); }
.tile:hover { transform: translateY(-2px); border-color: var(--muted); }
.tile:active { transform: scale(0.98); }
.tile img { width: 64px; height: 64px; }
.tile-en { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.tile-te { font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.tile[aria-pressed="true"] { --pig: var(--p-kumkum); border-color: var(--accent); background: rgba(var(--p-kumkum), 0.08); box-shadow: inset 0 0 0 1px var(--accent); }
.result-item { display: block; padding: 16px; color: var(--text); text-decoration: none; margin-bottom: 8px;
  transition: transform 700ms var(--ease), border-color 700ms var(--ease); }
.result-item:hover { transform: translateY(-2px); border-color: var(--muted); }
.result-item h3 { font-size: 1rem; line-height: 1.5rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.match { font-size: 0.75rem; line-height: 1rem; font-weight: 600; border-radius: 9999px; padding: 2px 8px; background: var(--card-2); }
.match.all { background: var(--veg); color: #fff; }
.missing { font-size: 0.75rem; line-height: 1rem; color: var(--muted); margin: 4px 0 0; }

/* recipe */
.recipe-head { padding-top: 32px; padding-bottom: 24px; max-width: 760px; }
.recipe-head h1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .recipe-head h1 { font-size: 3rem; line-height: 1; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.recipe-head .chips { margin-bottom: 16px; }
.notice { border: 1px solid rgba(var(--p-turmeric), 0.45); background: rgba(var(--p-turmeric), 0.08); border-radius: 12px; padding: 12px 16px; font-size: 0.875rem; line-height: 1.25rem; }
.diet-switch { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 640px) { .diet-switch { grid-template-columns: 1fr 1fr; } }
.diet-switch label { display: flex; gap: 8px; align-items: center; padding: 12px 16px; cursor: pointer;
  transition: border-color 700ms var(--ease), background-color 700ms var(--ease); }
.diet-switch label:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.diet-switch input { accent-color: var(--accent); margin: 0; }
html[data-diet="veg"] [data-only="nonveg"], html[data-diet="nonveg"] [data-only="veg"] { display: none; }
html:not([data-diet]) [data-diet-page="both"] [data-only="nonveg"] { display: none; }
.recipe-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .recipe-grid { grid-template-columns: minmax(0, 1fr) 300px; } .recipe-side { position: sticky; top: 96px; align-self: start; } }
.sec { padding: 24px; margin-bottom: 16px; }
.sec-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 16px; }
.sec-h .num { margin-right: 0; }
.ings { list-style: none; margin: 0; padding: 0; }
.ings li { display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "img name" "img qty"; column-gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ings li:first-child { border-top: 0; }
.ings img, .block-ico { grid-area: img; width: 40px; height: 40px; border-radius: 9999px; }
.ings img { border-radius: 0; }
.block-ico { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); font-size: 0.875rem; }
.block-ico.plain { background: var(--card-2); color: var(--muted); }
.ing-name { grid-area: name; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.qty { grid-area: qty; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
@media (min-width: 640px) { .ings li { grid-template-columns: 40px 1fr auto; grid-template-areas: "img name qty"; } .qty { text-align: right; max-width: 260px; } }
.steps { margin: 0; padding-left: 24px; }
.steps li { padding: 4px 0 8px 4px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.result { font-size: 1.125rem; line-height: 1.75rem; margin: 0; }
.inline-link { font-weight: 600; }
.inline-link.is-block { text-decoration-style: dotted; }
.side { padding: 24px; margin-bottom: 16px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { padding: 4px 0; }

/* prose, sitemap */
.prose { max-width: 720px; padding-top: 48px; }
.prose h2 { margin-top: 32px; }
.sitemap-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 16px 48px; }
.foot-in { max-width: 1120px; margin: 0 auto; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 0.875rem; }

/* scroll reveal (JS adds .js to html; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  * { transition: none !important; }
  .tagline-text .w { opacity: 1; }
}

@media print {
  .top, .foot, .crumbs, .recipe-side, .diet-switch, .notice, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { border: 0; padding: 0; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* the sticky picker bar must hide the tiles scrolling under it */
.picker-bar { position: static; background: var(--bg); }
@media (min-width: 900px) { .picker-bar { position: sticky; } }

/* ---- language: English by default, Telugu when html.lang-te (switch in the header) */
.l-te { display: none; }
.lang-te .l-te { display: revert; }
.lang-te .l-en { display: none; }
.lang-te body { font-family: "Noto Sans Telugu", "Manrope", system-ui, sans-serif; }
.lang-te .grad, .lang-te .recipe-head h1 { line-height: 1.25; padding-bottom: 4px; }
.lang-te .tagline-text { line-height: 1.3; }
.lang-btn { font: inherit; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; padding: 8px 12px; border-radius: 9999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; white-space: nowrap; transition: background-color 700ms var(--ease), transform 700ms var(--ease); }
.lang-btn:hover { background: var(--card-2); }
.lang-btn:active { transform: scale(0.98); }
.lang-btn .l-en { font-family: "Noto Sans Telugu", sans-serif; }
.top-in { flex-wrap: nowrap; }
.nav { flex: 1; }
.nowrap { white-space: nowrap; }

/* ---- picker: one grid, group chips, ticks, pop-up */
.group-chips { margin-bottom: 16px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.tile { position: relative; padding: 16px 8px 12px; }
.tile img { width: 80px; height: 80px; }
.tick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 9999px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; opacity: 0; transform: scale(0.6);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.tile[aria-pressed="true"] .tick { opacity: 1; transform: none; }
.ing-pop { border: 0; border-radius: 24px; padding: 24px 16px 16px; width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--text);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.35); text-align: center; }
.ing-pop::backdrop { background: rgba(20, 16, 10, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ing-pop[open] { animation: pop-in 600ms var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(32px) scale(0.96); } to { opacity: 1; transform: none; } }
.pop-close-f { position: absolute; top: 8px; right: 8px; margin: 0; }
.pop-close { width: 40px; height: 40px; border-radius: 9999px; border: 0; background: var(--card-2); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pop-stage { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 4px; touch-action: pan-y; }
.pop-nav { width: 48px; height: 48px; border-radius: 9999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1.875rem; line-height: 1;
  cursor: pointer; transition: transform 500ms var(--ease), background-color 500ms var(--ease); }
.pop-nav:hover { background: var(--card-2); }
.pop-nav:active { transform: scale(0.94); }
.pop-fig { margin: 0; }
.pop-fig img { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; margin: 0 auto; }
.pop-fig figcaption { display: grid; gap: 4px; margin-top: 8px; }
.pop-fig strong { font-size: 1.5rem; line-height: 2rem; }
.pop-fig .te { font-size: 1.125rem; line-height: 1.75rem; color: var(--accent); }
.pop-count { margin: 8px 0 0; }
.pop-actions { margin: 16px 0 8px; }
.pop-actions .btn { min-width: 200px; justify-content: center; }
.pop-actions .btn.on { background: transparent; color: var(--accent); }
.pop-pos { margin: 0; }
.slide-next .pop-fig { animation: slide-next 500ms var(--ease); }
.slide-prev .pop-fig { animation: slide-prev 500ms var(--ease); }
@keyframes slide-next { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ing-pop[open], .slide-next .pop-fig, .slide-prev .pop-fig { animation: none; } }

.tile.is-empty img { opacity: 0.55; }
.tile-none { font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.tile-group { margin-bottom: 32px; }
.tile-group .h-md { margin-bottom: 12px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.tile img { width: 96px; height: 96px; }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; } .tile img { width: 72px; height: 72px; } .tile { padding: 12px 4px; } }

@media (max-width: 640px) { .top-in { border-radius: 24px; } }
