/* Spud & Root: recipe pages (site/home/kitchen/*.html)
   Loaded after site.css. Each page sets --dish (its hero colour) and
   --dish-deep (a darker companion) on <body>. Everything here is prefixed
   rp- so it can't collide with site.css. */

.rp {
  --dish: var(--potato-white);
  --dish-deep: #3d8fc0;
  --paper: #fffdf6;
  --good: #2f7d32;
  --balsamic: #3a1420;
}

/* Hidden-until-JS controls use the hidden attribute; make sure site styles
   (display:flex etc.) don't override it. */
.rp [hidden] {
  display: none !important;
}

/* ---------- Small shared bits ---------- */
.rp-card {
  position: relative;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.rp-link {
  padding: 6px 2px;
  font: 700 0.95rem var(--font-body);
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  font: 600 1rem var(--font-display);
  color: var(--ink);
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.rp-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.rp-chip:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.rp-chip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rp-chip--ink {
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--dish);
}
.rp-chip--ink:hover {
  box-shadow: 6px 6px 0 var(--dish);
}

/* ---------- Hero ---------- */
.rp-hero {
  position: relative;
  overflow: hidden;
  background: var(--dish);
  border-bottom: var(--stroke) solid var(--ink);
  isolation: isolate;
}
.rp-hero .field {
  z-index: -1;
  color: var(--dish-deep);
  opacity: 0.35;
}
.rp-hero__inner {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px);
}
@media (min-width: 960px) {
  .rp-hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.rp-hero__copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.rp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
}
.rp-kicker__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--logo-green);
  border: 2px solid var(--ink);
}
.rp-hero h1 {
  display: grid;
  gap: 6px;
}
.rp-title {
  font-size: clamp(2.7rem, 1.5rem + 5.2vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.rp-subtitle {
  justify-self: start;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0;
  padding: 2px 14px 6px;
  margin-top: 6px;
  background: var(--logo-yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: 10px 18px 12px 20px;
  box-shadow: var(--shadow-sm);
  rotate: -2deg;
}
.rp-hero .lede {
  max-width: 32em;
}
/* Ink is only 3.9:1 on the russet hero (the other dish colours clear 4.5:1),
   so on a russet page the intro sits on a paper card */
.rp[data-dish="russet"] .rp-hero .lede {
  justify-self: start;
  padding: 12px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
}

.rp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 560px);
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rp-stats li {
  display: grid;
  gap: 2px;
  padding: 12px 10px 12px 14px;
}
.rp-stats li + li {
  border-left: 2px solid var(--ink);
}
.rp-stats__k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rp-stats__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  line-height: 1.1;
}
@media (max-width: 479px) {
  .rp-stats {
    grid-template-columns: 1fr 1fr;
  }
  .rp-stats li:nth-child(3) {
    border-left: 0;
  }
  .rp-stats li:nth-child(n + 3) {
    border-top: 2px solid var(--ink);
  }
}
.rp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}
.rp-play-dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
  color: var(--white);
  background: var(--potato-red);
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding-left: 2px;
}
.rp-madewith {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed var(--ink);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s;
}
.rp-madewith:hover {
  background: var(--white);
}
.rp-madewith img {
  width: 40px;
  height: 52px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
}
.rp-madewith small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Photo stage */
.rp-hero__stage {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  padding: 0 7% 10% 0;
}
.rp-hero__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border: var(--stroke) solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  rotate: 2deg;
  background: var(--cream);
}
.rp-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.rp-polaroid {
  position: absolute;
  left: -8%;
  bottom: 0;
  width: 38%;
  margin: 0;
  padding: 8px 8px 0;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  rotate: -8deg;
  transition: rotate 0.4s var(--ease-spring), scale 0.4s var(--ease-spring);
}
.rp-polaroid:hover {
  rotate: -3deg;
  scale: 1.06;
}
.rp-polaroid img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 62%;
  border: 2px solid var(--ink);
}
.rp-polaroid figcaption {
  font-family: var(--font-script);
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.35rem);
  text-align: center;
  padding: 4px 0 6px;
}
.rp-sticker {
  position: absolute;
  top: -6%;
  right: -2%;
  width: clamp(104px, 24%, 128px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.rp-sticker svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rp-sticker__bg {
  fill: var(--logo-yellow);
  stroke: var(--ink);
  stroke-width: 3;
}
.rp-sticker text {
  font: 700 12.5px var(--font-display);
  letter-spacing: 0.08em;
  fill: var(--ink);
}
.rp-sticker img {
  position: relative;
  width: 34%;
  translate: 0 4%;
}
.rp-note {
  position: absolute;
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem);
  line-height: 1;
  color: var(--ink);
  pointer-events: none;
}
.rp-note svg {
  display: block;
  width: 64px;
  height: 40px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rp-note--glaze {
  right: -2%;
  top: 46%;
  rotate: 6deg;
  translate: 88% 0;
}
.rp-note--glaze svg {
  margin-top: 4px;
  scale: -1 1;
}
/* It hangs off the photo's right edge, so it only fits on wide screens */
@media (max-width: 1399px) {
  .rp-note--glaze {
    display: none;
  }
}

/* ---------- Ticker ---------- */
.rp-ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-bottom: var(--stroke) solid var(--ink);
}
.rp-ticker__track {
  display: flex;
  width: max-content;
  gap: 22px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rp-ticker i {
  font-style: normal;
  color: var(--logo-yellow);
}
.rp-ticker i:nth-of-type(3n + 2) {
  color: var(--dish);
}
.rp-ticker i:nth-of-type(3n) {
  color: var(--logo-green);
}

/* ---------- Watch ---------- */
.rp-watch {
  position: relative;
  background: var(--cream);
  border-bottom: var(--stroke) solid var(--ink);
  overflow: hidden;
}
.rp-watch__inner {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
@media (min-width: 900px) {
  .rp-watch__inner {
    grid-template-columns: auto 1fr;
  }
}
.rp-watch__copy {
  display: grid;
  gap: 16px;
  align-content: center;
}
.rp-watch h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}
.rp-watch h2 .script {
  display: inline-block;
  color: var(--potato-red);
  rotate: -4deg;
  font-size: 1.15em;
}
.rp-watch__beats {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: beat;
}
@media (min-width: 560px) {
  .rp-watch__beats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rp-watch__beats li {
  counter-increment: beat;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
@media (min-width: 560px) {
  .rp-watch__beats li {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
.rp-watch__beats img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
}
.rp-watch__beats span {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.rp-watch__beats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.rp-watch__beats b::before {
  content: counter(beat) ". ";
  color: var(--dish-deep);
}

/* Video: a phone for tall video, a TV-ish card for wide */
.rp-video {
  margin: 0;
  justify-self: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.rp-video__frame {
  position: relative;
  width: min(78vw, 340px);
  aspect-ratio: 9 / 16;
  padding: 12px;
  background: var(--ink);
  border-radius: 44px;
  box-shadow: 10px 10px 0 var(--dish), 10px 10px 0 3px var(--ink);
  rotate: -3deg;
  transition: rotate 0.5s var(--ease-spring);
}
.rp-video:hover .rp-video__frame,
.rp-video.is-playing .rp-video__frame {
  rotate: 0deg;
}
.rp-video__frame::before {
  /* the notch */
  content: "";
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: 84px;
  height: 22px;
  translate: -50% 0;
  background: var(--ink);
  border-radius: 999px;
}
.rp-video[data-video-shape="wide"] .rp-video__frame {
  width: min(90vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 24px;
}
.rp-video[data-video-shape="wide"] .rp-video__frame::before {
  display: none;
}
.rp-video__poster,
.rp-video iframe,
.rp-video__blank {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #111;
}
.rp-video[data-video-shape="wide"] .rp-video__poster,
.rp-video[data-video-shape="wide"] iframe,
.rp-video[data-video-shape="wide"] .rp-video__blank {
  border-radius: 14px;
}
button.rp-video__poster {
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.rp-video__blank {
  background: #000;
}
.rp-video__blank:focus {
  outline: none;
}
.rp-video__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease-out), filter 0.3s;
  filter: saturate(1.05);
}
.rp-video__poster:hover img {
  scale: 1.05;
}
.rp-video__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55));
}
.rp-video__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  translate: -50% -50%;
  background: var(--logo-yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: scale 0.3s var(--ease-spring);
}
.rp-video__play svg {
  width: 40px;
  height: 40px;
  margin-left: 5px;
  fill: var(--ink);
}
.rp-video__poster:hover .rp-video__play {
  scale: 1.12;
}
.rp-video__label {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  font: 700 1.05rem var(--font-display);
  color: var(--white);
}
/* ---------- Recipe section ---------- */
.rp-recipe {
  padding-block: clamp(56px, 8vw, 104px);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(35, 31, 32, 0.09) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}
.rp-recipe__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 24px;
  margin-bottom: 28px;
}
.rp-recipe__head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}
.rp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Planner */
.rp-plan {
  display: grid;
  gap: 14px 24px;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: 18px clamp(16px, 3vw, 28px) 20px;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) {
  .rp-plan {
    grid-template-columns: auto 1fr;
  }
}
.rp-plan__ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.rp-plan__ask input {
  min-height: 48px;
  padding: 6px 12px;
  font: 700 1.15rem var(--font-display);
  color: var(--ink);
  background: var(--cream);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-md);
}
/* "on" stays with its date box when the row wraps */
.rp-plan__on {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rp-plan__ask input:focus-visible {
  outline: 3px solid var(--dish-deep);
  outline-offset: 2px;
}
.rp-plan__answer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.2;
}
.rp-plan__answer mark {
  padding: 0 6px;
  background: var(--logo-yellow);
  border-radius: 6px;
  color: inherit;
}
.rp-plan__answer small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.rp-plan__line {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.rp-plan__line li {
  flex: var(--m) 1 0;
  min-width: 78px;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px 12px;
  background: var(--c);
  border: 2px solid var(--ink);
  font-size: 0.85rem;
  line-height: 1.25;
}
.rp-plan__line li:first-child {
  border-radius: 12px 4px 4px 12px;
}
.rp-plan__line li:last-child {
  border-radius: 4px 12px 12px 4px;
}
.rp-plan__line b {
  font-family: var(--font-display);
  font-size: 1rem;
}
.rp-plan__line time,
.rp-plan__end time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rp-plan__line time:empty,
.rp-plan__end time:empty {
  display: none;
}
/* "Add to calendar" on the left, "Eat 6:30 PM" on the right */
.rp-plan__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.rp-plan__end {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
}
.rp-plan__end::before {
  content: "🍽";
}
@media (max-width: 560px) {
  .rp-plan__line span {
    display: none;
  }
}

/* Layout: ingredients | method */
.rp-recipe__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 960px) {
  .rp-recipe__grid {
    grid-template-columns: minmax(300px, 0.8fr) 1.2fr;
  }
}
@media (min-width: 960px) and (min-height: 820px) {
  .rp-ing {
    position: sticky;
    top: 100px;
  }
}

/* ---------- Ingredients ---------- */
.rp-ing .rp-card {
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
}
.rp-ing__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 16px;
}
.rp-ing__head h3 {
  font-size: 1.75rem;
}
.rp-ing__count {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.rp-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
.rp-serves {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.rp-controls__label {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rp-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
}
.rp-stepper button {
  width: 44px;
  height: 44px;
  font: 700 1.4rem/1 var(--font-display);
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.rp-stepper button:hover {
  background: var(--logo-yellow);
}
.rp-stepper button:disabled {
  opacity: 0.3;
  cursor: default;
  background: none;
}
.rp-stepper output {
  min-width: 2ch;
  text-align: center;
  font: 700 1.35rem var(--font-display);
  font-variant-numeric: tabular-nums;
}
.rp-plates {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 120px;
}
.rp-plates i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 2.5px var(--white), inset 0 0 0 8px var(--potato-gold);
  animation: plate-pop 0.35s var(--ease-spring) both;
}
@keyframes plate-pop {
  from { scale: 0; }
  to { scale: 1; }
}
.rp-units {
  display: inline-flex;
  padding: 3px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
}
.rp-units button {
  min-height: 38px;
  padding: 4px 14px;
  font: 600 0.95rem var(--font-display);
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.rp-units button[aria-checked="true"] {
  color: var(--white);
  background: var(--ink);
}

.rp-ing__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-ing__list li + li {
  border-top: 1.5px dashed var(--line);
}
.rp-ing__list label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 4px;
  cursor: pointer;
}
.rp-ing__list input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rp-check {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: -1px;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: 9px;
  transition: background-color 0.2s, rotate 0.3s var(--ease-spring);
}
.rp-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 14px;
  border: solid var(--ink);
  border-width: 0 3.5px 3.5px 0;
  rotate: 45deg;
  scale: 0;
  transition: scale 0.25s var(--ease-spring);
}
.rp-ing__list input:checked + .rp-check {
  background: var(--logo-green);
  rotate: -8deg;
}
.rp-ing__list input:checked + .rp-check::after {
  scale: 1;
}
.rp-ing__list input:focus-visible + .rp-check {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--logo-yellow);
}
.rp-ing__text {
  position: relative;
  line-height: 1.45;
}
.rp-ing__text b {
  display: inline-block;
  padding: 0 6px;
  margin-right: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  background: color-mix(in srgb, var(--dish) 30%, white);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.rp-ing__text b.is-bump {
  animation: bump 0.4s var(--ease-spring);
}
@keyframes bump {
  40% { scale: 1.18; background: var(--logo-yellow); }
}
.rp-ing__text::after {
  /* strike-through that draws across */
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 0.75em;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.rp-ing__list input:checked ~ .rp-ing__text {
  color: var(--ink-soft);
}
.rp-ing__list input:checked ~ .rp-ing__text::after {
  transform: scaleX(1);
}
.rp-ing__hint {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dish-deep);
  white-space: nowrap;
}
.rp-ing__done {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.1;
  background: var(--logo-green);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
.rp.is-prepped .rp-ing__done {
  display: block;
  animation: stamp 0.5s var(--ease-spring) both;
}

/* ---------- Method ---------- */
.rp-method {
  display: grid;
  gap: 24px;
}
.rp-progress {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 20px 14px 10px;
  background: var(--dish);
  overflow: hidden;
}
@media (max-width: 420px) {
  .rp-progress {
    grid-template-columns: 110px 1fr;
  }
}
.rp-progress__copy {
  display: grid;
  gap: 6px;
}
.rp-progress__stage {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.1;
}
.rp-progress__bar {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}
.rp-progress__bar span {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background-color 0.3s;
}
.rp-progress__bar span.is-on {
  background: var(--logo-yellow);
}
.rp-stamp {
  position: absolute;
  right: 14px;
  top: 10px;
  padding: 2px 12px 4px;
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--potato-red);
  border: 3px solid var(--potato-red);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  rotate: 10deg;
  opacity: 0;
  scale: 2;
  pointer-events: none;
}
.rp.is-finished .rp-stamp {
  opacity: 1;
  scale: 1;
  transition: opacity 0.2s, scale 0.45s var(--ease-spring);
}
@keyframes stamp {
  from { opacity: 0; scale: 1.6; rotate: -6deg; }
  to { opacity: 1; scale: 1; }
}

.rp-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 2.4vw, 22px);
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s, translate 0.3s var(--ease-out);
  scroll-margin-top: 100px;
}
.rp-step.is-current {
  box-shadow: 8px 8px 0 var(--dish), 8px 8px 0 3px var(--ink);
  translate: -3px -3px;
}
.rp-step.is-done {
  background: #f6fbe9;
}
.rp-step__num {
  display: grid;
  place-items: center;
  width: clamp(48px, 7vw, 64px);
  aspect-ratio: 1;
  font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem) / 1 var(--font-display);
  background: var(--logo-yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  transition: background-color 0.3s, rotate 0.4s var(--ease-spring);
}
.rp-step.is-done .rp-step__num {
  background: var(--logo-green);
  rotate: -12deg;
}
.rp-step__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.rp-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  line-height: 1.1;
  margin: 0;
  padding-top: 0.25em;
}
.rp-step p {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.175rem);
  line-height: 1.65;
}
.rp-step__aside a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dish-deep);
}
[data-temp-f],
[data-len-in] {
  font-weight: 700;
  white-space: nowrap;
}
.rp-ref__amt {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1.5;
  background: color-mix(in srgb, var(--dish) 30%, white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: 0.08em;
}
/* Two or more photos for one step sit side by side, and wrap on a phone */
.rp-step__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.rp-step__photo {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rp-step__photo a {
  flex-shrink: 0;
  display: block;
  width: 108px;
  border: var(--stroke) solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  rotate: -2deg;
  box-shadow: var(--shadow-sm);
  transition: rotate 0.3s var(--ease-spring), scale 0.3s var(--ease-spring);
  cursor: zoom-in;
}
.rp-step__photo a:hover {
  rotate: 1deg;
  scale: 1.05;
}
.rp-step__photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.rp-step__photo figcaption {
  font-family: var(--font-script);
  font-size: 1.3rem;
  line-height: 1.15;
}

.rp-step__done {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 18px 8px 10px;
  font: 600 1rem var(--font-display);
  color: var(--ink);
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.rp-step__done:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}
.rp-step__tick {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}
.rp-step__tick::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 7px;
  height: 13px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  rotate: 45deg;
  scale: 0;
  transition: scale 0.25s var(--ease-spring);
}
.rp-step__done [data-label-on] {
  display: none;
}
.rp-step__done[aria-pressed="true"] {
  background: var(--logo-green);
}
.rp-step__done[aria-pressed="true"] .rp-step__tick::after {
  scale: 1;
}
.rp-step__done[aria-pressed="true"] [data-label-on] {
  display: inline;
}
.rp-step__done[aria-pressed="true"] [data-label-off] {
  display: none;
}

/* ---------- Timers ---------- */
.rp-timers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.rp-timer {
  --p: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background-color 0.3s;
}
.rp-timer:not(.is-ready) {
  display: none;
}
.rp-timer__ring {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
}
.rp-timer__ring svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
}
.rp-timer__ring circle {
  fill: var(--white);
  stroke: rgba(35, 31, 32, 0.12);
  stroke-width: 6;
}
.rp-timer__ring circle + circle {
  fill: none;
  stroke: var(--dish-deep);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p) * 100);
  transition: stroke-dashoffset 0.25s linear;
}
.rp-timer__time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 0.8rem var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.rp-timer__meta {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}
.rp-timer__meta b {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.rp-timer__meta small {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.rp-timer__btns {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.rp-timer button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font: 700 0.95rem var(--font-display);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.rp-timer button:hover {
  background: var(--logo-yellow);
}
.rp-timer [data-t-go] {
  background: var(--logo-green);
}
.rp-timer [data-t-reset] {
  padding: 0;
  width: 44px;
  font-size: 1.1rem;
}
.rp-timer.is-idle [data-t-reset] {
  display: none;
}
.rp-timer.is-idle .rp-timer__ring circle + circle {
  opacity: 0;
}
.rp-timer.is-running {
  background: color-mix(in srgb, var(--dish) 28%, white);
}
.rp-timer.is-running .rp-timer__ring circle + circle {
  stroke: var(--ink);
}
.rp-timer.is-done {
  background: var(--logo-yellow);
  animation: ring 0.6s ease-in-out 3;
}
.rp-timer.is-done .rp-timer__ring circle + circle {
  stroke: var(--potato-red);
}
@keyframes ring {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -3deg; }
  40% { rotate: 3deg; }
  60% { rotate: -2deg; }
  80% { rotate: 2deg; }
}

/* ---------- Progress potato (SVG built by recipe.js) ---------- */
.pm {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.pm-plate {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 3;
}
.pm-body {
  fill: #f2dca6;
  stroke: var(--ink);
  stroke-width: 3.5;
  transition: fill 0.8s var(--ease-out);
}
.pm-shade {
  fill: #d9b872;
  transition: fill 0.8s var(--ease-out);
}
.pm-spot {
  fill: #b9935a;
  transition: opacity 0.5s;
}
.pm-slices path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 0.5s var(--ease-out);
  transition-delay: calc(var(--i) * 30ms);
}
.pm-shine,
.pm-steam,
.pm-cheese,
.pm-garnish > * {
  opacity: 0;
  transition: opacity 0.4s;
}
.pm-shine {
  fill: #fff6d8;
}
.pm-steam path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.55;
}
.pm-cheese circle {
  fill: #fffbe9;
  stroke: var(--ink);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  scale: 0;
  transition: scale 0.35s var(--ease-spring);
  transition-delay: calc(var(--i) * 25ms);
}
.pm-drizzle {
  fill: none;
  stroke: var(--balsamic);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.1s var(--ease-out), opacity 0.2s !important;
}
.pm-nut {
  fill: #f3dcab;
  stroke: #9f7338;
  stroke-width: 1.2;
}
.pm-pros {
  fill: #d8473c;
  stroke: #8f2019;
  stroke-width: 1;
}

.rp.pm-sliced .pm-slices path {
  stroke-dashoffset: 0;
}
.rp.pm-sliced .pm-spot {
  opacity: 0.5;
}
.rp.pm-roasted .pm-body {
  fill: #eba846;
}
.rp.pm-roasted .pm-shade {
  fill: #c9782a;
}
.rp.pm-brushed .pm-shine,
.rp.pm-roasted .pm-steam {
  opacity: 1;
}
.rp.pm-cheesy .pm-cheese {
  opacity: 1;
}
.rp.pm-cheesy .pm-cheese circle {
  scale: 1;
}
.rp.pm-dressed .pm-garnish > * {
  opacity: 1;
}
.rp.pm-dressed .pm-drizzle {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pm-steam path {
    animation: steam 2.4s ease-in-out infinite;
  }
  .pm-steam path:nth-child(2) { animation-delay: 0.6s; }
  .pm-steam path:nth-child(3) { animation-delay: 1.2s; }
  .rp.is-finished .rp-progress__art .pm {
    animation: hop 0.8s var(--ease-spring) 2;
  }
}
@keyframes steam {
  0% { translate: 0 6px; opacity: 0; }
  40% { opacity: 0.6; }
  100% { translate: 0 -10px; opacity: 0; }
}
@keyframes hop {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -12px; rotate: -3deg; }
}

/* ---------- Tip + games ---------- */
/* These need JavaScript; without it, hide them (and the link to the game). */
html:not(.js) .rp-slicer,
html:not(.js) .rp-step__aside,
html:not(.js) .rp-plan,
html:not(.js) .rp-progress {
  display: none;
}
.rp-extras {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--dish);
  border-block: var(--stroke) solid var(--ink);
}
.rp-extras__grid {
  display: grid;
  justify-items: center;
}
.rp-tip {
  position: relative;
  width: min(100%, 720px);
  display: grid;
  gap: 12px;
  padding: 40px clamp(22px, 3vw, 32px) 28px;
  background: var(--logo-yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: 6px 6px 6px 36px;
  box-shadow: var(--shadow);
  rotate: -1.5deg;
  scroll-margin-top: 110px;
}
.rp-tip__tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 120px;
  height: 32px;
  translate: -50% 0;
  rotate: 3deg;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(35, 31, 32, 0.25);
}
.rp-tip__char {
  position: absolute;
  right: 18px;
  top: -52px;
  width: 64px;
  rotate: 8deg;
  transform-origin: 50% 100%;
}
.rp-tip__kicker {
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--potato-red);
}
.rp-tip h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}
.rp-tip .rp-timer {
  background: var(--white);
}

/* Games: the box every recipe game sits in. Each game's own styles are in
   games/<name>.css, loaded only by its page; what the games share is here. */
.rp-slicer {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: clamp(14px, 2.4vw, 20px);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  scroll-margin-top: 110px;
}
@media (max-width: 600px) {
  /* On phones, use the step's full width instead of sitting in its indent */
  .rp-step .rp-slicer {
    margin-left: calc(-1 * (clamp(48px, 7vw, 64px) + clamp(12px, 2.4vw, 22px)));
    padding: 12px;
  }
}
/* Cabinet mode: the game on its own, played in a frame in the Game Room
   (?cabinet on the page's address; "Cabinet mode" in recipe.js moves the
   game box into .rp-cabinet). Everything else on the page is hidden. */
.is-cabinet body {
  background: #1d1622;
}
.is-cabinet body > :not(.rp-cabinet, .rp-confetti) {
  display: none;
}
.rp-cabinet {
  display: grid;
  align-content: center;
  min-height: 100vh;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 16px);
}
.rp-cabinet .rp-slicer {
  margin: 0;
}
/* The Game Room shows the game's name on the machine */
.rp-cabinet .rp-slicer > .eyebrow,
.rp-cabinet .rp-slicer > h5 {
  display: none;
}
.rp-slicer h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.1;
}
.rp-step .rp-slicer__intro {
  font-size: 1rem;
  line-height: 1.55;
}
.rp-slicer__intro {
  color: var(--ink-soft);
}
.rp-slicer__stage {
  /* The tiled wall and counter that wallSVG() in recipe.js draws, in the
     recipe's own colour */
  --wall: color-mix(in srgb, var(--dish) 14%, #fffaf0);
  --grout: color-mix(in srgb, var(--dish) 30%, #fffaf0);
  --counter: #f6eedd;
  --counter-line: #e3d5b4;
  margin-top: 6px;
  background: var(--wall);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  touch-action: manipulation;
}
.rp-slicer__stage:empty {
  display: none;
}
.rp-slicer__stage svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.rp-slicer__msg {
  min-height: 1.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.rp-slicer__msg.is-win {
  color: var(--good);
}
.rp-slicer__msg.is-oops {
  color: #b3261e;
}
.rp-slicer__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
/* The cutting board and the hint text (all three games) */
.sl-board {
  fill: #e6bf86;
  stroke: var(--ink);
  stroke-width: 3;
}
.sl-grain {
  fill: none;
  stroke: #c89a5c;
  stroke-width: 2;
  stroke-linecap: round;
}
.sl-hint {
  font: 700 17px var(--font-display);
  fill: var(--ink-soft);
}
/* The kitchen behind each game: a tiled wall and the edge of the counter */
.gm-wall {
  fill: var(--wall);
}
.gm-tiles {
  fill: url(#gm-tile);
}
.gm-grout {
  fill: none;
  stroke: var(--grout);
  stroke-width: 2;
}
.gm-counter {
  fill: var(--counter);
}
.gm-counter__shade {
  fill: none;
  stroke: var(--counter-line);
  stroke-width: 7;
}
.gm-counter__edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}
.gm-wall,
.gm-tiles,
.gm-counter,
.gm-counter__shade,
.gm-counter__edge {
  pointer-events: none;
}
/* The result stamp that thumps down when a round ends */
.gm-stamp {
  display: none;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
}
.gm-stamp.is-on {
  display: inline;
}
.gm-stamp__box {
  fill: #97d700;
  stroke: var(--ink);
  stroke-width: 4;
}
.gm-stamp.is-fail .gm-stamp__box {
  fill: #ff4438;
}
.gm-stamp.is-meh .gm-stamp__box {
  fill: var(--potato-gold);
}
.gm-stamp__text {
  font: 700 30px var(--font-display);
  fill: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .gm-stamp.is-thump {
    animation: gm-stamp 0.4s var(--ease-spring);
  }
}
@keyframes gm-stamp {
  from { scale: 1.7; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

/* The spectator: the Spud & Root potato, watching nervously */
.sp [data-m] {
  display: none;
}
.sp[data-mood="uneasy"] [data-m~="uneasy"],
.sp[data-mood="flinch"] [data-m~="flinch"],
.sp[data-mood="shock"] [data-m~="shock"],
.sp[data-mood="cover"] [data-m~="cover"],
.sp[data-mood="relief"] [data-m~="relief"],
.sp[data-mood="peek"] [data-m~="peek"],
.sp[data-mood="gulp"] [data-m~="gulp"],
.sp[data-mood="chill"] [data-m~="chill"],
.sp[data-mood="cross"] [data-m~="cross"],
.sp[data-mood="proper"] [data-m~="proper"],
.sp[data-mood="proud"] [data-m~="proud"],
.sp[data-mood="judge"] [data-m~="judge"],
.sp[data-mood="grin"] [data-m~="grin"],
.sp[data-mood="stern"] [data-m~="stern"],
.sp[data-mood="serene"] [data-m~="serene"],
.sp[data-mood="wink"] [data-m~="wink"],
.sp[data-mood="showman"] [data-m~="showman"],
.sp[data-mood="fluster"] [data-m~="fluster"],
.sp[data-mood="pivot"] [data-m~="pivot"],
.sp[data-mood="shame"] [data-m~="shame"],
.sp[data-mood="call"] [data-m~="call"],
.sp[data-mood="tap"] [data-m~="tap"],
.sp[data-mood="fume"] [data-m~="fume"] {
  display: inline;
}
/* The waiter (potato bites game) and the critic (mashing game): nose in the air */
.sp[data-mood="proper"] .sp-shake {
  rotate: 4deg;
}
.sp-shake {
  transition: rotate 0.3s var(--ease-out), scale 0.5s var(--ease-out);
}
.sp-shake {
  transform-box: view-box;
  transform-origin: 500px 246px;
}
/* "I can't watch": he turns his back on the board */
.sp-turn {
  transform-box: view-box;
  transform-origin: 500px 246px;
  transition: scale 0.25s var(--ease-out);
}
.sp[data-mood="cover"] .sp-turn {
  scale: -1 1;
}
/* The traffic cop's mustache (roasting game) twitches with his mood */
.sp-stache {
  transform-box: fill-box;
  transform-origin: 50% 0;
  transition: translate 0.2s var(--ease-out), scale 0.2s var(--ease-out);
}
.sp[data-mood="shock"] .sp-stache {
  translate: 0 -5px;
  scale: 1.04 0.88;
}
.sp[data-mood="proud"] .sp-stache {
  translate: 0 -3px;
  scale: 1.07 1;
}
.sp[data-mood="cross"] .sp-stache,
.sp[data-mood="stern"] .sp-stache {
  scale: 1 1.14;
}
.sp[data-mood="wink"] .sp-stache {
  rotate: -6deg;
  scale: 1.04 1;
}
/* The magician (frying game): a trick that flops. He leans away from the pan
   to point off stage, "look over there!" */
.sp[data-mood="pivot"] .sp-shake {
  rotate: 5deg;
  translate: 3px 0;
}
/* ...and at the end of a pan that failed, he's humiliated: he shrinks, pulls
   his hat down and hides behind his cape */
.sp[data-mood="shame"] .sp-shake {
  scale: 0.95 0.9;
}
.sp-hat {
  transition: translate 0.4s var(--ease-out);
}
.sp[data-mood="shame"] .sp-hat {
  translate: 0 20px;
}
.sp-bubble__box,
.sp-bubble__tail {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.sp-bubble__tail-cover {
  stroke: var(--white);
  stroke-width: 4;
}
.sp-bubble text {
  font: 600 16px var(--font-display);
  fill: var(--ink);
}
.sp-bubble {
  transform-box: view-box;
  transform-origin: 500px 34px;
  transition: opacity 0.25s;
}
.sp-bubble.is-hidden {
  opacity: 0;
}
@media (max-width: 600px) {
  .sp-bubble text {
    font-size: 20px;
  }
  .sl-hint {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sp[data-mood="uneasy"] .sp-shake {
    animation: tremble 0.3s steps(2) infinite;
  }
  .sp[data-mood="shock"] .sp-shake {
    animation: tremble 0.12s steps(2) infinite;
  }
  .sp[data-mood="flinch"] .sp-shake {
    animation: flinch 0.36s var(--ease-out);
  }
  .sp[data-mood="peek"] .sp-shake {
    animation: lean-away 0.75s var(--ease-out);
  }
  .sp[data-mood="gulp"] .sp-shake {
    animation: shrink 0.65s var(--ease-out);
  }
  .sp[data-mood="cover"] .sp-shake {
    animation: cower 0.5s var(--ease-spring) both;
  }
  .sp-sweat {
    animation: sweat 1.8s ease-in infinite;
  }
  .sp-bubble.is-new {
    animation: bubble-pop 0.35s var(--ease-spring);
  }
  .sp[data-mood="chill"] .sp-shake {
    animation: bask 2.6s ease-in-out infinite;
  }
  .sp[data-mood="cross"] .sp-shake {
    animation: huff 0.4s var(--ease-out);
  }
  .sp[data-mood="proud"] .sp-shake,
  .sp[data-mood="wink"] .sp-shake {
    animation: preen 0.6s var(--ease-spring);
  }
  .sp[data-mood="grin"] .sp-shake {
    animation: bob 1.6s ease-in-out infinite;
  }
  .sp[data-mood="serene"] .sp-shake {
    animation: breathe 4s ease-in-out infinite;
  }
  .sp[data-mood="judge"] .sp-shake {
    animation: ponder 2.8s ease-in-out infinite;
  }
  .sp-chin {
    animation: chin 1.3s ease-in-out infinite;
  }
  .sp[data-mood="showman"] .sp-shake {
    animation: bob 2.2s ease-in-out infinite;
  }
  .sp[data-mood="fluster"] .sp-shake {
    animation: tremble 0.2s steps(2) infinite;
  }
  .sp[data-mood="shame"] .sp-shake {
    animation: slump 0.7s var(--ease-out);
  }
  .sp-dart {
    animation: dart 1.1s steps(1) infinite;
  }
  .sp-tug {
    animation: tug 0.5s ease-in-out infinite;
  }
  .sp[data-mood="proud"] .sp-sparkle {
    transform-box: fill-box;
    transform-origin: center;
    animation: twinkle 0.6s var(--ease-spring);
  }
  /* The commentator (baking game), calling the action */
  .sp[data-mood="call"] .sp-shake {
    animation: call 0.9s ease-in-out infinite;
  }
  /* The manager (ordering game): tapping his watch, and writing it all down */
  .sp[data-mood="tap"] .sp-shake {
    animation: huff 0.5s var(--ease-out);
  }
  .sp-tap {
    animation: tap 0.42s ease-in-out infinite;
  }
  .sp-scribble {
    animation: scribble 0.5s ease-in-out infinite;
  }
  /* ...and fuming: shaking with rage, a fist going, steam off his head */
  .sp[data-mood="fume"] .sp-shake {
    animation: tremble 0.09s steps(2) infinite;
  }
  .sp-fist {
    animation: fist 0.3s ease-in-out infinite;
  }
  .sp-steam path {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: fume 0.9s ease-out infinite;
  }
  .sp-steam path:nth-child(2) {
    animation-delay: 0.45s;
  }
}
@keyframes fist {
  50% { translate: 0 -10px; rotate: -4deg; }
}
@keyframes fume {
  from { scale: 0.7; translate: 0 6px; opacity: 1; }
  to { scale: 1.15; translate: 0 -14px; opacity: 0.55; }
}
@keyframes tap {
  50% { translate: -6px 6px; }
}
@keyframes scribble {
  0%, 100% { translate: 0 0; }
  25% { translate: -6px 3px; }
  75% { translate: 6px -3px; }
}
@keyframes slump {
  from { scale: 1; }
  60% { scale: 0.94 0.88; }
}
@keyframes dart {
  0%, 100% { translate: 0 0; }
  30% { translate: -7px 0; }
  60% { translate: 7px 0; }
}
@keyframes tug {
  50% { translate: 4px 4px; }
}
@keyframes twinkle {
  from { scale: 0; rotate: -90deg; }
  to { scale: 1; rotate: 0deg; }
}
@keyframes call {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -4px; rotate: -2deg; }
}
@keyframes ponder {
  0%, 100% { rotate: -1.5deg; }
  50% { rotate: 2.5deg; }
}
@keyframes chin {
  0%, 100% { translate: 0 0; }
  50% { translate: -8px 5px; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@keyframes breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.015 1.03; }
}
@keyframes preen {
  40% { scale: 1.05; translate: 0 -8px; }
}
@keyframes bask {
  0%, 100% { rotate: 0deg; }
  50% { rotate: -3deg; }
}
@keyframes huff {
  30% { scale: 1.06 0.94; }
}
@keyframes tremble {
  0% { translate: -0.7px 0; }
  100% { translate: 0.7px 0; }
}
@keyframes flinch {
  30% { scale: 1.05 0.92; translate: 3px 0; }
}
@keyframes lean-away {
  25%, 70% { rotate: 7deg; }
}
@keyframes shrink {
  20% { scale: 1.03 0.86; }
  45%, 75% { scale: 0.98 0.9; }
}
@keyframes cower {
  from { scale: 1; }
  to { scale: 0.96 0.93; }
}
@keyframes sweat {
  0%, 20% { translate: 0 0; opacity: 1; }
  90% { translate: 0 22px; opacity: 0; }
  100% { translate: 0 0; opacity: 0; }
}
@keyframes bubble-pop {
  from { scale: 0.6; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

/* The heat bar and clock, from the browning game (skillet), which the
   topping game (potato bites) also uses for its warmth bar */
.pn-hud__clock {
  font: 700 24px var(--font-display);
  fill: var(--ink);
}
.pn-hud__label {
  font: 700 11px var(--font-body);
  letter-spacing: 0.08em;
  fill: var(--ink-soft);
}
.pn-hud__track {
  fill: var(--cream);
  stroke: var(--ink);
  stroke-width: 2;
}
.pn-hud__heat {
  stroke: var(--ink);
  stroke-width: 2;
  transition: width 0.2s, fill 0.3s;
}
@media (max-width: 600px) {
  .pn-hud__clock {
    font-size: 30px;
  }
  .pn-hud__label {
    font-size: 14px;
  }
}
/* Cubes and bites dropping onto the stage (browning and topping games) */
@keyframes pn-drop {
  from { translate: 0 -180px; opacity: 0; }
  50% { opacity: 1; }
}
/* Press and hold (the topping game's spoon and drizzle buttons), and no
   long-press callout on any game stage */
.rp-slicer__stage svg,
.rp-hold {
  -webkit-touch-callout: none;
}
.rp-hold {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
/* Progress skillet (body data-art="skillet"). Layers show as steps with
   these data-pm names are done: chopped, oiled, browned, seasoned, aside,
   chorizo, peppers, together, topped. */
.pk-handle {
  fill: #231f20;
  stroke: var(--ink);
  stroke-width: 2;
}
.pk-pan {
  fill: #2c2a2b;
  stroke: var(--ink);
  stroke-width: 3.5;
}
.pk-floor {
  fill: #3b3839;
}
.pk-plate {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2.5;
}
.pk-cube__top,
.pk-cube__side {
  stroke: var(--ink);
  stroke-width: 1.5;
  transition: fill 0.8s var(--ease-out);
}
.pk-cube__top {
  fill: #f6e7b4;
}
.pk-cube__side {
  fill: #d9c48a;
}
.rp.pm-browned .pk-cube__top {
  fill: #e7a842;
}
.rp.pm-browned .pk-cube__side {
  fill: #b8661f;
}
.pk-spice {
  fill: #c0392b;
}
.pk-oil,
.pk-in,
.pk-side,
.pk-spice,
.pk-chorizo,
.pk-peppers,
.pk-top {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-oiled .pk-oil {
  opacity: 0.2;
}
.pk-oil {
  fill: #f3d77e;
}
.rp.pm-browned:not(.pm-aside) .pk-in,
.rp.pm-together .pk-in,
.rp.pm-chopped:not(.pm-browned) .pk-side,
.rp.pm-aside:not(.pm-together) .pk-side,
.rp.pm-seasoned .pk-spice,
.rp.pm-chorizo .pk-chorizo,
.rp.pm-peppers .pk-peppers,
.rp.pm-topped .pk-top,
.rp.pm-browned .pk-steam {
  opacity: 1;
}
.pk-chorizo path {
  fill: #8e3b1f;
  stroke: #4a1c0c;
  stroke-width: 1;
}
.pk-peppers rect {
  fill: #e2331f;
  stroke: var(--ink);
  stroke-width: 1;
}
.pk-queso {
  fill: #fffdf3;
  stroke: #b9b19a;
  stroke-width: 0.8;
}
.pk-onion {
  fill: none;
  stroke: #d63f8c;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.pk-herb {
  fill: #3f8f2a;
}

/* Progress bites (body data-art="bites"). Layers show as steps with these
   data-pm names are done: sliced, oiled, baked, tapenade, topped, garnished. */
.pb-whole__skin {
  fill: #c2394a;
  stroke: var(--ink);
  stroke-width: 3.5;
}
.pb-whole__spot {
  fill: #7d1f2b;
}
.pb-skin {
  fill: #9c2634;
  stroke: var(--ink);
  stroke-width: 2.5;
}
.pb-flesh {
  fill: #f6ecd0;
  stroke: #c2394a;
  stroke-width: 3;
  transition: fill 0.8s var(--ease-out);
}
.pb-shine {
  fill: #fffbe9;
}
.pb-brie {
  fill: #fdf7e4;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.pb-heap {
  fill: #2e1219;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.pb-kalamata {
  fill: #5c1a2e;
  stroke: var(--ink);
  stroke-width: 0.8;
}
.pb .pb-green {
  fill: #9aa83a;
  stroke: var(--ink);
  stroke-width: 0.8;
}
.pb-garnish path {
  fill: #3f8f2a;
}
.pb-drip {
  fill: var(--balsamic);
}
.pb-bowl__body,
.pb-bowl__rim {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2.5;
}
.pb-bowl__tapenade {
  fill: #4b2231;
}
.pb-rounds,
.pb-shine,
.pb-top,
.pb-garnish,
.pb-bowl {
  opacity: 0;
  transition: opacity 0.4s;
}
.pb-whole {
  transition: opacity 0.4s;
}
.rp.pm-sliced .pb-whole {
  opacity: 0;
}
.rp.pm-sliced .pb-rounds,
.rp.pm-oiled .pb-shine,
.rp.pm-tapenade .pb-bowl,
.rp.pm-topped .pb-top,
.rp.pm-garnished .pb-garnish,
.rp.pm-baked .pb-steam {
  opacity: 1;
}
.rp.pm-oiled .pb-shine {
  opacity: 0.9;
}
.rp.pm-baked .pb-flesh {
  fill: #f0cf7e;
}
.pb-top {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  scale: 0.4;
  transition: opacity 0.3s, scale 0.4s var(--ease-spring);
  transition-delay: calc(var(--i) * 80ms);
}
.rp.pm-topped .pb-top {
  scale: 1;
}

/* Progress mash (body data-art="mash"). Layers show as steps with these
   data-pm names are done: boiled, miso, milk, mashed. */
.ph-shadow {
  fill: var(--ink);
  opacity: 0.16;
}
.ph-pot__body,
.ph-pot__rim {
  fill: #f6efdd;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linejoin: round;
}
.ph-pot__shade {
  fill: #e3d6b8;
}
.ph-pot__handle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 9;
  stroke-linecap: round;
}
.ph-pot__handle--in {
  stroke: #f6efdd;
  stroke-width: 3;
}
.ph-pot__inside {
  fill: #e2d2b0;
  stroke: var(--ink);
  stroke-width: 2.5;
}
.ph-chunk__body {
  fill: #efe8cf;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
  transition: fill 0.8s var(--ease-out);
}
.ph-chunk__top {
  fill: #fbf6e2;
  transition: fill 0.8s var(--ease-out);
}
.rp.pm-boiled .ph-chunk__body {
  fill: #f0cf72;
}
.rp.pm-boiled .ph-chunk__top {
  fill: #f8e59a;
}
.ph-chunks {
  transition: opacity 0.3s;
}
.ph-steam,
.ph-bowl,
.ph-milk {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-boiled .ph-steam,
.rp.pm-miso .ph-bowl,
.rp.pm-milk .ph-milk {
  opacity: 1;
}
.ph-bowl__body,
.ph-bowl__rim {
  fill: #f7f3ea;
  stroke: var(--ink);
  stroke-width: 2.5;
}
.ph-bowl__butter {
  fill: #e2ad4e;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.ph-bowl__swirl {
  fill: none;
  stroke: #f2d78c;
  stroke-width: 2;
  stroke-linecap: round;
}
.ph-milk__body,
.ph-milk__rim {
  fill: #e8ecee;
  stroke: var(--ink);
  stroke-width: 2.5;
}
.ph-milk__handle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}
.ph-milk__milk {
  fill: var(--white);
  stroke: #cfd6d9;
  stroke-width: 1.2;
}
.ph-milk__steam path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
}
.ph-mash,
.ph-butter {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  scale: 0.6;
  transition: opacity 0.3s, scale 0.5s var(--ease-spring);
}
.ph-butter {
  scale: 0.3;
  transition-delay: 0.25s;
}
.rp.pm-mashed .ph-mash,
.rp.pm-mashed .ph-butter {
  opacity: 1;
  scale: 1;
}
.rp.pm-mashed .ph-chunks {
  opacity: 0;
}
.ph-mash__mound {
  fill: #fbf3cf;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.ph-mash__fork {
  fill: none;
  stroke: #d9ca8f;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.ph-butter__blob {
  fill: #e2ad4e;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.ph-butter__shine {
  fill: none;
  stroke: #f6dc98;
  stroke-width: 2;
  stroke-linecap: round;
}
.ph-butter__chives rect {
  fill: #3f8f2a;
}
@media (prefers-reduced-motion: no-preference) {
  .ph-milk__steam path {
    animation: steam 2.2s ease-in-out infinite;
  }
  .ph-milk__steam path:nth-child(2) {
    animation-delay: 0.9s;
  }
}

/* Progress gratin (body data-art="gratin"). Layers show as steps with these
   data-pm names are done: prepped, roux, milk, melted, sauced, layered,
   baked, garnished. */
.pg-shadow {
  fill: var(--ink);
  opacity: 0.16;
}
.pg-dish__ear,
.pg-dish__front,
.pg-dish__top {
  fill: #fffaf0;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pg-dish__shade {
  fill: #ece3d0;
}
.pg-dish__in {
  fill: #efe6d6;
  stroke: #8a5a35;
  stroke-width: 2;
  stroke-linejoin: round;
}
.pg-pan__body,
.pg-pan__rim {
  fill: #f6efdd;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pg-pan__shade {
  fill: #e3d6b8;
}
.pg-pan__ear {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}
.pg-pan__sauce {
  fill: #d9a441;
  stroke: var(--ink);
  stroke-width: 1.6;
  transition: fill 0.6s, opacity 0.6s;
}
.rp.pm-milk .pg-pan__sauce {
  fill: #fbf0d6;
}
.rp.pm-melted .pg-pan__sauce {
  fill: #fbe29a;
}
.rp.pm-sauced .pg-pan__sauce {
  fill: #fff1cf;
}
.pg-pan__bits circle {
  fill: #ff8a65;
  opacity: 0;
  transition: opacity 0.4s;
}
.pg-pan__bits circle:nth-child(2) {
  fill: #a9b86e;
}
.rp.pm-sauced .pg-pan__bits circle {
  opacity: 1;
}
/* The sauce has gone into the dish: only a smear left in the pan */
.rp.pm-layered .pg-pan__sauce {
  opacity: 0.3;
}
.rp.pm-layered .pg-pan__bits {
  opacity: 0;
}
.pg-pan,
.pg-butter,
.pg-sauce,
.pg-baked,
.pg-top,
.pg-steam {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-roux .pg-pan,
.rp.pm-prepped .pg-butter,
.rp.pm-layered .pg-sauce,
.rp.pm-baked .pg-baked,
.rp.pm-garnished .pg-top,
.rp.pm-baked .pg-steam {
  opacity: 1;
}
.pg-butter path {
  fill: none;
  stroke: #f2d97c;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.pg-sauce__fill {
  fill: #fff1cf;
}
.pg-sauce__edge path {
  fill: none;
  stroke: #e5392c;
  stroke-width: 2;
  stroke-linecap: round;
}
.pg-sauce__flecks rect {
  fill: #ff8a65;
}
.pg-baked__fill {
  fill: #e9b658;
  stroke: #b9782b;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.pg-baked__blisters circle {
  fill: #f7d78e;
  stroke: #b9782b;
  stroke-width: 1;
}
.pg-top__salmon {
  fill: none;
  stroke: #ff8a65;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pg-top__dill path {
  fill: none;
  stroke: #3f8f2a;
  stroke-width: 1.3;
  stroke-linecap: round;
}

/* Progress roast (body data-art="roast"). Layers show as steps with these
   data-pm names are done: heated, cubed, tossed, spaced, golden, whisked,
   glazed, topped. */
.pt-shadow {
  fill: var(--ink);
  opacity: 0.16;
}
.pt-sheet,
.pt-sheet__front {
  fill: #cfd5da;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pt-sheet__front {
  fill: #aeb6bc;
}
.pt-sheet__in {
  fill: #eef1f3;
  stroke: #8f9aa2;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.pt-top,
.pt-front {
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.6s;
}
.pt-top {
  fill: #f6e6a0;
}
.pt-front {
  fill: #ecd27c;
}
.pt-fleck {
  opacity: 0;
  transition: opacity 0.4s;
}
.pt-fleck circle {
  fill: #4f8a2b;
}
.pt-bowl__body,
.pt-bowl__rim {
  fill: #fffaf0;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pt-sbowl__sauce {
  fill: #d6401f;
  stroke: var(--ink);
  stroke-width: 1.6;
}
.pt-heat path,
.pt-steam path,
.pt-sauce path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-heat path {
  stroke: #ff8a3d;
  stroke-width: 2.6;
}
.pt-steam path {
  stroke: var(--ink);
  stroke-width: 2.5;
  opacity: 0.5;
}
.pt-sauce path {
  stroke: #d6401f;
  stroke-width: 3;
}
.pt-herbs path {
  fill: none;
  stroke: #3f8f2a;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.pt-cheese rect {
  fill: #fffbe9;
  stroke: #cdb98a;
  stroke-width: 0.5;
}
.pt-heat,
.pt-bowl,
.pt-cubes,
.pt-sbowl,
.pt-sauce,
.pt-topping,
.pt-steam {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-heated .pt-heat,
.rp.pm-cubed .pt-bowl,
.rp.pm-spaced .pt-cubes,
.rp.pm-whisked .pt-sbowl,
.rp.pm-glazed .pt-sauce,
.rp.pm-topped .pt-topping,
.rp.pm-golden .pt-steam,
.rp.pm-tossed .pt-fleck {
  opacity: 1;
}
/* The cubes go from the bowl to the sheet, and the sauce goes onto them */
.rp.pm-spaced .pt-bowl {
  opacity: 0;
}
.rp.pm-glazed .pt-sbowl {
  opacity: 0.35;
}
.rp.pm-golden .pt-cubes .pt-top {
  fill: #e4a73e;
}
.rp.pm-golden .pt-cubes .pt-front {
  fill: #c98a26;
}
.rp.pm-glazed .pt-cubes .pt-top {
  fill: #d9792a;
}
.rp.pm-glazed .pt-cubes .pt-front {
  fill: #b4561d;
}
@media (prefers-reduced-motion: no-preference) {
  .pt-heat path {
    animation: steam 2.2s ease-in-out infinite;
  }
  .pt-heat path:nth-child(2) { animation-delay: 0.5s; }
  .pt-heat path:nth-child(3) { animation-delay: 1s; }
  .pt-steam path {
    animation: steam 2.4s ease-in-out infinite;
  }
  .pt-steam path:nth-child(2) { animation-delay: 0.6s; }
  .pt-steam path:nth-child(3) { animation-delay: 1.2s; }
  .rp.is-finished .rp-progress__art .pt {
    animation: hop 0.8s var(--ease-spring) 2;
  }
}

/* Progress baked (body data-art="baked"). Layers show as steps with these
   data-pm names are done: heated, washed, pierced, oiled, racked, baked,
   mixed, slit, fluffed, soy, topped, garnished. */
.pa-shadow {
  fill: var(--ink);
  opacity: 0.16;
}
.pa-plate__rim,
.pa-plate__in {
  stroke: var(--ink);
  stroke-width: 3;
}
.pa-plate__rim {
  fill: #b4693a;
}
.pa-plate__in {
  fill: #cf8450;
  stroke-width: 1.6;
}
.pa-sheet {
  fill: #cfd5da;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pa-wire {
  fill: none;
  stroke: #8f9aa2;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.pa-body {
  fill: #c9a574;
  stroke: var(--ink);
  stroke-width: 3.5;
  transition: fill 0.8s var(--ease-out);
}
.pa-shade {
  fill: rgba(70, 40, 10, 0.2);
}
.pa-spots circle {
  fill: #8c6a3a;
}
.pa-holes circle {
  fill: #4a3015;
  stroke: var(--ink);
  stroke-width: 0.8;
}
.pa-shine {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}
.pa-salt circle {
  fill: #fffdf0;
}
.pa-slit {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
}
.pa-fluff {
  fill: #fffdf0;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linejoin: round;
}
.pa-fluff__in {
  stroke: #e9dca8;
  stroke-width: 2;
  stroke-linecap: round;
}
.pa-soy path,
.pa-mayo path,
.pa-nori path,
.pa-heat path,
.pa-steam path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pa-soy path {
  stroke: #3b1d12;
  stroke-width: 2.6;
}
.pa-mayo path {
  stroke: #f08a4b;
  stroke-width: 4.2;
}
.pa-kim0 {
  fill: #d6401f;
  stroke: #8a2310;
  stroke-width: 0.8;
}
.pa-kim1 {
  fill: #ee7a3b;
  stroke: #a13a14;
  stroke-width: 0.8;
}
.pa-sesame circle {
  fill: #f7efd2;
  stroke: #b79a62;
  stroke-width: 0.5;
}
.pa-nori path {
  stroke: #18291b;
  stroke-width: 3.2;
}
.pa-rings circle {
  fill: #d9f0b8;
  stroke: #4caf2a;
  stroke-width: 1.6;
}
.pa-curls path {
  fill: none;
  stroke: #c98b2e;
  stroke-width: 2;
  stroke-linecap: round;
}
.pa-heat path {
  stroke: #ff8a3d;
  stroke-width: 2.6;
}
.pa-steam path {
  stroke: var(--ink);
  stroke-width: 2.5;
  opacity: 0.5;
}
.pa-bowl__body,
.pa-bowl__rim {
  fill: #fffaf0;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pa-sbowl__sauce {
  fill: #f08a4b;
  stroke: var(--ink);
  stroke-width: 1.6;
}
.pa-heat,
.pa-potato,
.pa-holes,
.pa-oil,
.pa-rack,
.pa-steam,
.pa-sbowl,
.pa-slit,
.pa-mound,
.pa-soy,
.pa-mayo,
.pa-kimchi,
.pa-garnish {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-heated .pa-heat,
.rp.pm-washed .pa-potato,
.rp.pm-pierced .pa-holes,
.rp.pm-oiled .pa-oil,
.rp.pm-baked .pa-steam,
.rp.pm-mixed .pa-sbowl,
.rp.pm-slit .pa-slit,
.rp.pm-fluffed .pa-mound,
.rp.pm-soy .pa-soy,
.rp.pm-topped .pa-mayo,
.rp.pm-topped .pa-kimchi,
.rp.pm-garnished .pa-garnish {
  opacity: 1;
}
/* On the oven rack until it's slit and moves to the plate */
.rp.pm-racked:not(.pm-slit) .pa-rack {
  opacity: 1;
}
.rp.pm-racked:not(.pm-slit) .pa-plate {
  opacity: 0;
}
.rp.pm-baked .pa-body {
  fill: #96602c;
}
.rp.pm-slit .pa-slit {
  opacity: 1;
}
.rp.pm-fluffed .pa-slit {
  opacity: 0;
}
.rp.pm-topped .pa-sbowl {
  opacity: 0.35;
}
@media (prefers-reduced-motion: no-preference) {
  .pa-heat path {
    animation: steam 2.2s ease-in-out infinite;
  }
  .pa-heat path:nth-child(2) { animation-delay: 0.5s; }
  .pa-heat path:nth-child(3) { animation-delay: 1s; }
  .pa-steam path {
    animation: steam 2.4s ease-in-out infinite;
  }
  .pa-steam path:nth-child(2) { animation-delay: 0.6s; }
  .pa-steam path:nth-child(3) { animation-delay: 1.2s; }
  .rp.is-finished .rp-progress__art .pa {
    animation: hop 0.8s var(--ease-spring) 2;
  }
}

/* Progress medallions (body data-art="medallions"). Layers show as steps
   with these data-pm names are done: heated, rounds, fried, cut, tossed,
   topped, baked, melted, finished. */
.pl-shadow {
  fill: var(--ink);
  opacity: 0.16;
}
.pl-sheet,
.pl-sheet__front {
  fill: #cfd5da;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pl-sheet__front {
  fill: #aeb6bc;
}
.pl-paper {
  fill: #fbf7ee;
  stroke: #cfc6b4;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.pl-top,
.pl-edge,
.pl-logend {
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.6s;
}
.pl-top,
.pl-logend {
  fill: #f8d977;
}
.pl-edge {
  fill: #e6c35c;
}
.pl-slice {
  fill: #f6e3a1;
  stroke: var(--ink);
  stroke-width: 1.4;
  transition: fill 0.6s;
}
.pl-herb circle {
  fill: #3f6f2a;
}
.pl-bowl__body,
.pl-bowl__rim {
  fill: #fffaf0;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linejoin: round;
}
.pl-fontina path {
  fill: #fff6dc;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.pl-glaze {
  fill: none;
  stroke: #3b1a14;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-parsley {
  fill: none;
  stroke: #3f8f2a;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.pl-heat path,
.pl-steam path {
  fill: none;
  stroke-linecap: round;
}
.pl-heat path {
  stroke: #ff8a3d;
  stroke-width: 2.6;
}
.pl-steam path {
  stroke: var(--ink);
  stroke-width: 2.5;
  opacity: 0.5;
}
.pl-heat,
.pl-rounds,
.pl-bowl,
.pl-bowl .pl-herb,
.pl-stacks,
.pl-stacks .pl-herb,
.pl-fontina,
.pl-finish,
.pl-steam {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-heated .pl-heat,
.rp.pm-rounds .pl-rounds,
.rp.pm-cut .pl-bowl,
.rp.pm-tossed .pl-herb,
.rp.pm-topped .pl-stacks,
.rp.pm-baked .pl-steam,
.rp.pm-melted .pl-fontina,
.rp.pm-finished .pl-finish {
  opacity: 1;
}
/* The log becomes rounds; the slices leave the bowl for the rounds; the
   oven's heat waves give way to steam once they've baked */
.pl-log {
  transition: opacity 0.4s;
}
.rp.pm-rounds .pl-log,
.rp.pm-topped .pl-bowl,
.rp.pm-baked .pl-heat {
  opacity: 0;
}
.rp.pm-fried .pl-rounds .pl-top {
  fill: #eba63e;
}
.rp.pm-fried .pl-rounds .pl-edge {
  fill: #c7832a;
}
.rp.pm-baked .pl-stacks .pl-slice {
  fill: #e7b25a;
}
@media (prefers-reduced-motion: no-preference) {
  .pl-heat path {
    animation: steam 2.2s ease-in-out infinite;
  }
  .pl-heat path:nth-child(2) { animation-delay: 0.5s; }
  .pl-heat path:nth-child(3) { animation-delay: 1s; }
  .pl-steam path {
    animation: steam 2.4s ease-in-out infinite;
  }
  .pl-steam path:nth-child(2) { animation-delay: 0.6s; }
  .pl-steam path:nth-child(3) { animation-delay: 1.2s; }
  .rp.is-finished .rp-progress__art .pl {
    animation: hop 0.8s var(--ease-spring) 2;
  }
}

/* Progress curry (body data-art="curry"). Layers show as steps with these
   data-pm names are done: prepped, pot, smooth, layer, layered, parm,
   foiled, golden, garnished. The dish and pot are the gratin's shapes. */
.pc-shadow {
  fill: var(--ink);
  opacity: 0.16;
}
.pc-dish__ear,
.pc-dish__front,
.pc-dish__top {
  fill: #fffaf0;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pc-dish__shade {
  fill: #ece3d0;
}
.pc-dish__in {
  fill: #efe6d6;
  stroke: #8a5a35;
  stroke-width: 2;
  stroke-linejoin: round;
}
.pc-pan__body,
.pc-pan__rim {
  fill: #fbe36b;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pc-pan__shade {
  fill: #e2c33f;
}
.pc-pan__ear {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}
/* Coconut milk with the cream cheese and curry paste sitting in it, then
   whisked smooth and orange */
.pc-pan__sauce {
  fill: #fbf6ec;
  stroke: var(--ink);
  stroke-width: 1.6;
  transition: fill 0.6s, opacity 0.6s;
}
.pc-pan__bits rect {
  fill: #fffdf6;
  stroke: #cfc2a6;
  stroke-width: 0.8;
}
.pc-pan__paste {
  fill: #b3261e;
}
.rp.pm-smooth .pc-pan__sauce {
  fill: #f2a36b;
}
.rp.pm-smooth .pc-pan__bits {
  opacity: 0;
}
/* The sauce has gone into the dish: only a smear left in the pot */
.rp.pm-layered .pc-pan__sauce {
  opacity: 0.3;
}
.pc-pan,
.pc-pan__bits,
.pc-butter,
.pc-layer,
.pc-sauce,
.pc-parm,
.pc-gold,
.pc-foil,
.pc-top,
.pc-steam {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-pot .pc-pan,
.rp.pm-pot .pc-pan__bits,
.rp.pm-prepped .pc-butter,
.rp.pm-layer .pc-layer,
.rp.pm-layered .pc-sauce,
.rp.pm-parm .pc-parm,
.rp.pm-foiled .pc-foil,
.rp.pm-foiled .pc-steam,
.rp.pm-golden .pc-gold,
.rp.pm-golden .pc-steam,
.rp.pm-garnished .pc-top {
  opacity: 1;
}
.rp.pm-smooth .pc-pan__bits,
.rp.pm-golden .pc-foil,
.rp.pm-golden .pc-parm {
  opacity: 0;
}
.pc-butter path {
  fill: none;
  stroke: #f2d97c;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.pc-slices ellipse {
  fill: #fbe39a;
  stroke: #d9a93a;
  stroke-width: 1;
}
.pc-layer__sauce,
.pc-sauce__fill {
  fill: #f2a36b;
}
.pc-sauce__edges path {
  fill: none;
  stroke: #fbe39a;
  stroke-width: 2;
  stroke-linecap: round;
}
.pc-parm rect {
  fill: #fffdf3;
  stroke: #d9cfb6;
  stroke-width: 0.5;
}
.pc-foil__sheet {
  fill: #d8dde2;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.pc-foil__crinkle {
  fill: none;
  stroke: #f7f9fb;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pc-gold__fill {
  fill: #f0b44a;
  stroke: #b9782b;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.pc-gold__patches ellipse {
  fill: #d98a32;
  opacity: 0.75;
}
.pc-top__onions circle {
  fill: none;
  stroke: #6bb33a;
  stroke-width: 1.4;
}
.pc-top__basil path {
  fill: none;
  stroke: #2f7d2a;
  stroke-width: 2;
  stroke-linecap: round;
}
.pc-steam path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .pc-steam path {
    animation: steam 2.4s ease-in-out infinite;
  }
  .pc-steam path:nth-child(2) { animation-delay: 0.6s; }
  .pc-steam path:nth-child(3) { animation-delay: 1.2s; }
  .rp.is-finished .rp-progress__art .pc {
    animation: hop 0.8s var(--ease-spring) 2;
  }
}

/* Progress bowl (body data-art="bowl"). Layers show as steps with these
   data-pm names are done: heated, oiled, roasted, sauce, tossed, rice,
   built, garnished. */
.pw-shadow {
  fill: var(--ink);
  opacity: 0.16;
}
.pw-sheet {
  fill: #c9ced3;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pw-sheet__in {
  fill: #fbf6ea;
  stroke: #b8bdc2;
  stroke-width: 1.4;
}
.pw-cubes rect {
  fill: #f6d86a;
  stroke: #b98b1c;
  stroke-width: 1.2;
  transition: fill 0.5s, stroke 0.5s;
}
.pw-pepper circle {
  fill: var(--ink);
}
.rp.pm-roasted .pw-cubes rect {
  fill: #e8a43a;
  stroke: #8f5a12;
}
.pw-glass {
  fill: rgba(220, 236, 242, 0.7);
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.pw-glass__rim {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
}
.pw-glass__hi {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}
.pw-sauce {
  fill: #9e2f12;
}
.pw-glazed rect,
.pw-spuds rect {
  fill: #eba23a;
  stroke: #9a3d10;
  stroke-width: 1.4;
}
.pw-bowl,
.pw-bowl__rim,
.pw-foot {
  fill: #fffdf6;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pw-bowl__shade {
  fill: #ece6d8;
}
.pw-bowl__in {
  fill: #efe9db;
}
.pw-rice path {
  fill: #f4ecd2;
  stroke: #cbbd92;
  stroke-width: 1.4;
}
.pw-grains circle {
  fill: #fffaf0;
  stroke: #d6c79d;
  stroke-width: 0.6;
}
.pw-lettuce path {
  fill: none;
  stroke: #a9d46a;
  stroke-width: 3;
  stroke-linecap: round;
}
.pw-beans ellipse {
  fill: #2b1d22;
}
.pw-avo path {
  fill: #b7d76a;
  stroke: #3f6b1d;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.pw-jala circle {
  fill: #9fd46c;
  stroke: #2f7a1f;
  stroke-width: 1.8;
}
.pw-crema {
  fill: none;
  stroke: #fffdf6;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0.6px 0 #b7ab90);
}
.pw-cilantro ellipse {
  fill: #2f8a2a;
}
.pw-heat path {
  fill: none;
  stroke: #ff8a3d;
  stroke-width: 2.6;
  stroke-linecap: round;
}
.pw-hot path,
.pw-steam path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.55;
}
.pw-heat,
.pw-hot,
.pw-cubes,
.pw-pepper,
.pw-mix,
.pw-glazed,
.pw-rice,
.pw-fix,
.pw-garnish,
.pw-steam {
  opacity: 0;
  transition: opacity 0.4s;
}
.rp.pm-heated .pw-heat,
.rp.pm-oiled .pw-cubes,
.rp.pm-oiled .pw-pepper,
.rp.pm-roasted .pw-hot,
.rp.pm-sauce .pw-mix,
.rp.pm-tossed .pw-mix,
.rp.pm-tossed .pw-glazed,
.rp.pm-rice .pw-rice,
.rp.pm-rice .pw-steam,
.rp.pm-built .pw-fix,
.rp.pm-garnished .pw-garnish {
  opacity: 1;
}
/* The oven's heat waves give way to steam off the roasted cubes; the cubes
   leave the sheet for the sauce, and the sauce bowl for the serving bowl */
.rp.pm-roasted .pw-heat,
.rp.pm-tossed .pw-cubes,
.rp.pm-tossed .pw-hot,
.rp.pm-built .pw-glazed {
  opacity: 0;
}
.rp.pm-built .pw-sauce {
  opacity: 0.35;
}
@media (prefers-reduced-motion: no-preference) {
  .pw-heat path {
    animation: steam 2.2s ease-in-out infinite;
  }
  .pw-heat path:nth-child(2) { animation-delay: 0.5s; }
  .pw-heat path:nth-child(3) { animation-delay: 1s; }
  .pw-hot path,
  .pw-steam path {
    animation: steam 2.4s ease-in-out infinite;
  }
  .pw-hot path:nth-child(2),
  .pw-steam path:nth-child(2) { animation-delay: 0.6s; }
  .pw-hot path:nth-child(3),
  .pw-steam path:nth-child(3) { animation-delay: 1.2s; }
  .rp.is-finished .rp-progress__art .pw {
    animation: hop 0.8s var(--ease-spring) 2;
  }
}

/* Switch */
.rp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  font: 600 1rem var(--font-display);
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.rp-switch__track {
  position: relative;
  width: 52px;
  height: 30px;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  transition: background-color 0.2s;
}
.rp-switch__track span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--ink);
  border-radius: 50%;
  transition: translate 0.25s var(--ease-spring);
}
.rp-switch[aria-checked="true"] .rp-switch__track {
  background: var(--logo-green);
}
.rp-switch[aria-checked="true"] .rp-switch__track span {
  translate: 22px 0;
}

/* ---------- Serve ---------- */
.rp-serve__inner {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
@media (min-width: 900px) {
  .rp-serve__inner {
    grid-template-columns: minmax(260px, 380px) 1fr;
  }
}
.rp-serve__photo {
  margin: 0;
  justify-self: center;
  width: min(80vw, 380px);
  aspect-ratio: 4 / 5;
  border: var(--stroke) solid var(--ink);
  border-radius: 50% 50% 28px 28px;
  box-shadow: 10px 10px 0 var(--logo-yellow), 10px 10px 0 3px var(--ink);
  overflow: hidden;
}
.rp-serve__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.rp-serve__copy {
  display: grid;
  gap: 16px;
}
.rp-serve .tagline {
  color: var(--dish-deep);
}
.rp-serve h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}
.rp-related {
  margin-top: 12px;
}

/* ---------- Dock ---------- */
.rp-dock {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 8px;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  translate: -50% 0;
  transition: translate 0.4s var(--ease-spring), opacity 0.3s;
}
.rp-dock.is-away {
  translate: -50% 150%;
  opacity: 0;
  pointer-events: none;
}
.rp-dock__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.rp-dock__potato {
  width: 54px;
}
.rp-dock__text {
  display: grid;
  line-height: 1.1;
  white-space: nowrap;
}
.rp-dock__text b {
  font-family: var(--font-display);
}
.rp-dock__text small {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.rp-dock__timers {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rp-dock__timers:empty {
  display: none;
}
.rp-dock__timer {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 12px;
  font: 700 0.9rem var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: color-mix(in srgb, var(--dish) 35%, white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.rp-dock__timer.is-paused {
  background: var(--cream);
  opacity: 0.8;
}
.rp-dock__timer.is-done {
  background: var(--logo-yellow);
  animation: ring 0.6s ease-in-out infinite;
}
.rp-dock__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.rp-dock__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rp-dock__btn .rp-snd-off,
.rp-dock__btn[aria-pressed="true"] .rp-snd-on {
  display: none;
}
.rp-dock__btn[aria-pressed="true"] .rp-snd-off {
  display: inline;
}
.rp-dock__cook {
  flex-shrink: 0;
  min-height: 44px;
  padding: 6px 18px;
  font: 600 1rem var(--font-display);
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.rp-dock__cook:hover {
  background: #3a3435;
}
@media (max-width: 560px) {
  .rp-dock {
    left: 12px;
    right: 12px;
    translate: 0 0;
  }
  .rp-dock.is-away {
    translate: 0 150%;
  }
  .rp-dock__text small,
  .rp-dock__btn {
    display: none;
  }
  .rp-dock__cook {
    margin-left: auto;
    padding-inline: 14px;
  }
}

/* ---------- Cook mode ---------- */
.rp-cook {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  border: 0;
}
.rp-cook[open] {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}
.rp-cook::backdrop {
  background: var(--ink);
}
.rp-cook__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  border-bottom: 2px solid #4a4344;
}
.rp-cook__where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-family: var(--font-display);
  font-weight: 700;
}
.rp-cook__lock {
  white-space: nowrap;
  padding: 2px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--logo-green);
  border-radius: 999px;
}
.rp-cook__dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.rp-cook__dots button {
  width: 34px;
  height: 34px;
  font: 700 0.9rem var(--font-display);
  color: var(--white);
  background: transparent;
  border: 2px solid #6d6566;
  border-radius: 50%;
  cursor: pointer;
}
.rp-cook__dots button.is-done {
  color: var(--ink);
  background: var(--logo-green);
  border-color: var(--logo-green);
}
.rp-cook__dots button[aria-current="step"] {
  border-color: var(--logo-yellow);
  box-shadow: 0 0 0 3px var(--logo-yellow);
}
@media (max-width: 600px) {
  /* Nine numbered dots don't fit on a phone; show small pips instead */
  .rp-cook__dots {
    gap: 5px;
  }
  .rp-cook__dots button {
    width: 14px;
    height: 14px;
    padding: 0;
    font-size: 0;
  }
}
.rp-cook__x {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.rp-cook :focus-visible {
  outline-color: var(--logo-yellow);
  box-shadow: none;
}
.rp-cook__body {
  overflow-y: auto;
  display: grid;
  align-content: center;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter);
}
.rp-cook__title {
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);
  color: var(--logo-yellow);
}
.rp-cook__title small {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfc8c9;
}
.rp-cook__text p {
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  line-height: 1.45;
}
.rp-cook__text p + p {
  margin-top: 0.6em;
}
.rp-cook__text [data-temp-f],
.rp-cook__text [data-len-in] {
  color: var(--logo-yellow);
}
.rp-cook .rp-ref__amt {
  color: var(--ink);
}
.rp-cook.is-entering .rp-cook__body > * {
  animation: rise-in 0.4s var(--ease-out) both;
}
.rp-cook.is-entering .rp-cook__body > *:nth-child(2) { animation-delay: 0.05s; }
.rp-cook.is-entering .rp-cook__body > *:nth-child(3) { animation-delay: 0.1s; }
.rp-timers--cook .rp-timer {
  padding: 10px 14px 10px 10px;
  color: var(--ink);
}
.rp-timers--cook .rp-timer__ring {
  width: 72px;
  height: 72px;
}
.rp-timers--cook .rp-timer__time {
  font-size: 0.95rem;
}
.rp-cook__ing {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter) 12px;
}
.rp-cook__ing summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 700 1.05rem var(--font-display);
  cursor: pointer;
}
.rp-cook__ing ul {
  display: grid;
  gap: 4px;
  max-height: 34vh;
  overflow-y: auto;
  margin: 6px 0 0;
  padding: 12px 16px;
  list-style: none;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-md);
}
.rp-cook__ing label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0;
  cursor: pointer;
}
.rp-cook__ing input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--herb-dark);
}
.rp-cook__ing input:checked + span {
  text-decoration: line-through;
  color: var(--ink-soft);
}
.rp-cook__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter) max(18px, env(safe-area-inset-bottom));
  border-top: 2px solid #4a4344;
}
.rp-cook__prev {
  min-height: 52px;
  padding: 8px 18px;
  font: 600 1.05rem var(--font-display);
  color: var(--white);
  background: none;
  border: 2px solid #6d6566;
  border-radius: 999px;
  cursor: pointer;
}
.rp-cook__prev:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- Lightbox ---------- */
.rp-lightbox {
  max-width: min(92vw, 560px);
  max-height: 92dvh;
  padding: 0;
  background: none;
  border: 0;
  overflow: visible;
}
.rp-lightbox::backdrop {
  background: rgba(35, 31, 32, 0.8);
}
.rp-lightbox img {
  max-height: 88dvh;
  width: auto;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
}
.rp-lightbox .rp-cook__x {
  position: absolute;
  top: -14px;
  right: -14px;
}
.rp-lightbox[open] {
  animation: pop-in 0.35s var(--ease-spring);
}
@keyframes pop-in {
  from { opacity: 0; scale: 0.9; }
  to { opacity: 1; scale: 1; }
}

/* ---------- Toasts ---------- */
.rp-toasts {
  position: fixed;
  z-index: 80;
  top: 90px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  gap: 10px;
  width: min(92vw, 440px);
  pointer-events: none;
}
.rp-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  font-weight: 600;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  animation: toast-in 0.4s var(--ease-spring) both;
}
.rp-toast.is-alarm {
  background: var(--logo-yellow);
}
.rp-toast.is-leaving {
  animation: toast-out 0.25s ease-in both;
}
.rp-toast p {
  flex: 1;
}
.rp-toast button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 4px 14px;
  font: 700 0.95rem var(--font-display);
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
@keyframes toast-in {
  from { opacity: 0; translate: 0 -16px; scale: 0.96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes toast-out {
  to { opacity: 0; translate: 0 -10px; }
}

/* ---------- Confetti ---------- */
.rp-confetti {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}
.rp-confetti i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: var(--w, 12px);
  height: var(--h, 8px);
  background: var(--c);
  border: 1.5px solid var(--ink);
  border-radius: var(--r, 50%);
  animation: fall var(--d, 2s) cubic-bezier(0.3, 0.1, 0.6, 1) var(--delay, 0s) both;
}
@keyframes fall {
  from { translate: 0 0; rotate: 0deg; }
  to { translate: var(--dx, 0) 110vh; rotate: var(--rot, 540deg); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rp-hero__copy > * {
    animation: rise-in 0.7s var(--ease-out) both;
  }
  .rp-hero__copy > *:nth-child(2) { animation-delay: 0.06s; }
  .rp-hero__copy > *:nth-child(3) { animation-delay: 0.12s; }
  .rp-hero__copy > *:nth-child(4) { animation-delay: 0.18s; }
  .rp-hero__copy > *:nth-child(5) { animation-delay: 0.24s; }
  .rp-hero__copy > *:nth-child(6) { animation-delay: 0.3s; }
  .rp-hero__photo {
    animation: photo-in 0.9s var(--ease-spring) 0.1s both;
  }
  .rp-polaroid {
    animation: polaroid-in 0.9s var(--ease-spring) 0.45s both;
  }
  .rp-sticker {
    animation: oval-in 0.7s var(--ease-spring) 0.7s both;
  }
  .rp-sticker svg {
    animation: spin 22s linear infinite;
  }
  .rp-sticker:hover img {
    animation: wobble 0.7s var(--ease-out);
  }
  .rp-ticker__track {
    animation: ticker 38s linear infinite;
  }
  .rp-ticker:hover .rp-ticker__track {
    animation-play-state: paused;
  }
  .rp-tip:hover .rp-tip__char {
    animation: wobble 0.7s var(--ease-out);
  }
  .rp-video__play {
    animation: pulse 2.4s ease-in-out infinite;
  }
}
@keyframes photo-in {
  from { opacity: 0; translate: 0 40px; rotate: 8deg; }
  to { opacity: 1; translate: 0 0; rotate: 2deg; }
}
@keyframes polaroid-in {
  from { opacity: 0; translate: -30px 30px; rotate: -24deg; }
  to { opacity: 1; translate: 0 0; rotate: -8deg; }
}
@keyframes spin {
  to { rotate: 360deg; }
}
@keyframes ticker {
  to { translate: -50% 0; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 0 rgba(255, 222, 0, 0.7); }
  50% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 14px rgba(255, 222, 0, 0); }
}

/* ---------- Print: just the recipe ---------- */
@media print {
  .site-header,
  .site-footer,
  .rp-ticker,
  .rp-watch,
  .rp-hero .field,
  .rp-hero__stage,
  .rp-hero__actions,
  .rp-madewith,
  .rp-tools,
  .rp-plan,
  .rp-controls,
  .rp-progress,
  .rp-timers,
  .rp-step__done,
  .rp-step__aside,
  .rp-step__photo,
  .rp-step__photos,
  .rp-slicer,
  .rp-serve,
  .rp-dock,
  .rp-toasts,
  .rp-ing__done,
  .rp-ing__hint,
  .rp-tip__char,
  .rp-tip__tape,
  .skip-link {
    display: none !important;
  }
  .rp,
  .rp-hero,
  .rp-recipe,
  .rp-extras {
    background: none !important;
    border: 0 !important;
  }
  .rp-hero__inner,
  .rp-recipe,
  .rp-extras {
    padding-block: 12px !important;
  }
  .rp-card,
  .rp-step,
  .rp-tip {
    box-shadow: none !important;
    rotate: none !important;
    translate: none !important;
    border-width: 1.5px !important;
    break-inside: avoid;
  }
  .rp-subtitle {
    box-shadow: none;
    rotate: none;
  }
  .rp-stats {
    box-shadow: none;
  }
  .rp-recipe__grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .rp-ing {
    position: static !important;
  }
  .rp-ing__text::after {
    display: none;
  }
  .rp-ing__list input:checked ~ .rp-ing__text {
    color: inherit;
  }
  .rp-step.is-done,
  .rp-step__num {
    background: none !important;
  }
  .rp-ref__amt {
    border: 0;
    background: none;
    padding: 0;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
