/* れしぴ123 — 台所に置いてある、使い込んだ料理ノート */
:root {
  --paper: #FFF6E9; --paper-2: #FBEAD2; --card: #FFFDF9; --ink: #3B2A20; --muted: #8B7565; --line: #EAD7BD;
  --accent: #E4572E; --accent-dark: #BF4320; --accent-soft: #FDE6DC;
  --sage: #6F9270; --sage-soft: #E6F0E3; --mustard: #E9B44C; --mustard-soft: #FCF0D3;
  --warn: #C4431F; --warn-soft: #FDE9E1;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --tabbar-h: 62px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0; color: var(--ink); font-family: var(--maru); font-size: 17px; line-height: 1.7; font-weight: 500;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(167, 128, 84, .09) 1px, transparent 1.2px);
  background-size: 14px 14px;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
body.has-action { padding-bottom: calc(var(--tabbar-h) + 150px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--accent-dark); }
[hidden] { display: none !important; }
main { max-width: 640px; margin: 0 auto; padding: 14px 16px 28px; }
section { margin-top: 22px; }
img { max-width: 100%; }

/* ヘッダー */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: rgba(255, 246, 233, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}
.topbar h1 { margin: 0; font-family: var(--mincho); font-weight: 900; font-size: 1.2rem; line-height: 1.25; flex: 1; min-width: 0; letter-spacing: .02em; }
.topbar h1 small { display: block; font-family: var(--maru); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.brand-name b { color: var(--accent); font-weight: 900; letter-spacing: .06em; margin-left: 1px; }
.brand img { display: block; border-radius: 10px; box-shadow: 0 2px 0 var(--accent-dark); }
.back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; text-decoration: none; font-size: 1.9rem; line-height: 1; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); padding-bottom: 4px; }

/* 1・2・3 の進み具合 */
.steps123 { list-style: none; display: flex; justify-content: center; gap: 6px; margin: 0 auto; padding: 10px 16px 0; max-width: 640px; font-size: .78rem; color: var(--muted); }
.steps123 li { display: flex; align-items: center; gap: 5px; flex: 1; justify-content: center; padding: 5px 0; border-radius: 999px; background: var(--paper-2); }
.steps123 b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--card); font-size: .75rem; color: var(--muted); }
.steps123 .is-now { background: var(--accent); color: #fff; font-weight: 700; }
.steps123 .is-now b { color: var(--accent); }
.steps123 .is-done { background: var(--sage-soft); color: var(--sage); }
.steps123 .is-done b { background: var(--sage); color: #fff; font-size: 0; }
.steps123 .is-done b::after { content: "✓"; font-size: .75rem; }

/* 下のタブ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--card); border-top: 1.5px solid var(--line);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; }
.tab-icon { font-size: 1.35rem; line-height: 1.2; filter: grayscale(.9) opacity(.6); transition: transform .2s, filter .2s; }
.tabbar a.is-active { color: var(--accent-dark); }
.tabbar a.is-active .tab-icon { filter: none; transform: translateY(-2px) scale(1.12); }

/* 共通の部品 */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 3px 0 var(--line); }
.card.paper { background-image: linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(234, 215, 189, .0) 100%); }
.stack > * + * { margin-top: 12px; }
.hint, .model-note { color: var(--muted); font-size: .82rem; margin: 6px 0 0; line-height: 1.6; }
.model-note { text-align: center; margin-top: 18px; }
.center { display: block; text-align: center; }
.error-text { color: var(--warn); margin: 0; }
.ok-text { color: var(--sage); margin: 0; font-weight: 700; }
.plain { margin: 8px 0; padding-left: 1.1em; }
.sec-title { font-family: var(--mincho); font-weight: 900; font-size: 1.12rem; margin: 0 0 10px; display: flex; align-items: baseline; gap: 6px; }
.sec-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-1px); }
.sec-title small { font-family: var(--maru); font-weight: 500; font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; padding: 2px 11px; margin-right: 6px; border-radius: 999px; background: var(--mustard-soft); color: #8A5A00; font-size: .8rem; font-weight: 700; white-space: nowrap; }

input[type=text], input[type=password], input[type=search], select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px; appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; cursor: pointer; color: inherit; }
.btn-primary {
  display: block; width: 100%; padding: 15px 16px; border: 0; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-dark); transition: transform .08s, box-shadow .08s;
}
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn-primary:disabled { background: #D9C8B4; box-shadow: 0 4px 0 #C4B29C; color: #fff; }
.btn-primary.inline { display: inline-block; width: auto; padding: 12px 26px; }
.btn-ghost.inline { display: inline-block; margin-top: 14px; padding: 12px 26px; }
.btn-ghost { padding: 13px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: 0 3px 0 var(--line); }
.btn-text { border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; padding: 8px 4px; white-space: nowrap; }
.btn-dashed { width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.fold { margin-top: 18px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 0 14px; background: rgba(255, 253, 249, .6); }
.fold summary { padding: 13px 0; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; }
.fold > *:last-child { margin-bottom: 14px; }

/* S1 食材 */
.lead { margin: 4px 0 14px; }
.lead-title { font-family: var(--mincho); font-weight: 900; font-size: 1.45rem; line-height: 1.4; margin: 0; }
.lead-sub { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.search { position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1rem; opacity: .6; pointer-events: none; }
.search input { padding-left: 42px; border-radius: 999px; box-shadow: 0 3px 0 var(--line); }
.add-custom { margin-top: 2px; }
.cat-tabs {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 10; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 14px -16px 0; padding: 8px 16px; background: rgba(255, 246, 233, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 66px; padding: 6px 2px 5px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-size: .68rem; font-weight: 700; line-height: 1.3; }
.cat-tabs img, .chip-section h2 img { mix-blend-mode: multiply; border-radius: 50%; }
.chip-section h2 { display: flex; align-items: center; gap: 8px; font-family: var(--mincho); font-weight: 900; font-size: 1.1rem; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 15px; border-radius: 999px; user-select: none; -webkit-user-select: none;
  border: 1.5px solid var(--line); background: var(--card); box-shadow: 0 3px 0 var(--line); font-weight: 500; transition: transform .08s, box-shadow .08s, background .15s;
}
.chip span i { font-style: normal; font-size: 1.05rem; line-height: 1; }
.chip:active span { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent-dark); box-shadow: 0 3px 0 var(--accent-dark); color: #fff; font-weight: 700; animation: pop .22s ease-out; }
.chip input:checked + span::after { content: "✓"; font-size: .85rem; margin-left: 1px; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip.small span { padding: 7px 13px; font-size: .88rem; }
.chip.small input:checked + span { background: var(--sage); border-color: #55785A; box-shadow: 0 3px 0 #55785A; }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.chip-delete { padding: 8px 13px; border-radius: 999px; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font-size: .88rem; }

/* 下に出る決定バー */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 25;
  padding: 10px 16px 12px; background: var(--card); border-top: 1.5px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 18px rgba(98, 66, 35, .1);
}
.actionbar > * { max-width: 608px; margin-left: auto; margin-right: auto; }
.actionbar-row { display: flex; align-items: center; gap: 10px; }
.actionbar-row .btn-primary { flex: 1; }
.tray { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.tray:empty { display: none; }
.tray::-webkit-scrollbar { display: none; }
.tray-chip { flex: none; padding: 4px 11px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
body:not(.has-selection) #actionbar .btn-text { visibility: hidden; }

/* S2 条件 */
.selected-summary { color: var(--muted); font-size: .88rem; margin: 6px 0 4px; line-height: 1.8; }
.selected-summary .label { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 6px; background: var(--paper-2); color: var(--ink); font-size: .74rem; font-weight: 700; }
.step-title { display: flex; align-items: center; gap: 8px; font-family: var(--mincho); font-weight: 900; font-size: 1.15rem; margin: 0 0 12px; }
.step-title span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--maru); font-size: .85rem; }
.genre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.genre-card input, .time-pill input { position: absolute; opacity: 0; pointer-events: none; }
.genre-card.wide { grid-column: 1 / -1; }
.genre-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px 12px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .08s, box-shadow .08s; }
.genre-card.wide .genre-inner { flex-direction: row; justify-content: center; gap: 12px; padding: 6px 12px; }
.genre-card.wide img { width: 84px; height: 84px; }
.genre-inner img { mix-blend-mode: multiply; }
.genre-inner b { font-size: 1.05rem; }
.genre-card:active .genre-inner { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.genre-card input:checked + .genre-inner { border-color: var(--accent); box-shadow: 0 4px 0 var(--accent-dark); background: #FFF1E8; }
.genre-card input:checked + .genre-inner b { color: var(--accent-dark); }
.genre-card input:checked + .genre-inner b::before { content: "✓ "; }
.genre-card input:focus-visible + .genre-inner, .time-pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.time-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-pill span { display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 12px 0 10px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); font-size: .78rem; color: var(--muted); }
.time-pill b { font-family: var(--mincho); font-size: 1.5rem; color: var(--ink); }
.time-pill input:checked + span { border-color: var(--accent); background: var(--accent); box-shadow: 0 4px 0 var(--accent-dark); color: #fff; }
.time-pill input:checked + span b { color: #fff; }

/* S3 レシピ案 */
.loading { text-align: center; padding: 26px 0 40px; }
.loading img { mix-blend-mode: multiply; }
.bob { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
.loading-text { font-family: var(--mincho); font-weight: 700; font-size: 1.1rem; margin: 4px 0 0; min-height: 1.8em; }
.ideas { margin-top: 12px; }
.idea { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); animation: rise .45s both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.idea:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.idea-no { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mustard); color: #fff; font-family: var(--mincho); font-weight: 900; font-size: 1.05rem; }
.idea-body { flex: 1; min-width: 0; }
.idea-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.idea h2 { font-family: var(--mincho); font-weight: 900; font-size: 1.12rem; line-height: 1.4; margin: 0; }
.idea p { margin: 4px 0 0; font-size: .9rem; line-height: 1.6; }
.idea-go { flex: none; font-size: 1.6rem; color: var(--line); }
.idea-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px !important; }
.mini { font-size: .74rem; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.mini.have { background: var(--sage-soft); color: #4C6E50; }
.mini.ok { background: transparent; color: var(--sage); border: 1px dashed var(--sage); }
.mini.missing { background: var(--warn-soft); color: var(--warn); }
.error-card { border-color: var(--warn); }
.lib-row { display: flex; gap: 12px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 10px; scrollbar-width: none; }
.lib-row::-webkit-scrollbar { display: none; }
.lib-card { position: relative; flex: none; width: 150px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: end; padding: 10px; color: #fff; text-decoration: none; box-shadow: 0 3px 0 var(--line); }
.lib-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 22, 10, .72), transparent 62%); }
.lib-title, .lib-meta { position: relative; z-index: 1; }
.lib-title { font-weight: 700; font-size: .9rem; line-height: 1.35; }
.lib-meta { font-size: .72rem; opacity: .9; }

/* レシピ */
.recipe > * + * { margin-top: 14px; }
.hero { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1.5px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.hero img.is-loaded { opacity: 1; }
.hero img.is-loaded ~ .hero-wait { display: none; }
.hero-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.hero-note { position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: .68rem; padding: 2px 9px; border-radius: 999px; background: rgba(40, 22, 10, .5); color: #fff; }
.hero.no-image { aspect-ratio: 5 / 2; }
.hero.no-image .hero-wait, .hero.no-image .hero-note { display: none; }
.genre-japanese { background: linear-gradient(135deg, #C8553D, #E9B44C); }
.genre-western { background: linear-gradient(135deg, #D1603D, #F0A868); }
.genre-chinese { background: linear-gradient(135deg, #A63A2B, #E4572E); }
.genre-other { background: linear-gradient(135deg, #5F8563, #C9D36A); }
.genre-any { background: linear-gradient(135deg, #B5651D, #E9B44C); }
.recipe-title { font-family: var(--mincho); font-weight: 900; font-size: 1.55rem; line-height: 1.4; margin: 18px 0 0 !important; }
.recipe-meta { margin: 8px 0 0 !important; }
.recipe-actions { display: flex; gap: 10px; }
.fav-button { flex: 1; padding: 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); box-shadow: 0 3px 0 var(--line); font-weight: 700; font-size: .95rem; }
.fav-button.is-on { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); box-shadow: 0 3px 0 var(--accent); animation: pop .25s; }
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1.5px dotted var(--line); }
.ingredient-list li:last-child { border-bottom: 0; }
.ing-qty { flex: none; font-weight: 700; }
.ingredient-list .missing .ing-name { color: var(--warn); font-weight: 700; }
.ing-name em { font-style: normal; font-size: .68rem; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); }
.all-ok { margin: 12px 0 0; padding: 9px; border-radius: 12px; background: var(--sage-soft); color: #4C6E50; font-weight: 700; font-size: .9rem; text-align: center; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; }
.steps li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1.5px dotted var(--line); font-size: 1.06rem; line-height: 1.75; cursor: pointer; }
.steps li:last-child { border-bottom: 0; }
.step-no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mincho); font-weight: 900; transition: background .2s; }
.steps li.is-done .step-no { background: var(--sage); font-size: 0; }
.steps li.is-done .step-no::after { content: "✓"; font-size: 1rem; }
.steps li.is-done .step-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.tips { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--mustard-soft); font-size: .95rem; }
.tips b { display: inline-block; margin-right: 8px; padding: 0 9px; border-radius: 999px; background: var(--mustard); color: #fff; font-size: .78rem; }
.safety { border-color: #EBC2B3; background: var(--warn-soft); box-shadow: 0 3px 0 #EBC2B3; }
.safety ul { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.link-list { display: grid; gap: 8px; }
.link-list a { padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; font-size: .92rem; }

/* レシピ集 */
.filter > * + * { margin-top: 10px; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row { display: flex; gap: 8px; }
.filter-row select { flex: 1; min-width: 0; padding: 10px 12px; font-size: .9rem; border-radius: 12px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); animation: rise .4s both; animation-delay: calc(var(--i, 0) * 50ms); }
.tile-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--line); box-shadow: 0 4px 0 var(--line); background: var(--paper-2); }
.tile.genre-japanese .tile-photo, .tile.genre-western .tile-photo, .tile.genre-chinese .tile-photo, .tile.genre-other .tile-photo, .tile.genre-any .tile-photo { background: var(--paper-2); }
.tile { background: none !important; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-photo img.placeholder { mix-blend-mode: multiply; opacity: .75; padding: 12px; object-fit: contain; }
.tile-fav { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--accent); font-style: normal; font-size: .9rem; }
.tile-title { font-weight: 700; font-size: .95rem; line-height: 1.45; margin-top: 5px; }
.tile-meta { font-size: .74rem; color: var(--muted); }
.empty { text-align: center; padding: 20px 0; color: var(--muted); }
.empty p { margin: 10px 0; }
.empty img { mix-blend-mode: multiply; }
.hello { text-align: center; margin: 18px 0; }
.hello img { border-radius: 24px; box-shadow: 0 4px 0 var(--accent-dark); }

@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* イラストの地色（#FEF5E4）にカードの地を合わせて、絵が四角く浮かないようにする */
.genre-inner { background: #FEF5E4; }
.genre-inner img { mix-blend-mode: normal; border-radius: 16px; }
.genre-card input:checked + .genre-inner { background: #FEF5E4; }
.genre-card.wide .genre-inner img { border-radius: 14px; }
.tile-photo { background: #FEF5E4; }
.tile-photo img.placeholder { mix-blend-mode: normal; opacity: 1; padding: 6px; }
.cat-tabs a { background: #FEF5E4; }
.cat-tabs img { mix-blend-mode: normal; }

/* メイン料理と副菜 */
.course-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.course-pill input { position: absolute; opacity: 0; pointer-events: none; }
.course-pill span { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 4px 9px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); line-height: 1.35; transition: transform .08s, box-shadow .08s; }
.course-pill i { font-style: normal; font-size: 1.7rem; line-height: 1.3; }
.course-pill b { font-size: .98rem; }
.course-pill small { font-size: .66rem; color: var(--muted); }
.course-pill:active span { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.course-pill input:checked + span { border-color: var(--accent); background: #FFF1E8; box-shadow: 0 4px 0 var(--accent-dark); }
.course-pill input:checked + span b { color: var(--accent-dark); }
.course-pill input:checked + span b::before { content: "✓ "; }
.course-pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tag-course { background: var(--sage-soft); color: #4C6E50; }
.group-title { display: flex; align-items: center; gap: 8px; font-family: var(--mincho); font-weight: 900; font-size: 1.2rem; margin: 22px 0 0; padding-bottom: 6px; border-bottom: 2px dashed var(--line); }
.group-title:first-child { margin-top: 4px; }
.group-title i { font-style: normal; }
.idea.course-side .idea-no { background: var(--sage); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--paper-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 0; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }

/* 人数 */
.servings { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.servings-label { flex: 1; font-weight: 700; font-size: .95rem; }
.servings-num { min-width: 78px; text-align: center; font-size: .9rem; color: var(--muted); }
.servings-num b { font-family: var(--mincho); font-size: 1.6rem; color: var(--ink); margin-right: 2px; }
.step-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1; box-shadow: 0 3px 0 var(--accent-dark); transition: transform .08s, box-shadow .08s; }
.step-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-dark); }
.step-btn:disabled { background: #D9C8B4; box-shadow: 0 3px 0 #C4B29C; }

/* アレルギー */
.allergy-note { margin: 0 0 12px; padding: 9px 13px; border-radius: 14px; background: #EAF1F7; color: #2F4A63; font-size: .85rem; line-height: 1.6; }
.allergy-note a { color: #2F4A63; font-weight: 700; margin-left: 4px; }
.btn-primary + .allergy-caution, .btn-primary + .hint { margin-top: 18px; }
.allergy-caution { margin: 12px 0 0; padding: 10px 13px; border-radius: 14px; background: #EAF1F7; color: #2F4A63; font-size: .84rem; line-height: 1.65; }
.allergy-alert { padding: 14px 16px; border-radius: 18px; background: var(--warn); color: #fff; box-shadow: 0 4px 0 #8E2F14; }
.allergy-alert p { margin: 4px 0 0; font-size: .88rem; }
.tag-allergy { background: #EAF1F7; color: #2F4A63; }
.chip.is-blocked span { opacity: .38; background: repeating-linear-gradient(135deg, var(--card) 0 6px, var(--paper-2) 6px 12px); box-shadow: none; text-decoration: line-through; }
.chip.is-blocked { pointer-events: none; }
.chip.small.is-blocked { pointer-events: auto; }
.chip.small.allergy input:checked + span { background: #3F6A8F; border-color: #2F4A63; box-shadow: 0 3px 0 #2F4A63; }

/* つくり方 */
.step-title small { font-family: var(--maru); font-weight: 500; font-size: .74rem; color: var(--muted); margin-left: 4px; }
.method-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method-pill input { position: absolute; opacity: 0; pointer-events: none; }
.method-pill span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); line-height: 1.3; transition: transform .08s, box-shadow .08s; }
.method-pill i { grid-row: 1 / 3; font-style: normal; font-size: 1.6rem; }
.method-pill b { font-size: .92rem; }
.method-pill small { font-size: .66rem; color: var(--muted); }
.method-pill:active span { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.method-pill input:checked + span { border-color: var(--accent); background: #FFF1E8; box-shadow: 0 4px 0 var(--accent-dark); }
.method-pill input:checked + span b { color: var(--accent-dark); }
.method-pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tag-method { background: #F3E8F7; color: #6B3F80; }
.filter-row { flex-wrap: wrap; }
.filter-row select { flex: 1 1 30%; }

/* ===== 常設ヘッダー、ページ見出し、ドロワー（v9） ===== */
.topbar { gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px 14px; }
.brand { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--mincho); font-weight: 900; font-size: 1.18rem; letter-spacing: .02em; }
.brand-text small { font-size: .64rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shield { flex: none; display: flex; align-items: center; gap: 3px; max-width: 38vw; padding: 5px 10px; border-radius: 999px; background: #EAF1F7; color: #2F4A63; font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; }
.shield span { overflow: hidden; text-overflow: ellipsis; }
.burger { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); box-shadow: 0 3px 0 var(--line); }
.burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); }
.burger:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.page-head { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; padding: 14px 16px 0; }
.page-head h1 { margin: 0; font-family: var(--mincho); font-weight: 900; font-size: 1.35rem; line-height: 1.35; }
.page-head h1:empty { display: none; }
.page-head .back { width: auto; height: auto; margin: 0; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); white-space: nowrap; }
h1.lead-title { margin: 0; }
.steps123 a, .steps123 li > span { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; color: inherit; text-decoration: none; }
.steps123 li { padding: 0; }
.steps123 a, .steps123 li > span { padding: 5px 0; }
.steps123 .is-done a::after { content: "（もどる）"; font-size: .62rem; opacity: .8; }
.tabbar a { font-size: .66rem; }
.cat-tabs { top: calc(env(safe-area-inset-top, 0px) + 60px); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(59, 42, 32, .42); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(84vw, 340px); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); background: var(--paper); border-left: 2px dashed var(--line); box-shadow: -10px 0 30px rgba(59, 42, 32, .18); transform: translateX(105%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-size: 1.5rem; line-height: 1; }
.drawer-shield { display: block; margin-bottom: 10px; padding: 10px 13px; border-radius: 14px; background: #EAF1F7; color: #2F4A63; font-size: .82rem; text-decoration: none; }
.drawer-shield b { display: block; font-size: .95rem; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 8px; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; }
.drawer-nav a:active { background: var(--paper-2); }
.drawer-nav i { font-style: normal; font-size: 1.25rem; width: 28px; text-align: center; }
.drawer-nav hr { border: 0; border-top: 2px dashed var(--line); margin: 8px 0; }
.how-steps { list-style: none; margin: 0 0 16px; padding: 0; }
.how-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1.5px dotted var(--line); }
.how-steps li:last-child { border-bottom: 0; }
.how-steps li > b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mincho); font-size: 1.2rem; }
.how-steps p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.65; }
main > section.card + section.card, main > .card + .card { margin-top: 16px; }

.seg.two { grid-template-columns: repeat(2, 1fr); }
#join-url { font-size: .78rem; color: var(--muted); }

/* 使い方 */
.key-points { list-style: none; margin: 12px 0 0; padding: 0; }
.key-points li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1.5px dotted var(--line); }
.key-points li:last-child { border-bottom: 0; }
.key-points i { flex: none; font-style: normal; font-size: 1.6rem; line-height: 1.3; }
.key-points p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.65; }
#faq .fold { margin-top: 10px; background: var(--card); }
#faq .fold summary { color: var(--ink); font-size: .95rem; }
#faq .fold p { margin: 0 0 14px; font-size: .9rem; line-height: 1.7; }
main > section.card p { margin: 0 0 8px; }

.ai-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--paper-2); color: var(--ink); font-size: .84rem; line-height: 1.7; }

/* ===== ポップなヘッダー（v14）: 朱色の帯、波形の縁、丸バッジの 1・2・3 ===== */
.topbar {
  background-color: var(--accent);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .09) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, .09) 50%, transparent 50%);
  background-size: 22px 22px;
  border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: calc(env(safe-area-inset-top, 0px) + 9px) 12px 9px 12px;
  box-shadow: 0 2px 0 var(--accent-dark);
}
.topbar::after {  /* 波形の縁 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; pointer-events: none;
  background: radial-gradient(circle at 10px 0, var(--accent) 9.5px, transparent 10px) 0 0 / 20px 10px repeat-x;
  filter: drop-shadow(0 2px 0 var(--accent-dark));
}
.brand { gap: 10px; color: #fff; }
.brand img { width: 42px; height: 42px; border-radius: 13px; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); transform: rotate(-7deg); transition: transform .2s; }
.brand:active img { transform: rotate(4deg) scale(.95); }
.brand-text { gap: 1px; }
.brand-text small { color: rgba(255, 255, 255, .92); font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.logo { display: inline-flex; align-items: center; gap: 5px; line-height: 1; }
.logo-word { font-family: var(--maru); font-weight: 900; font-size: 1.42rem; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.logo-nums { display: inline-flex; }
.logo-nums b {
  display: grid; place-items: center; width: 24px; height: 24px; margin-left: -4px; border-radius: 50%;
  font-family: var(--maru); font-weight: 900; font-size: .95rem; color: #fff; border: 2.5px solid #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  animation: hop .7s cubic-bezier(.3, 1.6, .5, 1) both;
}
.logo-nums b:first-child { margin-left: 0; }
.logo-nums b:nth-child(1) { background: var(--mustard); transform: rotate(-8deg); animation-delay: .15s; }
.logo-nums b:nth-child(2) { background: var(--sage); transform: rotate(5deg); animation-delay: .27s; }
.logo-nums b:nth-child(3) { background: #4C8FB5; transform: rotate(-4deg); animation-delay: .39s; }
@keyframes hop { 0% { translate: 0 -14px; opacity: 0; } 60% { translate: 0 2px; opacity: 1; } 100% { translate: 0 0; } }
.shield { background: #fff; color: var(--accent-dark); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.burger { border: 0; background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); border-radius: 50%; width: 46px; height: 46px; padding: 0 13px; }
.burger span { background: var(--accent-dark); height: 3px; }
.burger span:nth-child(2) { width: 70%; }
.burger:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.steps123 { padding-top: 18px; }
.page-head { padding-top: 22px; }
.steps123 + .page-head { padding-top: 12px; }
.cat-tabs { top: calc(env(safe-area-inset-top, 0px) + 66px); padding-top: 14px; }
/* ドロワーの中のロゴは、生成りの地に合わせる */
.drawer .logo-word { color: var(--ink); text-shadow: none; font-size: 1.3rem; }
.drawer .logo-nums b { border-color: var(--paper); box-shadow: none; animation: none; }

/* 食材のアイコン（1枚のスプライトから切り出す。絵文字は、絵と名前が合わないものがあったのでやめた） */
.chip span i.ing {
  --s: 30px; flex: none; width: var(--s); height: var(--s); margin: -5px 1px -5px -7px; border-radius: 50%;
  background-image: url("/static/img/ingredients.webp?v=1"); background-repeat: no-repeat;
  background-size: calc(var(--cols, 12) * var(--s)) auto;
  background-position: calc(var(--c) * var(--s) * -1) calc(var(--r) * var(--s) * -1);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9);
}

/* 見出しの行: もどるリンクを上に、見出しを下に */
.page-head { flex-wrap: wrap; row-gap: 8px; }
.page-head .back { order: -1; flex-basis: auto; }
.page-head .back + h1, .page-head h1 { flex-basis: 100%; }

.ai-note a { color: var(--accent-dark); }

/* エラーの表示（全ページ用の error.html と、断片の fragments/error.html で見た目をそろえる） */
.error-card { text-align: center; }
.error-illust { display: block; margin: 0 auto; mix-blend-mode: multiply; }
.notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--mustard-soft); font-size: .9rem; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 60; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: .9rem; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.ing-qty { flex: 0 1 auto; max-width: 55%; text-align: right; }

/* 追加の食材の絵（別の1枚。見えている札があるときだけ、ブラウザが読み込む） */
.chip span i.ing.more { background-image: url("/static/img/ingredients_more.webp?v=2"); }
.chip.small span i.ing { --s: 24px; margin: -4px 1px -4px -6px; }
/* せってい → リストに出す食材 */
.shown-section h2 small { margin-left: auto; font-family: var(--maru, inherit); font-size: .78rem; font-weight: 700; color: var(--muted); }
.shown-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -2px 0 8px; }
.shown-tools .btn-text { padding: 4px 0; font-size: .82rem; }

/* リンクをボタンにするとき: インラインのままだと、上下の余白が前後の文に重なって窮屈になる */
.btn-block { display: block; margin-top: 16px; text-align: center; }

/* つくり方は3つ。横に1列でならべ、絵を上、名前を下に置く */
.method-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method-pill span { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 1px; padding: 10px 4px 9px; }
.method-pill i { grid-row: auto; font-size: 1.7rem; line-height: 1.2; }
.method-pill b { font-size: .8rem; white-space: nowrap; letter-spacing: -.02em; }
.method-pill small { font-size: .62rem; white-space: nowrap; }

/* つくるものは、メインと副菜の2つ */
.course-row { grid-template-columns: repeat(2, 1fr); }

/* あらかじめ作ってあるレシピ（在庫）。レシピ案の画面で、AI の案より先に出す */
.stock-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.stock-card { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 3px 0 var(--line); color: var(--ink); text-decoration: none; }
.stock-card:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.stock-card img, .stock-noimg { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.stock-noimg { display: block; background: linear-gradient(135deg, var(--mustard-soft), var(--accent-soft)); }
.stock-card.genre-western .stock-noimg { background: linear-gradient(135deg, #F6E3C5, #F3C9A8); }
.stock-card.genre-chinese .stock-noimg { background: linear-gradient(135deg, #F8D9CC, #F0B7A0); }
.stock-card.genre-other .stock-noimg { background: linear-gradient(135deg, #E4EDD6, #C9DDB5); }
.stock-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stock-text b { font-family: var(--mincho); font-weight: 900; font-size: 1rem; line-height: 1.35; }
.stock-text small { color: var(--muted); font-size: .76rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stock-meta { display: flex; flex-direction: column; align-items: end; gap: 4px; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.stock-meta em { font-style: normal; font-weight: 700; font-size: .68rem; padding: 1px 8px; border-radius: 999px; background: var(--sage-soft); color: #4C6E50; }
.ask-ai { margin-top: 18px; }
.ask-ai .htmx-indicator { display: none; } .ask-ai .htmx-request.htmx-indicator, .ask-ai.htmx-request .htmx-indicator { display: block; }
/* 時間の選択肢は6つ（10・15・20・30・45分以上・こだわらない）。3つずつ2段 */
.time-row { grid-template-columns: repeat(3, 1fr); }

/* レシピ集の続きを読み込む目印。グリッドの横いっぱいに置く。ふだんは「読み込んでいます」だけを見せ、ボタンは、読み込めなかったときの保険 */
.more-slot { grid-column: 1 / -1; display: grid; gap: 8px; padding: 8px 0 4px; text-align: center; }
.more-wait { color: var(--muted); font-size: .82rem; }
.more-slot .btn-ghost { margin-top: 0; font-size: .85rem; padding: 10px 14px; }

/* 王道レシピ（定番の料理を、いちばん質の高いモデルに書かせたもの）の印 */
.tile-title .crown { font-style: normal; margin-right: 2px; }
.stock-meta em.crown-tag { background: var(--mustard-soft); color: #8A6A1E; }
.chip.small.kind-chip input:checked + span { background: var(--mustard, #E8B54A); border-color: #B58A28; box-shadow: 0 3px 0 #B58A28; color: var(--ink); }

/* 絵の右下の札は、運営者には「描き直し」のボタンになる（ふつうの利用者には、何も出さない） */
.hero-redo { padding: 0; }
.hero-redo button { border: 0; background: none; color: inherit; font: inherit; padding: 2px 9px; margin: -2px -9px; cursor: pointer; }

/* 設定「出すレシピの種類」: 3つのボタンを1列に。押すと選ばれる（チェックボックスは隠す） */
.kind-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kind-btn { position: relative; }
.kind-btn input { position: absolute; opacity: 0; pointer-events: none; }
.kind-btn span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); box-shadow: 0 3px 0 var(--line); text-align: center; cursor: pointer; }
.kind-btn i { font-style: normal; font-size: 1.5rem; line-height: 1; }
.kind-btn b { font-size: .86rem; }
.kind-btn em { font-style: normal; font-size: .7rem; color: var(--muted); }
.kind-btn u { text-decoration: none; font-size: .72rem; font-weight: 700; color: transparent; }
.kind-btn input:checked + span { border-color: var(--accent); background: #FFF6EE; box-shadow: 0 3px 0 var(--accent-dark); }
.kind-btn input:checked + span u { color: var(--accent); }
.kind-btn input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 公開のレシピ一覧（料理の種類ごと） */
.type-section { margin-top: 18px; }
.type-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.type-list a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; box-shadow: 0 2px 0 var(--line); }
.type-list small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.recipe-summary { color: var(--muted); margin: 6px 0 14px; line-height: 1.7; }
.recipe-title .crown { font-style: normal; margin-right: 4px; }
.related { margin-top: 22px; }
.recipe .btn-primary { margin: 4px 0 16px; }
