:root {
  --spruce: #14302a;
  --spruce-deep: #0c201b;
  --snow: #f4f7f6;
  --cranberry: #b52a43;
  --mustard: #e4a93b;
  --pine: #2f6b52;
  --blush: #eba9b4;
  --ink: #1e1b24;
  --muted: #5b5662;
  --display: 'Caprasimo', Georgia, serif;
  --text: 'Literata', Georgia, serif;
  --gap: clamp(6px, 1.4vw, 12px);
}

* { box-sizing: border-box; }

html {
  background: var(--spruce);
  color: var(--snow);
  font-family: var(--text);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; min-height: 100vh; overflow-x: clip; }

button { font: inherit; color: inherit; }

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 2rem;
}

/* ---------- header ---------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--snow);
}

.subtitle {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 42ch;
  color: rgba(244, 247, 246, 0.78);
}

.pill {
  background: transparent;
  border: 2px solid rgba(244, 247, 246, 0.5);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.pill[aria-pressed='true'] { background: var(--snow); color: var(--spruce); border-color: var(--snow); }

/* ---------- calendar ---------- */
.calendar {
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: calc((100cqi - 5 * var(--gap)) / 6 * 1.12);
  grid-auto-flow: dense;
  gap: var(--gap);
}

@media (max-width: 560px) {
  .calendar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: calc((100cqi - 4 * var(--gap)) / 5 * 1.12);
  }
}

.door {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 6px;
  background: var(--spruce-deep);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.7);
  perspective: 800px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.door.big { grid-column: span 2; grid-row: span 2; }
.door.wide { grid-column: span 2; }
.door.tall { grid-row: span 2; }

.door:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

.door-inside {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1.3rem, 4.5cqi, 2.4rem);
  opacity: 0;
  transition: opacity 0.4s 0.25s;
}
.door.open .door-inside { opacity: 1; }

.door-flap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.3, 0.7, 0.2, 1), filter 0.65s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 3px 0 rgba(0, 0, 0, 0.3);
}
.door.open .door-flap { transform: rotateY(-108deg); filter: brightness(0.75); }
.door.open { z-index: 1; }

.tag {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(0.85rem, 2.8cqi, 1.5rem);
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.door.big .tag { font-size: clamp(1.4rem, 5.5cqi, 3rem); }

.door.today:not(.open) .tag { animation: beckon 2.6s ease-in-out infinite; }
@keyframes beckon {
  0%, 100% { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(228, 169, 59, 0.9); }
  50% { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 0 0 0.45em rgba(228, 169, 59, 0); }
}

.door.nudge .door-flap { animation: stuck 0.45s ease; }
@keyframes stuck {
  0%, 100% { transform: rotateY(0); }
  30% { transform: rotateY(-14deg); }
  60% { transform: rotateY(-4deg); }
  80% { transform: rotateY(-9deg); }
}

/* wrapping papers */
.p0 { background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 2px, transparent 2.6px) 0 0 / 14px 14px, var(--cranberry); }
.p1 { background: repeating-linear-gradient(45deg, var(--mustard) 0 9px, #d5962a 9px 18px); }
.p2 { background: repeating-linear-gradient(90deg, var(--snow) 0 11px, var(--cranberry) 11px 14px); }
.p3 {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 50%, transparent 0) 0 0 / 16px 16px,
    linear-gradient(rgba(255, 255, 255, 0.16) 50%, transparent 0) 0 0 / 16px 16px,
    var(--pine);
}
.p4 { background: radial-gradient(circle, rgba(181, 42, 67, 0.4) 2.5px, transparent 3px) 0 0 / 18px 18px, var(--blush); }
.p5 { background: radial-gradient(circle, var(--pine) 1.6px, transparent 2.2px) 0 0 / 12px 12px, var(--snow); }

/* ---------- footer ---------- */
.foot {
  margin-top: clamp(1.75rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(244, 247, 246, 0.7);
  font-size: 0.95rem;
}
.foot p { margin: 0; }

/* ---------- preview banner & toast ---------- */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--mustard);
  color: var(--ink);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.preview-banner button { background: none; border: 0; text-decoration: underline; cursor: pointer; font-weight: 600; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 4;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  background: var(--snow);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  max-width: calc(100vw - 2rem);
  text-align: center;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- door sheet ---------- */
.sheet {
  border: 0;
  padding: 0;
  width: min(36rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  border-radius: 16px;
  background: var(--snow);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.sheet::backdrop { background: rgba(8, 20, 17, 0.8); }
.sheet[open] { animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { transform: translateY(18px) scale(0.98); opacity: 0; } }

.sheet-inner { position: relative; padding: clamp(1.5rem, 5vw, 2.25rem); }

.sheet-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.sheet-close:hover { background: rgba(30, 27, 36, 0.08); }

.sheet h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  line-height: 1.05;
  margin: 0 2.5rem 0.3rem 0;
}
.sheet-date { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; }
.sheet-body > p, .sheet-body .reward p { font-size: 1.05rem; line-height: 1.65; margin: 0 0 1rem; max-width: 62ch; }

.sheet :focus-visible { outline: 3px solid var(--cranberry); outline-offset: 2px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  background: var(--cranberry);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: #9c2238; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.btn.quiet:hover { background: rgba(30, 27, 36, 0.06); }

.hint { color: var(--muted); font-style: italic; }

/* letter */
.letter p { font-size: 1.125rem; line-height: 1.75; margin: 0 0 1.1rem; }
.letter .signature { font-style: italic; text-align: right; margin-top: 1.75rem; }

/* coupon */
.coupon {
  background: var(--mustard);
  color: var(--ink);
  border-radius: 10px;
  padding: 1.35rem 1.75rem 1.25rem;
  margin: 0 0 1rem;
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 12px, #000 12.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 12px, #000 12.5px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, transparent 12px, #000 12.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 12px, #000 12.5px) right / 51% 100% no-repeat;
}
.coupon-text { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; margin: 0 0 0.4rem; }
.coupon-fine { font-size: 0.92rem; margin: 0 0 1rem; }
.stamp {
  display: inline-block;
  border: 3px solid var(--cranberry);
  color: var(--cranberry);
  padding: 0.2rem 0.75rem;
  border-radius: 6px;
  transform: rotate(-5deg);
  font-weight: 600;
}

/* catch game */
.game-hud { font-weight: 600; font-size: 1.05rem; line-height: 1.5; min-height: 1.5em; }
.game-canvas {
  display: block;
  width: 100%;
  height: min(360px, 55dvh);
  border-radius: 12px;
  background: linear-gradient(var(--spruce), var(--spruce-deep));
  touch-action: none;
  cursor: none;
}
.game-actions { margin: 1rem 0; min-height: 2.75rem; }
.reward p { margin: 0 0 0.75rem; }

/* quiz */
.quiz-progress { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0.25rem; }
.quiz-q { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; margin: 0 0 1rem; }
.options { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.option {
  text-align: left;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #d6dcdb;
  cursor: pointer;
}
.option:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--ink); }
.option:disabled { cursor: default; }
.option.right { background: #d8efe3; box-shadow: inset 0 0 0 2px var(--pine); }
.option.wrong { background: #f7dde2; box-shadow: inset 0 0 0 2px var(--cranberry); }
.quiz-comment { line-height: 1.6; margin: 0 0 1rem; }

/* song */
.player { display: block; width: 100%; border: 0; border-radius: 12px; margin-bottom: 1.25rem; }
.player.spotify { height: 152px; }
.player.spotify.tall { height: 380px; }
.player.video { aspect-ratio: 16 / 9; height: auto; }

/* boot */
.boot-wrap { display: grid; place-items: center; margin: 0.5rem 0 1rem; }
.boot {
  width: 150px;
  border: 0;
  background: none;
  padding: 0.25rem;
  cursor: pointer;
  transform-origin: 40% 90%;
  border-radius: 12px;
}
.boot svg { display: block; width: 100%; }
.boot:disabled { cursor: default; opacity: 0.55; }
.boot.jiggle { animation: jiggle 0.5s ease; }
@keyframes jiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); }
  70% { transform: rotate(-5deg); }
}
.treats { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.treats li { background: #fff; border-radius: 10px; padding: 0.65rem 0.9rem; box-shadow: inset 0 0 0 2px #e3e7e6; }
.treats li.pop { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { from { transform: translateY(-14px) scale(0.9); opacity: 0; } }
.finale p { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; }
.sheet { overflow-x: hidden; }
.finale-img {
  display: block;
  width: min(240px, 70%);
  height: auto;
  margin: 0.5rem auto 0.75rem;
  translate: 17% 0; /* the moogle is drawn left of its frame's centre */
  animation: moogle-hover 2.6s ease-in-out infinite;
}
.finale-img.fly-in {
  animation: moogle-fly 1.5s cubic-bezier(0.2, 0.75, 0.3, 1) both, moogle-hover 2.6s ease-in-out 1.5s infinite;
}
@keyframes moogle-fly {
  0% { transform: translate(70vw, -45vh) rotate(20deg) scale(0.5); opacity: 0; }
  15% { opacity: 1; }
  65% { transform: translate(-14px, 10px) rotate(-8deg) scale(1.05); }
  85% { transform: translate(4px, -4px) rotate(3deg) scale(1); }
  100% { transform: translate(0, 0) rotate(-2deg) scale(1); }
}
@keyframes moogle-hover {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* scratch card */
.scratch {
  position: relative;
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e3e7e6;
}
.scratch-content { padding: 1.75rem 1.5rem; text-align: center; }
.scratch-content img { display: block; max-width: 100%; border-radius: 8px; margin: 0 auto 1rem; }
.scratch-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; margin: 0.5rem 0 0.75rem; color: var(--cranberry); }
.scratch-content p { line-height: 1.6; margin: 0 0 0.5rem; }

/* handwritten note, taped on */
.note {
  position: relative;
  margin: 0.5rem 0 1.75rem;
  padding: 0.6rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(30, 27, 36, 0.16);
  transform: rotate(-1.2deg);
}
.note::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 24px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(235, 169, 180, 0.75);
}
.note img { display: block; width: 100%; height: auto; border-radius: 2px; }
.note-pdf object { display: block; width: 100%; height: 60vh; border: 0; }
.note-pdf a { display: inline-block; margin-top: 0.5rem; color: var(--cranberry); font-weight: 600; }
.sheet-body > .note:last-child { margin: 1.75rem 0 0.5rem; transform: rotate(1deg); }

.snow-btn { margin-top: 0.5rem; }

/* word game */
.wordle-status { font-weight: 600; margin: 0 0 0.25rem; min-height: 1.5em; }
.wordle-hint { color: var(--muted); font-style: italic; margin: 0 0 0.75rem; }
.hint-btn { display: block; margin: 0 0 0.75rem; padding: 0; border: 0; background: none; color: var(--cranberry); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wordle-stage { position: relative; margin: 0.75rem 0 1rem; }
.wgrid { display: grid; gap: 6px; justify-content: center; }
.wrow { display: grid; grid-template-columns: repeat(var(--len), minmax(0, 3.1rem)); gap: 6px; }
.wcell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #d6dcdb;
  font-family: var(--display);
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  line-height: 1;
}
.wcell.filled { box-shadow: inset 0 0 0 2px var(--ink); }
.wcell.flip { animation: flip 0.5s ease both; }
.wcell.hit { background: var(--pine); color: #fff; box-shadow: none; }
.wcell.near { background: var(--mustard); color: var(--ink); box-shadow: none; }
.wcell.miss { background: #8d8994; color: #fff; box-shadow: none; }
@keyframes flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}
.wrow.shake { animation: shake 0.35s ease; }
@keyframes shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
.wkeys { display: grid; gap: 6px; user-select: none; }
.wkrow { display: flex; gap: 4px; justify-content: center; }
.wkey {
  flex: 1 1 0;
  max-width: 2.6rem;
  height: 3.1rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #dde2e1;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
}
.wkey.wide { flex: 1.6 1 0; max-width: 4.2rem; font-size: 0.8rem; }
.wkey.hit { background: var(--pine); color: #fff; }
.wkey.near { background: var(--mustard); }
.wkey.miss { background: #8d8994; color: #fff; }
.wordle-actions { margin-top: 0.5rem; }

.sticker {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
          drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}
.sticker-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.sticker-row:empty { display: none; }
.sticker-row .sticker:nth-child(odd) { transform: rotate(-8deg); }
.sticker-row .sticker:nth-child(even) { transform: rotate(6deg); }
.sticker-pop {
  position: absolute;
  inset: -0.5rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  background: rgba(244, 247, 246, 0.92);
  border-radius: 12px;
  text-align: center;
}
.sticker.big { font-size: clamp(5rem, 22vw, 7.5rem); animation: slap 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; will-change: transform, opacity; }
@keyframes slap {
  0% { transform: scale(2.2) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
.sticker-caption { font-family: var(--display); font-size: 1.5rem; margin: 0; }

/* lottery tickets */
.lotto-ticket {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem 1.1rem;
  border-radius: 10px;
  background: var(--mustard);
  color: var(--ink);
  border: 2px dashed rgba(30, 27, 36, 0.35);
  outline: 6px solid var(--mustard);
  outline-offset: -1px;
}
.lotto-ticket.t1 { background: var(--blush); outline-color: var(--blush); }
.lotto-ticket.t2 { background: #cfe3d8; outline-color: #cfe3d8; }
.lotto-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.lotto-name { font-family: var(--display); font-size: 1.35rem; color: var(--cranberry); }
.lotto-no { font-size: 0.85rem; color: rgba(30, 27, 36, 0.7); }
.lotto-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.lotto-field {
  position: relative;
  display: grid;
  place-items: center;
  height: 4.5rem;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.lotto-word { font-family: var(--display); font-size: clamp(1rem, 4.4vw, 1.3rem); text-align: center; padding: 0 0.3rem; line-height: 1.1; overflow-wrap: anywhere; }
.lotto-stamp {
  position: absolute;
  right: 0.75rem;
  top: 0.4rem;
  padding: 0.1rem 0.6rem;
  border: 3px solid var(--cranberry);
  border-radius: 6px;
  color: var(--cranberry);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--display);
  font-size: 1.2rem;
  transform: rotate(8deg) scale(1.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.2s;
}
.lotto-ticket.won .lotto-stamp { opacity: 1; transform: rotate(8deg) scale(1); }
.lotto-ticket.won .lotto-no { visibility: hidden; }
.lotto-outro p { font-family: var(--display); font-size: 1.35rem; line-height: 1.25; }

/* shared scratch-off layer */
.scratch-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  transition: opacity 0.6s;
}
.scratch-layer.gone { opacity: 0; }
.scratch-layer:focus-visible { outline: 3px solid var(--cranberry); outline-offset: -3px; }

/* who would rather */
.wr-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.wr-choice {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #d6dcdb;
  cursor: pointer;
}
.wr-choice:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--ink); }
.wr-choice:disabled { cursor: default; opacity: 0.55; }
.wr-choice.picked { opacity: 1; box-shadow: inset 0 0 0 3px var(--cranberry); background: #fbecef; }
.wr-choice img, .wr-emoji {
  width: clamp(5rem, 24vw, 7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.wr-emoji { display: grid; place-items: center; background: #f1e6d0; font-size: clamp(2.6rem, 12vw, 3.6rem); }
.wr-label { font-family: var(--display); font-size: 1.25rem; }
.wr-verdict { min-height: 1.6em; margin: 0 0 1rem; line-height: 1.6; }
.wr-verdict strong { color: var(--cranberry); }
.wr-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* recipe */
.when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--spruce);
  color: var(--snow);
}
.when-date { margin: 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.when .btn { background: var(--mustard); color: var(--ink); }
.recipe-name { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 0 0 0.5rem; color: var(--cranberry); }
.recipe-sub { font-weight: 600; margin: 1rem 0 0.5rem; }
.ingredients { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.35rem; }
.ingredients li { display: flex; gap: 0.65rem; align-items: flex-start; line-height: 1.5; }
.ingredients input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--pine); flex: none; }
.ingredients input:checked + label { text-decoration: line-through; color: var(--muted); }
.steps { padding-left: 1.3rem; margin: 0 0 1rem; }
.steps li { line-height: 1.6; margin-bottom: 0.4rem; }


/* hidden cats */
.sheet-inner { padding-bottom: 3.5rem; }
.cat-peek {
  position: absolute;
  z-index: 1;
  width: 72px;
  height: var(--peek);
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cat-peek img { position: absolute; top: 0; left: 0; width: 72px; height: 72px; pointer-events: none; }
.cat-peek:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 8px; }
.cat-peek.bottom-right { bottom: 0; right: 12%; }
.cat-peek.bottom-left { bottom: 0; left: 12%; }
.cat-peek.bottom-mid { bottom: 0; left: calc(50% - 36px); }
.cat-peek.perch { bottom: 100%; right: 9%; }
.cat-peek.hop { animation: cat-hop 1.4s ease; }
@keyframes cat-hop {
  0%, 100% { height: var(--peek); }
  25%, 75% { height: 72px; }
}
.foot .pill { color: var(--snow); }
.cat-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.5rem; }
.cat-gallery img { width: 100%; height: auto; }
.cat-unknown {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #e6eae9;
  color: #9aa3a1;
  font-family: var(--display);
  font-size: 1.6rem;
}

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