:root {
  color-scheme: light;
  --ink: #344a60;
  --deep: #24394b;
  --muted: #526473;
  --paper: #f5efe5;
  --cream: #fffaf0;
  --blue: #8ba4b5;
  --copper: #b58260;
  --line: #cec3b4;
  --exact: #426350;
  --misplaced: #e2c76b;
  --absent: #63676b;
  --serif: Georgia, "Times New Roman", serif;
  font: 1rem/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% 4%, #fffbf2 0%, transparent 49%),
    repeating-linear-gradient(27deg, #35465505 0 1px, transparent 1px 5px);
}
button, input, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid #8c583e; outline-offset: 4px; }
main:focus, h1:focus, .hint:focus { outline: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; color: var(--deep); }
h1 { font-size: clamp(2.3rem, 6.8vw, 4.65rem); margin: 0; letter-spacing: -.055em; }
h1 em { font-weight: 400; }
h2 { letter-spacing: -.035em; }
p { margin: 0 0 1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 12; padding: .75rem; background: var(--cream); }
.skip:focus { top: 1rem; }
.initial { margin: 15vh auto; text-align: center; }
.top-inner {
  width: min(calc(100% - 2rem), 66rem);
  min-height: 4.1rem;
  margin: auto;
  padding-block: .4rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: .65rem;
  align-items: center;
}
.stamp, .entry-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #774a34;
}
.stamp { text-decoration: none; border: 1px solid #ba957b; border-radius: 50%; }
.top-date, .eyebrow {
  color: #754c38;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 650;
  font-size: .83rem;
}
.top-date { margin-right: auto; }
.preview-label { font-size: .875rem; color: var(--muted); }
.top-inner select { min-height: 2.75rem; padding: .25rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--cream); }
.subtle {
  background: transparent;
  border: 0;
  border-radius: .25rem;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  text-decoration: underline;
  text-underline-offset: .22rem;
}
.subtle:hover { color: #774a34; }
.hero { text-align: center; padding: clamp(2rem, 5.3vw, 4.2rem) 0 clamp(1.6rem, 4vw, 2.65rem); }
.eyebrow { margin-bottom: .8rem; }
.intro { color: var(--muted); margin: .8rem 0 0; font-family: var(--serif); font-size: clamp(1.05rem, 2.8vw, 1.25rem); }
.calendar-page { width: min(calc(100% - 2rem), 61rem); margin: 0 auto; }
.calendar-page .hero { padding: clamp(1.1rem, 3.7vw, 3.1rem) 0 clamp(.85rem, 3vw, 1.9rem); }
.scene-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 .65rem; margin: 0 0 .55rem; }
.miata-name { flex: 1 1 9rem; min-width: 0; color: #744740; font: .92rem var(--serif); overflow-wrap: anywhere; }
#preview-reset { white-space: nowrap; margin-inline-start: auto; }
.scene {
  position: relative;
  aspect-ratio: 960 / 620;
  isolation: isolate;
  border-radius: .6rem;
  box-shadow: 0 0 0 1px #8ba1a9, 0 9px 30px #354e6425;
  background: var(--blue);
}
.scene > img { width: 100%; height: 100%; object-fit: fill; display: block; border-radius: inherit; }
.scene::after {
  content: "";
  position: absolute;
  inset: .45rem;
  border: 1px solid #fdf3da93;
  border-radius: .33rem;
  pointer-events: none;
}
.door {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .08rem;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  width: 2.9rem;
  height: 2.85rem;
  border-radius: 47% 47% .25rem .25rem;
  border: 1px solid #5b7788;
  background: #eaf0ed;
  color: var(--deep);
  box-shadow: 0 2px 6px #344a603b, inset 0 0 0 2px #f8f3e465;
  text-decoration: none;
  font: 1.23rem/1 var(--serif);
}
.door .icon { width: .75rem; height: .75rem; margin-top: .15rem; }
.door--locked {
  isolation: isolate;
  border: 0;
  background: transparent;
  color: #344a60;
  box-shadow: none;
  font-size: 1rem;
}
.door--locked::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .3rem;
  border: 1px solid #8196a1;
  border-radius: inherit;
  background: #dbe4e4;
}
.door--unavailable { background: #c3d0d2f2; color: #395465; }
.door--unavailable { border-style: dashed; }
.door--available, .door--in-progress { background: #fff3d8; border-color: #9b7954; }
.door--in-progress { border-style: double; border-width: 3px; }
.door.today {
  z-index: 4;
  outline: 2px solid #8b563b;
  outline-offset: 2px;
  box-shadow: 0 2px 15px #f6d296;
}
a.door:hover, a.door:focus-visible { z-index: 4; outline: 3px solid #78492f; outline-offset: 3px; }
.door--completed { overflow: hidden; border-radius: 50%; border-color: #e8c99a; }
.door--completed img { position: absolute; inset: 0; width: 100%; height: 100%; }
.door--completed span { position: absolute; bottom: 0; min-width: 55%; padding: .11rem .2rem; background: #344a60; color: #fff8e9; text-align: center; font: .75rem/1 system-ui; }
.reset-dialog {
  width: min(25rem, calc(100% - 2rem));
  padding: 1.25rem;
  color: var(--ink);
}
.reset-dialog::backdrop { background: #24394b75; }
.reset-dialog h2 { margin: 0 0 .65rem; font-size: 1.55rem; }
.reset-dialog form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.paper {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: .55rem;
  box-shadow: 0 10px 32px #374b5e12;
}
.entry {
  width: min(calc(100% - 2rem), 63rem);
  margin: clamp(1rem, 8vh, 6rem) auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: min(36rem, 82vh);
  border: 1px solid var(--line);
  border-radius: .6rem;
  overflow: hidden;
  box-shadow: 0 12px 48px #344a6020;
}
.entry-art { background: #a8bdc7 url("/winter-town.svg") 39% center / cover; }
.entry-paper { padding: clamp(1.25rem, 4vw, 3.2rem); align-self: center; }
.entry-paper h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); }
.entry-mark { margin: 0 0 .75rem -.6rem; }
.entry-paper form { margin-top: 1.75rem; }
.entry-fields { display: flex; gap: .5rem; align-items: stretch; }
.guess-fields { display: grid; justify-items: center; gap: .5rem; }
label { display: block; margin-bottom: .35rem; }
.top-inner label { margin-bottom: 0; }
input {
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: .46rem .7rem;
  border: 1px solid #9caaac;
  border-radius: .3rem;
  color: var(--deep);
  background: #fffdf8;
}
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--ink);
  border-radius: .3rem;
  padding: .5rem .9rem;
  white-space: nowrap;
  font-weight: 620;
  text-decoration: none;
  background: var(--ink);
  color: #fffaf0;
}
.primary:hover { background: #263b4d; }
.secondary { background: #f5efe5; color: var(--ink); }
.message { min-height: 1.55em; color: #754c38; margin: .45rem 0; }
.puzzle-page, .reading { width: min(calc(100% - 2rem), 42rem); margin: 0 auto; }
.puzzle-page { padding: .9rem 0 1.4rem; }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .22rem; }
.puzzle-paper, .reward-paper { padding: clamp(1rem, 4vw, 2.4rem); }
.puzzle-heading, .reward-paper { text-align: center; }
.puzzle-heading h1, .reward-paper h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 .6rem; }
.rules { text-align: center; color: var(--muted); max-width: 32rem; margin: 0 auto 1rem; }
.word-grid { margin: 0 auto .7rem; padding: 0; display: grid; gap: .33rem; width: max-content; max-width: 100%; }
.word-grid li { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .33rem; }
.cell {
  display: grid;
  place-items: center;
  position: relative;
  width: clamp(2.5rem, 10.75vw, 3.2rem);
  height: clamp(2.5rem, 10.75vw, 3.2rem);
  border: 1px solid #bdc4c2;
  border-radius: .25rem;
  font: bold 1.3rem var(--serif);
}
.active-row .cell { border-color: #849eac; }
.exact { --mark: var(--exact); }
.misplaced { --mark: var(--misplaced); --mark-ink: var(--deep); }
.absent { --mark: var(--absent); }
.cell:is(.exact, .misplaced, .absent), .key:is(.exact, .misplaced, .absent) { background: var(--mark); color: #fffdf6; border-color: var(--mark); }
.cell.misplaced, .key.misplaced { color: var(--deep); }
.reveal-row .cell {
  --tile-flip: tile-reveal 675ms ease-in-out calc(var(--column, 0) * 180ms) backwards;
  animation: var(--tile-flip);
}
.reveal-row .cell:nth-child(2) { --column: 1; }
.reveal-row .cell:nth-child(3) { --column: 2; }
.reveal-row .cell:nth-child(4) { --column: 3; }
.reveal-row .cell:nth-child(5) { --column: 4; }
.winning-row .cell {
  animation: var(--tile-flip), tile-wave 650ms ease-in-out calc(1475ms + var(--column, 0) * 140ms);
}
@keyframes tile-reveal {
  0%, 49% { background-color: transparent; border-color: #849eac; color: var(--ink); }
  0% { transform: perspective(280px) rotateX(0); }
  49%, 51% { transform: perspective(280px) rotateX(-90deg); }
  51%, 100% { background-color: var(--mark); border-color: var(--mark); color: var(--mark-ink, #fffdf6); }
  100% { transform: perspective(280px) rotateX(0); }
}
@keyframes tile-wave {
  0%, 100% { transform: translateY(0); }
  42% { transform: translateY(-.65rem); }
}
#guess-form, .puzzle-paper .message, .hint { max-width: 30rem; margin-inline: auto; }
#guess-form input { text-transform: uppercase; }
.keypad { display: grid; gap: .24rem; margin: .6rem auto 0; max-width: 30rem; }
.keypad > div { display: flex; gap: .24rem; justify-content: center; }
.key {
  min-height: 2.75rem;
  flex: 0 1 2.75rem;
  min-width: 0;
  border: 1px solid #bec7c6;
  border-radius: .25rem;
  background: #e8eee9;
  font-size: .9rem;
  padding: 0;
}
.key:hover { box-shadow: inset 0 0 0 2px #344a60; }
.key-delete { flex-basis: 4rem; }
.hint { padding: .7rem .9rem; margin-top: 1rem; background: #e9eee8; border-radius: .3rem; }
.puzzle-actions { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.reward-objects { display: flex; justify-content: center; gap: 1.2rem; align-items: center; margin: 1.4rem 0; }
.tile {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  font: clamp(1.25rem, 4.6vw, 2.15rem)/1 var(--serif);
  color: #5a3e2e;
  background: #f1e3c9;
  border: 1px solid #bb9c76;
  border-radius: .25rem;
}
.tile--empty { background: #f1ede3; border: 1px dashed #c5bbaa; color: #596a74; }
.tile--empty .icon { width: 1rem; }
.tile.illuminated { color: #fff2d2; background: #597487; border-color: #8d6045; text-shadow: 0 1px 0 #304957; }
.tile.illuminated.tile-watercolor { background: #fff8eb; border-color: #ba9270; padding: 6%; }
.illuminated svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.illuminated img { width: 100%; height: 100%; object-fit: contain; }
.reward-objects .tile { width: 6.7rem; font-size: 3.5rem; }
.reward-objects .tile-watercolor { width: clamp(7.5rem, 36vw, 10rem); padding: .55rem; flex-shrink: 0; }
.fragment { width: 5.4rem; }
.fragment-medallion { width: clamp(6rem, 32vw, 8.5rem); aspect-ratio: 1; object-fit: contain; }
.reward-note { font: 1.23rem/1.5 var(--serif); }
.bonus { max-width: 28rem; padding: .2rem 1rem; margin: 1.3rem auto; border: 1px solid #c2a57a; background: #f8ecd7; border-radius: .3rem; }
.bonus h2 { margin: .7rem 0; }
.finale { padding: 1rem 1.25rem; }
.error-page { text-align: center; }
.error-page, .finale { margin-block: 1.5rem; }
.completion .reward-paper { animation: arrive 260ms ease-out both; }
.completion-panel { margin-block: clamp(1rem, 4vw, 2rem); text-align: center; }
.completion-panel .eyebrow { margin-bottom: .5rem; }
.completion-illustration, .completion-letter { width: clamp(8rem, 39vw, 12rem); aspect-ratio: 1; margin: .9rem auto; }
.completion-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; }
.completion-illustration, .completion-letter { animation: watercolor-reveal 480ms 60ms ease-out both; }
.completion-letter .tile { font-size: clamp(4rem, 18vw, 6rem); }
.completion-message { max-width: 31rem; margin-inline: auto; }
.completion-message p, .completion-message blockquote { margin-bottom: .7rem; }
.completion-message img { max-height: 17rem; width: auto; max-width: 100%; margin-inline: auto; }
.completion-panel .message:empty { display: none; }
.completion-extra, .completion-preview { display: block; width: fit-content; margin: .65rem auto 0; font-size: .9rem; }
.completion-extra { padding: .5rem .25rem; text-underline-offset: .18em; }
.completion-preview summary { cursor: pointer; margin-bottom: .25rem; }
.solved-message { color: var(--exact); font-weight: 650; }
.solved-puzzle button:disabled { opacity: 1; cursor: default; }
.map-reveal-pending { opacity: 0; }
.map-reveal, .map-reward img { animation: map-appear 640ms ease-out both; }
@keyframes map-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes watercolor-reveal { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
@keyframes arrive { from { opacity: .35; transform: translateY(5px); } }

@media (max-width: 650px) {
  .top-inner { width: calc(100% - 1.5rem); min-height: 3.6rem; gap: .3rem; }
  .top-date { font-size: .75rem; letter-spacing: .09em; }
  .stamp { width: 2.75rem; height: 2.75rem; }
  .preview-label { font-size: .75rem; max-width: 3.6rem; line-height: 1.15; }
  .top-inner select, .signout { font-size: .875rem; }
  .signout { padding-inline: .3rem; white-space: nowrap; }
  .calendar-page { width: calc(100% - 1.5rem); }
  .hero { padding: 2rem 0 1.4rem; }
  .hero h1 em { display: block; }
  .scene { width: 100%; aspect-ratio: 4 / 5; }
  .door { top: var(--my); left: var(--mx); width: 2.75rem; height: 2.75rem; }
  .door .icon { width: .66rem; height: .66rem; }
  .miata-name { font-size: .875rem; }
  #preview-reset { font-size: .875rem; padding-inline: .35rem; }
  .entry { grid-template-columns: 1fr; min-height: auto; }
  .entry-art { min-height: clamp(9rem, 36vw, 16rem); background-position: center 52%; }
  .entry-paper { padding: 1.3rem; }
  .entry-mark { margin-bottom: .3rem; }
  .entry-fields { flex-wrap: wrap; }
  .entry-fields .primary { width: 100%; }
}
@media (max-width: 390px) {
  .preview-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-row .cell { animation: none; }
  .completion-illustration, .completion-letter, .map-reveal, .map-reward img { animation: none; }
}
@media (max-width: 360px) {
  .top-inner:has(#preview) .top-date { display: none; }
  .top-inner:has(#preview) .stamp { margin-right: auto; flex-shrink: 0; }
}

@media (max-width: 360px) {
}

.structured-game { display: grid; gap: 1rem; margin: 1.2rem auto .5rem; max-width: 34rem; }
.structured-game > .primary, .game-buttons { justify-self: center; }
.logic-clues { margin: 0; padding: .65rem .8rem .65rem 1.8rem; border: 1px solid var(--line); border-radius: .35rem; background: #f5efe5; }
.logic-clues li + li { margin-top: .3rem; }
.order-list, .solved-groups { display: grid; gap: .28rem; padding: 0; margin: 0; list-style: none; }
.card-position { justify-content: flex-start; gap: .55rem; width: 100%; font-weight: 550; white-space: normal; text-align: left; }
.card-position span { min-width: 1.4rem; color: #754c38; text-align: center; }
.order-status { color: var(--muted); margin: -.45rem 0 0; }
.group-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
.group-tile { min-height: 3.2rem; padding: .25rem; white-space: normal; overflow-wrap: anywhere; text-align: center; font-size: clamp(.75rem, 2.75vw, 1rem); }
.card-position[aria-pressed="true"], .group-tile[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.card-position[aria-pressed="true"] span { color: var(--cream); }
.game-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.solved-groups:empty { display: none; }
.solved-groups li { display: grid; padding: .45rem .6rem; background: #dce4df; border: 1px solid #b3c0b1; border-radius: .35rem; text-align: center; }
.solved-groups li:nth-child(even) { background: #ecdfc9; border-color: #d3bda0; }
.match-board { display: grid; gap: .55rem; }
.match-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: .45rem; padding: .6rem; margin: 0; border: 1px solid var(--line); border-radius: .35rem; background: #f8f3e9; }
.match-card:has(img) { grid-template-columns: 4.4rem minmax(0, 1fr); }
.match-card img { width: 100%; height: auto; border-radius: .25rem; }
.match-card:has(img) select { grid-column: 1 / -1; }
.match-card select { width: 100%; min-height: 2.75rem; font-size: 1rem; padding: .35rem; border: 1px solid #8b9c9f; border-radius: .25rem; background: var(--cream); }
.scrambled { margin: 1rem auto; text-align: center; font: 1.6rem/1.25 var(--serif); letter-spacing: .14em; overflow-wrap: anywhere; }
.cross-grid { justify-self: center; display: grid; grid-template-columns: repeat(var(--cross-cols), minmax(0, 1fr)); width: min(100%, calc(var(--cross-cols) * 3rem)); background: #536879; border: 1px solid #536879; gap: 1px; }
.cross-grid > div { aspect-ratio: 1; min-width: 0; }
.cross-block { background: #536879; }
.cross-square { position: relative; background: #fffaf0; }
.cross-square.cross-highlight { background: #e3ebe9; }
.cross-square span { position: absolute; top: 0; left: 3px; font-size: .62rem; pointer-events: none; }
.cross-square .cross-cell { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 0; background: transparent; border: 0; border-radius: 0; padding: .3rem 0 0; text-align: center; font-size: 1.1rem; font-weight: 650; }
.cross-square .cross-cell:focus-visible { outline-offset: -2px; }
.cross-clues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.cross-clues h2 { margin: 0 0 .35rem; font-size: 1.25rem; text-transform: capitalize; }
.cross-clues ul { padding: 0; margin: 0; list-style: none; }
.cross-clue { width: 100%; min-height: 2.75rem; padding: .32rem .35rem; border: 0; border-radius: .25rem; background: transparent; text-align: left; color: var(--ink); }
.cross-clue.current-clue { background: #e3ebe9; }
@media (max-width: 480px) {
  .match-card:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.town-art, .reveal-layer { position: absolute; inset: 0; display: block; border-radius: inherit; pointer-events: none; }
.town-art img, .reveal-layer img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: fill; }
.reveal-layer { z-index: 1; }
.map-discovery {
  position: absolute; z-index: 2; top: var(--y); left: var(--x); width: var(--width);
  transform: translate(-50%, -50%); pointer-events: none;
}
.map-discovery img { display: block; width: 100%; height: auto; }
@media (max-width: 650px) {
  .map-discovery { top: var(--my); left: var(--mx); width: var(--mobile-width); }
}
.finale-link { margin-block: .9rem; text-align: center; }
.adventure-paper, .finale-paper { padding: clamp(1rem, 4vw, 2.25rem); }
.adventure-paper h1, .finale-paper h1 { margin: 0 0 .85rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 7vw, 3.4rem); }
.chapter-plate {
  position: relative;
  margin: .75rem 0 1rem;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid #b5a891;
  border-radius: .35rem;
  background: #c7d4d4;
}
.chapter-plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chapter-plate .chapter-prop { position: absolute; inset: 0; pointer-events: none; }
.plate-name {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  max-width: calc(100% - 1rem);
  padding: .2rem .55rem;
  border: 1px solid #b28b72;
  border-radius: .2rem;
  background: #fff1d9;
  color: #663c36;
  font: 600 .9rem/1.4 var(--serif);
  overflow-wrap: anywhere;
}
.chapter-copy { font: 1.125rem/1.5 var(--serif); color: var(--deep); }
.puzzle-heading .chapter-copy { max-width: 30rem; margin: .65rem auto .9rem; }
.adventure-page .chapter-copy { margin-bottom: .65rem; }
.story-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.story-options { display: grid; gap: .5rem; padding: 0; margin: 0; border: 0; min-width: 0; }
.story-option {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  margin: 0;
  padding: .65rem;
  background: #f5efe5;
  border: 1px solid var(--line);
  border-radius: .35rem;
  cursor: pointer;
}
.story-option:has(input:checked) { background: #e2eae8; border-color: #648092; }
.story-option input { margin: 0; width: 1rem; min-height: auto; height: 1rem; accent-color: #344a60; }
.story-option strong, .story-option span span { display: block; }
.story-option span span { color: var(--muted); font-size: .925rem; }
.edit-story { display: block; margin: .45rem auto 0; }
.finale-page { padding: .9rem 0 1.4rem; }
.finale-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: min(62vh, 25rem);
}
.finale-map, .finale-message { grid-area: 1 / 1; }
.finale-map { position: relative; }
.finale-flights { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.finale-stop { padding: 0; border: 0; background: transparent; box-shadow: none; }
.finale-stop > .tile { box-shadow: 0 2px 6px #344a603b; font-size: clamp(1.25rem, 4vw, 1.85rem); }
.finale-message { position: relative; z-index: 1; width: min(100%, 47rem); margin-inline: auto; padding: 1rem; text-align: center; }
.finale-phrase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .05em .28em;
  margin: 0;
  font-size: clamp(1.6rem, 6.8vw, 3.45rem);
  line-height: 1.16;
  letter-spacing: .035em;
}
.finale-word { display: inline-flex; }
.is-revealing .finale-word > :not(.landed),
.is-revealing .christmas-envelope { visibility: hidden; }

.journey-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.journey-path polyline { fill: none; stroke: #826957; stroke-opacity: .65; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.journey-path .road-centerline { stroke: #f4dfb8; stroke-opacity: .9; stroke-width: 1.5; stroke-dasharray: 5 5; }
.mobile-road { display: none; }
.scene > .journey-car { position: absolute; z-index: 3; top: var(--y); left: var(--x); width: clamp(4.1rem, 7.7vw, 6rem); height: auto; object-fit: contain; translate: -50% -100%; scale: var(--facing) 1; pointer-events: none; }
@media (max-width: 650px) {
  .desktop-road { display: none; }
  .mobile-road { display: block; }
  .scene > .journey-car { top: var(--my); left: var(--mx); width: clamp(3.95rem, 16.5vw, 4.75rem); scale: var(--mobile-facing) 1; }
}
.activity-panel { display: grid; gap: .8rem; }
.activity-panel > p, .activity-panel figure { margin: 0; }
.activity-panel > .primary { justify-self: center; }
.activity-panel .secondary, .activity-panel .primary { white-space: normal; }
.activity-illustration, .anniversary-photo, .complete-map { display: block; width: 100%; height: auto; border-radius: .35rem; margin: .8rem 0; }
.game-caption, .budget-counter { color: var(--muted); font-size: .95rem; }
.choice-cards, .relief-tray { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice-cards { justify-content: center; }
.choice-group { padding: .7rem; border: 1px solid var(--line); border-radius: .35rem; background: #fcf6eb; }
.choice-group h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.choice-card { display: grid; align-content: center; min-height: 2.75rem; padding: .45rem .55rem; border: 1px solid #c0b4a5; border-radius: .3rem; background: #f5efe5; text-align: left; }
.choice-card span { font-size: .8rem; color: var(--muted); }
.activity-panel [aria-pressed="true"] { background: #dce8e6; border-color: #5a798a; color: #24394b; box-shadow: inset 0 0 0 1px #5a798a; }
.heat-meter { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.heat-meter p { margin: 0; }
.heat-meter progress { width: min(13rem, 50%); height: .9rem; accent-color: #a45244; }
.sauce-tray { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .35rem; }
.sauce-tray li { display: grid; grid-template-columns: 1.05rem minmax(0,1fr); column-gap: .3rem; padding: .4rem .45rem; background: #f3ebde; border: 1px solid #d2c1a8; border-radius: .25rem; }
.sauce-tray li span { color: #794638; font-size: .79rem; font-weight: 700; }
.sauce-tray li strong { font-size: .85rem; line-height: 1.25; }
.sauce-tray li small { grid-column: 2; color: var(--muted); }
.sauce-tray .sauce-done { background: #dce9e3; }
.sauce-tray .sauce-now { border-color: #a15b4b; background: #fae7d6; }
.road-board, .basket { width: min(100%,22rem); display: grid; grid-template-columns: repeat(var(--columns),minmax(0,1fr)); gap: .25rem; margin-inline: auto; }
.road-tile, .basket-square { position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid #b9ad94; border-radius: .28rem; background: #dfd0b5; }
.road-tile svg { display: block; width: 100%; height: 100%; transition: transform 180ms ease; }
.road-tile svg path { stroke: #586977; stroke-width: 10; }
.road-tile svg circle { fill: #586977; }
.road-in { border-left: 5px solid #994d42; }
.road-out { border-right: 5px solid #466b58; }
.caption-paper, .finale-copy blockquote, .reward-paper blockquote { padding: .65rem .7rem; margin: .5rem 0; background: #e6edeb; border-left: 3px solid #a4775c; font: 1.15rem/1.5 var(--serif); }
.canyon-game { max-width: 29rem; margin-inline: auto; }
.canyon-map { display: block; width: 100%; border-radius: .55rem; border: 1px solid #b6a283;
  box-shadow: inset 0 0 2.25rem #86684522; background: radial-gradient(ellipse at 72% 22%, #fbf4e3, #eee1c7 86%);
  touch-action: none; user-select: none; cursor: crosshair; }
.canyon-map:focus-visible { outline: 3px solid var(--dusty, #5b778d); outline-offset: 3px; }
.canyon-map[tabindex="-1"] { touch-action: auto; cursor: default; }
.canyon-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.canyon-edge { stroke: #a69176; stroke-width: 23; }
.canyon-surface { stroke: #62747b; stroke-width: 17; }
.canyon-road-grain { stroke: url(#canyon-road-grain); stroke-width: 17; }
.canyon-stripe { stroke: #f2d4a2; stroke-width: 1.65; stroke-dasharray: 6 6; }
.canyon-marker { pointer-events: none; }
.canyon-target { fill: #fbf2da50; stroke: #7c715c; stroke-width: 1.5; stroke-dasharray: 3 4; }
.canyon-badge { fill: #344a60; stroke: #fcf1db; stroke-width: 1.5; }
.canyon-start .canyon-badge { fill: #805246; }
.canyon-finish .canyon-badge, .canyon-visited .canyon-badge { fill: #40624f; }
.canyon-visited .canyon-target { fill: #a0ad9b58; stroke: #40624f; stroke-dasharray: none; }
.canyon-marker-number { fill: #fff8e9; text-anchor: middle; dominant-baseline: middle; font-size: 13px; font-weight: 750; paint-order: stroke; stroke: #344a60; stroke-width: 2px; }
.canyon-marker-label { fill: #594936; text-anchor: middle; font-size: 11px; font-weight: 750; letter-spacing: 1.4px; }
.canyon-car { pointer-events: none; filter: drop-shadow(0 1.5px 1.4px #23171160); }
.canyon-fault { fill: #e498803b; stroke: #8c3e35; stroke-width: 2.5; stroke-dasharray: 3 3; }
.canyon-cursor { fill: #fff6de; stroke: #304d63; stroke-width: 2; }
.canyon-feedback { min-height: 2.9em; margin: .45rem 0 !important; text-align: center; }
.canyon-tools, .metaphor-tools { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.canyon-tools button, .metaphor-tools button { min-height: 44px; }
.canyon-tools button { flex-basis: 100%; }
.canyon-tools button[hidden] { display: none; }
.canyon-tools button[data-road="guide"] { color: var(--muted); }
.metaphor-machine .caption-paper { display: flex; align-items: center; min-height: 5em; padding: .85rem 1rem; }
.metaphor-tools { margin-top: .8rem; }

.metaphor-examples { background: #f0ebdf; padding: .5rem .65rem; border-radius: .3rem; }
.metaphor-examples ul { padding-left: 1rem; }
.metaphor-cards { display: grid; gap: .5rem; }
.metaphor-card { display: flex; flex-wrap: wrap; align-items: center; gap: .36rem; padding: .45rem; border: 1px solid var(--line); border-radius: .35rem; }
.metaphor-card > div { display: flex; gap: .3rem; align-items: center; }
.metaphor-card .object-icon { width: 2rem; height: 2rem; }
.metaphor-card label { font-weight: 650; margin: 0; }
.metaphor-card select { width: 100%; min-height: 2.75rem; background: #fffaf0; padding: .25rem; font-size: 1rem; border: 1px solid var(--line); border-radius: .25rem; }
.seek-board { position: relative; min-height: 19rem; border: 1px solid var(--line); border-radius: .4rem; background: repeating-linear-gradient(0deg,#c2926e 0 7%,#e6cb9f 7% 10%,#b88c6b 10% 11%,#e2c6a6 11% 30%); background-size: 100% 100%; overflow: hidden; }
.seek-picnic { background: repeating-linear-gradient(45deg,#dbbfa5 0 12px,#eed8a9 12px 25px,#c5aba4 25px 36px); }
.seek-object { position: absolute; top: var(--y); left: var(--x); transform: translate(-50%,-50%); display: grid; place-items: center; width: 3.75rem; height: 3.75rem; padding: 0; border: 0; border-radius: .25rem; background: transparent; }
.seek-object:disabled { opacity: .4; }
.object-icon { width: 100%; height: 100%; fill: #ecd9b2; stroke: #414f5c; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.object-book, .object-bookmark, .object-cup { fill: #94afbd; }
.object-car { fill: #ae5b4b; }
.object-ribbon, .object-tub { fill: #be94a2; }
.find-clue { font: 1.15rem/1.45 var(--serif); }
.sunrise { position: relative; min-height: 13.5rem; margin: .6rem 0; border-radius: .35rem; overflow: hidden; background: var(--sky); isolation: isolate; animation: dawn-appear .85s ease both; }
.dawn-0 { --sky:linear-gradient(#273b5a,#7891aa); --sun-y:90%; }
.dawn-1 { --sky:linear-gradient(#546589,#bc899a); --sun-y:78%; }
.dawn-2 { --sky:linear-gradient(#859eb4,#e4a892); --sun-y:66%; }
.dawn-3 { --sky:linear-gradient(#9eb5be,#f8cca1); --sun-y:52%; }
.dawn-sun { position: absolute; width: 3.4rem; height: 3.4rem; background: #f9da9b; border-radius: 50%; left: 61%; top: var(--sun-y); animation: rising .9s ease-out both; }
.dawn-horizon { position: absolute; inset: 55% 0 0; background: #748889; clip-path: polygon(0 37%,22% 16%,40% 54%,60% 34%,79% 60%,100% 30%,100% 100%,0 100%); }
.dawn-window { position: absolute; inset: 0; border: 8px solid #715848; background: linear-gradient(90deg,transparent 49%,#715848 49% 51%,transparent 51%); }
.sunrise figcaption { position: absolute; top: .85rem; left: 1rem; padding: .2rem .55rem; background: #f5efe5; border-radius: .25rem; }
@keyframes dawn-appear { from { opacity: .55; } to { opacity: 1; } }
@keyframes rising { from { transform: translateY(1.35rem); } to { transform: translateY(0); } }
.photo-grid { aspect-ratio: 8 / 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 2px; padding: 3px; background: #886a60; box-shadow: 0 .35rem 1rem #100c264a; }
.photo-grid.photo-restored { gap: 0; }
.photo-grid.portrait-restoration {
  position: relative; width: min(100%, 24rem); margin-inline: auto; aspect-ratio: 3 / 4;
  padding: 0; outline: 3px solid #886a60;
}
.photo-restored .photo-tile:disabled { opacity: 1; }
.anniversary-dissolve { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.anniversary-message { margin-top: 1rem; }
.anniversary-message > .primary, #recording-controls > button, #reveal-phrase {
  display: flex; width: fit-content; margin-inline: auto;
}
.photo-tile { position: relative; padding: 0; border: 0; overflow: hidden; touch-action: none; background: #7c7e84; }
.photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo-tile[aria-pressed="true"] { z-index: 1; outline: 3px solid #ffefb1; outline-offset: -3px; }
.photo-tile.dragging { z-index: 3; translate: var(--drag-x) var(--drag-y); box-shadow: 0 3px 10px #1c1727a6; pointer-events: none; }
.gelato-stage { position: relative; width: min(100%, 30rem); aspect-ratio: 1; margin: auto; container-type: inline-size;
  border-radius: .6rem; border: 1px solid #ba9b7b; overflow: hidden; isolation: isolate;
  background: linear-gradient(#83b3c4 0 48%,#6ca5a9 48% 82%,#d3b699 82%); }
.gelato-stage[role="button"] { cursor: pointer; touch-action: manipulation; }
.gelato-scenery { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center;
  filter: saturate(.45) contrast(.85) brightness(1.1); }
.gelato-counter { position: absolute; inset: 82% 0 0; background: radial-gradient(ellipse at 50% 12%,#613e314f,transparent 48%),
  repeating-linear-gradient(4deg,#75503412 0 1px,transparent 1px 7px), linear-gradient(110deg,#d2a378,#f3d8af 67%,#c48a58);
  border-top: 3px solid #fff0d188; }
.gelato-stack { position: absolute; inset: 0 0 14%; rotate: var(--tilt); transform-origin: 50% 100%; pointer-events: none; }
.gelato-stack.stack-landing { animation: gelato-settle .55s ease-out both; }
.gelato-cone { position: absolute; left: 50%; bottom: 0; translate: -50% 10%; width: 25cqw; height: 25cqw; object-fit: contain; }
.gelato-piece { position: absolute; z-index: calc(2 + var(--layer)); left: calc(50% + var(--slot) * 14cqw);
  bottom: calc(11.5cqw + var(--layer) * 10cqw); width: 26cqw; height: 23cqw; translate: -50% 0; }
.gelato-paint { display: block; width: 100%; height: 100%; object-fit: contain; }
.gelato-paint, .gelato-cone { filter: drop-shadow(1px 0 #211713c9) drop-shadow(-1px 0 #211713c9)
  drop-shadow(0 -1px #211713bf) drop-shadow(0 1px #211713e0) drop-shadow(0 2px 2px #38241555); }
.gelato-preview { bottom: calc(37cqw + var(--layer) * 9cqw); z-index: 10; pointer-events: none; }
.gelato-cone.fallback-dessert { background: repeating-linear-gradient(47deg,#b97848 0 2px,transparent 2px 6px),
  repeating-linear-gradient(-47deg,#a56e4d 0 2px,#dbad75 2px 6px); clip-path: polygon(11% 3%,89% 3%,54% 99%,47% 98%); }
.gelato-paint.fallback-dessert { background: radial-gradient(ellipse at 32% 24%,#ffedcfaa,transparent 50%),
  repeating-linear-gradient(5deg,#5b403427 0 1px,transparent 2px 5px),var(--flavor); border-radius: 53% 47% 42% 58% / 56% 60% 40% 44%; }
.gelato-paint.fallback-dessert.flavor-2 { border-radius: 54% 46% 58% 42% / 66% 50% 50% 34%; }
.gelato-paint.fallback-dessert.flavor-3 { border-radius: 41% 59% 54% 46% / 63% 58% 42% 37%; }
.gelato-paint.fallback-dessert.flavor-4 { border-radius: 55% 45% 43% 57% / 63% 48% 52% 37%; }
.gelato-paint.fallback-dessert.flavor-5 { border-radius: 38% 62% 53% 47% / 57% 60% 40% 43%; }
.gelato-land { animation: gelato-landing .48s cubic-bezier(.22,.7,.26,1) both; transform-origin: 50% 85%; }
.gelato-fall { animation: gelato-falling .58s ease-in both; }
.gelato-slip .gelato-stack { animation: gelato-wobble .6s ease-out both; }
@keyframes gelato-landing { 0% { transform: translateY(-65%) scale(.88,1.08); } 66% { transform: scale(1.12,.8); }
  84% { transform: translateY(-6%) scale(.98,1.04); } 100% { transform: none; } }
@keyframes gelato-falling { 0% { transform: none; } 45% { transform: translateY(90%) rotate(16deg); }
  100% { transform: translateY(calc(180% + var(--layer) * 40%)) rotate(84deg); opacity: 0; } }
@keyframes gelato-settle { 0% { rotate: var(--previous-tilt); } 62% { rotate: calc(var(--tilt) * 1.25); } 100% { rotate: var(--tilt); } }
@keyframes gelato-wobble { 0% { rotate: var(--previous-tilt); } 50% { rotate: calc(var(--tilt) * 1.28); } 100% { rotate: var(--tilt); } }
.gelato-flavor { text-align: center; margin: .4rem 0 !important; color: var(--muted); }
.gelato-cue { margin: 0; text-align: center; color: var(--muted); }
.gelato-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem; }
@media (prefers-reduced-motion: reduce) {
  .gelato-stack, .gelato-land, .gelato-preview { animation: none !important; transition: none; }
  .gelato-fall { display: none; }
}
.note-pads { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.note-pads button { min-width: 2.8rem; }
.bee-tray { position: relative; width: 8.7rem; height: 8.35rem; margin-inline: auto; }
.bee-tray button {
  position: absolute; left: 50%; top: 50%; translate: calc(-50% + var(--dx, 0rem)) calc(-50% + var(--dy, 0rem));
  width: 3.1rem; height: 2.75rem; min-height: 0; padding: 0; border: 0; background: #dfebee; font-size: 1.2rem;
  clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
}
.bee-tray button:nth-child(2) { --dy: -2.8rem; }
.bee-tray button:nth-child(3) { --dx: 2.45rem; --dy: -1.4rem; }
.bee-tray button:nth-child(4) { --dx: 2.45rem; --dy: 1.4rem; }
.bee-tray button:nth-child(5) { --dy: 2.8rem; }
.bee-tray button:nth-child(6) { --dx: -2.45rem; --dy: 1.4rem; }
.bee-tray button:nth-child(7) { --dx: -2.45rem; --dy: -1.4rem; }
.bee-tray button:focus-visible { background: #b5cad6; }
.bee-tray button[aria-label] { background: #e8ce9d; }
.note-track { color: var(--muted); min-height: 1.4rem; }
.note-pads .lit-note { background: #3f647a; color: white; outline: 3px solid #d4ad75; }
.dolma-worktop { display: grid; place-items: center; min-height: 15rem; background: #e7d9c1; border-radius: .45rem; }
.grape-leaf { position: relative; width: min(94%, calc(10rem + var(--size) * 1.6rem)); aspect-ratio: 1.35; background: linear-gradient(130deg,#a8b68a,#617e65); border-radius: 50% 12% 46% 16%; box-shadow: inset -.25rem -.25rem 1rem #51695080; transform: rotate(-12deg); --size: 1; }
.leaf-2 { --size: 2; }.leaf-3 { --size: 3; }.leaf-4 { --size: 4; }
.grape-leaf i { position: absolute; width: 2.65rem; height: 1.9rem; background: #dec193; border-radius: 40%; left: calc(40% + var(--grain) * .48rem); top: calc(47% - var(--grain) * .23rem); }
.grape-leaf .filling-paint { transform: scale(1.3); filter: drop-shadow(0 0 1.5px #191411) drop-shadow(0 1px 1px #191411); }
.dolma-single .grape-leaf:not(.folded-dolma) { width: min(100%, 24rem); aspect-ratio: 1.12; }
.dolma-single .dolma-grains i {
  left: 50%; top: 54%; translate: -50% -50%;
  width: calc(23% + var(--portion) * 9%); height: auto; aspect-ratio: 1;
}
.dolma-single .filling-paint { transform: none; }
.dolma-single .folded-dolma-paint { width: min(75%, 14rem); height: 10rem; }
.grape-leaf.folding { animation: fold-leaf .37s ease both; }
@keyframes fold-leaf { 55% { transform: rotate(-12deg) scaleX(.69); } 100% { transform: rotate(-6deg) scaleY(.55) scaleX(.66); border-radius: 1rem; } }
.creamery-count { margin: .25rem 0 .45rem !important; text-align: center; color: var(--muted); font-size: .88rem; }
.flavor-tray { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
@media (min-width: 560px) { .flavor-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flavor { display: grid; grid-template-rows: 2.65rem auto; justify-items: center; align-content: start;
  align-items: center; gap: .25rem; min-height: 5.45rem; padding: .35rem .24rem; text-align: center; }
.flavor .flavor-label { color: inherit; font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; }
.flavor .flavor-paint, .flavor-swatch { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; margin: 0; }
.flavor i { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid #725d50; }
.creamery-actions { display: grid; justify-items: center; margin-top: .65rem; }
.tub-card { width: min(24rem, 100%); margin: .6rem auto; text-align: center; }
.tub-card figcaption { color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: .25rem; }
.tub-lid { width: 100%; height: .8rem; background: #344a60; border-radius: .5rem .5rem 0 0; }
.tub-paper { padding: .6rem .45rem; background: #f3e5ce; border: 1px solid #b58260; border-radius: 0 0 1rem 1rem; }
.tub-paper strong { font: 1.16rem/1.25 var(--serif); overflow-wrap: anywhere; }
.tub-stripe { display: flex; min-height: .3rem; margin: .35rem 0; }.tub-stripe i { flex: 1; }
.basket { padding: .55rem; background: #b58f65; border-radius: .5rem; }
.basket-square { background: #e6cfaa; }
.basket-square:disabled { background: #9c7658; cursor: default; opacity: 1; }
.basket-square.is-packed {
  background: color-mix(in srgb, var(--piece-color) 72%, #f5efe5);
  border-color: #786853;
}
.basket-square.is-selected { box-shadow: inset 0 0 0 2px #344a60; }
.picnic-game { width: min(100%, 22rem); margin-inline: auto; padding-top: 2rem; }
.picnic-tray {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem;
}
.picnic-tray-slot { position: relative; }
.picnic-tray-item {
  display: grid; grid-template-rows: 2.65rem 1fr; align-items: start;
  justify-items: center; gap: .15rem; width: 100%; height: 100%; min-width: 0; padding: .2rem;
  border: 1px solid transparent; border-radius: .4rem; background: transparent;
  font-size: .8rem; line-height: 1.15; overflow-wrap: anywhere;
}
.picnic-tray-art { position: relative; width: 100%; height: 100%; --art-width: 100%; --art-height: 100%; }
.picnic-controls {
  position: absolute; z-index: 1; bottom: calc(100% + .15rem); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: .2rem; width: max-content; padding: 0 .2rem 0 .35rem;
  border: 1px solid #b9ad94; border-radius: .4rem; background: #fcf7eb;
  box-shadow: 0 2px 5px #4a37282b; pointer-events: auto;
}
.picnic-controls .secondary { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.3rem; line-height: 1; border: 0; }
.picnic-footprint { display: grid; grid-template-columns: repeat(var(--columns), .7rem); gap: 2px; }
.picnic-footprint i { aspect-ratio: 1; border: 1px solid #547385; border-radius: 2px; background: #8ba4b5; }
.picnic-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; font-weight: bold; color: #344a60;
}
.picnic-tray-item .picnic-fallback { background: var(--piece-color); border-radius: .3rem; }
.sunset-strips { width: min(100%,23rem); display: grid; margin-inline: auto; border: 1px solid #886a66; border-radius: .35rem; overflow: hidden; }
.sunset-strips button { min-height: 2.8rem; border: 0; }.sunset-strips [aria-pressed="true"] { outline: 3px solid #fff2ce; outline-offset: -5px; }
.letter-envelope { position: relative; display: block; width: min(13rem,90%); aspect-ratio: 1.6; margin-inline: auto; border: 1px solid #a67f59; border-radius: .25rem; background: linear-gradient(30deg,transparent 49%,#ba9573 50%,transparent 51%),linear-gradient(-30deg,transparent 49%,#ba9573 50%,transparent 51%),#e9d8b5; }
.letter-envelope::after { content:""; position:absolute; width:1.2rem; height:1.2rem; border-radius:50%; background:#9d5d52; inset:45% auto auto calc(50% - .6rem); }
.letter-envelope.envelope-open { background: #e9d8b5; }
.envelope-open::after { width: 82%; height: 68%; inset: 8% 9% auto; border-radius: .15rem; background: var(--cream); }
.envelope-paint { display: block; width: min(13rem, 90%); margin: auto; }
.envelope-trigger { width: min(13rem, 90%); margin-inline: auto; padding: 0; border: 0; border-radius: .25rem; background: none; }
.envelope-trigger > :is(.letter-envelope, .envelope-paint) { width: 100%; }
.road-tile-face, .road-paint { display: block; width: 100%; height: 100%; object-fit: contain; transition: rotate 180ms; }
.sauce-paint { width: 2.2rem; height: 2.2rem; object-fit: contain; grid-column: 2; }
.relief-paint, .flavor-paint { width: 1.65rem; height: 1.65rem; object-fit: contain; vertical-align: middle; margin-inline-end: .25rem; }
.leaf-paint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.grape-leaf.has-leaf-paint, .grape-leaf i:has(.filling-paint) { background: transparent; box-shadow: none; }
.filling-paint { display: block; width: 100%; height: 100%; object-fit: contain; }
.folded-dolma-paint { width: 3.65rem; height: 2.15rem; object-fit: contain; }
.basket { position: relative; }
.basket-art, .basket-tools { position: absolute; inset: .55rem; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); gap: .25rem; pointer-events: none; }
.basket-tools-row { position: relative; grid-column: 1 / -1; }
.basket-tools-row .picnic-controls { left: clamp(4rem, var(--piece-center), calc(100% - 4rem)); }
.picnic-placement { position: relative; }
.picnic-paint { position: absolute; left: 50%; top: 50%; width: var(--art-width); height: var(--art-height);
  translate: -50% -50%; rotate: var(--turn); object-fit: contain; }
.dolma-finished { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem; }
.grape-leaf.folded-dolma { width: 3.5rem; height: 1.65rem; border-radius: 30%; }
.wishlist { background:#f2e7d4; border-radius:.45rem; padding:.75rem 1rem; text-align:left; margin:.8rem 0; font-family:system-ui,sans-serif; font-size:1rem; }
.wishlist h2 { margin: .45rem 0; }.wishlist h3 { font-size:1rem; margin:.75rem 0 .3rem; }
.wishlist ul { margin:.3rem 0; padding-left:1.25rem; }
.recording, .typed-phrase { margin: .9rem 0; }.recording audio, .finale-copy audio { max-width:100%; }
@media (prefers-reduced-motion: reduce) { .grape-leaf.folding, .sunrise, .dawn-sun, .scoop { animation:none; } }

.food-card { grid-template-columns: 2.2rem minmax(0, 1fr); align-items: center; column-gap: .4rem; flex: 1 1 9rem; }
.food-card .object-icon { grid-row: 1 / span 2; width: 2.2rem; height: 2.2rem; }
.food-card span { grid-column: 2; }
.itinerary-list { display: grid; }
.itinerary-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: .55rem; text-align: left; }
.itinerary-row { width: 100%; min-height: 44px; padding: .08rem .35rem; border: 0;
  border-radius: .3rem; background: transparent; color: inherit; }
.itinerary-row strong { font-size: .89rem; font-weight: 550; line-height: 1.23; }
.itinerary-row[aria-pressed="true"] { background: #e0e9e8; }
.itinerary-row[aria-pressed="true"] strong { font-weight: 700; }
.itinerary-row > span:last-child { white-space: nowrap; color: var(--muted); font-size: .8rem; }
.itinerary-icon { display: block; width: 40px; height: 40px; object-fit: contain; }
.completion-postcard { display: block; width: min(100%, 27rem); height: auto; margin-inline: auto; border-radius: .35rem; }
.completion-postcard { max-height: 24rem; object-fit: contain; }
.christmas-letter { margin: 1.25rem 0; padding-block: .3rem; border-block: 1px solid var(--line); text-align: left; }
.christmas-envelope { width: min(100%, 32rem); margin: 1.5rem auto; }
.christmas-envelope-button,
.letter-pocket {
  border: 1px solid #ad8969;
  border-radius: .3rem;
  background: linear-gradient(26deg, transparent 49.7%, #ba987b 50%, transparent 50.3%),
    linear-gradient(-26deg, transparent 49.7%, #ba987b 50%, transparent 50.3%), #ead8b6;
}
.christmas-envelope-button {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 19rem);
  aspect-ratio: 1.9;
  margin: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.christmas-envelope-button::before {
  content: '';
  position: absolute;
  inset: 0 0 36%;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(#f3e6ce, #dbbd98);
}
.christmas-envelope-button::after {
  content: '';
  position: absolute;
  top: 64%;
  left: 50%;
  translate: -50% -50%;
  width: 1.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9d5d52;
  box-shadow: inset 0 0 0 3px #b77262, 0 1px 3px #6045275c;
}
.christmas-envelope-button[hidden] { display: none; }
.letter-scroll-cue { margin: 0 0 .45rem; font-size: .9rem; }
.letter-sleeve { position: relative; --letter-window: clamp(10rem, 34svh, 20rem); }
.letter-scroll {
  height: var(--letter-window);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: .25rem .25rem 0 0;
  scrollbar-color: #ad8969 transparent;
  scrollbar-width: thin;
}
.letter-scroll::before { content: ''; display: block; height: calc(var(--letter-window) - 3.25rem); }
.letter-scroll img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7cbbb;
  border-radius: .2rem .2rem 0 0;
  background: #fffefa;
}
.letter-pocket {
  height: clamp(3rem, 14vw, 5rem);
  border-radius: 0 0 .3rem .3rem;
  box-shadow: 0 -.2rem .45rem #6045272e;
}
.letter-full-size { display: inline-flex; align-items: center; min-height: 44px; margin-top: .3rem; font-size: .9rem; }
@media (max-width: 500px) {
  .christmas-envelope { width: calc(100% + 1rem); margin-inline: -.5rem; }
}
.music-instrument { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.music-instrument .object-icon { width: 2.8rem; height: 2.8rem; }
.music-instrument p { margin: 0; }
.relief-tray { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.relief-tray button { min-width: 0; min-height: 44px; padding: .3rem .15rem; font-size: .85rem; line-height: 1.2; }
.relief-tray .relief-paint { display: block; margin: 0 auto .15rem; }
.dolma-worktop .leaf-paint { filter: drop-shadow(0 0 1px #191411); }
.activity-toast {
  position: fixed; left: 50%; top: calc(.75rem + env(safe-area-inset-top)); z-index: 10;
  translate: -50% 0; width: max-content; max-width: calc(100% - 2rem); padding: .65rem 1rem;
  border-radius: .55rem; background: #344a60; color: #fffaf0; box-shadow: 0 3px 12px #24384955;
  text-align: center; pointer-events: none;
}
.trivia-question { text-align: center; font: 1.3rem/1.4 var(--serif); }
.trivia-clock { text-align: center; font: 600 3rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.trivia-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.trivia-choices[hidden], .trivia-clock[hidden], .jazz-trivia button[hidden] { display: none; }
.trivia-choices button { min-height: 44px; }
.trivia-choices [data-correct] { color: #213d2c; background: #c6dfc7; border-color: #5d7c64; opacity: 1; }
#recording-controls progress { display: block; width: 100%; accent-color: var(--blue); }
.seek-object .object-icon { object-fit: contain; }
.seek-spoons { position: relative; width: 100%; height: 100%; pointer-events: none; }
.seek-spoons img { position: absolute; inset: 0; transform: translateX(-10%); }
.seek-spoons img + img { transform: translateX(10%) rotate(9deg); }
.creamery-tools { display: flex; justify-content: center; align-items: center; gap: .25rem; margin: .3rem 0 .55rem; }
.creamery-tools img { width: 3rem; height: 2.6rem; object-fit: contain; }
.dolma-plate { width: 10rem; height: 7rem; object-fit: contain; }
.dolma-rolled-tray { display: flex; justify-content: center; gap: .3rem; margin-top: .3rem; }
.dolma-half-fold, .folding:has(.dolma-half-fold) .leaf-paint:not(.dolma-half-fold), .folding:has(.dolma-half-fold) .dolma-grains { visibility: hidden; }
.folding .dolma-half-fold { visibility: visible; }
.picnic-spoons img:first-child { margin-left: -10%; }
.picnic-spoons img + img { margin-left: 10%; }
.dolma-spill .grape-leaf { box-shadow: 0 0 0 .2rem #ae674e80; }
.dolma-loose .grape-leaf { outline: 2px dashed #a68258; outline-offset: .25rem; }
.scene.finale-route { margin: .7rem 0 1rem; }

.activity-panel img.object-icon { object-fit: contain; }
.with-tub-art .tub-illustration { position: relative; aspect-ratio: 810 / 600; container-type: inline-size; }
.with-tub-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.with-tub-art .tub-paper { position: absolute; left: 32%; top: 57%; width: 36%; translate: -50% -50%;
  padding: 0; border: 0; border-radius: 0; background: transparent; color: #503822; }
.with-tub-art .tub-paper strong { display: block; font-size: clamp(.8rem, 4.6cqw, 1.15rem); line-height: 1.12; text-wrap: balance; }
.with-tub-art .tub-stripe { width: 65%; min-height: .23rem; margin: .34rem auto 0; overflow: hidden; border-radius: .2rem; }
