:root {
  --blush: #F4D2CA;
  --tomato: #E2402A;
  --tomato-deep: #A92A17;
  --cream: #FFF5E6;
  --mustard: #F3B43C;
  --mustard-deep: #B97F12;
  --espresso: #3B2219;
  --espresso-soft: #7A5B4F;
  --paper: #FFFCF5;
  --tape: #FBEFC9;
  --steel-1: #EEF0F2;
  --steel-2: #A9AFB6;

  --sign-h: 104px;
  --steps-h: 66px;
  --rail-w: clamp(280px, 23vw, 350px);
  --ticket-w: clamp(250px, 21vw, 320px);

  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --ui: 'Instrument Sans', system-ui, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--blush);
  color: var(--espresso);
  font-family: var(--ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }

#bg, #scene, #fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
#bg { z-index: 0; }
#scene { z-index: 1; }
#fx { z-index: 5; }

.app {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr var(--ticket-w);
  grid-template-rows: var(--sign-h) 1fr var(--steps-h);
  grid-template-areas:
    'sign sign sign'
    'rail stage ticket'
    'steps steps steps';
}

.awning, .rail, .ticket-wrap, .steps {
  transition: filter 0.7s ease;
}
body.in-oven .awning,
body.in-oven .rail,
body.in-oven .ticket-wrap,
body.in-oven .steps {
  filter: brightness(0.24) saturate(0.6);
}

/* ---------- Striped awning ---------- */
.awning {
  grid-area: sign;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 28px 6px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.08) 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.09) 0, rgba(255,255,255,0.07) 28px, rgba(0,0,0,0.09) 56px),
    repeating-linear-gradient(90deg, var(--tomato) 0 56px, var(--cream) 56px 112px);
  box-shadow: 0 6px 0 rgba(59,34,25,0.08);
}
/* scalloped edge, one scallop per stripe */
.awning::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
  background:
    radial-gradient(circle at 28px 0, var(--tomato) 27.5px, transparent 28.5px) 0 0 / 112px 22px repeat-x,
    radial-gradient(circle at 84px 0, var(--cream) 27.5px, transparent 28.5px) 0 0 / 112px 22px repeat-x;
  filter: drop-shadow(0 6px 5px rgba(59,34,25,0.22));
  pointer-events: none;
}
.plaque {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 26px 10px 20px;
  background: var(--cream);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 3px var(--cream),
    inset 0 0 0 5px var(--tomato),
    0 8px 18px rgba(59,34,25,0.28);
}
.sign-name {
  font-family: var(--display);
  font-size: 54px;
  line-height: 1;
  color: var(--tomato);
  letter-spacing: -0.01em;
  text-shadow: 3px 3px 0 var(--mustard);
}
.sign-line {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--espresso-soft);
  max-width: 17ch;
}
.awning-note {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(59,34,25,0.25);
  display: flex;
  align-items: center;
  gap: 9px;
}
.awning-note .live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF7A3D;
  box-shadow: 0 0 0 3px rgba(255,122,61,0.3);
  animation: ember 1.6s ease-in-out infinite;
}
@keyframes ember { 50% { box-shadow: 0 0 0 6px rgba(255,122,61,0); } }

/* ---------- Left prep rail ---------- */
.rail {
  grid-area: rail;
  padding: 40px 18px 18px 28px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rail h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.02;
  color: var(--espresso);
}
.rail .sub {
  margin: 10px 0 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--espresso-soft);
  max-width: 30ch;
}
.rail.enter h2, .rail.enter .sub, .rail.enter .slot, .rail.enter .rail-actions, .rail.enter .oven-facts {
  animation: slide-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.rail.enter .slot:nth-child(2) { animation-delay: 0.05s; }
.rail.enter .slot:nth-child(3) { animation-delay: 0.1s; }
.rail.enter .slot:nth-child(4) { animation-delay: 0.15s; }
.rail.enter .slot:nth-child(5) { animation-delay: 0.2s; }
.rail.enter .slot:nth-child(6) { animation-delay: 0.25s; }

.slot { position: relative; }
.slot .insert { width: 100%; }
.minus {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 2;
  appearance: none;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  background: var(--espresso);
  box-shadow: 0 3px 0 rgba(0,0,0,0.25), 0 6px 12px rgba(59,34,25,0.25);
  animation: pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
  transition: background 0.15s ease, transform 0.12s ease;
}
.minus:hover { background: var(--tomato); transform: scale(1.08); }
.minus:active { transform: scale(0.94); }
.minus:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.minus[hidden] { display: none; }
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

.inserts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
  align-content: start;
}

.insert {
  position: relative;
  appearance: none;
  border: 0;
  padding: 7px;
  border-radius: 9px;
  cursor: grab;
  background: linear-gradient(145deg, var(--steel-1) 0%, #CDD2D7 40%, var(--steel-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 7px 0 -2px rgba(59,34,25,0.12),
    0 10px 18px rgba(59,34,25,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  touch-action: none;
}
.insert:hover { transform: translateY(-3px) rotate(-0.6deg); }
.slot:nth-child(even) .insert:hover { transform: translateY(-3px) rotate(0.6deg); }
.insert:active { cursor: grabbing; }
.insert:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.insert canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
  background: #8E949B;
}
.insert.picked { box-shadow: 0 0 0 4px var(--tomato), 0 10px 20px rgba(59,34,25,0.25); }
.insert.full { opacity: 0.72; }
.insert.shake { animation: shake 0.35s; }
@keyframes shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.tape {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  padding: 1px 9px 2px;
  background: var(--tape);
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(14px, 1.12vw, 18px);
  line-height: 1.1;
  color: var(--espresso);
  white-space: nowrap;
  transform: rotate(-1.6deg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 99% 92%, 96% 100%, 4% 96%, 0 100%);
  pointer-events: none;
}
.slot:nth-child(even) .tape { transform: rotate(1.2deg); }
.tape > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tape .price { flex: none; font-size: 0.85em; color: var(--tomato); }

.pips {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.pips i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tomato);
  border: 2.5px solid var(--cream);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes pop { from { transform: scale(0); } }

.rail-actions {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hint {
  font-size: 13px;
  color: var(--espresso-soft);
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 15px 22px 17px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  text-align: left;
  color: var(--cream);
  background: var(--tomato);
  box-shadow: 0 6px 0 var(--tomato-deep), 0 12px 22px rgba(169,42,23,0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 7px 0 var(--tomato-deep), 0 14px 24px rgba(169,42,23,0.32); }
.btn:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--tomato-deep), 0 4px 10px rgba(169,42,23,0.3); }
.btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.fire {
  font-size: 25px;
  padding: 20px 22px 22px;
  color: var(--espresso);
  background: linear-gradient(180deg, #FFC24A, #FF8A2A);
  box-shadow: 0 6px 0 #C2541A, 0 14px 30px rgba(226,64,42,0.45);
}
.btn.fire:active:not(:disabled) { box-shadow: 0 1px 0 #C2541A, 0 4px 10px rgba(226,64,42,0.4); }

.oven-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0 0 8px;
  font-size: 15px;
}
.oven-facts dt { font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--tomato); }
.oven-facts dd { margin: 0; align-self: center; color: var(--espresso-soft); }

/* ---------- Stage ---------- */
.stage { grid-area: stage; position: relative; min-height: 0; }

/* ---------- Ticket ---------- */
.ticket-wrap {
  grid-area: ticket;
  position: relative;
  padding: 44px 30px 0 8px;
  min-height: 0;
}
.ticket-bar {
  position: absolute;
  top: 36px;
  left: -6px;
  right: 14px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(180deg, #F7F8FA, #B6BCC3 60%, #868C94);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 2;
}
.ticket {
  position: relative;
  margin-top: 4px;
  padding: 28px 22px 18px;
  background:
    linear-gradient(var(--tomato), var(--tomato)) 0 0 / 100% 7px no-repeat,
    var(--paper);
  transform: rotate(1.4deg);
  transform-origin: top center;
  box-shadow: 0 14px 28px rgba(59,34,25,0.2), 0 2px 4px rgba(59,34,25,0.12);
  max-height: calc(100% - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ticket::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 12px 12px repeat-x,
    linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 12px 12px repeat-x;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(59,34,25,0.35);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.ticket-head .t-name {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--tomato);
}
.ticket-head .t-no {
  font-size: 13px;
  color: var(--espresso-soft);
  text-align: right;
  line-height: 1.3;
}
.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.15;
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 40px;
}
.lines::-webkit-scrollbar { display: none; }
.lines li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(59,34,25,0.16);
}
.lines li.new { animation: write 0.55s ease-out both; }
@keyframes write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.lines .qty { font-size: 19px; color: var(--tomato); }
.lines .amt { min-width: 3.4em; text-align: right; }
.lines .rm {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1;
  color: var(--espresso-soft);
  opacity: 0.5;
}
.lines .rm:hover { opacity: 1; background: rgba(226,64,42,0.12); color: var(--tomato); }
.lines .rm:focus-visible { outline: 2px solid var(--mustard); }
.lines .rm[hidden] { display: inline-block; visibility: hidden; }
.empty-line {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--espresso-soft);
  padding: 6px 0;
}
.total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--espresso);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.total span:first-child { font-size: 14px; color: var(--espresso-soft); }
.total .sum {
  font-family: var(--display);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.total .sum.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.12); color: var(--tomato); } }
.grazie {
  margin-top: 8px;
  font-family: var(--hand);
  font-size: 22px;
  color: var(--tomato);
  text-align: center;
}
.stamp {
  position: absolute;
  right: 26px;
  bottom: 128px;
  padding: 6px 14px;
  border: 3px solid var(--tomato);
  border-radius: 10px;
  background: rgba(255,252,245,0.6);
  color: var(--tomato);
  font-family: var(--display);
  font-size: 26px;
  transform: rotate(-12deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
  animation: stamp 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } }

/* ---------- Step bar ---------- */
.steps {
  grid-area: steps;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.step {
  appearance: none;
  border: 0;
  background: rgba(255,245,230,0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 7px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--espresso-soft);
  box-shadow: 0 3px 0 rgba(59,34,25,0.1);
}
.step .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid currentColor;
}
.step.done { color: var(--espresso); }
.step.done .dot { background: var(--mustard); border-color: var(--mustard); color: var(--espresso); }
.step.current { color: var(--cream); background: var(--tomato); box-shadow: 0 3px 0 var(--tomato-deep); }
.step.current .dot { background: var(--cream); border-color: var(--cream); color: var(--tomato); }
.step:disabled { cursor: default; }
.step:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.step-sep { width: 16px; height: 2px; border-radius: 1px; background: rgba(59,34,25,0.18); }

.credit {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 6;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,245,230,0.85);
  color: var(--espresso-soft);
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(59,34,25,0.12);
  transition: color 0.15s ease, background 0.15s ease;
}
.credit strong { color: var(--espresso); font-weight: 700; }
.credit:hover { background: var(--cream); color: var(--espresso); }
.credit:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
body.in-oven .credit { opacity: 0.3; }

.order-pill { display: none; }

/* ---------- Phones and small tablets: an app-style screen ---------- */
@media (max-width: 960px) {
  :root { --sign-h: 62px; }
  html, body { height: 100%; overscroll-behavior: none; }
  body { position: fixed; inset: 0; }
  .app {
    height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--sign-h) minmax(0, 1fr) auto auto;
    grid-template-areas: 'sign' 'stage' 'steps' 'rail';
  }

  /* awning */
  .awning {
    padding: 0 12px 4px;
    background:
      linear-gradient(180deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 35%),
      repeating-linear-gradient(90deg, rgba(0,0,0,0.09) 0, rgba(255,255,255,0.07) 18px, rgba(0,0,0,0.09) 36px),
      repeating-linear-gradient(90deg, var(--tomato) 0 36px, var(--cream) 36px 72px);
  }
  .awning::after {
    height: 14px;
    background:
      radial-gradient(circle at 18px 0, var(--tomato) 17.5px, transparent 18.5px) 0 0 / 72px 14px repeat-x,
      radial-gradient(circle at 54px 0, var(--cream) 17.5px, transparent 18.5px) 0 0 / 72px 14px repeat-x;
  }
  .plaque { padding: 5px 14px 7px; border-radius: 14px; }
  .sign-name { font-size: 30px; text-shadow: 2px 2px 0 var(--mustard); }
  .sign-line, .awning-note { display: none; }

  /* order pill opens the ticket */
  .order-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: calc(var(--sign-h) + 22px);
    right: 12px;
    z-index: 4;
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--espresso);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(59,34,25,0.18);
  }
  .order-pill strong {
    font-family: var(--display);
    font-weight: 400;
    font-size: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tomato);
    color: var(--cream);
  }
  .order-pill strong.bump { animation: bump 0.35s ease; }
  .order-pill { transition: filter 0.7s ease; }
  body.in-oven .order-pill { filter: brightness(0.3) saturate(0.6); }
  .order-pill:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

  .ticket-wrap {
    position: fixed;
    top: calc(var(--sign-h) + 70px);
    right: 12px;
    z-index: 8;
    width: min(330px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--sign-h) - 230px);
    padding: 0;
    display: none;
  }
  body.ticket-open .ticket-wrap { display: flex; flex-direction: column; animation: drop-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
  .ticket-bar { display: none; }
  .ticket { transform: none; max-height: 100%; margin: 0; box-shadow: 0 18px 40px rgba(59,34,25,0.3); }
  .lines { font-size: 20px; }
  .total .sum { font-size: 28px; }

  /* step pills, the top of the bottom sheet */
  .steps {
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--cream);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 30px rgba(59,34,25,0.14);
  }
  .steps::-webkit-scrollbar { display: none; }
  .step-sep { display: none; }
  .step { flex: none; padding: 5px 10px 5px 5px; font-size: 13px; box-shadow: none; background: rgba(59,34,25,0.06); }
  .step .lbl { display: none; }
  .step.current .lbl { display: inline; }
  .step .dot { width: 22px; height: 22px; }

  /* the rest of the sheet */
  .rail {
    min-width: 0;
    padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 34px);
    background: var(--cream);
  }
  .inserts { min-width: 0; }
  .rail h2, .rail .sub, .rail .oven-facts { padding: 0 16px; }
  .rail h2 { font-size: 23px; }
  .rail .sub { margin: 4px 0 6px; font-size: 13px; max-width: none; }
  .hint { display: none; }
  .inserts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 112px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 12px 16px 18px;
  }
  .inserts::-webkit-scrollbar { display: none; }
  .slot { scroll-snap-align: start; }
  .insert { padding: 5px; touch-action: pan-x; }
  .insert:hover, .slot:nth-child(even) .insert:hover { transform: none; }
  .tape { font-size: 13px; left: 6px; right: 6px; bottom: -10px; padding: 1px 6px; }
  .pips { top: 9px; right: 9px; gap: 3px; }
  .pips i { width: 13px; height: 13px; border-width: 2px; }
  .minus { width: 26px; height: 26px; top: -9px; left: -7px; font-size: 18px; }
  .rail-actions { padding: 2px 16px 0; margin-top: 0; }
  .btn { padding: 13px 18px 15px; font-size: 18px; text-align: center; }
  .btn.fire { font-size: 20px; padding: 15px 18px 17px; }
  .oven-facts {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 0 10px;
    margin: 8px 0 14px;
    font-size: 12px;
  }
  .oven-facts dt { font-size: 20px; }
  .oven-facts dd { align-self: start; line-height: 1.3; }

  .credit {
    right: 50%;
    transform: translateX(50%);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    padding: 3px 10px;
    font-size: 11px;
    box-shadow: none;
    background: transparent;
    white-space: nowrap;
  }
  .stamp { bottom: 100px; font-size: 22px; }
}

/* very short screens (phones held sideways) */
@media (max-width: 960px) and (max-height: 520px) {
  .rail .sub { display: none; }
  .steps { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
