
:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #17181C;
  --muted: #62666F;
  --line: #E4E2DC;
  --star: #F2A900;
  --c: #E8503A;
  --accent: var(--c);
  --on-accent: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--c) 10%, var(--bg));
  --shadow: 0 1px 2px rgba(23,24,28,.05), 0 12px 32px rgba(23,24,28,.07);
  --display: "Unbounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101114; --surface: #191B20; --ink: #F1F1EE; --muted: #A0A4AD; --line: #2A2D34;
    --accent: color-mix(in srgb, var(--c) 60%, #fff);
    --on-accent: #101114;
    --accent-soft: color-mix(in srgb, var(--c) 22%, var(--bg));
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101114; --surface: #191B20; --ink: #F1F1EE; --muted: #A0A4AD; --line: #2A2D34;
  --accent: color-mix(in srgb, var(--c) 60%, #fff);
  --on-accent: #101114;
  --accent-soft: color-mix(in srgb, var(--c) 22%, var(--bg));
  --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); padding-inline: 16px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1040px; margin-inline: auto; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header + nav */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin-inline: -16px; padding-inline: 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font: 700 1.25rem/1 var(--display); letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; }
.brand .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; transition: background .3s; }
.brand .dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.nav { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.nav button { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); white-space: nowrap; }
.nav button:hover { color: var(--ink); }
.nav button[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (max-width: 800px) {
  header.top { backdrop-filter: none; background: var(--bg); }
  body { padding-bottom: 104px; }
  .nav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30; box-shadow: 0 10px 40px rgba(0,0,0,.18); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); }
  .nav button { flex: 1; flex-direction: column; gap: 2px; padding: 8px 2px; font-size: .68rem; min-width: 0; }
}

/* type */
h1, h2 { font-family: var(--display); letter-spacing: -.03em; text-wrap: balance; margin: 0; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 16px; flex-wrap: wrap; }
.sec h2 { font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 600; }
.sec p { margin: 0; color: var(--muted); font-size: .92rem; }
.pagehead { padding-block: 24px 6px; }
.pagehead h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 700; line-height: 1.05; }
.pagehead p { color: var(--muted); max-width: 58ch; margin: 10px 0 0; }
.note { font-size: .85rem; color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.heroA { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 5vw, 44px); color: #fff; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; background: linear-gradient(140deg, #E8503A, #8E1F4A 85%); }
.heroA::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.22) 0 2px, transparent 2px 18px); }
.heroA h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: .95; font-weight: 700; position: relative; }
.heroA p { margin: 0; max-width: 34ch; font-size: 1.05rem; position: relative; opacity: .95; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.btn { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; background: #fff; color: #17181C; }
.btn.ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn.solid { background: var(--accent); color: var(--on-accent); }
.pick { display: flex; flex-direction: column; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px; text-align: left; width: 100%; }
.pick .cover { flex: 1; min-height: 170px; }
.pick .pb { padding: 14px 8px 6px; }
.pick small { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .7rem; color: var(--accent); }
.pick b { display: block; font: 700 1.2rem/1.2 var(--body); margin: 4px 0 6px; }

/* cover + cards */
.cover { --k: #E8503A; position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--k), color-mix(in srgb, var(--k) 55%, #000)); color: #fff; }
.cover::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -12%; top: -24%; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.26) 0 2px, transparent 2px 15px); }
.cover .lab { position: absolute; left: 14px; bottom: 12px; max-width: 46%; font: 600 .74rem/1.15 var(--display); letter-spacing: -.01em; z-index: 1; }
.cover .time { position: absolute; left: 14px; top: 12px; z-index: 1; font-size: .74rem; font-weight: 700; background: rgba(0,0,0,.28); padding: 4px 9px; border-radius: 999px; }
.badge { position: absolute; right: 12px; top: 10px; z-index: 1; background: #fff; color: #17181C; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; }
.cover .art { position: absolute; right: 3%; top: 50%; transform: translateY(-50%); height: 84%; aspect-ratio: 1; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.cover .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover:has(.photo)::before { display: none; }
.cover:has(.photo)::after { display: block; inset: auto 0 0 0; width: 100%; height: 60%; aspect-ratio: auto; border-radius: 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); z-index: 1; }
.cover:has(.photo) .lab, .cover:has(.photo) .time { z-index: 2; }
.article .cover { aspect-ratio: 21 / 9; min-height: 170px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 10px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .cb { padding: 2px 8px 8px; display: grid; gap: 4px; }
.card b { font-size: 1.02rem; line-height: 1.25; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.rt { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
.rt svg { width: 15px; height: 15px; fill: var(--star); stroke: none; }
.rt small { color: var(--muted); font-weight: 500; }
.rt.none { color: var(--muted); font-weight: 500; font-size: .82rem; }
.rt.none svg { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.empty { border: 1.5px dashed var(--line); border-radius: 24px; padding: 26px; color: var(--muted); }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 800px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { --k: #E8503A; position: relative; overflow: hidden; text-align: left; border: 0; color: #fff; border-radius: 24px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(140deg, var(--k), color-mix(in srgb, var(--k) 55%, #000)); transition: transform .2s ease; }
.tile:hover { transform: translateY(-3px); }
.tile::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; right: -30%; top: -34%; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.24) 0 2px, transparent 2px 14px); }
.tile b { font: 600 1.05rem/1.1 var(--display); position: relative; }
.tile span { font-size: .84rem; opacity: .92; position: relative; margin-top: 4px; }

/* country picker */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px 6px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 15px 8px 10px; border-radius: 999px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.flag { width: 24px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); flex: none; display: inline-block; }
.f-fr { background: linear-gradient(90deg,#1F3FA8 33.3%,#fff 33.3% 66.6%,#D62839 66.6%); }
.f-it { background: linear-gradient(90deg,#1E8A4C 33.3%,#fff 33.3% 66.6%,#CE2B37 66.6%); }
.f-es { background: linear-gradient(#C8202F 25%,#F4C20D 25% 75%,#C8202F 75%); }
.f-jp { background: radial-gradient(circle at 50% 50%,#BC002D 0 28%,#fff 30%); }
.f-gr { background: repeating-linear-gradient(#1C63B7 0 11.11%,#fff 11.11% 22.22%); }
.f-mx { background: linear-gradient(90deg,#1E8A4C 33.3%,#fff 33.3% 66.6%,#CE2B37 66.6%); }
.meals { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; margin-block: 12px 18px; }
.meal { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meal small { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.meal b { font-size: .95rem; line-height: 1.25; overflow-wrap: break-word; }
.meal[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.meal[aria-selected="true"] small { color: inherit; opacity: .85; }
@media (max-width: 560px) {
  .meals { grid-template-columns: 1fr; gap: 6px; }
  .meal { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .meal b { text-align: right; }
}

/* recipe article */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(14px, 3vw, 26px); }
.article .cover { border-radius: 20px; }
.article .ah { padding: 20px 6px 0; }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.article h2 { font-size: clamp(1.5rem, 4.4vw, 2.3rem); font-weight: 700; line-height: 1.1; margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.meta li { background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-size: .84rem; font-weight: 600; }
.desc { color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); margin-bottom: 24px; }
.rate .avg { display: flex; align-items: baseline; gap: 8px; }
.rate .avg b { font: 700 1.9rem/1 var(--display); }
.rate .avg span { color: var(--muted); font-size: .85rem; }
.rate .mine { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rate .mine > span { font-weight: 600; font-size: .9rem; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars button { border: 0; background: none; padding: 3px; border-radius: 8px; line-height: 0; }
.stars svg { width: 30px; height: 30px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; transition: transform .12s; }
.stars button.on svg, .stars button:hover svg, .stars button:hover ~ button svg { fill: var(--star); stroke: var(--star); }
.stars button:hover svg { transform: scale(1.12); }
.stars[data-locked="1"] button { pointer-events: none; opacity: .5; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding-inline: 6px; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; gap: 22px; } }
h3 { font: 700 .76rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.ings { list-style: none; margin: 0; padding: 0; }
.ings label { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.ings input { accent-color: var(--accent); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.ings input:checked + span { color: var(--muted); text-decoration: line-through; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.steps li::before { content: counter(st); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 .8rem/32px var(--display); text-align: center; }
.also { margin: 24px 6px 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.also b { color: var(--ink); }
.gear { margin: 22px 6px 6px; background: var(--accent-soft); border-radius: 18px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.gear .lbl { font-size: .8rem; font-weight: 700; margin-right: 4px; }
.gear a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .88rem; font-weight: 600; }
.gear a:hover { border-color: var(--accent); }
.gear em { font-style: normal; font-size: .68rem; color: var(--muted); margin-left: 4px; text-transform: uppercase; letter-spacing: .06em; }
.back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-weight: 700; color: var(--muted); padding: 10px 0; }
.set { display: inline-block; margin: 0 0 14px; font-weight: 700; color: var(--accent); font-size: .92rem; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; z-index: 40; max-width: calc(100% - 32px); }

/* header tools */
.tools { display: flex; gap: 8px; }
.tbtn { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.tbtn[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tbtn small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.tbtn[aria-current="page"] small { color: inherit; opacity: .8; }
@media (max-width: 800px) { .tbtn .lbl { display: none; } .tbtn { padding: 8px 12px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.line { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.line[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .4; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.btn.solid svg.i { width: 16px; height: 16px; }

/* stamps */
.stamp { display: block; width: 100%; height: auto; color: var(--sc); font-family: var(--body); font-weight: 700; opacity: .92; }
:root[data-theme="dark"] .stamp { color: color-mix(in srgb, var(--sc) 55%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { color: color-mix(in srgb, var(--sc) 55%, #fff); } }
.cstamp { position: absolute; left: 14px; top: 46px; width: 74px; z-index: 2; }
.cstamp .stamp { color: #fff !important; opacity: .95; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
.badge.done { background: var(--accent); color: var(--on-accent); }

/* pass */
.passhead { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 44px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 22px; margin-block: 16px 22px; }
@media (max-width: 640px) { .passhead { grid-template-columns: 1fr 1fr; } .passhead .lvl { font-size: 1.1rem; } }
.passhead .big { font: 700 2.8rem/1 var(--display); }
.passhead .big small { font-size: 1.1rem; color: var(--muted); }
.passhead .lvl { font: 700 1.4rem/1.1 var(--display); }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.pch { display: flex; align-items: center; gap: 10px; }
.pch em { font-style: normal; margin-left: auto; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: var(--on-accent); padding: 3px 9px; border-radius: 999px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.slots.four { grid-template-columns: repeat(2, 1fr); }
.slots.four .disc { max-width: 76px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; min-width: 0; }
.slot .disc { width: 100%; max-width: 92px; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 50%; display: grid; place-items: center; }
.slot .disc.on { border: 0; }
.slot .sl { font-size: .74rem; color: var(--muted); font-weight: 600; text-align: center; line-height: 1.2; overflow-wrap: break-word; }

/* map */
.mapbox { position: relative; border-radius: 28px; overflow: hidden; background: #12232B; border: 1px solid rgba(255,255,255,.06); }
.mapbox svg.map { display: block; width: 100%; height: auto; }
.mzoom { position: absolute; right: 12px; top: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .84rem; backdrop-filter: blur(6px); }
.pin { cursor: pointer; }
.pin text { font-family: var(--body); font-weight: 800; pointer-events: none; }
.mapnote { margin: 10px 4px 0; }
@media (prefers-reduced-motion: no-preference) {
  .mapbox svg.map { animation: rise .4s ease both; }
  .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.9s ease-out infinite; }
  @keyframes pulse { 0% { transform: scale(.55); opacity: .65; } 100% { transform: scale(1.5); opacity: 0; } }
}

/* tools on home */
.tools3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .tools3 { grid-template-columns: 1fr; } }
.tool { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
button.tool:hover { border-color: var(--accent); }
.tool .th { font: 600 1.05rem/1.2 var(--display); letter-spacing: -.02em; }
.tool p { margin: 0; color: var(--muted); font-size: .92rem; }
.tool .chipwrap { margin-block: 4px; }
.tool .chip { padding: 6px 12px; font-size: .84rem; }
.tool .btn { align-self: flex-start; }
.dice-out { min-height: 1.6em; font-weight: 700; color: var(--accent); margin: 0; }
.tool .meta-n { font-weight: 700; color: var(--accent); font-size: .9rem; }
.chipwrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* fridge */
.fg { margin-top: 18px; }
.fg h3 { margin-bottom: 10px; }
.fitem { display: flex; flex-direction: column; gap: 8px; }
.fmiss { margin: 0 6px; font-size: .86rem; color: var(--muted); }
.fmiss.ok { color: var(--accent); font-weight: 800; }

/* cook mode */
#cook { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.ck-in { max-width: 760px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; gap: 14px; position: relative; }
.ck-top { display: flex; align-items: center; gap: 12px; }
.ck-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; }
.ck-t { flex: 1; min-width: 0; }
.ck-t small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.ck-t b { display: block; font-size: 1.02rem; line-height: 1.2; overflow-wrap: break-word; }
.ck-prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ck-prog i { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.ck-run { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-chip { border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .84rem; }
.ck-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; overflow: auto; padding-block: 8px; }
.ck-n { margin: 0; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.ck-text { margin: 0; font-size: clamp(1.45rem, 5.2vw, 2.3rem); line-height: 1.3; font-weight: 700; text-wrap: pretty; }
.ck-timer { display: flex; align-items: center; gap: 16px; background: var(--accent-soft); border-radius: 20px; padding: 14px 18px; align-self: flex-start; }
.ck-timer span { font: 700 2.2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.ck-timer.done { background: var(--accent); color: var(--on-accent); }
.ck-timer.done .btn.line { color: inherit; border-color: currentColor; }
.ck-tbtn { align-self: flex-start; padding: 14px 22px; }
.ck-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.ck-nav .btn { padding: 16px; font-size: 1.05rem; }
.ck-ing { position: absolute; inset: 0; background: var(--bg); z-index: 2; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.ck-ingh { display: flex; justify-content: space-between; align-items: center; }
.ck-ingh b { font: 600 1.15rem var(--display); }
.toast { z-index: 90; }

/* ---------- Konto / Anmelden ---------- */
.acct-av, .acct-in { width: 22px; height: 22px; border-radius: 50%; display: block; object-fit: cover; }
.acct-in { background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
#auth { position: fixed; inset: 0; z-index: 70; background: rgba(23,24,28,.5); display: grid; place-items: center; padding: 16px; }
.auth-in { position: relative; width: 100%; max-width: 380px; background: var(--surface); border-radius: 20px; padding: 28px 22px 22px; box-shadow: var(--shadow); }
.auth-in h2 { margin: 0 0 6px; font: 700 1.3rem var(--display); }
.auth-in .ck-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; }
.auth-msg { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.auth-g { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: #fff; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: .8rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#auth-form { display: flex; flex-direction: column; gap: 10px; }
#auth-form input { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font: inherit; color: var(--ink); }
.auth-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.auth-err { margin: 12px 0 0; font-size: .85rem; color: #C0392B; }
.auth-err.ok { color: #1E8E5A; }
.acct-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 22px; }
.acct-locked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.acct-locked p { margin: 0; color: var(--muted); max-width: 46ch; }
.acct-me { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.acct-avwrap { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.acct-avbig, .acct-inbig { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.acct-inbig { background: var(--accent-soft); color: var(--accent); font: 800 1.8rem var(--display); display: grid; place-items: center; }
.acct-upl { font-size: .78rem; color: var(--accent); font-weight: 700; cursor: pointer; }
.acct-info { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 12px; }
.acct-namelbl { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.acct-namelbl input { padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); font: 600 1rem var(--body); color: var(--ink); text-transform: none; letter-spacing: normal; }
.acct-actrow { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Kommentare ---------- */
.comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments h3 { margin: 0 0 14px; }
.c-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; align-items: flex-start; }
.c-form textarea { width: 100%; min-height: 78px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); resize: vertical; }
.c-locked { color: var(--muted); margin: 0; }
.c-list { display: flex; flex-direction: column; gap: 16px; }
.c-empty { color: var(--muted); margin: 0; }
.c-row { display: flex; gap: 12px; }
.c-av { width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden; }
.c-av img { width: 100%; height: 100%; object-fit: cover; }
.c-in { width: 100%; height: 100%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.c-body p { margin: 4px 0 0; }
.c-date { color: var(--muted); font-size: .8rem; }

/* ---- Politur ---- */
.hero-noise, .cover::after, .heroA::after {
  content: ""; position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; right: auto; top: auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: soft-light; opacity: .55; pointer-events: none;
}
.cover:has(.photo)::after { mix-blend-mode: normal; opacity: 1; inset: auto 0 0 0; height: 60%; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,.6)); z-index: 1; }
body { background-color: var(--bg); background-image: radial-gradient(900px 460px at 88% -80px, color-mix(in srgb, var(--c) 16%, transparent), transparent), radial-gradient(700px 400px at -10% 30%, color-mix(in srgb, var(--c) 7%, transparent), transparent); background-repeat: no-repeat; }

/* hero table */
.heroA { min-height: 400px; background: linear-gradient(150deg, #F0603F 0%, #C93A4A 48%, #7A1F4E 100%); }
.heroA::before { opacity: .5; }
.heroA .table { position: absolute; right: -6%; top: -8%; width: 68%; aspect-ratio: 1; pointer-events: none; }
.heroA .table .art { position: absolute; height: auto; aspect-ratio: 1; transform: rotate(var(--r)); filter: drop-shadow(0 16px 24px rgba(40,0,20,.38)); }
.heroA h1, .heroA p, .heroA .btns { position: relative; z-index: 2; }
@media (max-width: 800px) { .heroA { min-height: 460px; } .heroA .table { width: 92%; right: -26%; top: -8%; } }
@media (prefers-reduced-motion: no-preference) {
  .heroA .table .art { animation: float 8s ease-in-out infinite; animation-delay: var(--d); }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-9px) rotate(calc(var(--r) + 2.5deg)); } }
}

/* plates: depth + motion */
.cover .art { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover .cover .art, .pick:hover .cover .art { transform: translateY(-50%) rotate(7deg) scale(1.05); }
.card { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.card:hover { box-shadow: 0 18px 40px rgba(23,24,28,.12); }
:root[data-theme="dark"] .card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.card .cover { border-radius: 18px; }

/* bento */
@media (min-width: 801px) {
  .grid.bento .card:first-child { grid-column: span 2; grid-row: span 2; }
  .grid.bento .card:first-child .cover { aspect-ratio: auto; flex: 1; min-height: 260px; }
  .grid.bento .card:first-child .cover .art { height: 78%; right: 6%; }
  .grid.bento .card:first-child b { font-size: 1.45rem; }
  .grid.bento .card:first-child .cb { padding: 4px 10px 12px; }
}

/* tiles with plates */
.tile { min-height: 190px; }
.tile .art { position: absolute; right: -12%; bottom: -22%; width: 72%; height: auto; aspect-ratio: 1; transform: rotate(-10deg); transition: transform .35s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 10px 16px rgba(0,0,0,.28)); z-index: 1; }
.tile:hover .art { transform: rotate(4deg) scale(1.06); }
.tile b, .tile span { z-index: 2; }
.tile::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); mix-blend-mode: soft-light; opacity: .5; pointer-events: none; }

/* recipe hero */
.article { padding: 12px; }
.article .cover { aspect-ratio: auto; min-height: 300px; border-radius: 22px; display: flex; align-items: flex-end; }
.article .cover .lab { display: none; }
.article .cover .art { height: 108%; right: 0; top: 46%; }
.article .cover .ct { position: relative; z-index: 2; padding: 26px; max-width: 55%; color: #fff; }
.article .cover .ct .eyebrow { color: rgba(255,255,255,.86); margin-bottom: 8px; }
.article .cover .ct h2 { color: #fff; margin: 0; font-size: clamp(1.7rem, 4vw, 2.9rem); text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.article .ah { padding: 20px 14px 0; }
.article .cols, .article .also, .article .gear { margin-inline: 14px; }
@media (max-width: 720px) {
  .article .cover { min-height: 300px; }
  .article .cover .ct { max-width: 100%; padding: 18px; }
  .article .cover .art { height: 64%; top: 10px; right: -4%; transform: none; }
}
.cstamp { top: 50px; width: 78px; }
@media (prefers-reduced-motion: no-preference) {
  .cstamp .stamp { animation: thud .5s cubic-bezier(.2,1.4,.4,1) both; }
  @keyframes thud { from { transform: scale(1.9) rotate(-20deg); opacity: 0; } }
  .stars button:active svg { transform: scale(.9); }
}
.sec h2 { position: relative; padding-bottom: 10px; }
.sec h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 4px; border-radius: 4px; background: var(--accent); }
.pagehead h1 { background: linear-gradient(100deg, var(--ink) 40%, color-mix(in srgb, var(--accent) 80%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { box-shadow: 0 6px 20px rgba(23,24,28,.06); }

svg.art { overflow: visible; }
@media (min-width: 801px) { .heroA h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); } .heroA h1, .heroA p, .heroA .btns { max-width: 54%; } .heroA .table { right: -8%; top: -6%; width: 64%; } }
@media (max-width: 800px) {
  .heroA { min-height: 540px; }
  .heroA .table { width: 100%; right: -18%; top: -6%; }
  .heroA .table .art:nth-child(1) { width: 62% !important; left: 34% !important; top: 8% !important; }
  .heroA .table .art:nth-child(2) { display: none; }
  .heroA .table .art:nth-child(3) { width: 30% !important; left: 8% !important; top: 4% !important; }
  .heroA .table .art:nth-child(4) { width: 26% !important; left: 60% !important; top: -8% !important; }
  header.top { background: color-mix(in srgb, var(--bg) 55%, transparent); }
}
.tile .art { right: -20%; bottom: -28%; width: 60%; }
.article .cover::before { opacity: .45; }

/* Flaggen neue Länder */
.f-tr { background: radial-gradient(circle at 42% 50%, #fff 0 22%, transparent 23%), #E30A17; }
.f-in { background: radial-gradient(circle, #000080 0 9%, transparent 10%), linear-gradient(#FF9933 33.3%, #fff 33.3% 66.6%, #138808 66.6%); }
.f-kr { background: radial-gradient(circle, #CD2E3A 0 26%, #0047A0 27% 42%, transparent 43%), #fff; }
.f-th { background: linear-gradient(#A51931 16.6%, #fff 16.6% 33.3%, #2D2A4A 33.3% 66.6%, #fff 66.6% 83.3%, #A51931 83.3%); }
.f-vn { background: radial-gradient(circle, #FFDD00 0 24%, transparent 25%), #DA251D; }
.f-cn { background: radial-gradient(circle at 26% 34%, #FFDE00 0 15%, transparent 16%), #DE2910; }
.f-ma { background: radial-gradient(circle, transparent 0 20%, #006233 21% 30%, transparent 31%), #C1272D; }
.f-lb { background: radial-gradient(circle, #00A651 0 20%, transparent 21%), linear-gradient(#ED1C24 25%, #fff 25% 75%, #ED1C24 75%); }
.f-ae { background: linear-gradient(90deg, #FF0000 26%, transparent 26%), linear-gradient(#00732F 33.3%, #fff 33.3% 66.6%, #000 66.6%); }
.f-ir { background: linear-gradient(#239F40 33.3%, #fff 33.3% 66.6%, #DA0000 66.6%); }
.f-ge { background: linear-gradient(90deg, transparent 42%, #FF0000 42% 58%, transparent 58%), linear-gradient(transparent 40%, #FF0000 40% 60%, transparent 60%), #fff; }
.f-br { background: radial-gradient(circle, #002776 0 20%, transparent 21%), linear-gradient(135deg, transparent 28%, #FEDF00 29% 71%, transparent 72%), #009C3B; }
.f-pe { background: linear-gradient(90deg, #D91023 33.3%, #fff 33.3% 66.6%, #D91023 66.6%); }
.f-ar { background: radial-gradient(circle, #F6B40E 0 11%, transparent 12%), linear-gradient(#74ACDF 33.3%, #fff 33.3% 66.6%, #74ACDF 66.6%); }
.f-us { background: linear-gradient(90deg, #3C3B6E 0 42%, transparent 42%) 0 0 / 100% 55% no-repeat, repeating-linear-gradient(#B22234 0 1.6px, #fff 1.6px 3.2px); }
.f-gb { background: linear-gradient(90deg, transparent 44%, #C8102E 44% 56%, transparent 56%), linear-gradient(transparent 40%, #C8102E 40% 60%, transparent 60%), linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%), linear-gradient(transparent 32%, #fff 32% 68%, transparent 68%), #012169; }
.f-de { background: linear-gradient(#000 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.f-pt { background: linear-gradient(90deg, #006600 40%, #FF0000 40%); }
.regs { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px 2px; scrollbar-width: thin; }
.chip.small { padding: 6px 14px; font-size: .84rem; }
.badge.viral { background: #17181C; color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.badge.viral svg { width: 11px; height: 11px; }
.slots.s4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slots.s4 .sl { font-size: .68rem; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.f-at { background: linear-gradient(#ED2939 33.3%, #fff 33.3% 66.6%, #ED2939 66.6%); }
.f-ch { background: linear-gradient(90deg, transparent 38%, #fff 38% 62%, transparent 62%), linear-gradient(transparent 32%, #fff 32% 68%, transparent 68%), #DA291C; }
.f-pl { background: linear-gradient(#fff 50%, #DC143C 50%); }
.f-hu { background: linear-gradient(#CE2939 33.3%, #fff 33.3% 66.6%, #477050 66.6%); }
.f-fi { background: linear-gradient(90deg, transparent 30%, #003580 30% 46%, transparent 46%), linear-gradient(transparent 40%, #003580 40% 60%, transparent 60%), #fff; }
.f-ua { background: linear-gradient(#0057B7 50%, #FFD700 50%); }
.f-ie { background: linear-gradient(90deg, #169B62 33.3%, #fff 33.3% 66.6%, #FF883E 66.6%); }
.f-id { background: linear-gradient(#E70011 50%, #fff 50%); }
.f-ph { background: linear-gradient(135deg, #fff 0 30%, transparent 30%), linear-gradient(#0038A8 50%, #CE1126 50%); }
.f-tw { background: linear-gradient(90deg, #000095 0 42%, transparent 42%) 0 0 / 100% 55% no-repeat, #FE0000; }
.f-uz { background: linear-gradient(#0099B5 32%, #CE1126 32% 36%, #fff 36% 64%, #CE1126 64% 68%, #1EB53A 68%); }
.f-il { background: linear-gradient(transparent 12%, #0038B8 12% 22%, transparent 22% 78%, #0038B8 78% 88%, transparent 88%), #fff; }
.f-eg { background: linear-gradient(#CE1126 33.3%, #fff 33.3% 66.6%, #000 66.6%); }
.f-et { background: linear-gradient(#078930 33.3%, #FCDD09 33.3% 66.6%, #DA121A 66.6%); }
.f-ng { background: linear-gradient(90deg, #008751 33.3%, #fff 33.3% 66.6%, #008751 66.6%); }
.f-za { background: linear-gradient(#DE3831 40%, #fff 40% 44%, #007A4D 44% 56%, #fff 56% 60%, #002395 60%); }
.f-co { background: linear-gradient(#FCD116 50%, #003893 50% 75%, #CE1126 75%); }
.f-cu { background: linear-gradient(90deg, #CF142B 0 35%, transparent 35%), repeating-linear-gradient(#002A8F 0 3.2px, #fff 3.2px 6.4px); }
.f-jm { background: linear-gradient(45deg, transparent 46%, #FED100 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #FED100 46% 54%, transparent 54%), conic-gradient(from -45deg, #009B3A 0 25%, #000 0 50%, #009B3A 0 75%, #000 0); }
.f-ca { background: radial-gradient(circle, #D80621 0 18%, transparent 19%), linear-gradient(90deg, #D80621 25%, #fff 25% 75%, #D80621 75%); }
.mzoom { display: flex; gap: 2px; padding: 3px; }
.mzoom button { border: 0; background: none; color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.mzoom button[aria-pressed="true"] { background: #fff; color: #12232B; }

footer { max-width: 1040px; margin: 56px auto 0; padding-block: 22px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: grid; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .view > * { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
.brand { text-decoration: none; color: inherit; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); white-space: nowrap; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (max-width: 800px) { .nav a { flex: 1; flex-direction: column; gap: 2px; padding: 8px 2px; font-size: .68rem; min-width: 0; justify-content: center; align-items: center; } }
a.tbtn { text-decoration: none; color: inherit; }
a.card { text-decoration: none; color: inherit; }
a.btn { text-decoration: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: inherit; }
.fnav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fnav a { color: inherit; }
.fnav b { color: var(--ink); margin-right: 4px; }
.prose { max-width: 70ch; }
.prose h2 { font: 600 1.25rem/1.2 var(--display); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.regblock { margin-top: 26px; }
.regblock h2 { font: 600 1.15rem var(--display); margin: 0 0 12px; }
.clist { display: flex; flex-wrap: wrap; gap: 8px; }
.clist a { text-decoration: none; }
.lead p { margin-bottom: 8px; }
.intro { color: var(--muted); max-width: 66ch; margin: 10px 0 0; }
.warn { border: 1.5px dashed var(--accent); border-radius: 16px; padding: 14px 16px; background: var(--accent-soft); margin-block: 18px; }
