/* ==========================================================================
   Recipist — design system
   ========================================================================== */
@view-transition { navigation: auto; }

:root {
  --paper: #f7f3ec;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --ink: #1c1814;
  --ink-2: #4b4238;
  --muted: #8a7e6f;
  --line: rgb(28 24 20 / .1);
  --line-2: rgb(28 24 20 / .18);
  --accent: #cf4f24;
  --accent-2: #2f5d46;
  --gold: #df9f32;
  --on-accent: #fff;
  --accent-soft: #f9e2d5;
  --glass: rgb(247 243 236 / .78);
  --focus: #1f6fb9;
  --tile-l: 89%; --tile-s: 46%; --plate: #fffdf8; --plate-well: #f6f0e6; --plate-ink-l: 30%; --rim-l: 52%;
  --shadow-1: 0 1px 2px rgb(40 24 10 / .06), 0 4px 14px rgb(40 24 10 / .05);
  --shadow-2: 0 2px 4px rgb(40 24 10 / .06), 0 18px 40px -12px rgb(40 24 10 / .22);
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --latin: "Fraunces", "Shippori Mincho B1", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161412; --paper-2: #1f1c18; --card: #221e1a; --ink: #f1ebe1; --ink-2: #cfc4b4; --muted: #9a8f80;
    --line: rgb(241 235 225 / .1); --line-2: rgb(241 235 225 / .2); --accent: #f07a4f; --accent-2: #7fbf9c; --gold: #f0b95a; --on-accent: #1a120c;
    --accent-soft: #3a2419; --glass: rgb(22 20 18 / .72); --focus: #86b9ee;
    --tile-l: 22%; --tile-s: 26%; --plate: #efe8dc; --plate-well: #e3dac9; --plate-ink-l: 30%; --rim-l: 45%;
    --shadow-1: none; --shadow-2: 0 20px 40px -18px rgb(0 0 0 / .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161412; --paper-2: #1f1c18; --card: #221e1a; --ink: #f1ebe1; --ink-2: #cfc4b4; --muted: #9a8f80;
  --line: rgb(241 235 225 / .1); --line-2: rgb(241 235 225 / .2); --accent: #f07a4f; --accent-2: #7fbf9c; --gold: #f0b95a; --on-accent: #1a120c;
  --accent-soft: #3a2419; --glass: rgb(22 20 18 / .72); --focus: #86b9ee;
  --tile-l: 22%; --tile-s: 26%; --plate: #efe8dc; --plate-well: #e3dac9; --plate-ink-l: 30%; --rim-l: 45%;
  --shadow-1: none; --shadow-2: 0 20px 40px -18px rgb(0 0 0 / .7); color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.85 var(--sans); letter-spacing: .02em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: .03em; }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2); padding: .1em .4em; border-radius: 6px; }
kbd { font: 600 .7rem ui-monospace, Menlo, monospace; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: var(--card); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 .5rem; font: italic 600 .95rem/1.2 var(--latin); color: var(--accent); letter-spacing: .01em; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { color: var(--ink-2); margin: 1rem 0 0; font-size: 1.02rem; max-width: 38em; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; gap: .5em; height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .85rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.icon-btn:hover { border-color: var(--ink); transform: rotate(-8deg); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: .85rem; color: var(--ink-2); text-decoration: none; cursor: pointer; transition: all .2s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip.ghost { background: transparent; }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dots { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.dots i.on { background: var(--accent); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .35s var(--ease); }
.scrolled .site-header { border-bottom-color: var(--line); }
.page-recipe.past-hero .site-header { transform: translateY(-100%); }
.header-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--accent) 70%, #000 0%), inset 0 0 0 7px var(--plate); transition: transform .6s var(--ease); }
.logo-mark i { position: absolute; inset: 11px; border-radius: 50%; background: var(--plate); }
.logo-mark i::after { content: ""; position: absolute; width: 5px; height: 5px; right: 3px; top: 3px; border-radius: 50%; background: var(--gold); }
.logo:hover .logo-mark { transform: rotate(200deg); }
.logo-type { display: grid; line-height: 1; }
.logo-type b { font: 700 1.35rem/1 var(--latin); letter-spacing: -.01em; }
.logo-type small { font-size: .62rem; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 22px; }
.nav a { position: relative; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.header-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.search-trigger { display: flex; align-items: center; gap: 10px; height: 42px; min-width: 280px; padding: 0 8px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--muted); font-size: .88rem; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.search-trigger:hover { border-color: var(--ink); box-shadow: var(--shadow-1); }
.search-trigger kbd { margin-left: auto; }
.ic-moon { display: none; }
:root[data-theme="dark"] .ic-sun { display: none; }
:root[data-theme="dark"] .ic-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-sun { display: none; } :root:not([data-theme="light"]) .ic-moon { display: block; } }
@media (max-width: 1020px) { .nav { display: none; } }
@media (max-width: 720px) { .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; } .search-trigger span, .search-trigger kbd { display: none; } }

/* ---------- visuals: plates & photos ---------- */
.visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 20% 10%, hsl(var(--tone) var(--tile-s) calc(var(--tile-l) + 5%)), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 11px, hsl(var(--tone) 40% 50% / .05) 11px 12px),
    hsl(var(--tone) var(--tile-s) var(--tile-l)); }
.visual::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.plate { position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; max-height: 86%; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--plate-well) 0 52%, hsl(var(--tone) 45% var(--rim-l)) 53% 55.5%, var(--plate) 56.5% 100%);
  box-shadow: 0 22px 34px -16px hsl(var(--tone) 50% 18% / .55), 0 3px 6px hsl(var(--tone) 40% 20% / .12), inset 0 -6px 14px rgb(0 0 0 / .06), inset 0 4px 10px rgb(255 255 255 / .8);
  transition: transform .8s var(--ease); }
.plate::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: linear-gradient(140deg, rgb(255 255 255 / .6), transparent 38%); pointer-events: none; }
.plate span { font: 800 clamp(1.8rem, 5vw, 2.9rem)/1 var(--display); color: hsl(var(--tone) 45% var(--plate-ink-l)); position: relative; z-index: 1; }
.visual.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s; }
.js .visual.photo img:not(.loaded) { opacity: 0; }
.visual.v-hero { border-radius: calc(var(--radius) + 8px); aspect-ratio: 5 / 4; }
.visual.v-hero .plate { width: 60%; }
.visual.v-hero .plate span { font-size: clamp(3.4rem, 9vw, 6.2rem); }
.visual.v-lg { width: min(340px, 70vw); aspect-ratio: 1; border-radius: 50%; }
.visual.v-lg .plate { width: 74%; }
.visual.v-lg .plate span { font-size: 4.2rem; }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-1); outline: 1px solid var(--line); outline-offset: -1px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card:hover .plate { transform: rotate(-14deg) scale(1.07); }
.card:hover .visual.photo img { transform: scale(1.06); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); letter-spacing: .06em; }
.card-meta .sep { opacity: .5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--tone) 55% 48%); }
.card h3 { font: 800 1.22rem/1.4 var(--display); margin: 6px 0 6px; letter-spacing: .03em; }
.card-sum { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin: auto 0 0; padding-top: 12px; display: flex; gap: 14px; font-size: .78rem; color: var(--muted); }
.card-foot span { display: inline-flex; align-items: center; gap: 4px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* rails */
.shelf { margin: clamp(56px, 8vw, 96px) 0; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.shelf-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.shelf-tools { display: flex; align-items: center; gap: 8px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; text-decoration: none; margin-right: 8px; }
.more .ic { transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(4px); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 290px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px clamp(16px, 4vw, 40px) 28px; margin: -8px calc(-1 * clamp(16px, 4vw, 40px)) 0; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: clamp(16px, 4vw, 40px); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 720px) { .scroll-btn { display: none; } .rail { grid-auto-columns: 76%; } }

/* ---------- reveal & motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.card.reveal:hover { transition: transform .45s var(--ease), box-shadow .45s var(--ease); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.recipe-visual .visual { view-transition-name: hero-visual; }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(48px, 7vw, 80px); }
.hero-bg { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 78% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(35% 40% at 95% 85%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 70%),
              radial-gradient(30% 40% at 55% 95%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.2; letter-spacing: .02em; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--accent); position: relative; }
.rotator span { display: block; animation: rot-in .7s var(--ease); }
.rotator span.out { animation: rot-out .45s var(--ease) forwards; }
.rotator::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: .08em; height: .12em; background: var(--gold); opacity: .55; border-radius: 4px; transform-origin: left; animation: underline 3.2s var(--ease) infinite; }
@keyframes rot-in { from { transform: translateY(100%); opacity: 0; filter: blur(4px); } }
@keyframes rot-out { to { transform: translateY(-100%); opacity: 0; filter: blur(4px); } }
@keyframes underline { 0% { transform: scaleX(0); } 25%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.hero-search { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); height: 60px; margin: 30px 0 16px; padding: 0 14px 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 1rem; cursor: pointer; box-shadow: 6px 6px 0 var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hero-search:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--accent); }
.hero-search kbd { margin-left: auto; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.stats { display: flex; gap: clamp(20px, 4vw, 44px); margin: 34px 0 0; }
.stats div { border-left: 2px solid var(--accent); padding-left: 12px; }
.stats dt { font-size: .76rem; color: var(--muted); letter-spacing: .1em; }
.stats dd { margin: 0; font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--latin); font-variant-numeric: tabular-nums; }
.hero-art { position: relative; height: clamp(360px, 44vw, 560px); }
.floater { position: absolute; display: block; text-decoration: none; width: var(--w); animation: bob 7s ease-in-out infinite; animation-delay: var(--d); transition: translate .6s var(--ease); }
.floater .visual { aspect-ratio: 1; border-radius: 50%; background: transparent; overflow: visible; }
.floater .visual::before { display: none; }
.floater .plate { width: 100%; max-height: none; transition: transform 1s var(--ease); }
.floater .plate span { font-size: calc(var(--w) * .26); }
.floater .visual.photo { overflow: hidden; box-shadow: var(--shadow-2); }
.floater:hover .plate { transform: rotate(-24deg) scale(1.05); }
.floater-label { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); }
.floater-label small { font-weight: 400; margin-left: 6px; opacity: .7; }
.floater:hover .floater-label, .floater:focus-visible .floater-label { opacity: 1; transform: none; }
.f0 { --w: clamp(170px, 20vw, 260px); left: 22%; top: 18%; --d: 0s; z-index: 3; }
.f1 { --w: clamp(110px, 12vw, 160px); left: 2%; top: 2%; --d: -1.5s; }
.f2 { --w: clamp(120px, 14vw, 180px); right: 0; top: 0; --d: -3s; }
.f3 { --w: clamp(110px, 12vw, 160px); left: 4%; bottom: 2%; --d: -4.5s; }
.f4 { --w: clamp(130px, 15vw, 196px); right: 4%; bottom: 0; --d: -2.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(3deg); } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { height: 300px; order: -1; margin: -10px 0 0; }
  .f0 { --w: 170px; left: calc(50% - 85px); top: 40px; }
  .f1 { --w: 96px; left: 0; top: 0; } .f2 { --w: 110px; right: 0; top: 10px; } .f3 { --w: 96px; left: 4%; bottom: 0; } .f4 { --w: 110px; right: 2%; bottom: 0; }
  .hero-search { height: 54px; box-shadow: 4px 4px 0 var(--ink); }
  .hero-search kbd { display: none; }
}

/* ticker */
.ticker { border-block: 1px solid var(--line); background: var(--ink); color: var(--paper); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > div { display: flex; align-items: center; gap: 22px; padding: 14px 11px; font: 600 1.05rem var(--display); letter-spacing: .08em; white-space: nowrap; }
.ticker a { text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.ticker a:hover { opacity: 1; color: var(--gold); }
.ticker span { color: var(--gold); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* menu board */
.menu-board { margin: clamp(56px, 8vw, 96px) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: calc(var(--radius) + 10px); background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.menu-board::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; border: 60px solid color-mix(in srgb, var(--accent) 35%, transparent); opacity: .5; }
.menu-board h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.menu-board .muted { color: color-mix(in srgb, var(--paper) 65%, transparent); margin: 12px 0 22px; }
.menu-board .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.menu-board .btn:hover { background: var(--gold); border-color: var(--gold); color: #1a120c; }
.menu-board .btn .ic { transition: transform .5s var(--ease); }
.menu-board .btn:hover .ic { transform: rotate(180deg); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; perspective: 900px; }
.slot { display: flex; flex-direction: column; background: color-mix(in srgb, var(--paper) 8%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); border-radius: var(--radius); padding: 12px; text-decoration: none; transition: background .3s, transform .3s var(--ease); transform-style: preserve-3d; }
.slot:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); transform: translateY(-4px); }
.slot .visual { border-radius: var(--radius-sm); aspect-ratio: 1; }
.slot-label { font: italic 600 .85rem var(--latin); color: var(--gold); margin: 0 0 8px 4px; }
.slot-title { font: 800 1.1rem/1.4 var(--display); margin: 10px 4px 0; }
.slot-meta { display: inline-flex; gap: 4px; align-items: center; font-size: .78rem; opacity: .65; margin: 2px 4px 0; }
.slot.spin { animation: flip .7s var(--ease) both; animation-delay: var(--sd, 0s); }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); opacity: .3; } 55% { transform: rotateX(-90deg); opacity: .3; } 100% { transform: rotateX(0); } }
@media (max-width: 900px) { .menu-board { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .slots { gap: 8px; } .slot { padding: 8px; } .slot-title { font-size: .9rem; } .slot-meta { display: none; } }

/* feature */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin: clamp(56px, 8vw, 110px) 0; }
.feature h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.feature .visual.v-hero { transform: rotate(-2deg); box-shadow: var(--shadow-2); transition: transform .8s var(--ease); }
.feature:hover .visual.v-hero { transform: rotate(0); }
.feature:hover .plate { transform: rotate(-20deg); }
.feature-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0 28px; color: var(--ink-2); font-size: .9rem; }
.feature-meta span { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* categories */
.cats { margin: clamp(56px, 8vw, 96px) 0; }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .cat-card { min-height: 150px; padding: 16px; } .cat-desc { display: none; } .cat-plate { width: 90px; height: 90px; font-size: 1.8rem; } }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 200px; border-radius: var(--radius); text-decoration: none; overflow: hidden; background: hsl(var(--tone) var(--tile-s) var(--tile-l)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cat-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.cat-plate { position: absolute; right: -22px; bottom: -22px; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font: 800 2.4rem var(--display); color: hsl(var(--tone) 45% var(--plate-ink-l)); background: radial-gradient(circle, var(--plate-well) 0 52%, hsl(var(--tone) 45% var(--rim-l)) 53% 56%, var(--plate) 57%); box-shadow: 0 16px 28px -14px hsl(var(--tone) 50% 18% / .6); transition: transform .8s var(--ease); }
.cat-card:hover .cat-plate { transform: rotate(-30deg) scale(1.1); }
.cat-name { font: 800 1.35rem var(--display); }
.cat-desc { font-size: .78rem; color: var(--ink-2); max-width: 70%; line-height: 1.6; }
.cat-n { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font: 700 .85rem var(--sans); }
:root[data-theme="dark"] .cat-desc, :root[data-theme="dark"] .cat-name, :root[data-theme="dark"] .cat-n { color: var(--ink); }

/* ingredient tiles */
.ing-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ing-tile { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--radius-sm); background: var(--card); outline: 1px solid var(--line); outline-offset: -1px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.ing-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ing-tile-mark { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 1.15rem var(--display); color: hsl(var(--tone) 45% var(--plate-ink-l)); background: radial-gradient(circle, var(--plate-well) 0 50%, hsl(var(--tone) 45% var(--rim-l)) 51% 56%, var(--plate) 57%); box-shadow: 0 6px 12px -6px hsl(var(--tone) 50% 20% / .5); transition: transform .6s var(--ease); }
.ing-tile:hover .ing-tile-mark { transform: rotate(-40deg); }
.ing-tile-name { display: grid; font-weight: 700; line-height: 1.35; }
.ing-tile-name small { font-weight: 400; font-size: .72rem; color: var(--muted); }
.ing-tile-n { margin-left: auto; font: 600 .85rem var(--latin); color: var(--muted); }
.season-home { margin: clamp(56px, 8vw, 96px) 0; }

/* ---------- list pages ---------- */
.list-hero { position: relative; padding: 10px 0 40px; background: linear-gradient(180deg, hsl(var(--tone) var(--tile-s) var(--tile-l) / .55), transparent); border-bottom: 1px solid var(--line); }
.list-hero-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 18px; }
.list-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.count { margin: 0; font: 700 clamp(3rem, 8vw, 5.6rem)/.9 var(--latin); color: var(--accent); font-variant-numeric: tabular-nums; }
.count small { font: 500 1rem var(--sans); color: var(--muted); margin-left: 4px; }
.list-body { padding-top: 26px; padding-bottom: 40px; }
.filters { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 18px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.sort select { height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); padding: 0 12px; font: inherit; font-size: .85rem; }
.grid .card.hide { display: none; }
.grid .card.pop { animation: pop .45s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.empty { padding: 40px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty .btn { margin-top: 12px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.cat-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; text-decoration: none; background: hsl(var(--tone) var(--tile-s) var(--tile-l)); font-weight: 700; font-size: .9rem; transition: transform .25s var(--ease); }
.cat-pill small { background: var(--card); border-radius: 999px; padding: 0 9px; font: 600 .78rem var(--latin); }
.cat-pill:hover { transform: translateY(-2px); }
.cat-pill[aria-current] { outline: 2px solid var(--ink); }
.crumbs { font-size: .78rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 .6em; opacity: .5; }

/* ingredients index */
.ing-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; position: sticky; top: var(--header-h); z-index: 20; padding: 12px 0; background: var(--glass); backdrop-filter: blur(12px); }
.field { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--muted); min-width: min(320px, 100%); }
.field input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.kana-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.kana-nav a, .kana-nav span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: .88rem; text-decoration: none; }
.kana-nav a { background: var(--card); outline: 1px solid var(--line); }
.kana-nav a:hover { background: var(--ink); color: var(--paper); }
.kana-nav span { color: var(--line-2); }
.season-band { margin: 0 0 48px; padding: 26px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent-2) 10%, var(--card)); }
.season-band h2 { font-size: 1.5rem; margin-bottom: 16px; }
.ing-row { margin: 0 0 40px; }
.row-head { display: flex; align-items: baseline; gap: 10px; font-size: 2rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.row-head small { font: 500 .85rem var(--latin); color: var(--muted); }
.ing-grid li.hide, .ing-row.hide, .season-band.hide { display: none; }

/* ---------- recipe ---------- */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.mini-bar { position: fixed; top: 0; inset-inline: 0; z-index: 45; height: 58px; background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .35s var(--ease); }
.past-hero .mini-bar { transform: none; }
.mini-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 12px; }
.mini-title { font: 800 1.05rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipe-hero { padding-bottom: clamp(28px, 5vw, 56px); background: linear-gradient(180deg, hsl(var(--tone) var(--tile-s) var(--tile-l) / .5), transparent 70%); }
.recipe-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(16px, 3vw, 36px); }
.recipe-visual { position: relative; }
.recipe-visual .visual { box-shadow: var(--shadow-2); }
.recipe-visual .plate { transform: rotate(calc(var(--sy, 0) * -40deg)); transition: transform .1s linear; }
.recipe-intro .crumbs { padding-top: 0; margin-bottom: 16px; }
.recipe-intro h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.15; }
.kana { margin: .4rem 0 0; color: var(--muted); font-size: .85rem; letter-spacing: .2em; }
.kana .en { margin-left: 12px; font: italic 500 1rem var(--latin); letter-spacing: 0; }
.facts { display: grid; grid-template-columns: 1.5fr 1fr 1fr; margin: 26px 0 22px; border-block: 1px solid var(--line-2); }
.facts > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .72rem; color: var(--muted); letter-spacing: .12em; }
.facts dd { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: .9rem; }
.facts b { font: 700 1.9rem/1 var(--latin); }
.facts b.fs { font: 700 1.05rem var(--sans); }
.facts small { color: var(--muted); font-size: .74rem; }
.facts .split { flex-basis: 100%; }
.ring { width: 30px; height: 30px; border-radius: 50%; margin-right: 6px; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--accent) 0); -webkit-mask: radial-gradient(circle, transparent 50%, #000 52%); mask: radial-gradient(circle, transparent 50%, #000 52%); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
@media (max-width: 860px) {
  .recipe-hero-in { grid-template-columns: 1fr; }
  .recipe-visual .visual.v-hero { aspect-ratio: 16 / 11; }
  .facts { grid-template-columns: 1fr 1fr; } .facts > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); } .facts > div:nth-child(2) { border-left: 0; padding-left: 0; }
}
.recipe-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: 28px; }
.panel { position: sticky; top: 76px; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); outline: 1px solid var(--line); outline-offset: -1px; max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.recipe h2 { font-size: 1.6rem; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .15s; }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 62px; text-align: center; }
.stepper output b { font: 700 1.25rem var(--latin); display: inline-block; }
.stepper output b.bump { animation: bump .35s var(--ease); }
.stepper output small { font-size: .74rem; color: var(--muted); margin-left: 2px; }
@keyframes bump { 40% { transform: translateY(-5px) scale(1.2); color: var(--accent); } }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); transition: opacity .3s; }
.ing .check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; color: transparent; transition: all .2s var(--ease); }
.ing .check .ic { width: 14px; height: 14px; stroke-width: 3; }
.ing.done .check { background: var(--accent-2); border-color: var(--accent-2); color: #fff; transform: rotate(-8deg); }
.ing.done .ing-name, .ing.done .amt { opacity: .4; text-decoration: line-through; }
.ing-name a { text-decoration: none; font-weight: 500; }
.ing-name a:hover { color: var(--accent); text-decoration: underline; }
.ing .opt, .ing .note { font-size: .7rem; color: var(--muted); margin-left: 6px; }
.ing .opt { border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }
.ing .note { display: block; margin: 0; }
.ing .amt { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ing .amt.scaled { color: var(--accent); }
.ing.in-group { padding-left: 12px; border-left: 2px solid var(--accent-soft); }
.ing-group { margin-top: 14px; padding: 4px 10px; display: inline-block; font-size: .76rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; }
.scale-note { margin: 12px 0 0; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.method-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.method-head p { margin: 0; }
.step-list { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity .3s; }
.step .num { font: italic 700 2.6rem/1 var(--latin); color: var(--accent); transition: color .3s; }
.step p { margin: 0; font-size: 1.04rem; }
.step.done { opacity: .45; }
.step.done .num { color: var(--muted); text-decoration: line-through; }
.point { margin-top: 12px !important; padding: 12px 16px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .9rem !important; position: relative; }
.point b { display: block; font: italic 700 .8rem var(--latin); color: var(--accent); letter-spacing: .04em; }
.timer { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 5px 14px; font-size: .84rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.timer:hover { border-color: var(--ink); }
.timer.running { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.note-card { padding: 20px 22px; border-radius: var(--radius); background: var(--card); outline: 1px solid var(--line); outline-offset: -1px; position: relative; overflow: hidden; }
.note-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.note-card h3 { font-size: 1rem; margin-bottom: 8px; }
.note-card ul { margin: 0; padding-left: 1.2em; }
.note-card li + li { margin-top: 6px; }
.note-card p { margin: 0; }
.used-ings { margin-top: 32px; }
.used-ings h3 { font-size: .95rem; margin-bottom: 10px; }
.used-ings p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.provenance { margin: 32px 0 0; }
@media (max-width: 900px) { .recipe-grid { grid-template-columns: 1fr; } .panel { position: static; max-height: none; } .step { grid-template-columns: 52px 1fr; } .step .num { font-size: 2rem; } }

/* cooking mode */
.cook { position: fixed; inset: 0; z-index: 80; background: #14110e; color: #f3ede3; display: grid; grid-template-rows: auto auto 1fr auto auto; padding: max(16px, env(safe-area-inset-top)) clamp(16px, 5vw, 64px) max(16px, env(safe-area-inset-bottom)); animation: cook-in .4s var(--ease); }
@keyframes cook-in { from { opacity: 0; transform: scale(1.03); } }
.cook .icon-btn { background: transparent; color: inherit; border-color: rgb(255 255 255 / .2); }
.cook-top { display: flex; align-items: center; gap: 12px; }
.cook-title { margin: 0 auto 0 0; font: 800 1.1rem var(--display); }
.cook-count { margin: 0; font: 600 1rem var(--latin); opacity: .7; }
.cook-count b { font-size: 1.4rem; color: #f5b35c; }
.cook-bar { height: 3px; background: rgb(255 255 255 / .12); border-radius: 3px; margin: 14px 0 0; overflow: hidden; }
.cook-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f07a4f, #f5b35c); width: 0; transition: width .4s var(--ease); }
.cook-stage { align-self: center; max-width: 900px; width: 100%; margin: 0 auto; }
.cook-step-no { font: italic 700 clamp(3rem, 10vw, 6rem)/1 var(--latin); color: #f07a4f; margin: 0 0 12px; }
.cook-text { font: 500 clamp(1.3rem, 3.4vw, 2.2rem)/1.7 var(--sans); margin: 0; }
.cook-text.enter { animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--dx, 30px)); } }
.cook-point { margin: 20px 0 0; padding: 14px 18px; border-left: 3px solid #f5b35c; background: rgb(255 255 255 / .05); border-radius: 0 12px 12px 0; font-size: clamp(.95rem, 2vw, 1.1rem); }
.cook-point:empty { display: none; }
.cook-timer { margin-top: 24px; background: #f3ede3; color: #14110e; border-color: #f3ede3; height: 56px; font-size: 1.05rem; }
.cook-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cook-nav .btn { height: 60px; flex: 1; max-width: 240px; justify-content: center; font-size: 1.05rem; }
.cook-nav .btn:not(.ghost) { background: #f07a4f; border-color: #f07a4f; color: #14110e; }
.cook-nav .btn.ghost { color: #f3ede3; border-color: rgb(255 255 255 / .25); }
.cook-ings { position: absolute; right: clamp(16px, 5vw, 64px); top: 76px; width: min(360px, calc(100% - 32px)); max-height: 60vh; overflow: auto; background: #211c17; border: 1px solid rgb(255 255 255 / .12); border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 60px rgb(0 0 0 / .5); }
.cook-ings h3 { font-size: .95rem; margin-bottom: 8px; }
.cook-ings ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.cook-ings li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgb(255 255 255 / .12); }
.cook-hint { text-align: center; margin: 10px 0 0; }

/* ---------- ingredient page ---------- */
.ing-hero { padding-bottom: 36px; background: linear-gradient(180deg, hsl(var(--tone) var(--tile-s) var(--tile-l) / .6), transparent); }
.ing-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.ing-hero .crumbs { padding-top: 18px; margin-bottom: 20px; }
.ing-hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.1; }
.ing-hero .visual.v-lg { box-shadow: var(--shadow-2); animation: spin-slow 40s linear infinite; }
@keyframes spin-slow { to { rotate: 360deg; } }
.badge { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--accent-2); color: #fff; font: 700 .72rem var(--sans); font-style: normal; vertical-align: middle; }
.aliases { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.aliases span { padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
@media (max-width: 760px) { .ing-hero-in { grid-template-columns: 1fr; } .ing-hero .visual.v-lg { width: 200px; order: -1; margin-top: 20px; } }
.ing-body { padding-bottom: 40px; }
.ing-facts { display: grid; gap: 22px; margin: 16px 0 56px; }
.fact-block h2 { font-size: 1.1rem; margin-bottom: 12px; }
.season { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; max-width: 720px; }
.season span { display: grid; gap: 6px; text-align: center; }
.season i { height: 36px; border-radius: 8px; background: var(--paper-2); transition: transform .3s; }
.season span.on i { background: linear-gradient(180deg, var(--gold), var(--accent)); }
.season span.now i { outline: 2px solid var(--ink); outline-offset: 2px; }
.season small { font: 600 .75rem var(--latin); color: var(--muted); }
.js .season span i { transform: scaleY(.2); transform-origin: bottom; }
.js .in .season span i { transform: none; transition: transform .6s var(--ease); transition-delay: calc(var(--m, 0) * 40ms); }
.kv { margin: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; outline: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 18px 22px; background: var(--card); }
.kv dt { font-weight: 700; font-size: .88rem; color: var(--muted); }
.kv dd { margin: 0; }
.kv .subs { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .kv div { grid-template-columns: 1fr; gap: 4px; } }
.ing-recipes .shelf-head .count { font-size: 3rem; }

/* ---------- search ---------- */
.big-search { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 26px 0 16px; padding: 6px 6px 6px 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--muted); box-shadow: 5px 5px 0 var(--ink); }
.big-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); }
.big-search .btn { height: 48px; }
mark { background: color-mix(in srgb, var(--gold) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- palette ---------- */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgb(20 16 12 / .45); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.palette-box { position: relative; width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--card); border-radius: 22px; box-shadow: 0 40px 80px -20px rgb(0 0 0 / .45); overflow: hidden; animation: pal-in .35s var(--ease); outline: 1px solid var(--line); }
@keyframes pal-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { flex: 1; height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--ink); }
.palette-body { overflow: auto; padding: 14px 12px; }
.palette-hint { margin: 0 8px 8px; font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.palette-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 8px 12px; }
.palette-results { list-style: none; margin: 0; padding: 0; }
.palette-results a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 14px; text-decoration: none; }
.palette-results li[aria-selected="true"] a, .palette-results a:hover { background: var(--paper-2); }
.pr-mark { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font: 800 1.3rem var(--display); color: hsl(var(--tone) 45% var(--plate-ink-l)); background: hsl(var(--tone) var(--tile-s) var(--tile-l)); background-size: cover; background-position: center; }
.pr-title { font-weight: 700; display: block; }
.pr-sub { font-size: .76rem; color: var(--muted); }
.pr-time { font: 600 .8rem var(--latin); color: var(--muted); }
.palette-foot { display: flex; gap: 16px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.palette-foot span { display: inline-flex; gap: 4px; align-items: center; }
.palette-empty { padding: 20px 10px; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .palette { padding: 0; align-items: stretch; } .palette-box { max-height: none; height: 100%; border-radius: 0; } .palette-foot { display: none; } }

/* toast & timers */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; translate: -50% 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(20px); transition: all .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.timer-dock { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85; display: grid; gap: 8px; }
.timer-chip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); animation: pop .4s var(--ease); font-size: .82rem; }
.timer-chip b { font: 700 1.1rem var(--latin); font-variant-numeric: tabular-nums; }
.timer-chip button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .15); color: inherit; cursor: pointer; }
.timer-chip.ring { background: var(--accent); animation: ring .5s ease-in-out 6; }
@keyframes ring { 50% { transform: rotate(-3deg) scale(1.05); } }

/* ---------- about / 404 ---------- */
.prose { max-width: 900px; padding-top: 40px; padding-bottom: 60px; }
.prose > h2 { font-size: 1.4rem; margin: 48px 0 10px; }
.principles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle { padding: 24px; border-radius: var(--radius); background: var(--card); outline: 1px solid var(--line); outline-offset: -1px; }
.principle span { font: italic 700 2.4rem/1 var(--latin); color: var(--accent); }
.principle h2 { font-size: 1.25rem; margin: 12px 0 8px; }
.principle p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.notfound { padding: 12vh 0; text-align: center; }
.nf-mark { margin: 0; font: italic 800 clamp(6rem, 20vw, 12rem)/1 var(--latin); color: transparent; -webkit-text-stroke: 2px var(--accent); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound .lead { margin-inline: auto; }
.notfound .actions { justify-content: center; margin-top: 28px; }

/* ---------- footer & tabbar ---------- */
.site-footer { margin-top: 80px; padding: 40px 0 36px; border-top: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.footer-mark { margin: 0 0 48px; font: italic 800 clamp(4.5rem, 17vw, 13rem)/.85 var(--latin); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); white-space: nowrap; user-select: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer-lead { font: 800 1.35rem/1.5 var(--display); margin: 0 0 8px; }
.footer-col { display: grid; align-content: start; gap: 6px; }
.footer-col h2 { font: 700 .76rem var(--sans); letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.footer-col a { text-decoration: none; font-size: .9rem; color: var(--ink-2); width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.copyright { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.tabbar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0; z-index: 50; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: none; text-decoration: none; font-size: .66rem; color: var(--muted); cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar [aria-current] { color: var(--accent); }
  .toast, .timer-dock { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .header-tools .icon-btn[data-theme-toggle] { width: 38px; height: 38px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .tabbar, .mini-bar, .read-progress, .actions, .stepper, .timer, .shelf, .panel-foot, .used-ings, .recipe-visual, .palette, .cook, .toast, .timer-dock { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-hero { background: none; padding: 0; }
  .recipe-hero-in, .recipe-grid { grid-template-columns: 1fr; }
  .panel { position: static; box-shadow: none; max-height: none; }
  .js .reveal { opacity: 1; transform: none; }
}
.palette-input input::-webkit-search-cancel-button, .big-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.palette-results .pr-sub { display: block; line-height: 1.5; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-results a > span:nth-child(2) { min-width: 0; }

/* ==========================================================================
   v3 — bold editorial layer
   ========================================================================== */
/* generated plate art */
.visual.art { display: grid; place-items: center; }
.visual.art > img, .visual.art > svg { width: 86%; height: auto; max-height: 96%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 16px 18px hsl(var(--tone) 40% 20% / .18)); transition: transform 1.1s var(--ease); }
.card:hover .visual.art > img { transform: rotate(-28deg) scale(1.05); }
.visual.art.v-slot > img { width: 92%; }
.visual.v-hero.art { aspect-ratio: 1; }
.visual.v-hero.art > svg { width: 90%; }
.feature .visual.v-hero.art > img { width: 88%; }
.feature:hover .visual.art > img { transform: rotate(-24deg); }

/* legend (plate anatomy) */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.legend button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: .82rem; cursor: pointer; transition: all .25s var(--ease); }
.legend button i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.legend button:hover, .legend button.on { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.legend.big button { font-size: .95rem; padding: 8px 18px 8px 10px; }
.legend.big button i { width: 20px; height: 20px; }
.legend-note { margin: 10px 0 0; font-size: .74rem; color: var(--muted); }
svg [data-ing] { transition: opacity .35s var(--ease), filter .35s; }
svg.focus [data-ing]:not(.on) { opacity: .1; filter: grayscale(1); }

/* header over dark stage */
.page-home:not(.scrolled) .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #f3ede3; }
.page-home:not(.scrolled) .nav a { color: rgb(243 237 227 / .75); }
.page-home:not(.scrolled) .nav a:hover { color: #fff; }
.page-home:not(.scrolled) .logo-type small { color: rgb(243 237 227 / .6); }
.page-home:not(.scrolled) .search-trigger, .page-home:not(.scrolled) .icon-btn[data-theme-toggle] { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: rgb(243 237 227 / .8); }
.page-home:not(.scrolled) .search-trigger kbd { background: transparent; color: rgb(243 237 227 / .6); border-color: rgb(255 255 255 / .25); }

/* stage (home hero) */
.stage { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(60px, 8vw, 110px); background: #13110e; color: #f3ede3; overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(50% 60% at 78% 45%, rgb(207 79 36 / .38), transparent 70%),
  radial-gradient(40% 40% at 10% 100%, rgb(223 159 50 / .22), transparent 70%),
  radial-gradient(30% 30% at 45% 0%, rgb(47 93 70 / .35), transparent 70%); animation: drift 20s ease-in-out infinite alternate; }
.stage-grain { position: absolute; inset: -50%; z-index: -1; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
.stage-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 60px); align-items: center; min-height: min(78vh, 760px); }
.stage .eyebrow { color: #f5b35c; }
.stage h1 { font-size: clamp(2.3rem, 4.9vw, 4.7rem); line-height: 1.12; letter-spacing: .01em; }
.stage h1 .l1, .stage h1 .l2 { display: block; white-space: nowrap; }
.stage h1 .l2 { color: transparent; -webkit-text-stroke: 1.4px #f3ede3; }
.stage .rotator { color: #f07a4f; }
.stage .rotator::after { background: #f5b35c; }
.stage .lead { color: rgb(243 237 227 / .72); max-width: 32em; }
.stage .hero-search { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .6); color: rgb(243 237 227 / .75); box-shadow: 6px 6px 0 #f07a4f; }
.stage .hero-search:hover { box-shadow: 9px 9px 0 #f5b35c; }
.stage .hero-search kbd { background: transparent; color: rgb(243 237 227 / .6); border-color: rgb(255 255 255 / .3); }
.stage .chip { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .2); color: rgb(243 237 227 / .85); }
.stage .chip:hover { border-color: #fff; color: #fff; }
.stage-plate { position: relative; justify-self: end; width: min(100%, 640px); aspect-ratio: 1; margin-right: clamp(-120px, -6vw, 0px); }
.big-plate { position: absolute; inset: 6%; display: block; border-radius: 50%; }
.big-plate img { width: 100%; height: 100%; animation: spin 90s linear infinite; filter: drop-shadow(0 50px 50px rgb(0 0 0 / .55)); transition: transform .8s var(--ease), opacity .5s; }
.big-plate.swap img { transform: rotate(-120deg) scale(.7); opacity: 0; }
.big-plate.enter img { animation: plate-in 1s var(--ease), spin 90s linear 1s infinite; }
@keyframes plate-in { from { transform: rotate(140deg) scale(.6); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgb(243 237 227 / .22); animation: spin 60s linear infinite reverse; }
.orbit span:nth-child(2) { inset: -7%; border-style: solid; border-color: rgb(243 237 227 / .08); animation-duration: 120s; animation-direction: normal; }
.orbit span:nth-child(1)::after { content: ""; position: absolute; top: 12%; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: #f5b35c; box-shadow: 0 0 20px #f5b35c; }
.pick-card { position: absolute; left: clamp(-40px, -3vw, 0px); bottom: 4%; width: min(330px, 70%); padding: 18px 20px; border-radius: 20px; background: rgb(20 17 14 / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 30px 60px rgb(0 0 0 / .4); }
.pick-no { margin: 0; font: 600 .78rem var(--latin); color: rgb(243 237 227 / .55); }
.pick-no b { font-size: 1rem; color: #f5b35c; }
.pick-label { font-family: var(--sans); letter-spacing: .12em; }
.pick-meta { margin: 6px 0 0; font-size: .76rem; color: rgb(243 237 227 / .6); }
.pick-title { font-size: 1.7rem; margin: 2px 0 12px; }
.pick-title a { text-decoration: none; }
.pick-title a:hover { color: #f5b35c; }
.pick-title.swap { animation: title-swap .6s var(--ease); }
@keyframes title-swap { 0% { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.pick-nav { display: flex; align-items: center; gap: 10px; }
.pick-nav .icon-btn { background: transparent; color: #f3ede3; border-color: rgb(255 255 255 / .25); width: 36px; height: 36px; }
.pick-bar { flex: 1; height: 2px; background: rgb(255 255 255 / .15); border-radius: 2px; overflow: hidden; }
.pick-bar i { display: block; height: 100%; width: 100%; background: #f07a4f; transform-origin: left; transform: scaleX(0); }
.pick-bar i.run { animation: bar 6.5s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.stage-scroll { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: grid; justify-items: center; gap: 6px; font: italic .75rem var(--latin); color: rgb(243 237 227 / .5); }
.stage-scroll i { width: 1px; height: 36px; background: linear-gradient(#f3ede3, transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .stage-in { grid-template-columns: 1fr; min-height: 0; }
  .stage-plate { order: -1; justify-self: center; width: min(92vw, 460px); margin: 0 0 -30px; }
  .pick-card { left: 50%; translate: -50% 0; bottom: -4%; width: min(320px, 88%); padding: 14px 16px; }
  .pick-title { font-size: 1.35rem; margin-bottom: 8px; }
  .stage-scroll { display: none; }
  .stage h1 { margin-top: 0; }
  .stage-copy { padding-top: 64px; }
  .stage-plate { width: min(84vw, 400px); }
}

/* ticker v3 */
.ticker { background: #f07a4f; color: #1a120c; border: 0; }
:root[data-theme="dark"] .ticker { background: #f07a4f; }
.ticker-track > div { gap: 30px; padding: 16px 15px; font-size: 1.1rem; }
.ticker a { display: inline-flex; align-items: center; gap: 10px; opacity: 1; }
.ticker a i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px #1a120c; }
.ticker a:hover { color: #fff; }

/* anatomy */
.anatomy { position: relative; padding: clamp(64px, 9vw, 130px) 0; background: radial-gradient(60% 70% at 80% 50%, hsl(var(--tone) var(--tile-s) var(--tile-l) / .7), transparent 70%); overflow: hidden; }
.anatomy-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.anatomy h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.2; }
.anatomy h2 span { display: block; white-space: nowrap; }
.anatomy-dish { margin: 22px 0 0; font-size: .9rem; color: var(--ink-2); }
.anatomy-dish a { font-weight: 700; color: var(--accent); }
.anatomy-plate { position: relative; }
.anatomy-plate::before { content: "DATA → PLATE"; position: absolute; top: -8px; right: 0; font: italic 700 .8rem var(--latin); letter-spacing: .2em; color: var(--muted); }
.spin-slow svg { width: 100%; height: auto; display: block; animation: spin 160s linear infinite; }
.anatomy-plate:hover .spin-slow svg, .anatomy.focusing .spin-slow svg { animation-play-state: paused; }
@media (max-width: 900px) { .anatomy-in { grid-template-columns: 1fr; } .anatomy-plate { max-width: 460px; margin: 0 auto; } }

/* plate wall */
.wall { padding: clamp(56px, 8vw, 100px) 0; background: var(--ink); color: var(--paper); overflow: hidden; }
.wall-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.wall-head h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.wall .eyebrow { color: var(--gold); }
.wall .more { color: var(--paper); }
.wall-row { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wall-track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.wall-row.rtl .wall-track { animation-direction: reverse; animation-duration: 80s; }
.wall-row:hover .wall-track { animation-play-state: paused; }
.wall-plate { position: relative; flex: none; width: clamp(130px, 14vw, 190px); text-decoration: none; }
.wall-plate img { width: 100%; height: auto; transition: transform .8s var(--ease); filter: drop-shadow(0 18px 20px rgb(0 0 0 / .45)); }
.wall-plate:hover img { transform: scale(1.12) rotate(-30deg); }
.wall-plate span { position: absolute; left: 50%; bottom: 4px; translate: -50% 0; white-space: nowrap; background: var(--paper); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); }
.wall-plate:hover span, .wall-plate:focus-visible span { opacity: 1; transform: none; }

/* guides */
.guides-home { margin: clamp(56px, 8vw, 96px) 0; }
.guide-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 250px; padding: 22px; border-radius: var(--radius); text-decoration: none; background: var(--card); outline: 1px solid var(--line); outline-offset: -1px; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.guide-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: hsl(var(--tone) var(--tile-s) var(--tile-l)); transition: transform .8s var(--ease); z-index: 0; }
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.guide-card:hover::after { transform: scale(1.5); }
.guide-card > * { position: relative; z-index: 1; }
.gc-no { font: italic 700 2.6rem/1 var(--latin); color: var(--accent); }
.gc-cat { font-size: .72rem; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.gc-title { font: 800 1.3rem/1.35 var(--display); }
.gc-sum { font-size: .84rem; color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gc-foot { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.guide-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); padding-top: 36px; padding-bottom: 20px; align-items: start; }
.g-sec { padding: 26px 0; border-bottom: 1px solid var(--line); }
.g-sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 12px; }
.g-sec h2 span { font: italic 700 1.4rem var(--latin); color: var(--accent); }
.g-sec p { margin: 0; font-size: 1.02rem; }
.g-items { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: gi; display: grid; gap: 10px; }
.g-items li { counter-increment: gi; position: relative; padding: 14px 16px 14px 52px; border-radius: var(--radius-sm); background: var(--card); outline: 1px solid var(--line); outline-offset: -1px; }
.g-items li::before { content: counter(gi); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 .8rem var(--latin); }
.guide-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.side-card { padding: 20px; border-radius: var(--radius); background: var(--card); outline: 1px solid var(--line); outline-offset: -1px; }
.side-card h3 { font-size: .95rem; margin-bottom: 10px; }
.side-card p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); text-decoration: none; font-size: .9rem; }
.side-list a:hover { color: var(--accent); }
@media (max-width: 900px) { .guide-body { grid-template-columns: 1fr; } .guide-side { position: static; } }
.gl { color: inherit; text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 700; }
.gl:hover { color: var(--accent); }
.gpop { position: absolute; z-index: 70; width: min(320px, 86vw); padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); font-size: .84rem; line-height: 1.65; pointer-events: none; animation: pal-in .25s var(--ease); }
.gpop b { display: block; font: 800 1rem var(--display); margin-bottom: 4px; }
.gpop small { display: block; margin-top: 8px; color: var(--gold); font-weight: 700; }

/* gallery */
.plate-grid { display: grid; gap: 28px 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.plate-cell { display: grid; justify-items: center; gap: 6px; text-decoration: none; text-align: center; }
.plate-cell img { width: 100%; height: auto; transition: transform 1s var(--ease); filter: drop-shadow(0 18px 18px hsl(var(--tone) 40% 20% / .2)); }
.plate-cell:hover img { transform: rotate(-40deg) scale(1.06); }
.pc-name { font: 800 1.05rem var(--display); }
.pc-meta { font-size: .76rem; color: var(--muted); }

/* categories v3 */
.cat-art { position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px; transition: transform 1s var(--ease); }
.cat-art img { width: 100%; height: 100%; filter: drop-shadow(0 12px 14px hsl(var(--tone) 40% 18% / .3)); }
.cat-card:hover .cat-art { transform: rotate(-35deg) scale(1.08); }
@media (max-width: 560px) { .cat-art { width: 110px; height: 110px; } }

/* ingredient marks show real color */
.ing-tile-mark { color: transparent; background: radial-gradient(circle, var(--c, #ddd) 0 34%, var(--plate-well) 35% 50%, hsl(var(--tone) 45% var(--rim-l)) 51% 56%, var(--plate) 57%); }

/* tilt & magnetic */
.card.tilt, .card.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
.card.tilt:hover { --ty: -6px; }
.magnetic { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s; }

.ing-plate .plate { background: radial-gradient(circle, var(--c) 0 38%, var(--plate-well) 39% 52%, hsl(var(--tone) 45% var(--rim-l)) 53% 55.5%, var(--plate) 56.5% 100%); }
.ing-plate .plate span { display: none; }

.tabbar { color: var(--ink); }
@media (max-width: 720px) { .page-home .stage .chips { margin-bottom: 8px; } }
