/* Mash-up! (slug mash-up). Look: "Mad Lab Kitchen" from the design canvas. Mint tile kitchen, cream
   shelves, a red counter, a glass blender and a big yellow MASH! button. No purple anywhere.
   Layouts: wide landscape (iPad, laptop), short landscape (phone on its side), portrait.
   The screen corners belong to the shared buttons: home top-left, fullscreen top-right, sound and
   postcard bottom-left. Nothing tappable sits in them. */
:root {
	--mint: #d3ecdf; --mint-d: #c3e0d1; --cream: #f6eed8; --cream-d: #d8c9a0; --red: #d8503d; --red-d: #8e2f20;
	--yel: #ffd23f; --ink: #26302f; --ink2: #3b4a44; --line: #8fb5a6; --sage: #7aa89c; --green: #5fae5b;
	--bar: 84px; --top: 66px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
	background-color: var(--mint);
	background-image: linear-gradient(var(--mint-d) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--mint-d) 1.5px, transparent 1.5px);
	background-size: 46px 46px;
	color: var(--ink); font-family: Nunito, system-ui, -apple-system, sans-serif; font-weight: 700;
	touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
h2 { font-family: Fredoka, Nunito, sans-serif; font-weight: 700; margin: 0; }

#app {
	position: fixed; inset: 0; display: grid;
	grid-template-columns: clamp(190px, 24vw, 296px) minmax(0, 1fr) clamp(196px, 21vw, 270px);
	grid-template-rows: minmax(0, 1fr) var(--bar);
	column-gap: 14px;
	padding: 0 14px 0 14px;
}
#pantry { grid-area: 1 / 1; margin: var(--top) 0 12px; }
#lab { grid-area: 1 / 2; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px 0 8px; }
#side { grid-area: 1 / 3; margin: var(--top) 0 12px; }
#bar { grid-area: 2 / 1 / 3 / 4; margin: 0 -14px; }

/* ── pantry ─────────────────────────────────────────────────────────────── */
#pantry { background: var(--cream); border: 3px solid var(--cream-d); border-radius: 18px; padding: 8px 10px 10px; display: flex; flex-direction: column; min-height: 0; box-shadow: 0 3px 0 rgba(0, 0, 0, .06); }
#pantry h2 { font-size: clamp(20px, 2.4vw, 28px); color: var(--ink2); text-align: center; line-height: 1.15; padding-bottom: 4px; }
#jars { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px 8px; }
.jar { position: relative; display: flex; flex-direction: column; align-items: stretch; background: none; border: 0; padding: 0; min-width: 0; min-height: 0; transition: transform .1s; }
.jar:active { transform: scale(.94); }
.jar .lid { flex: none; align-self: center; width: 62%; height: 8px; background: var(--red); border: 2px solid var(--red-d); border-radius: 5px 5px 1px 1px; margin-bottom: -2px; position: relative; z-index: 1; }
.jar .glass { flex: 1; min-height: 0; background: rgba(255, 255, 255, .88); border: 3px solid var(--line); border-radius: 16px; padding: 4px; display: grid; place-items: center; overflow: hidden; }
.jar .glass svg { width: 100%; height: 100%; display: block; }
.jar .lbl { flex: none; text-align: center; line-height: 1.08; padding-top: 3px; color: var(--ink2); }
.jar .lbl b, .jar .lbl small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jar .lbl b { font-weight: 900; font-size: clamp(11px, 1.15vw, 14px); }
.jar .lbl small { display: none !important; font-weight: 700; font-size: clamp(9px, .78vw, 10.5px); color: #566961; }
.jar .chk { position: absolute; top: 12px; right: -3px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); border: 2.5px solid #fff; display: none; place-items: center; z-index: 2; }
.jar .chk svg { width: 14px; height: 14px; }
.jar.picked .glass, .jar.picked .lid, .jar.picked .lbl { opacity: .45; }
.jar.picked .chk { display: grid; }
.jar.glow .glass { animation: glow 1s ease-in-out infinite; border-color: #e6a800; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .9); } 50% { box-shadow: 0 0 0 8px rgba(255, 210, 63, 0); background: #fff6c8; } }

/* ── the machine ────────────────────────────────────────────────────────── */
#machine { position: relative; flex: none; width: 612px; height: 472px; --s: 1; }
#msvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
#sign {
	position: absolute; left: 31.7%; width: 36.6%; top: 2.1%; height: 10.2%; display: grid; place-items: center;
	background: var(--red); border: 3px solid var(--red-d); border-radius: 12px; color: #fff; font-family: Fredoka, sans-serif; font-weight: 700;
	font-size: clamp(14px, calc(var(--s) * 28px), 32px); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
}
#plate {
	position: absolute; left: 30%; width: 40%; top: 14%; height: 8.6%; display: grid; place-items: center; text-align: center; pointer-events: none;
	font-family: Fredoka, sans-serif; font-weight: 600; color: var(--ink2); font-size: clamp(11px, calc(var(--s) * 21px), 24px); white-space: nowrap;
}
#plate b { font-weight: 700; color: var(--ink); }
#plate i { font-style: normal; color: var(--red); padding: 0 .35em; }
.hbtn { position: absolute; top: 15.5%; width: 25%; height: 25%; background: none; border: 0; padding: 0; border-radius: 14px; }
#h1 { left: 3.6%; } #h2 { left: 71.4%; }
.hbtn:focus-visible, .jar:focus-visible, #mash:focus-visible { outline: 4px solid var(--yel); outline-offset: 2px; }
#swap {
	position: absolute; left: 50%; top: 32.2%; width: max(48px, calc(var(--s) * 54px)); height: max(48px, calc(var(--s) * 54px)); transform: translate(-50%, 0);
	border-radius: 50%; background: #fff; border: 3px solid var(--sage); padding: 0; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}
#swap svg { width: 62%; height: 62%; }
#swap:active { transform: translate(-50%, 0) scale(.92); }
#mash {
	position: absolute; left: 50.3%; top: 90.6%; transform: translate(-50%, -50%);
	width: max(58px, calc(var(--s) * 80px)); height: max(58px, calc(var(--s) * 80px)); border-radius: 50%;
	background: var(--yel); border: 4px solid var(--red-d); color: var(--red-d); font-family: Fredoka, sans-serif; font-weight: 700;
	font-size: max(16px, calc(var(--s) * 24px)); padding: 0; box-shadow: 0 5px 0 var(--red-d), inset 0 -6px 0 rgba(0, 0, 0, .08); letter-spacing: .01em;
}
#mash:active { transform: translate(-50%, calc(-50% + 4px)); box-shadow: 0 1px 0 var(--red-d); }
#mash.off { background: #ecdc9a; color: #a67b6e; border-color: #b98578; box-shadow: 0 5px 0 #b98578; }

.hopart { transform-box: view-box; }
#hop1.has .empty, #hop2.has .empty { display: none; }
.hopart.drop { animation: dropin .42s cubic-bezier(.3, 1.35, .5, 1); }
@keyframes dropin { from { transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(.5); opacity: .3; } to { transform: none; opacity: 1; } }
.hbtn.nudge, .hopnudge { animation: nudge .45s ease; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#hop1.nudge, #hop2.nudge { animation: nudgeSvg .45s ease; }
@keyframes nudgeSvg { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

#minis .orb { transform-box: view-box; transform-origin: 308px 300px; }
#minis .o1 { animation: bob 2.6s ease-in-out infinite; }
#minis .o2 { animation: bob 2.6s ease-in-out -1.3s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
#bubs circle { fill: #fff; fill-opacity: .85; stroke: var(--sage); stroke-width: 1.5; }
#liquid path { transition: opacity .3s; }
#flash { opacity: 0; transform-box: fill-box; transform-origin: center; }
.flow { opacity: 0; }
.needle { transform-box: view-box; }
#g1 .needle { transform-origin: 52px 354px; } #g2 .needle { transform-origin: 560px 354px; }

#app.mashing #jar { animation: shake .15s linear infinite; transform-box: view-box; transform-origin: 308px 440px; }
@keyframes shake { 0%, 100% { transform: translate(0, 0) rotate(0); } 20% { transform: translate(-3px, 1px) rotate(-1.4deg); } 40% { transform: translate(3px, -1px) rotate(1.4deg); } 60% { transform: translate(-2px, 0) rotate(-1deg); } 80% { transform: translate(2px, 1px) rotate(1deg); } }
#app.mashing #minis .o1 { animation: orbit .55s linear infinite; }
#app.mashing #minis .o2 { animation: orbit .7s linear infinite reverse; }
@keyframes orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }
#app.mashing #bubs circle { animation: rise .9s ease-in infinite; transform-box: fill-box; }
#app.mashing #bubs circle:nth-child(2n) { animation-duration: .7s; animation-delay: -.3s; }
#app.mashing #bubs circle:nth-child(3n) { animation-duration: 1.1s; animation-delay: -.5s; }
@keyframes rise { 0% { transform: translateY(70px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }
#app.mashing .flow { opacity: 1; animation: flowing .4s linear infinite; }
@keyframes flowing { to { stroke-dashoffset: -24; } }
#app.mashing .hopart { animation: wobble .3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
#app.mashing #g1 .needle, #app.mashing #g2 .needle { animation: gauge .5s ease-in-out infinite alternate; }
@keyframes gauge { from { transform: rotate(-16deg); } to { transform: rotate(52deg); } }
#app.mashing #liquid path { animation: slosh .3s ease-in-out infinite alternate; }
@keyframes slosh { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
#app.flashing #flash { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.7); } }
#spk .st { transform-box: fill-box; transform-origin: center; animation: burst .75s ease-out forwards; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.2) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(120deg); opacity: 0; } }

/* ── right column: shelf, cloche, name, keep ──────────────────────────── */
#side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; min-height: 0; }
#coll { background: var(--cream); border: 3px solid var(--cream-d); border-radius: 18px; padding: 6px 8px 8px; box-shadow: 0 3px 0 rgba(0, 0, 0, .06); }
.collBtn { width: calc(100% - 50px); margin-right: auto; min-height: 48px; background: none; border: 0; padding: 0 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.collBtn h2 { font-size: clamp(18px, 2vw, 24px); color: var(--ink2); }
.collBtn small { font-size: 13px; font-weight: 900; color: #566961; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.thumb, .slot { height: clamp(66px, 11vh, 96px); border-radius: 10px; padding: 2px; display: grid; place-items: center; min-width: 0; }
.thumb { background: #fff; border: 2.5px solid var(--line); position: relative; overflow: hidden; }
.thumb svg { width: 100%; height: 100%; display: block; }
.thumb.fresh { animation: fresh .6s ease-out; }
@keyframes fresh { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.slot { border: 2.5px dashed #c6bb95; color: #c6bb95; font: 700 22px Fredoka, sans-serif; }
#cl { min-height: 0; position: relative; }
#cl svg.cs { width: 100%; height: 100%; display: block; }
#cl .q { font-family: Fredoka, sans-serif; font-weight: 700; }
#clArt { transform-box: fill-box; transform-origin: 50% 100%; }
#clArt.pop { animation: popin .7s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes popin { 0% { transform: scale(.15) rotate(-22deg); opacity: 0; } 55% { transform: scale(1.14) rotate(5deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
#nm { background: #fffbea; border: 2.5px solid var(--red-d); border-radius: 12px; padding: 7px 8px 6px; text-align: center; min-height: 56px; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
#nm .t { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 23px; color: var(--ink2); white-space: nowrap; }
#nm .t.mute { color: #8a9a92; font-weight: 600; }
#nm .l { font-size: 13px; font-weight: 900; color: var(--red-d); margin-top: 3px; }
#nm .g { font-size: 11.5px; font-weight: 700; color: #566961; margin-top: 3px; }
#keep {
	min-height: 60px; border-radius: 18px; background: var(--green); border: 3px solid #3a7a3a; color: #fff; font-family: Fredoka, sans-serif; font-weight: 700;
	font-size: 30px; box-shadow: 0 4px 0 #3a7a3a; padding: 0 10px;
}
#keep:active { transform: translateY(3px); box-shadow: 0 1px 0 #3a7a3a; }
#keep:disabled { background: #bcd0c3; border-color: #96b0a2; box-shadow: 0 4px 0 #96b0a2; color: #fff; cursor: default; }
#keep.done { background: #e9f4e6; color: #3a7a3a; border-color: #8fc58b; box-shadow: 0 4px 0 #8fc58b; }
#keep.glow, #mash.glow, #help.glow { animation: glowbtn 1s ease-in-out infinite; }
@keyframes glowbtn { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 10px #ffd23f) brightness(1.1); } }

/* ── the counter: step line + help ──────────────────────────────────────── */
#bar { background: var(--red); border-top: 10px solid var(--cream); box-shadow: 0 -3px 0 var(--cream-d); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px 0 140px; }
#step { display: flex; align-items: center; gap: 12px; background: #fffaf0; border: 3px solid var(--red-d); border-radius: 999px; padding: 6px 24px 6px 8px; font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(19px, 2.4vw, 28px); color: var(--ink); white-space: nowrap; }
#step .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yel); border: 3px solid var(--red-d); display: grid; place-items: center; font-size: 23px; color: var(--red-d); }
#step.bump { animation: bump .5s ease; }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.09); } }
#help { min-height: 52px; padding: 0 24px; border-radius: 16px; background: var(--yel); border: 3px solid var(--red-d); color: var(--red-d); font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(18px, 2vw, 22px); box-shadow: 0 4px 0 var(--red-d); }
#help:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-d); }

/* ── shelf and big view ─────────────────────────────────────────────────── */
.veil { position: fixed; inset: 0; z-index: 60; background: rgba(38, 48, 47, .55); display: grid; place-items: center; padding: 8px; }
.veil[hidden] { display: none; }
.card { background: var(--cream); border: 4px solid var(--cream-d); border-radius: 24px; width: 100%; max-width: 1000px; max-height: min(88vh, 760px); display: flex; flex-direction: column; padding: 14px 16px 16px; box-shadow: 0 10px 0 rgba(0, 0, 0, .12); }
.card .hd { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; min-height: 54px; }
.card .hd h2 { flex: 1; font-size: 28px; color: var(--ink2); line-height: 1.1; }
.card .hd h2 small { display: block; font: 900 14px Nunito, sans-serif; color: #566961; }
.xbtn, .back { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid var(--sage); padding: 0; display: grid; place-items: center; }
.xbtn svg, .back svg { width: 26px; height: 26px; }
.cards { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; padding: 2px 2px 6px; align-content: start; }
.mcard { background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: 6px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mcard .art { width: 100%; aspect-ratio: 1; }
.mcard .art svg { width: 100%; height: 100%; display: block; }
.mcard span.n { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.1; text-align: center; color: var(--ink2); min-height: 2.2em; display: grid; place-items: center; }
.empty-note { grid-column: 1 / -1; text-align: center; padding: 30px 10px; font: 600 20px Fredoka, sans-serif; color: #6a7a73; }
.big { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; overflow: auto; }
.big .art { background: #fff; border: 3px solid var(--line); border-radius: 22px; aspect-ratio: 1; width: min(100%, 52vh); justify-self: center; padding: 8px; }
.big .art svg { width: 100%; height: 100%; display: block; }
.big .txt { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.big .nm { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; color: var(--ink); }
.big .ln { font-weight: 900; font-size: 19px; color: var(--red-d); }
.big .from { font-weight: 700; font-size: 16px; color: #566961; line-height: 1.3; }
.again { min-height: 56px; border-radius: 16px; background: var(--yel); border: 3px solid var(--red-d); color: var(--red-d); font: 700 22px Fredoka, sans-serif; box-shadow: 0 4px 0 var(--red-d); padding: 0 18px; }

#toast { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -20px); background: var(--ink); color: #fff; font: 700 17px Nunito, sans-serif; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 70; max-width: 80vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── wide screens get the two-line jar labels ───────────────────────────── */
@media (orientation: landscape) and (min-height: 600px) { .jar .lbl small { display: block !important; } }

/* ── short landscape: a phone on its side ──────────────────────────────── */
@media (orientation: landscape) and (max-height: 599px) {
	:root { --bar: 62px; --top: 8px; }
	#app { grid-template-columns: clamp(166px, 24vw, 220px) minmax(0, 1fr) clamp(172px, 24vw, 214px); column-gap: 8px; padding: 0 8px 0 66px; }
	#pantry { margin: 8px 0 8px; padding: 6px 7px 7px; border-radius: 14px; }
	#pantry h2 { display: none; }
	#jars { gap: 4px 5px; }
	.jar .lid { height: 6px; }
	.jar .glass { border-width: 2.5px; border-radius: 11px; padding: 2px; }
	.jar .lbl b { font-size: 10.5px; }
	.jar .chk { width: 20px; height: 20px; top: 8px; }
	#side { margin: 64px 0 6px; gap: 5px; grid-template-rows: minmax(0, 1fr) auto auto; }
	.thumbs { display: none; }
	/* The shelf button lives on the counter here (not bottom-right: that corner is the portal's chat button). */
	#coll { position: fixed; right: 84px; bottom: 9px; width: auto; padding: 0; background: none; border: 0; box-shadow: none; z-index: 6; }
	.collBtn { width: auto; margin: 0; min-width: 150px; min-height: 44px; flex-direction: row; gap: 8px; padding: 0 12px; background: var(--cream); border: 3px solid var(--cream-d); border-radius: 14px; }
	.collBtn h2 { font-size: 15px; white-space: nowrap; } .collBtn small { font-size: 12px; white-space: nowrap; }
	#nm { min-height: 42px; padding: 4px 6px; } #nm .t { font-size: 17px; } #nm .l { font-size: 11px; margin-top: 1px; } #nm .g { display: none; }
	#keep { min-height: 50px; font-size: 24px; border-radius: 15px; }
	#bar { margin: 0 -8px 0 -66px; padding: 0 10px 0 150px; gap: 10px; border-top-width: 8px; justify-content: flex-start; }
	#step { font-size: 18px; padding: 4px 16px 4px 5px; gap: 8px; } #step .n { width: 32px; height: 32px; font-size: 18px; }
	#help { min-height: 44px; padding: 0 16px; font-size: 17px; }
	#lab { padding: 6px 0 4px; }
}

/* ── portrait: phone or tablet held upright ────────────────────────────── */
@media (orientation: portrait) {
	:root { --bar: 66px; }
	#app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) var(--bar); padding: 58px 10px 0; column-gap: 0; row-gap: 8px; }
	#lab { grid-area: 1 / 1; padding: 0; }
	#side { grid-area: 2 / 1; margin: 0; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 6px; align-items: center; }
	#coll { grid-area: 3 / 2; padding: 0; background: none; border: 0; box-shadow: none; }
	.collBtn { width: 100%; background: var(--cream); border: 3px solid var(--cream-d); border-radius: 16px; min-height: 48px; flex-direction: row; gap: 8px; }
	.collBtn h2, .collBtn small { white-space: nowrap; } .collBtn h2 { font-size: 16px; } .collBtn small { font-size: 12px; }
	.thumbs { display: none; }
	#cl { grid-area: 1 / 1 / 4 / 2; height: clamp(150px, 20vh, 260px); }
	#nm { grid-area: 1 / 2; } #keep { grid-area: 2 / 2; min-height: 54px; font-size: 27px; }
	#pantry { grid-area: 3 / 1; margin: 0 0 8px; padding: 6px 8px 8px; }
	#pantry h2 { display: none; }
	#jars { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 6px; }
	#bar { grid-area: 4 / 1; margin: 0 -10px; padding: 0 8px 0 132px; gap: 6px; border-top-width: 8px; justify-content: flex-start; }
	#step { font-size: 16px; padding: 3px 12px 3px 4px; gap: 6px; min-width: 0; } #step .n { width: 30px; height: 30px; font-size: 17px; }
	#help { min-height: 46px; padding: 0 11px; font-size: 15px; white-space: nowrap; }
	#sign { top: auto; bottom: calc(100% + 8px); height: 44px; left: 50%; width: 252px; transform: translateX(-50%); font-size: 24px; }
	.jar .lbl b { font-size: clamp(10.5px, 2.9vw, 13px); }
	#toast { top: 62px; }
}
/* a phone upright: the shared ? sits at the machine's top-right corner, over hopper 2's lid; the machine keeps clear of that column */
@media (orientation: portrait) and (max-width: 599px) { #lab { padding-right: 40px; } }
@media (orientation: portrait) and (min-width: 600px) {
	.jar .lbl small { display: block !important; }
	#cl { height: clamp(200px, 20vh, 270px); }
	#keep { justify-self: center; width: min(100%, 380px); }
	#bar { padding-left: 140px; justify-content: center; }
	#step { font-size: 22px; } #step .n { width: 38px; height: 38px; font-size: 21px; } #help { font-size: 20px; padding: 0 20px; }
	#pantry h2 { display: block; }
	#keep { font-size: 32px; min-height: 64px; }
	#nm .t { font-size: 30px; } #nm .l { font-size: 16px; } #nm .g { font-size: 14px; }
}
@media (max-width: 700px) {
	.big { grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; text-align: center; }
	.big .art { width: min(100%, 40vh, 300px); }
	.big .txt { align-items: center; }
	.big .nm { font-size: 30px; }
	.cards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
	.card { padding: 10px 10px 12px; }
}
@media (orientation: landscape) and (max-height: 599px) { .veil { padding: 8px 66px; } .card { max-height: 94vh; } .big .art { width: min(100%, 38vh); } .card { padding: 6px 12px 10px; } .card .hd { min-height: 48px; padding-bottom: 2px; } .card .hd h2 { font-size: 22px; } .big .nm { font-size: 28px; } .big .txt { gap: 6px; } .again { min-height: 48px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { #app.mashing #jar, #app.mashing #minis .orb { animation: none; } }
