:root {
  --ink: #29231f;
  --muted: #766c64;
  --paper: #fffdf8;
  --cream: #f8f1e7;
  --line: #eadfce;
  --red: #c85132;
  --red-dark: #96371f;
  --sage: #718069;
  --yellow: #e4ae42;
  --shadow: 0 18px 45px rgba(76, 48, 28, .12);
  --safe-bottom: max(20px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(228,174,66,.12), transparent 25rem),
    var(--cream);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 max(5vw, 20px);
  background: rgba(248,241,231,.88); border-bottom: 1px solid rgba(234,223,206,.75);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--red); border-radius: 13px 13px 13px 5px; font-weight: 900; }
.brand b, .brand small { display: block; }
.brand b { font-size: 16px; line-height: 1.25; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
#app { width: min(1180px, 92vw); min-height: calc(100vh - 150px); margin: 0 auto; padding: 34px 0 110px; }
.home-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 26px; align-items: stretch; margin-bottom: 34px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px 16px 34px 0; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.hero-copy h1 { max-width: 630px; margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.08; letter-spacing: -.06em; }
.hero-copy p:not(.eyebrow) { max-width: 580px; margin: 20px 0 26px; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .soft-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; }
.primary-button { color: white; background: var(--red); box-shadow: 0 10px 24px rgba(200,81,50,.22); }
.soft-button { color: var(--red-dark); background: #f4e2d7; }
.feature-card { position: relative; overflow: hidden; min-height: 390px; border-radius: 28px; box-shadow: var(--shadow); isolation: isolate; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(29,19,14,.82)); }
.feature-caption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 30px; color: white; }
.feature-caption small { opacity: .82; }
.feature-caption h2 { margin: 4px 0 12px; font-size: 34px; line-height: 1.2; }
.feature-caption a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.search { position: relative; width: min(360px, 100%); }
.search svg { position: absolute; top: 13px; left: 14px; width: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { width: 100%; height: 46px; padding: 0 14px 0 42px; outline: none; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,81,50,.12); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 18px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.7); cursor: pointer; }
.filter-chip.active { color: white; border-color: var(--ink); background: var(--ink); }
.recipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.recipe-card { position: relative; overflow: hidden; min-height: 360px; border-radius: 22px; background: #ddd; box-shadow: 0 7px 24px rgba(76,48,28,.08); transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease, box-shadow .2s ease; }
.recipe-card:hover { z-index: 2; transform: rotate(0) translateY(-5px); box-shadow: var(--shadow); }
.recipe-card > a { position: absolute; inset: 0; }
.recipe-card img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.04) 25%, rgba(22,15,11,.9)); }
.card-body { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 22px; color: white; pointer-events: none; }
.card-body h3 { margin: 7px 0 6px; font-size: 24px; line-height: 1.2; }
.card-body p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta span { padding: 4px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(29,20,15,.28); backdrop-filter: blur(7px); font-size: 11px; }
.heart { position: absolute; top: 14px; right: 14px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: white; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(38,25,18,.25); backdrop-filter: blur(8px); cursor: pointer; font-size: 21px; }
.heart.active { color: #ffd6cb; background: rgba(200,81,50,.76); }
.empty { grid-column: 1/-1; padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; }
.empty b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 20px; }
.recipe-page { max-width: 980px; margin: 0 auto; }
.recipe-hero { position: relative; overflow: hidden; min-height: 410px; border-radius: 28px; box-shadow: var(--shadow); }
.recipe-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.05), rgba(20,14,10,.84)); }
.back-button { position: absolute; top: 18px; left: 18px; z-index: 3; display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; color: white; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(37,24,17,.34); backdrop-filter: blur(9px); font-size: 13px; font-weight: 700; }
.recipe-hero .heart { top: 18px; right: 18px; }
.recipe-heading { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 34px; color: white; }
.recipe-heading h1 { margin: 8px 0 10px; font-size: clamp(38px, 7vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.recipe-heading p { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 12px; }
.cook-toolbar { position: sticky; top: 83px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.9); backdrop-filter: blur(12px); box-shadow: 0 8px 25px rgba(60,39,26,.06); }
.progress-label { min-width: 104px; font-size: 13px; font-weight: 800; }
.progress-track { flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: #eadfd3; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--red)); transition: width .25s ease; }
.wake-button { flex: 0 0 auto; padding: 7px 11px; border: 0; border-radius: 999px; background: #f2e4d7; cursor: pointer; font-size: 12px; font-weight: 800; }
.recipe-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: 20px; align-items: start; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 6px 22px rgba(76,48,28,.04); }
.panel + .panel { margin-top: 18px; }
.panel h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; font-size: 18px; }
.panel h2::before { content: ""; width: 5px; height: 18px; border-radius: 4px; background: var(--red); }
.ingredients { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ingredient { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 11px; background: #faf6ef; cursor: pointer; font-size: 14px; }
.ingredient input { position: absolute; opacity: 0; }
.checkmark { display: grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border: 1.5px solid #d4c5b8; border-radius: 7px; background: white; }
.ingredient input:checked + .checkmark { color: white; border-color: var(--sage); background: var(--sage); }
.ingredient input:checked + .checkmark::before { content: "✓"; font-size: 13px; font-weight: 900; }
.ingredient input:checked ~ span:last-child { color: #9b918a; text-decoration: line-through; }
.heat-list, .note-list { margin: 0; padding: 0; list-style: none; }
.heat-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.heat-list li:last-child { border-bottom: 0; }
.heat-list b { color: var(--red-dark); }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 18px 18px 18px 62px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; cursor: pointer; counter-increment: step; transition: .18s ease; }
.step::before { content: counter(step); position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 32px; height: 32px; color: white; border-radius: 11px; background: var(--red); font-size: 13px; font-weight: 900; }
.step:hover { border-color: #d6b8a7; transform: translateX(2px); }
.step.done { color: #918780; background: #f4f0e9; }
.step.done::before { content: "✓"; background: var(--sage); }
.step .fire { display: inline-flex; margin-top: 8px; padding: 3px 8px; color: var(--red-dark); border-radius: 999px; background: #f8e5db; font-size: 11px; font-weight: 800; }
.note-list li { position: relative; padding: 7px 0 7px 22px; color: #625548; font-size: 14px; }
.note-list li::before { content: "✦"; position: absolute; left: 0; color: var(--yellow); }
.source { margin: 18px 0 0; color: #9a9088; font-size: 11px; text-align: center; }
.pick-page { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.pick-wrap { width: min(680px, 100%); }
.pick-wrap h1 { margin: 0; font-size: clamp(38px, 8vw, 66px); letter-spacing: -.06em; }
.pick-wrap > p { margin: 12px 0 25px; color: var(--muted); }
.pick-card { position: relative; overflow: hidden; min-height: 390px; border-radius: 28px; box-shadow: var(--shadow); }
.pick-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.02), rgba(20,14,10,.86)); }
.pick-card div { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 30px; color: white; }
.pick-card h2 { margin: 4px 0 5px; font-size: 38px; }
.pick-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.is-spinning .pick-card { animation: wiggle .25s linear infinite alternate; }
@keyframes wiggle { to { transform: rotate(1.2deg) scale(.995); } }
.bottom-nav { display: none; }
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 80; max-width: 86vw; padding: 10px 16px; color: white; border-radius: 999px; background: rgba(35,27,22,.92); opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: .22s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cook-mode .topbar, .cook-mode .bottom-nav, .cook-mode .recipe-hero { display: none; }
.cook-mode #app { width: min(760px, 94vw); padding-top: 18px; }
.cook-mode .recipe-layout { grid-template-columns: 1fr; }
.cook-mode .sidebar { display: none; }
.cook-mode .steps { gap: 16px; }
.cook-mode .step { padding: 24px 20px 24px 76px; font-size: 19px; }
.cook-mode .step::before { top: 22px; left: 20px; width: 40px; height: 40px; }
.cook-exit { display: none; }
.cook-mode .cook-exit { display: inline-flex; }
.cook-mode .cook-start { display: none; }
@media (max-width: 940px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .sidebar .panel + .panel { margin: 0; }
  .sidebar .panel:last-child { grid-column: 1/-1; }
}
@media (max-width: 680px) {
  .topbar { height: 64px; }
  #app { width: min(100% - 28px, 560px); padding-top: 22px; padding-bottom: 100px; }
  .home-hero { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
  .hero-copy { padding: 10px 2px 18px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy p:not(.eyebrow) { margin: 14px 0 20px; font-size: 14px; }
  .feature-card { min-height: 320px; border-radius: 24px; }
  .feature-caption { padding: 24px; }
  .feature-caption h2 { font-size: 30px; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .recipe-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .recipe-card { min-height: 270px; border-radius: 18px; transform: none; }
  .recipe-card:hover { transform: translateY(-2px); }
  .card-body { padding: 15px; }
  .card-body h3 { font-size: 19px; }
  .card-body p { display: none; }
  .card-meta span:nth-child(2) { display: none; }
  .heart { top: 10px; right: 10px; width: 36px; height: 36px; }
  .recipe-hero { min-height: 390px; margin: 0 -14px; border-radius: 0 0 28px 28px; }
  .recipe-heading { padding: 28px 22px; }
  .recipe-heading h1 { font-size: 43px; }
  .cook-toolbar { top: 73px; margin: 14px 0; }
  .progress-track { display: none; }
  .recipe-layout { gap: 14px; }
  .sidebar { display: block; }
  .sidebar .panel + .panel { margin-top: 14px; }
  .panel { padding: 20px 17px; border-radius: 19px; }
  .step { padding-left: 58px; }
  .bottom-nav { position: fixed; right: 14px; bottom: var(--safe-bottom); left: 14px; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 62px; padding: 7px; border: 1px solid rgba(234,223,206,.9); border-radius: 22px; background: rgba(255,253,248,.92); box-shadow: 0 14px 42px rgba(57,37,24,.2); backdrop-filter: blur(16px); }
  .bottom-nav a { display: grid; place-items: center; align-content: center; gap: 0; min-width: 0; color: var(--muted); border-radius: 16px; font-size: 10px; }
  .bottom-nav a span { font-size: 19px; line-height: 1.1; }
  .bottom-nav a.active { color: var(--red); background: #f5e5da; font-weight: 800; }
  .pick-card { min-height: 350px; }
  .toast { bottom: 100px; }
}
@media (max-width: 360px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card { min-height: 330px; }
  .card-body p { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* 小宝马莉私房菜 · 可爱卡通主题 */
:root {
  --ink: #493b3f;
  --muted: #8a7378;
  --paper: #fffdf9;
  --cream: #fff6ed;
  --line: #f0ddd5;
  --red: #f1788f;
  --red-dark: #c95069;
  --sage: #79a98a;
  --yellow: #f3bd55;
  --shadow: 0 16px 36px rgba(139, 87, 96, .13);
}
body {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 18px 18px, rgba(241,120,143,.09) 0 3px, transparent 3.5px),
    radial-gradient(circle at 58px 62px, rgba(243,189,85,.10) 0 2px, transparent 2.5px);
  background-size: 76px 76px;
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
.topbar { background: rgba(255,248,239,.9); }
.brand-mark { background: linear-gradient(145deg, #ff9fb1, #ed6f89); border-radius: 50% 50% 48% 44%; box-shadow: 0 6px 14px rgba(241,120,143,.25); transform: rotate(-5deg); }
.brand b { color: #5a4047; }
.icon-button { border: 2px solid #f4d7d0; box-shadow: 0 5px 0 #efd4cd; }
.eyebrow { color: var(--red-dark); }
.hero-copy h1 { color: #513e45; }
.primary-button { background: linear-gradient(135deg, #f58ba0, #e86480); box-shadow: 0 7px 0 #c9576e, 0 14px 28px rgba(222,100,126,.2); }
.primary-button:active { transform: translateY(4px); box-shadow: 0 3px 0 #c9576e; }
.soft-button { color: #7a5963; background: #ffe7de; border: 2px solid #f7d5ca; }
.dice-button span { display: inline-block; margin-right: 6px; animation: diceBob 1.3s ease-in-out infinite alternate; }
@keyframes diceBob { to { transform: translateY(-3px) rotate(8deg); } }
.home-hero { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(30px, 5vw, 64px); align-items: center; min-height: 470px; }
.hero-copy { padding-right: 0; }
.hero-copy h1 { line-height: 1.02; }
.feature-card { min-height: 0; aspect-ratio: 1.2; border: 0; border-radius: 42px 22px 38px 18px; background: #ffd9cd; box-shadow: 0 13px 0 #ecd2c9, 0 25px 45px rgba(139,87,96,.17); transform: rotate(1.1deg); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.feature-card::before { content: ""; position: absolute; top: -6px; left: 50%; z-index: 5; width: 86px; height: 25px; background: rgba(255,246,218,.9); box-shadow: 0 3px 8px rgba(97,61,67,.12); transform: translateX(-50%) rotate(-3deg); pointer-events: none; }
.feature-card::after { background: linear-gradient(180deg, rgba(69,39,45,.01) 38%, rgba(84,48,57,.82)); }
.feature-card:hover { transform: rotate(0) translateY(-7px); box-shadow: 0 9px 0 #ecd2c9, 0 30px 54px rgba(139,87,96,.22); }
.feature-card .dish-art { display: block; position: absolute; inset: 0; z-index: 0; opacity: 1; }
.feature-card .dish-art img { display: block; opacity: 1; transform: scale(1.015); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.feature-card:hover .dish-art img { transform: scale(1.065); }
.feature-caption { padding: 27px; }
.feature-caption h2 { text-shadow: 0 2px 8px rgba(69,39,45,.2); }
.feature-caption > span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; }
.feature-caption > span b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 17px; transition: transform .25s ease; }
.feature-card:hover .feature-caption > span b { transform: translateX(4px) rotate(-8deg); }
.section-head h2::after { content: " ᵔᴗᵔ"; color: var(--red); font-size: .62em; }
.search input { border: 2px solid #f0dcd5; box-shadow: 0 5px 0 #edd8d1; }
.filter-chip { border: 2px solid #efdcd4; background: rgba(255,253,249,.9); box-shadow: 0 4px 0 #ead4cc; font-weight: 700; }
.filter-chip.active { color: #fff; border-color: #f1788f; background: var(--red); box-shadow: 0 4px 0 #c95870; }
.recipe-grid { gap: 26px 20px; }
.recipe-card { min-height: 355px; border: 5px solid white; border-radius: 34px 18px 31px 15px; background: white; box-shadow: 0 8px 0 #ead8cf, 0 17px 32px rgba(106,69,74,.12); animation: cardPop .48s both; animation-delay: var(--delay, 0ms); }
.recipe-card:nth-child(4n+2) { border-radius: 18px 36px 16px 32px; }
.recipe-card:nth-child(4n+3) { border-radius: 30px 14px 37px 21px; }
.recipe-card:nth-child(4n) { border-radius: 17px 31px 26px 38px; }
.recipe-card:hover { transform: rotate(0) translateY(-9px) scale(1.012); box-shadow: 0 5px 0 #ead8cf, 0 27px 44px rgba(106,69,74,.18); }
.recipe-card:active { transform: rotate(0) translateY(-2px) scale(.985); }
.recipe-card::before { content: ""; position: absolute; z-index: 5; top: -4px; left: 50%; width: 68px; height: 22px; border-radius: 2px; background: rgba(255,246,220,.86); box-shadow: 0 2px 5px rgba(122,87,72,.12); transform: translateX(-50%) rotate(-3deg); pointer-events: none; }
.recipe-card:nth-child(even)::before { transform: translateX(-50%) rotate(3deg); }
.recipe-card::after { display: none; }
.recipe-card > a { bottom: 130px; border-radius: inherit; }
.recipe-card .dish-art img { transition: transform .48s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.recipe-card:hover .dish-art img { transform: scale(1.075) rotate(.5deg); filter: saturate(1.08); }
.recipe-card:hover .spark.s1 { transform: translateY(-5px) rotate(18deg) scale(1.2); }
.card-body { min-height: 130px; padding: 16px 15px 14px; color: var(--ink); border-radius: 27px 27px 0 0; background: #fffdf9; }
.card-body::before { content: ""; position: absolute; top: -17px; left: -5%; width: 110%; height: 31px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: #fffdf9; }
.card-body > * { position: relative; z-index: 1; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-body h3 { margin: 6px 0 4px; color: #553e46; }
.card-go { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 29px; color: white; border-radius: 50%; background: linear-gradient(145deg, #fa91a5, #e56681); box-shadow: 0 3px 0 #c85970; font-size: 17px; transition: transform .25s ease; }
.recipe-card:hover .card-go { transform: translateX(3px) rotate(-10deg); }
.card-body p.card-note { display: -webkit-box; margin: 8px 0 0; padding: 8px 10px; overflow: hidden; color: #7c4a58; border-radius: 10px; background: #fbdde3; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recipe-card:nth-child(4n+2) .card-note { background: #e7f2e3; color: #54705c; }
.recipe-card:nth-child(4n+3) .card-note { background: #fff1c9; color: #84682c; }
.recipe-card:nth-child(4n) .card-note { background: #e5eef8; color: #526b83; }
.card-meta { gap: 5px; }
.card-meta span { padding: 3px 7px; color: #a34f63; border-color: #f0cfca; background: #ffe9e2; backdrop-filter: none; }
.card-meta .time-tag { color: #78635a; border-color: #ecdfcf; background: #fff5df; }
.heart { color: #8d6871; border: 2px solid rgba(255,255,255,.92); background: rgba(255,255,255,.82); box-shadow: 0 4px 12px rgba(83,53,60,.12); }
.heart.active { color: white; background: #f1788f; }
.dish-art { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, var(--c1), var(--c2)); }
.dish-art img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.dish-art::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,.16), transparent 42%, rgba(79,39,52,.1)); pointer-events: none; }
.dish-art::after { content: ""; position: absolute; z-index: 1; right: -55px; top: -60px; width: 170px; height: 170px; border: 26px solid rgba(255,255,255,.17); border-radius: 50%; pointer-events: none; }
.spark { position: absolute; z-index: 3; color: rgba(255,255,255,.82); font-style: normal; font-size: 25px; transition: transform .35s ease; }
.spark.s1 { top: 19%; left: 15%; }
.spark.s2 { right: 16%; bottom: 19%; font-size: 12px; }
.smile { display: none; }
.recipe-hero { min-height: 430px; border: 7px solid white; border-radius: 30px; box-shadow: 0 12px 0 #ebd9d1, var(--shadow); }
.recipe-hero::after { background: linear-gradient(180deg, transparent 48%, rgba(91,57,66,.82)); }
.back-button { background: rgba(255,255,255,.86); color: #7b5660; border-color: white; }
.badge { color: #6d4651; background: rgba(255,248,242,.88); }
.cook-toolbar { border: 2px solid #efdcd5; border-radius: 22px; box-shadow: 0 6px 0 #ead6cf; }
.wake-button { color: #8f5364; background: #ffe5e0; }
.panel { border: 2px solid #efddd6; border-radius: 26px; box-shadow: 0 7px 0 #ead8d0, 0 14px 28px rgba(111,74,80,.06); }
.panel h2::before { background: var(--red); border-radius: 50%; }
.ingredient { border: 1px dashed #edcec6; background: #fff8f3; }
.step { border: 2px solid #f0ddd6; border-radius: 20px; box-shadow: 0 5px 0 #ead8d0; }
.step::before { border-radius: 50%; background: linear-gradient(145deg, #fa91a5, #e56681); box-shadow: 0 3px 0 #c85970; }
.step.done { background: #f2f7f0; border-color: #d7e6d6; box-shadow: 0 5px 0 #d1dfd0; }
.step .fire { color: #9a5d40; background: #ffebd1; }
.sidebar .panel:last-child { background: #fffaf0; }
.note-list { display: grid; gap: 13px; padding: 5px 3px 4px; }
.note-list li { padding: 18px 15px 14px; color: #654f49; border-radius: 4px; background: #fff1a9; box-shadow: 0 7px 13px rgba(126,91,57,.13); transform: rotate(-.7deg); }
.note-list li:nth-child(2n) { background: #dff2d8; transform: rotate(.8deg); }
.note-list li:nth-child(3n) { background: #ffe0e3; transform: rotate(-.4deg); }
.note-list li::before { content: "✦"; top: 18px; left: 7px; color: #df9d3b; }
.pick-wrap h1 { color: #513e45; }
.big-dice { display: inline-grid; place-items: center; gap: 2px; margin: 0 auto 22px; padding: 14px 23px 12px; color: #724d57; border: 3px solid white; border-radius: 24px; background: #ffdce4; box-shadow: 0 7px 0 #e9aebc, 0 14px 28px rgba(126,75,86,.14); cursor: pointer; }
.big-dice span { display: block; font-size: 54px; line-height: 1; }
.big-dice b { font-size: 12px; }
.is-spinning .big-dice span { animation: diceRoll .35s linear infinite; }
@keyframes diceRoll { to { transform: rotate(360deg) scale(1.08); } }
.pick-card { min-height: 390px; border: 7px solid white; border-radius: 29px; box-shadow: 0 11px 0 #ead7cf, var(--shadow); }
.pick-card::after { background: linear-gradient(180deg, transparent 50%, rgba(91,57,66,.78)); }
.pick-back { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0 0 14px; padding: 0 14px; color: #7a5963; border: 2px solid #f7d5ca; border-radius: 999px; background: #ffe7de; font-size: 13px; font-weight: 800; }
.bottom-nav { border: 2px solid #efdcd5; background: rgba(255,251,247,.94); box-shadow: 0 9px 0 #e8d4cc, 0 18px 40px rgba(98,61,69,.18); }
.bottom-nav a.active { color: #c94f69; background: #ffe5e8; }
.toast { background: #624852; }
@keyframes cardPop { from { opacity: 0; transform: translateY(14px) rotate(0); } to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); } }
@media (max-width: 680px) {
  .brand b { font-size: 14px; }
  .brand small { font-size: 9px; }
  .hero-copy h1 { font-size: 43px; }
  .home-hero { min-height: 0; }
  .feature-card { width: calc(100% - 8px); min-height: 0; aspect-ratio: 1.24; margin: 0 auto; border-radius: 32px 18px 30px 15px; }
  .recipe-grid { gap: 14px 10px; }
  .recipe-card { min-height: 304px; border-width: 4px; }
  .recipe-card > a { bottom: 126px; }
  .card-body { min-height: 126px; padding: 12px 9px 9px; }
  .card-body h3 { font-size: 18px; }
  .card-meta { gap: 4px; }
  .card-meta span { padding: 2px 6px; font-size: 10px; }
  .card-meta span:nth-child(2) { display: inline-flex; }
  .card-meta .time-tag { display: none; }
  .card-go { width: 27px; height: 27px; flex-basis: 27px; }
  .recipe-hero { min-height: 390px; border-width: 0; border-radius: 0 0 30px 30px; box-shadow: 0 10px 0 #ead7d0; }
  .recipe-heading h1 { font-size: 41px; }
  .panel { border-radius: 22px; }
  .pick-card { min-height: 350px; }
}
