:root {
  --ink: #1d1a2f;
  --cream: #fff4d6;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --teal: #2ec4b6;
  --purple: #6846f2;
  --orange: #ff7b39;
  --lime: #9be564;
  --sky: #4cc9f0;
  --red: #d92f3a;
  --hand: 'Gochi Hand', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --fat: 'Chewy', 'Gochi Hand', 'Comic Sans MS', cursive;
  --wob: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wob2: 18px 225px 18px 255px / 255px 18px 225px 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--hand);
  color: var(--ink);
  font-size: 18px;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 10px 12px, rgba(255, 79, 163, .2) 3px, transparent 4px),
    radial-gradient(circle at 32px 30px, rgba(76, 201, 240, .25) 3px, transparent 4px),
    radial-gradient(circle at 22px 46px, rgba(255, 210, 63, .35) 2.5px, transparent 3.5px);
  background-size: 44px 52px;
  overscroll-behavior: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
#app { max-width: 520px; margin: 0 auto; position: relative; }
.screen {
  display: none; flex-direction: column;
  min-height: 100dvh;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.screen.active { display: flex; animation: screenIn .25s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } }

button { font-family: var(--hand); color: var(--ink); touch-action: manipulation; cursor: pointer; }
h1, h2, h3 { font-family: var(--fat); font-weight: 400; margin: 0; }

/* ---------- doodle buttons ---------- */
.btn {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: var(--wob);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 12px 18px;
  font-size: 22px;
  line-height: 1.1;
  transition: transform .07s, box-shadow .07s, filter .2s;
}
.btn:active:not(:disabled) { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .4; filter: grayscale(.6); cursor: default; }
.btn.small { font-size: 18px; padding: 9px 12px; }
.btn.big { font-size: 26px; padding: 14px 24px; width: 100%; }
.c-sky { background: var(--sky); } .c-pink { background: var(--pink); }
.c-purple { background: var(--purple); color: #fff; } .c-lime { background: var(--lime); }
.c-red { background: var(--red); color: #fff; } .c-white { background: #fff; }
.c-teal { background: var(--teal); } .c-orange { background: var(--orange); }
.icon-btn {
  width: 42px; height: 42px; flex: none;
  background: #fff; border: 3px solid var(--ink); border-radius: 50% 45% 50% 42%;
  font-size: 20px; box-shadow: 2px 3px 0 var(--ink);
}
.icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---------- title ---------- */
.logo {
  text-align: center; font-size: clamp(54px, 16vw, 78px); line-height: 1; margin-top: 8px;
  filter: url(#wobble);
}
.logo span {
  display: inline-block; color: var(--c, var(--pink));
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--ink);
  transform: rotate(var(--r, 0deg));
  animation: bob 2.2s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.logo span:nth-child(1) { --c: var(--pink); --r: -8deg; --d: 0s; }
.logo span:nth-child(2) { --c: var(--yellow); --r: 6deg; --d: .1s; }
.logo span:nth-child(3) { --c: var(--sky); --r: -4deg; --d: .2s; }
.logo span:nth-child(4) { --c: var(--lime); --r: 8deg; --d: .3s; }
.logo span:nth-child(5) { --c: var(--orange); --r: -6deg; --d: .4s; }
.logo span:nth-child(6) { --c: var(--purple); --r: 5deg; --d: .5s; }
.logo span:nth-child(7) { --c: var(--teal); --r: -7deg; --d: .6s; }
.logo span:nth-child(8) { --c: var(--pink); --r: 4deg; --d: .7s; }
.logo span:nth-child(9) { --c: var(--yellow); --r: -5deg; --d: .8s; }
.logo span:nth-child(10) { --c: var(--red); --r: 14deg; --d: .9s; }
@keyframes bob { 50% { translate: 0 -5px; } }
.tagline { text-align: center; margin: 6px 0 0; font-size: 19px; transform: rotate(-1.5deg); }
.title-art { width: 82%; max-width: 330px; margin: 6px auto 4px; }

.modes { display: grid; gap: 14px; margin-top: 8px; }
.mode-btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 3.5px solid var(--ink); border-radius: var(--wob); box-shadow: 5px 6px 0 var(--ink);
  padding: 12px 14px; transition: transform .07s, box-shadow .07s;
}
.mode-btn:active { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.mode-clock { background: var(--yellow); transform: rotate(-.8deg); }
.mode-rush { background: var(--sky); border-radius: var(--wob2); transform: rotate(.8deg); }
.mode-ico { font-size: 42px; flex: none; filter: drop-shadow(2px 2px 0 var(--ink)); }
.mode-txt { display: flex; flex-direction: column; }
.mode-txt b { font-family: var(--fat); font-weight: 400; font-size: 27px; }
.mode-txt small { font-size: 16px; line-height: 1.15; }
.mode-txt em { font-style: normal; font-size: 15px; margin-top: 4px; background: rgba(255,255,255,.6); border-radius: 10px; padding: 1px 8px; align-self: flex-start; border: 2px solid var(--ink); }
.menu-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; margin-top: 18px; }
.install { margin: 16px auto 0; }
.ios-hint { text-align: center; font-size: 16px; margin-top: 14px; }

/* ---------- game ---------- */
.topbar { display: flex; align-items: center; gap: 8px; }
.mode-pill, .score-pill {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--wob);
  padding: 4px 10px; font-size: 17px; white-space: nowrap;
}
.score-pill { display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 3px 12px; margin-left: auto; background: var(--yellow); }
.score-pill small { font-size: 12px; }
.score-pill b { font-family: var(--fat); font-weight: 400; font-size: 22px; }
.dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.dot.now { background: var(--yellow); animation: pulse 1s ease-in-out infinite; }
.dot.gold { background: #ffcc00; box-shadow: 0 0 0 2px #fff7b0; } .dot.good { background: var(--lime); }
.dot.meh { background: var(--orange); } .dot.bad { background: var(--red); }
.dot.safe { background: var(--teal); } .dot.waste { background: #aaa; }
@keyframes pulse { 50% { transform: scale(1.25); } }

.card-slot { min-height: 128px; margin: 12px 0 6px; display: flex; align-items: center; justify-content: center; }
.label {
  width: 100%; position: relative;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--wob2);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 10px 14px 10px 18px; transform: rotate(-1.2deg);
  animation: cardIn .35s cubic-bezier(.2, 1.6, .4, 1);
}
.label::before { /* color stripe */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: var(--stripe, var(--pink)); border-right: 3px solid var(--ink); border-radius: 14px 0 0 14px;
}
@keyframes cardIn { from { transform: rotate(-12deg) scale(.6); opacity: 0; } }
.lbl-name { font-family: var(--fat); font-size: 27px; line-height: 1.05; }
.lbl-inst { font-size: 20px; margin-top: 3px; }
.lbl-inst b { font-family: var(--fat); font-weight: 400; font-size: 26px; background: var(--yellow); padding: 0 8px; border: 2.5px solid var(--ink); border-radius: 10px; display: inline-block; transform: rotate(2deg); }
.lbl-note { font-size: 16px; opacity: .75; margin-top: 2px; }
.lbl-warn { margin-top: 6px; background: #ffe4ef; border: 2px dashed var(--pink); border-radius: 10px; padding: 2px 8px; font-size: 16px; }

.mw-wrap { position: relative; margin-top: 6px; }
.mw-svg { width: 100%; display: block; overflow: visible; }
.mw-display { font: 700 21px 'Courier New', ui-monospace, monospace; fill: #7dff8a; letter-spacing: 1px; }
.mw-display.dim { fill: #3a6b45; }
.mw-glow { opacity: 0; transition: opacity .35s; }
.cooking .mw-glow { opacity: .95; }
.mw-spin { transform-box: fill-box; transform-origin: center; }
.cooking .mw-spin { animation: turntable 2.6s ease-in-out infinite; }
@keyframes turntable { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.cooking .mw-svg { animation: rumble .16s linear infinite; }
@keyframes rumble { 25% { translate: .6px 0; } 75% { translate: -.6px .4px; } }
.mw-sparks { opacity: 0; stroke: #fff27a; }
.sparking .mw-sparks { animation: flick .14s steps(2) infinite; }
.plasma .mw-sparks { stroke: #e0a3ff; }
.flames .mw-sparks { stroke: #ff7b39; stroke-width: 7; }
.gassy .mw-glow { fill: #b8e986; }
@keyframes flick { 0% { opacity: 1; } 50% { opacity: .1; } 100% { opacity: 1; } }

.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bub {
  position: absolute; white-space: nowrap;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--wob);
  padding: 2px 10px; font-size: 18px; box-shadow: 2px 3px 0 var(--ink);
  animation: bub 2.4s ease-out forwards;
}
.bub.pop { background: var(--yellow); font-family: var(--fat); font-size: 20px; padding: 0 8px; animation-duration: .9s; }
.bub.zap { background: #fff27a; font-family: var(--fat); }
@keyframes bub {
  0% { opacity: 0; transform: scale(.4) rotate(-6deg); }
  12% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  20% { transform: scale(1) rotate(-1deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-34px) rotate(-2deg); }
}
.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }
.flash.go { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }

.controls { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 16px; align-items: stretch; }
.controls .btn { padding: 8px 6px; font-family: var(--fat); font-size: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.controls .btn span { font-size: 26px; line-height: 1; }
.go { background: var(--lime); font-size: 34px !important; min-height: 92px; letter-spacing: 1px; }
.go.stop { background: var(--red); color: #fff; animation: throb .7s ease-in-out infinite; }
@keyframes throb { 50% { scale: 1.04; } }
.hint { text-align: center; font-size: 16.5px; margin: 14px 0 0; opacity: .8; }

/* ---------- lunch rush ---------- */
.served { margin-left: auto; }
.served + .score-pill { margin-left: 0; }
.queue-wrap { margin-top: 14px; }
.queue { display: flex; gap: 8px; align-items: flex-end; min-height: 186px; overflow: hidden; padding: 14px 2px 6px; }
.cust {
  flex: 0 0 74px; position: relative; text-align: center; line-height: 1.05;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--wob); box-shadow: 3px 4px 0 var(--ink);
  padding: 4px 4px 6px; font-size: 13px; animation: walkIn .45s cubic-bezier(.2, 1.4, .4, 1);
}
.cust:nth-child(even) { border-radius: var(--wob2); }
.cust.front { flex-basis: 104px; background: var(--yellow); font-size: 14px; }
.cust.gary { background: #ffd6d6; }
.cust.mad { animation: shake .35s linear infinite; }
@keyframes walkIn { from { transform: translateX(60px) rotate(8deg); opacity: 0; } }
@keyframes shake { 25% { translate: -1.5px 0; } 75% { translate: 1.5px 0; } }
.cust .face { width: 46px; margin: 0 auto; }
.cust.front .face { width: 56px; }
.cust .cname { font-family: var(--fat); font-size: 15px; }
.cust .fmini { width: 34px; margin: 2px auto 0; }
.cust.front .fmini { width: 44px; }
.cust .fname { min-height: 2.1em; display: flex; align-items: center; justify-content: center; }
.cust .tt { font-family: var(--fat); font-size: 19px; }
.cust.front .tt { font-size: 23px; }
.pat { height: 8px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; overflow: hidden; margin-top: 3px; }
.pat i { display: block; height: 100%; background: var(--lime); transition: width .2s linear; }
.cust.mad .pat i { background: var(--red); }
.tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap;
  background: var(--pink); border: 2.5px solid var(--ink); border-radius: 8px; padding: 0 7px; font-size: 13px; font-family: var(--fat);
}
.more, .empty-q { align-self: center; font-family: var(--fat); font-size: 20px; padding: 0 6px; }
.empty-q { font-family: var(--hand); font-size: 18px; opacity: .7; margin: auto; }
.rnope { width: 100%; padding: 6px 12px; font-family: var(--fat); font-size: 22px; margin-top: 4px; }
.rnope small { font-family: var(--hand); font-size: 16px; margin-left: 8px; }
.rush-msg { min-height: 44px; margin: 8px 2px 2px; font-size: 16.5px; line-height: 1.25; text-align: center; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.slot { background: none; border: 0; padding: 0; margin: 0; font: inherit; text-align: center; touch-action: manipulation; position: relative; }
.slot .mw-wrap { margin: 0; }
.slot:active .mw-svg { transform: scale(.97); }
.ticket {
  margin-top: 4px; min-height: 96px; padding: 5px 6px;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--wob2); box-shadow: 3px 4px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.05;
}
.slot:nth-child(2) .ticket { border-radius: var(--wob); }
.slot.busy .ticket { background: #fff3b0; }
.slot.broken .ticket { background: #e6e6e6; }
.tk-top { font-size: 15px; }
.tk-row { display: flex; align-items: center; gap: 6px; }
.tk-row .goal { font-family: var(--fat); font-size: 19px; }
.ticket .big { font: 700 24px 'Courier New', ui-monospace, monospace; color: #7dff8a; background: #10202a; border: 2.5px solid var(--ink); border-radius: 8px; padding: 0 6px; min-width: 70px; }
.tk-hint { font-size: 13px; opacity: .7; }
.tk-load { font-family: var(--fat); font-size: 22px; color: var(--ink); background: var(--lime); border: 2.5px solid var(--ink); border-radius: 10px; padding: 2px 10px; }
.slot .bub { font-size: 15px; padding: 1px 7px; }
.slot .bub.pop { font-size: 16px; }
@media (max-height: 700px) { .queue { min-height: 170px; } .cust .fmini { display: none; } .ticket { min-height: 84px; } }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(29, 26, 47, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal[hidden] { display: none; }
.sheet {
  width: 100%; max-width: 520px; max-height: 94dvh; overflow-y: auto;
  background: #fff; border: 4px solid var(--ink); border-bottom: 0; border-radius: 30px 30px 0 0;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center; animation: sheetUp .35s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.res-food { width: 170px; margin: -4px auto 0; }
.food-svg { width: 100%; display: block; overflow: visible; }
.res-pct { font-family: var(--fat); font-size: 64px; line-height: .95; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.res-pct small { font-size: 24px; -webkit-text-stroke: 0; text-shadow: none; color: var(--ink); }
.stamp {
  display: inline-block; font-family: var(--fat); font-size: 32px; padding: 2px 16px; margin: 10px 0 10px;
  color: var(--ink); border: 4px solid var(--ink); border-radius: 12px; transform: rotate(-5deg);
  box-shadow: 3px 4px 0 var(--ink);
  animation: stamp .45s .55s cubic-bezier(.2, 1.8, .4, 1) both;
}
@keyframes stamp { from { transform: rotate(-20deg) scale(2.6); opacity: 0; } }
.res-comment { font-size: 20px; margin: 6px 0 4px; }
.res-facts { font-size: 16.5px; background: var(--cream); border: 2.5px dashed var(--ink); border-radius: 14px; padding: 6px 10px; margin: 8px 0; }
.res-break { list-style: none; padding: 0; margin: 6px auto 10px; max-width: 300px; font-size: 17px; }
.res-break li { display: flex; justify-content: space-between; border-bottom: 2px dotted rgba(29,26,47,.3); padding: 2px 0; }
.res-break li.total { font-family: var(--fat); font-size: 24px; border: 0; }
.res-break .neg { color: #d62828; }
.sheet h2 { font-size: 34px; }
.sheet .intro-ico { font-size: 64px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.sheet p { font-size: 19px; }
.sheet .intro-small { font-size: 16.5px; opacity: .8; }

/* ---------- summary ---------- */
.sum-head { text-align: center; margin-top: 10px; }
.sum-head h2 { font-size: 40px; transform: rotate(-2deg); }
.stars { font-size: 64px; letter-spacing: 6px; margin: 4px 0; }
.stars span { display: inline-block; color: #ddd; -webkit-text-stroke: 2px var(--ink); }
.stars span.on { color: #ffcc00; animation: starPop .5s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes starPop { from { transform: scale(0) rotate(-90deg); } }
.big-score { font-family: var(--fat); font-size: 58px; line-height: 1; }
.badge { display: inline-block; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 0 10px; transform: rotate(3deg); font-size: 18px; margin-top: 4px; }
.sum-list { background: #fff; border: 3px solid var(--ink); border-radius: var(--wob2); box-shadow: 4px 5px 0 var(--ink); padding: 8px 12px; margin: 16px 0; }
.sum-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 2px dotted rgba(29,26,47,.25); font-size: 17px; }
.sum-row:last-child { border: 0; }
.sum-row .mini { width: 40px; flex: none; }
.sum-row .nm { flex: 1; line-height: 1.1; }
.sum-row .nm small { display: block; opacity: .7; font-size: 14px; }
.sum-row .nm small.who { display: inline; margin-left: 4px; }
.sum-row .pts { font-family: var(--fat); font-size: 20px; }
.lvl-up { background: var(--lime); border: 3px solid var(--ink); border-radius: var(--wob); padding: 8px 12px; text-align: center; margin-bottom: 12px; transform: rotate(-1deg); }
.lvl-up b { font-family: var(--fat); font-weight: 400; font-size: 24px; display: block; }
.new-ach { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.new-ach span { background: var(--purple); color: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 2px 10px; font-size: 16px; }
.sum-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }

/* ---------- pages ---------- */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.page-head h2 { font-size: 38px; transform: rotate(-1.5deg); }
.sub { margin: 4px 0 12px; font-size: 17px; }
.paper { background: #fff; border: 3px solid var(--ink); border-radius: var(--wob2); box-shadow: 4px 5px 0 var(--ink); padding: 14px 18px; font-size: 18px; line-height: 1.3; }
.paper h3 { font-size: 24px; margin-top: 14px; }
.paper p { margin: 6px 0; } .paper ul { margin: 4px 0; padding-left: 20px; }
.score-table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 6px 0; }
.score-table td { border-bottom: 2px dotted rgba(29,26,47,.3); padding: 3px 4px; }

.fridge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fcard { background: #fff; border: 3px solid var(--ink); border-radius: var(--wob); box-shadow: 3px 4px 0 var(--ink); padding: 8px; text-align: center; font-size: 16px; line-height: 1.15; }
.fcard:nth-child(even) { border-radius: var(--wob2); transform: rotate(.8deg); }
.fcard:nth-child(odd) { transform: rotate(-.6deg); }
.fcard .art { width: 86px; margin: 0 auto; }
.fcard b { font-family: var(--fat); font-weight: 400; font-size: 18px; display: block; }
.fcard .time { display: inline-block; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; margin-top: 3px; }
.fcard.locked .art { filter: brightness(0) opacity(.2); }
.fcard.locked { background: #f1eadb; }
.fcard.danger { background: #ffe1e1; }
.danger-head { font-size: 26px; margin: 22px 0 10px; }

.trophy-list { display: grid; gap: 10px; }
.trophy { display: flex; align-items: center; gap: 12px; background: #fff; border: 3px solid var(--ink); border-radius: var(--wob); padding: 8px 12px; box-shadow: 3px 4px 0 var(--ink); }
.trophy:nth-child(even) { border-radius: var(--wob2); }
.trophy .ti { font-size: 34px; width: 46px; text-align: center; flex: none; }
.trophy b { font-family: var(--fat); font-weight: 400; font-size: 20px; display: block; }
.trophy small { font-size: 15.5px; line-height: 1.1; display: block; }
.trophy.locked { background: #f1eadb; box-shadow: none; }
.trophy.locked .ti { filter: grayscale(1) opacity(.35); }
.trophy.locked b { opacity: .55; }

.settings { display: grid; gap: 14px; }
.toggle { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.toggle input { width: 28px; height: 28px; accent-color: var(--pink); }
.stats { font-size: 17px; background: var(--cream); border: 2.5px dashed var(--ink); border-radius: 14px; padding: 8px 12px; }
.fine { font-size: 15px; opacity: .7; text-align: center; margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); z-index: 40;
  transform: translate(-50%, -160%); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 92vw;
  background: var(--purple); color: #fff; border: 3px solid var(--ink); border-radius: var(--wob);
  box-shadow: 4px 5px 0 var(--ink); padding: 8px 16px; font-size: 18px; line-height: 1.1;
}
.toast.show { transform: translate(-50%, 0); }
.toast .t-ico { font-size: 32px; }

/* food-state animations */
.steam { transform-box: fill-box; transform-origin: bottom; animation: steam 1.8s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; translate: 0 6px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 -10px; } }
.flame { transform-box: fill-box; transform-origin: bottom; animation: flame .35s ease-in-out infinite alternate; }
@keyframes flame { to { transform: scaleY(1.18) skewX(4deg); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 1.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.5) rotate(45deg); } }

@media (min-height: 820px) { .card-slot { margin-top: 20px; } .controls { margin-top: 22px; } }
@media (max-height: 680px) { .card-slot { min-height: 0; margin: 8px 0 2px; } .lbl-name { font-size: 23px; } .go { min-height: 76px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .cooking .mw-spin, .sparking .mw-sparks { animation: none !important; }
  .sparking .mw-sparks { opacity: 1; }
}
