/* Heladero Loco: retro ice cream lab. Pastel mint, strawberry pink and vanilla cream, dark ink outlines,
   rounded cartoon type, offset shadows. Tokens on :root, light and dark. */
:root {
  --ink: #2b2140;
  --muted: #6d6485;
  --bg: #fff7e8;
  --card: #ffffff;
  --mint: #8fe0c4;
  --mint-dark: #2f9c7b;
  --pink: #ff8fb1;
  --pink-dark: #d9457a;
  --vanilla: #ffe9a8;
  --sky: #bfe6ff;
  --fridge: #e8f6ff;
  --shelf: #a9cfe6;
  --warn: #ffd18a;
  --edge: #2b2140;
  --pop: 3px 4px 0 var(--edge);
  --bar: rgb(255 247 232 / 93%);
  --paper: radial-gradient(circle at 12% 8%, #d9f6ea 0 13%, transparent 14%),
    radial-gradient(circle at 90% 26%, #ffe0ea 0 10%, transparent 11%),
    radial-gradient(circle at 78% 92%, #fff0c2 0 12%, transparent 13%), #fff7e8;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f6efe0; --muted: #b3a9cc; --bg: #1d1830; --card: #2a2342; --edge: #0d0a18; --bar: rgb(29 24 48 / 93%);
    --fridge: #243150; --shelf: #3d5378; --warn: #8a5a1c; --mint-dark: #8fe0c4; --pink-dark: #ff8fb1;
    --paper: radial-gradient(circle at 12% 8%, #243a44 0 13%, transparent 14%),
      radial-gradient(circle at 90% 26%, #3b2440 0 10%, transparent 11%), #1d1830;
  }
}
:root[data-theme="dark"] {
  --ink: #f6efe0; --muted: #b3a9cc; --bg: #1d1830; --card: #2a2342; --edge: #0d0a18; --bar: rgb(29 24 48 / 93%);
  --fridge: #243150; --shelf: #3d5378; --warn: #8a5a1c; --mint-dark: #8fe0c4; --pink-dark: #ff8fb1;
  --paper: radial-gradient(circle at 12% 8%, #243a44 0 13%, transparent 14%), #1d1830;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); background-color: var(--bg); background-attachment: fixed; color: var(--ink);
  font: 16px/1.45 var(--body);
  padding: 0 max(16px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
main, .top, .foot { max-width: 560px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.num { font: 700 0.7em var(--body); background: var(--vanilla); color: #2b2140; border: 1.5px solid var(--edge); border-radius: 6px; padding: 0 4px; margin-right: 6px; vertical-align: 2px; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 0 8px; }
.brand { font: 800 1.45rem var(--display); text-decoration: none; margin-right: auto; letter-spacing: 0.2px; }
.brand b { color: var(--pink-dark); }
.mute { border: 2px solid var(--edge); background: var(--card); border-radius: 999px; width: 38px; height: 38px; font-size: 1.05rem; box-shadow: 2px 2px 0 var(--edge); cursor: pointer; }
.langs { display: flex; border: 2px solid var(--edge); border-radius: 999px; overflow: hidden; background: var(--card); box-shadow: 2px 2px 0 var(--edge); }
.langs button { border: 0; background: none; padding: 7px 9px; font-weight: 800; font-size: 0.78rem; cursor: pointer; }
.langs button.active { background: var(--mint); color: #2b2140; }

/* ---------- common pieces ---------- */
.card { background: var(--card); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: var(--pop); padding: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2.5px solid var(--edge); border-radius: 999px; background: var(--pink); color: #2b2140;
  font: 800 1.05rem var(--display); padding: 10px 20px; box-shadow: var(--pop); cursor: pointer; text-decoration: none; transition: transform 0.08s, box-shadow 0.08s; }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--edge); }
.btn.mint { background: var(--mint); }
.btn.vanilla { background: var(--vanilla); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.small { font-size: 0.9rem; padding: 6px 14px; box-shadow: 2px 2px 0 var(--edge); }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.back { display: inline-block; font-weight: 800; text-decoration: none; margin: 4px 0 10px; }
.sec { font-size: 1.25rem; margin: 22px 0 10px; }
.empty { text-align: center; color: var(--muted); padding: 18px 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.pill { font: 800 0.75rem var(--body); background: var(--vanilla); color: #2b2140; border: 2px solid var(--edge); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.pill.mint { background: var(--mint); } .pill.pink { background: var(--pink); } .pill.warn { background: var(--warn); color: var(--ink); }
.prose h2 { font-size: 1.3rem; margin: 6px 0; } .prose h3 { font-size: 1.1rem; margin: 16px 0 4px; } .prose h4 { font: 800 0.95rem var(--body); margin: 10px 0 2px; color: var(--pink-dark); }
.prose ul { margin: 4px 0; padding-left: 20px; } .prose p { margin: 6px 0; }
.prose code { background: var(--fridge); border-radius: 5px; padding: 0 4px; font-size: 0.88em; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.mascot { flex: 0 0 118px; border: 0; background: none; padding: 0; cursor: pointer; }
.mascot svg { display: block; width: 100%; height: auto; }
.mascot .hl-head { animation: bob 3.2s ease-in-out infinite; transform-origin: 0 40px; }
.mascot .hl-cone { animation: sway 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.mascot .hl-bubbles circle { animation: bubble 1.8s ease-in infinite; }
.mascot .hl-bubbles circle:nth-child(2) { animation-delay: 0.5s; } .mascot .hl-bubbles circle:nth-child(3) { animation-delay: 1s; }
.mascot.wiggle svg { animation: wiggle 0.5s ease; }
.pose-freeze { animation: shiver 0.18s linear infinite; }
body.talking .hl-mouth { animation: talk 0.22s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 20%; }
.bubble { position: relative; flex: 1; background: var(--card); border: 2.5px solid var(--edge); border-radius: 18px; padding: 10px 14px; box-shadow: var(--pop); font-weight: 700; }
.bubble::before { content: ""; position: absolute; left: -11px; top: 22px; width: 18px; height: 18px; background: var(--card); border-left: 2.5px solid var(--edge); border-bottom: 2.5px solid var(--edge); transform: rotate(45deg); }
.bubble.pop { animation: pop 0.3s ease; }
.counts { text-align: center; font-weight: 800; color: var(--muted); margin: 6px 0 12px; font-size: 0.9rem; }

/* ---------- tubs ---------- */
.tubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.tub { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; background: var(--card); border: 2.5px solid var(--edge); border-radius: 18px;
  box-shadow: var(--pop); padding: 8px 4px 8px; cursor: pointer; min-width: 0; transition: transform 0.08s, box-shadow 0.08s; }
.tub:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--edge); }
.tub-n { position: absolute; top: -9px; left: -7px; width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #2b2140; border: 2.5px solid var(--edge); font: 800 0.85rem/21px var(--display); text-align: center; }
.tubsvg { width: 76%; max-width: 92px; height: auto; overflow: visible; }
.tub-body { fill: color-mix(in srgb, var(--fridge) 70%, transparent); }
.tub-outline { fill: none; stroke: var(--edge); stroke-width: 3; stroke-linejoin: round; }
.tub-lid { fill: var(--mint); stroke: var(--edge); stroke-width: 3; }
.tub-swirl { stroke: var(--edge); stroke-width: 3; stroke-linejoin: round; }
.tub-plus { stroke: var(--muted); stroke-width: 5; stroke-linecap: round; fill: none; opacity: 0.55; }
.tub-sparks { fill: #fff3b0; stroke: var(--edge); stroke-width: 1.5; stroke-linejoin: round; }
.tub-sparks path { animation: twinkle 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tub-sparks path:nth-child(2) { animation-delay: 0.4s; } .tub-sparks path:nth-child(3) { animation-delay: 0.8s; }
.st-freezing .tub-flakes circle { animation: drift 3s ease-in-out infinite; }
.st-freezing .tub-flakes circle:nth-child(even) { animation-delay: 1.2s; }
.tub.st-empty { border-style: dashed; background: color-mix(in srgb, var(--card) 60%, transparent); box-shadow: none; }
.tub.st-empty .tub-lid { fill: color-mix(in srgb, var(--mint) 35%, var(--card)); }
.tub.st-ready { background: color-mix(in srgb, var(--mint) 30%, var(--card)); }
.tub.st-ready .tubsvg { animation: hop 1.6s ease-in-out infinite; }
.tub.st-spun { background: color-mix(in srgb, var(--vanilla) 30%, var(--card)); }
.tub.just-ready { animation: tada 0.9s ease 2; }
.tub-state { font: 800 0.95rem var(--display); }
.tub-flavour { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tub-sub { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-align: center; }
.tub.st-ready .tub-sub { color: var(--mint-dark); }

/* ---------- macros ---------- */
.macros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.macros .m { min-width: 0; overflow: hidden; background: var(--card); border: 2px solid var(--edge); border-radius: 12px; text-align: center; padding: 4px 2px 3px; line-height: 1.1; }
.macros .m b { display: block; font: 800 1.25rem var(--display); } .macros .m small { font-size: 0.6em; margin-left: 1px; }
.macros .m span { font-size: 0.66rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.macros .m.kcal { background: var(--vanilla); color: #2b2140; } .macros .m.kcal span { color: #6d5a2a; }
.macros.bump .m b { animation: pop 0.25s ease; }

/* ---------- toast, nav, footer ---------- */
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; width: min(92vw, 440px);
  display: flex; align-items: center; gap: 10px; background: var(--card); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: var(--pop); padding: 8px 12px; font-weight: 700; }
.toast[hidden] { display: none; }
.toast.show { animation: rise 0.3s ease; }
.toast-head { flex: 0 0 44px; } .toast-head svg { display: block; width: 44px; height: 44px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px; background: var(--bar); backdrop-filter: blur(8px);
  border-top: 2.5px solid var(--edge); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav[hidden] { display: none; }
.nav a { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; text-decoration: none; font: 800 0.72rem var(--body); border-radius: 14px; padding: 4px 2px; border: 2px solid transparent; }
.nav a span { font-size: 1.35rem; line-height: 1.2; }
.nav a.active { background: var(--mint); color: #2b2140; border-color: var(--edge); }
.foot { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 28px; }
.foot p { margin: 8px 0; } .install-help { font-weight: 700; }
.ver a { font-weight: 800; }

/* ---------- motion ---------- */
@keyframes bob { 50% { transform: translateY(-2px) rotate(-1.5deg); } }
@keyframes sway { 50% { transform: rotate(5deg); } }
@keyframes bubble { 0% { transform: translateY(6px) scale(0.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-12px) scale(1.1); opacity: 0; } }
@keyframes wiggle { 25% { transform: rotate(-7deg) scale(1.05); } 60% { transform: rotate(6deg) scale(1.05); } }
@keyframes shiver { 50% { transform: translateX(1.2px); } }
@keyframes talk { 50% { transform: scaleY(0.55); } }
@keyframes pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.05); } }
@keyframes twinkle { 50% { transform: scale(0.4) rotate(40deg); opacity: 0.4; } }
@keyframes drift { 50% { transform: translateY(5px); } }
@keyframes hop { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes tada { 20% { transform: scale(1.08) rotate(-4deg); } 50% { transform: scale(1.08) rotate(4deg); } 80% { transform: scale(1.02) rotate(-2deg); } }
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 350px) {
  body { padding-inline: 10px; }
  .brand { font-size: 1.2rem; } .mascot { flex-basis: 92px; } .tubs { gap: 12px 7px; }
  .langs button { padding: 7px 7px; }
}

/* ---------- builder ---------- */
.title { font-size: 1.5rem; margin: 0 0 10px; }
.bench { display: flex; gap: 12px; align-items: center; position: sticky; top: 6px; z-index: 10; padding: 10px; background: color-mix(in srgb, var(--card) 96%, transparent); }
.bench-tub { position: relative; flex: 0 0 74px; }
.bench-tub .tubsvg { width: 100%; max-width: none; display: block; }
.bench-tub .tub-fill, .bench-tub .tub-wave { transition: y 0.35s ease, height 0.35s ease; }
.bench-tub.drop .tubsvg { animation: squish 0.4s ease; transform-origin: 50% 100%; }
.falling { position: absolute; left: 50%; top: -34px; font-size: 1.5rem; transform: translateX(-50%); animation: fall 0.45s ease-in forwards; pointer-events: none; z-index: 2; }
.bench-side { flex: 1; min-width: 0; }
.meter { height: 10px; border: 2px solid var(--edge); border-radius: 999px; background: var(--fridge); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--mint); transition: width 0.3s ease; }
.meter.over i { background: var(--pink-dark); }
.meter-text { margin: 2px 0 0; font-size: 0.72rem; font-weight: 800; color: var(--muted); text-align: right; }
.warn { background: var(--warn); border: 2px solid var(--edge); border-radius: 12px; padding: 7px 10px; font-size: 0.85rem; font-weight: 700; margin: 10px 0 0; }
.warn.w-q { background: none; border: 0; padding: 0 2px; color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.warn.w-over { animation: pop 0.3s ease; }
.sec .btn { float: right; }
.mix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mix li { min-width: 0; background: var(--card); border: 2.5px solid var(--edge); border-radius: 14px; padding: 7px 8px; box-shadow: 2px 3px 0 var(--edge); animation: pop 0.25s ease; }
.mix-row { display: flex; align-items: center; gap: 8px; }
.ing-emoji { font-size: 1.35rem; line-height: 1; }
.mix-name { flex: 1; min-width: 0; font-weight: 800; line-height: 1.15; font-size: 0.92rem; }
.mix-name small { display: block; font-weight: 700; color: var(--muted); font-size: 0.72rem; }
sup { color: var(--pink-dark); font-weight: 800; margin-left: 1px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--edge); border-radius: 999px; background: var(--bg); overflow: hidden; flex: none; }
.stepper button { border: 0; background: var(--vanilla); color: #2b2140; width: 34px; height: 34px; font: 800 1.2rem var(--display); cursor: pointer; }
.stepper button:active { background: var(--mint); }
.stepper b { min-width: 62px; text-align: center; font: 800 0.9rem var(--body); padding: 0 4px; }
.x { border: 0; background: none; font-size: 1rem; font-weight: 800; color: var(--muted); padding: 6px 4px; cursor: pointer; }
.flavours { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 3px; scrollbar-width: none; }
.flavours::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--edge); border-radius: 999px; background: var(--card); padding: 3px 10px; font: 800 0.78rem var(--body); white-space: nowrap; cursor: pointer; }
.chip i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--edge); }
.chip.on { background: var(--mint); color: #2b2140; }
.loads { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.85rem; margin: 4px 0 0; }
.fridge { margin-top: 18px; background: var(--fridge); border: 2.5px solid var(--edge); border-radius: 20px; box-shadow: var(--pop); padding: 10px 10px 4px; }
.fridge h2 { font-size: 1.15rem; margin: 0 0 4px 2px; }
.shelf { border-bottom: 5px solid var(--shelf); padding: 4px 0 9px; margin-bottom: 4px; }
.shelf:last-child { border-bottom: 0; }
.shelf h3 { font: 800 0.72rem var(--body); text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 0 5px 2px; }
.shelf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ing { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 2px solid var(--edge); border-radius: 13px; background: var(--card); padding: 6px 3px 5px; cursor: pointer; min-width: 0;
  box-shadow: 2px 2px 0 var(--edge); transition: transform 0.08s; }
.ing:active { transform: translate(1px, 2px) scale(0.97); }
.ing.on { background: color-mix(in srgb, var(--mint) 55%, var(--card)); }
.ing-name { font: 800 0.72rem/1.15 var(--body); text-align: center; overflow-wrap: anywhere; }
.ing-amt { font: 700 0.68rem var(--body); color: var(--muted); }
.ing.on .ing-amt { color: var(--ink); }
.actions { margin-top: 16px; display: grid; gap: 10px; }
.count { display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
@keyframes fall { to { top: 26px; opacity: 0.2; transform: translateX(-50%) scale(0.7) rotate(40deg); } }
@keyframes squish { 40% { transform: scale(1.06, 0.94); } 70% { transform: scale(0.97, 1.03); } }
@media (max-width: 350px) { .stepper b { min-width: 52px; } .stepper button { width: 30px; } .bench-tub { flex-basis: 58px; } .macros .m b { font-size: 1.05rem; } }
.mix-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; row-gap: 4px; }
.mix-row .ing-emoji { grid-row: 1 / 3; align-self: center; }
.mix-row .x { grid-column: 3; grid-row: 1; }
.mix-row .stepper { grid-column: 2 / 4; grid-row: 2; justify-self: end; }

/* ---------- freezer and machine ---------- */
.freezer, .machine { display: flex; gap: 14px; align-items: center; }
.freezer-tub, .spin-tub { flex: 0 0 88px; } .freezer-tub .tubsvg, .spin-tub .tubsvg { width: 100%; max-width: none; display: block; }
.freezer > div:last-child { flex: 1; min-width: 0; }
.freezer { background: linear-gradient(160deg, var(--fridge), var(--card)); }
.big { font: 800 1.5rem/1.1 var(--display); margin: 0 0 2px; }
.freezer p { margin: 0 0 6px; }
.contents { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; font-size: 0.92rem; font-weight: 700; }
.contents li { display: flex; gap: 6px; align-items: baseline; } .contents b { margin-left: auto; white-space: nowrap; } .contents em { font-style: normal; color: var(--muted); font-size: 0.85em; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.steps b { background: var(--vanilla); color: #2b2140; border-radius: 6px; padding: 0 5px; white-space: nowrap; }
.spin-tub.spinning { animation: whirl 1.5s cubic-bezier(0.5, 0, 0.3, 1); }
.small { font-size: 0.8rem; } p.small { margin: 8px 0 0; }
.what { margin-top: 10px; font-size: 0.9rem; } .what summary { font-weight: 800; cursor: pointer; } .what .contents { margin: 8px 0 0; }
.actions .btn.small { justify-self: center; }
@keyframes whirl { 0% { transform: rotate(0) scale(1); } 80% { transform: rotate(1440deg) scale(1.12); } 100% { transform: rotate(1440deg) scale(1); } }

/* ---------- rating and history ---------- */
.mixname { font: 800 1.1rem/1.2 var(--display); margin: 0 0 10px; }
.rate h2 { font-size: 1.05rem; margin: 4px 0 4px; }
.cones { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.cone { border: 0; background: none; font-size: 2rem; line-height: 1; padding: 2px; cursor: pointer; filter: grayscale(1) opacity(0.35); transition: transform 0.12s, filter 0.12s; }
.cone.on { filter: none; transform: scale(1.12) rotate(-6deg); }
.cones b { margin-left: auto; font: 800 1.5rem var(--display); min-width: 28px; text-align: center; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 4px 0 12px; }
.check input { width: 22px; height: 22px; accent-color: var(--mint-dark); }
.field { display: grid; gap: 4px; font-weight: 800; font-size: 0.9rem; }
.field input, .field textarea, .field select { font: 600 1rem var(--body); color: var(--ink); background: var(--bg); border: 2px solid var(--edge); border-radius: 12px; padding: 8px 10px; width: 100%; }
.center { text-align: center; margin: 0; }
.hint { margin: -4px 0 12px; font-size: 0.85rem; }
.list { display: grid; gap: 12px; }
.rank-head { display: flex; align-items: center; gap: 8px; }
.rank-head h3 { flex: 1; font-size: 1.02rem; min-width: 0; }
.medal { font: 800 1.4rem var(--display); }
.score { font: 800 1.5rem var(--display); background: var(--vanilla); color: #2b2140; border: 2px solid var(--edge); border-radius: 12px; padding: 0 8px; white-space: nowrap; }
.score small { font-size: 0.5em; }
.rank.top1 { background: color-mix(in srgb, var(--vanilla) 28%, var(--card)); }
.rank-sub { margin: 6px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.rank .row { margin: 8px 0 0; }
.diary { list-style: none; margin: 0; padding: 4px 12px; }
.diary li { display: flex; gap: 8px; align-items: flex-start; padding: 9px 0; border-bottom: 2px dashed var(--shelf); }
.diary li:last-child { border-bottom: 0; }
.diary div { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 0.9rem; }
.diary span { font-size: 0.78rem; font-weight: 700; } .diary em { font-size: 0.85rem; }
.sprinkles { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.sprinkles i { position: absolute; top: -20px; width: 7px; height: 18px; border-radius: 4px; border: 1.5px solid #2b2140; animation: sprinkle 1.9s ease-in forwards; }
@keyframes sprinkle { to { top: 105%; rotate: 540deg; } }

/* ---------- recipes, pantry, guides, settings ---------- */
.recipe .contents { margin: 10px 0 0; } .recipe .rank-head h3 { font-size: 1.15rem; }
.list.tight { gap: 8px; }
.pantry-item, .menu-item { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 9px 12px; box-shadow: 2px 3px 0 var(--edge); }
.pantry-item.off { opacity: 0.55; }
.menu-item { font-size: 1.1rem; padding: 14px; } .menu-item b { flex: 1; font-family: var(--display); } .menu-item span:first-child { font-size: 1.5rem; }
.form { display: grid; gap: 12px; } .form h2 { font-size: 1rem; margin: 2px 0 -6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .grid2.wide { grid-template-columns: 1fr 76px; }
.form .check { margin: 0; }
.guide summary { font: 800 1.02rem var(--display); cursor: pointer; }
.guide ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 6px; font-size: 0.92rem; }
.diary li { align-items: center; } .diary .stepper b { min-width: 54px; }
@media (max-width: 350px) { .macros { gap: 4px; } .macros .m span { text-transform: none; letter-spacing: 0; font-size: 0.6rem; } .bench { gap: 8px; padding: 8px; } }
