.door-hit { color: inherit; text-decoration: none; }
.door-hit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.door-inner:has(.door-hit:focus-visible) { outline: 3px solid var(--wine); outline-offset: -3px; }
.advent-dialog {
  position: fixed; width: min(46rem, calc(100% - 1.5rem)); max-height: 91dvh;
  padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--chrome); color: var(--ink); overscroll-behavior: contain;
  box-shadow: 0 18px 80px #0008;
}
.advent-dialog::backdrop { background: rgb(8 16 13 / 78%); }
.advent-dialog .reading { width: 100%; min-height: auto; border: 0; padding: 0 clamp(1.2rem,5vw,3rem) 2rem; }
.advent-dialog .dateline { margin-top: .2rem; }
.advent-dialog .reading h1 { font-size: clamp(2rem,5.5vw,3.6rem); }
.advent-dialog .page-back { display: none; }
.advent-dialog [data-slot] { overflow-wrap: anywhere; }
.dismiss { position: sticky; z-index: 2; top: .5rem; display: grid; place-items: center; width: 42px; height: 42px; margin: .5rem .5rem 0 auto; border-radius: 50%; background: var(--chrome); color: var(--ink); border: 1px solid var(--line); font: 1.6rem/1 Georgia,serif; cursor: pointer; }
.back-to-doors { width: fit-content; padding-inline: .9rem; border-radius: 2rem; font: 600 .82rem/1.2 system-ui, sans-serif; }
.profile-dialog { width: min(32rem, calc(100% - 2rem)); }
.guest-card figure { margin: 1rem 0 0; }
.guest-card img, .guest-card video { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 6px; }
.guest-country, .guest-card figcaption { color: var(--subtle); }
@font-face {
  font-family: "Advent Flags";
  src: url("flags/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF;
}
.country-flag, .intro-entry select[name="country"], .intro-entry select[name="country"] option {
  font-family: "Advent Flags", "Segoe UI", system-ui, sans-serif;
}
.entry-button { display: inline-block; border: 1px solid var(--wine); border-radius: 30px; padding: .65rem 1.1rem; background: var(--ink); color: var(--chrome); font: 600 .92rem/1.4 system-ui,sans-serif; cursor: pointer; }
.entry-button:disabled { cursor: default; opacity: .75; }
.intro-entry { margin: 1.1rem 0; }
.intro-entry summary { list-style: none; }
.intro-entry summary::-webkit-details-marker { display: none; }
.intro-entry form { margin-top: 1rem; display: grid; gap: .9rem; }
.intro-entry form > div { display: grid; gap: .25rem; }
.intro-entry label { font-weight: 600; }
.intro-entry input:not([type="checkbox"],[type="hidden"]), .intro-entry textarea, .intro-entry select {
  width: 100%; min-width: 0; padding: .65rem; color: var(--ink); background: var(--chrome);
  border-radius: 5px; border: 1px solid var(--line); font: inherit;
}
.intro-entry textarea { resize: vertical; }
.intro-entry form > div:has([type="checkbox"]) { display: flex; align-items: flex-start; flex-direction: row-reverse; justify-content: flex-end; gap: .55rem; }
.intro-entry input[type="checkbox"] { flex: none; width: 1.15rem; height: 1.15rem; }
.intro-entry .entry-button { justify-self: start; }
.intro-entry .helptext, .intro-entry .errorlist, .guest-list { font-size: .88rem; }
.errorlist { padding-left: 1.2rem; color: var(--wine); }
.receipt { border-left: 3px solid var(--line); padding: .6rem 1rem; }
.intro-entry form > .madlib-worksheet { display: block; }
.madlib-worksheet p { line-height: 1.85; margin: 0 0 1.1rem; }
.madlib-blank { display: inline-grid; vertical-align: baseline; width: min(12ch,100%); margin: .15em .12em; text-align: center; }
.madlib-blank:has([name="phrase"]) { width: min(23ch,100%); }
.madlib-blank:has([name="days"],[name="minutes"]) { width: min(7ch,100%); }
.madlib-worksheet .madlib-blank input { padding: .2em .25em; text-align: center; border-radius: 0; border: 0; border-bottom: 2px solid var(--wine); font-size: 1rem; }
.madlib-blank input:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.madlib-blank label { padding-top: .18rem; color: var(--subtle); font: 500 .76rem/1.25 system-ui,sans-serif; }
.madlib-blank .errorlist { padding: 0; line-height: 1.3; }
.madlib-result { padding: 1rem clamp(.85rem,3vw,1.5rem); margin-block: 1.2rem; border: 1px solid var(--line); border-radius: .6rem; }
.madlib-result h2, .madlib-gallery h2 { margin-top: 0; }
.madlib-gallery { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.madlib-gallery details { padding: .5rem 0; }
.madlib-gallery summary { cursor: pointer; }
.community-tree { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.community-tree h2 { font-size: clamp(1.6rem,4vw,2.5rem); margin: 0; }
.community-tree > p { margin: .3rem 0 .9rem; }
.fir-scene { position: relative; width: min(100%,31rem); aspect-ratio: 4/5; margin: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 48% 48% 5px 5px / 32% 32% 5px 5px; background: #15221c url("community-fir.webp?v=20261129a") center / 100% 100% no-repeat; }
.tree-viewport { max-width: 100%; overflow: auto; }
.tree-zoom + label { cursor: pointer; font-size: .9rem; }
.tree-zoom { margin: 0 .45rem .9rem 0; accent-color: var(--wine); }
.tree-zoom:checked ~ .tree-viewport { max-height: 65vh; }
.tree-zoom:checked ~ .tree-viewport .fir-scene { width: max(100%, var(--zoom-width)); }
.fir-scene { container-type: inline-size; }
.bauble {
  position: absolute; left: calc(var(--x) * .01%); top: calc(var(--y) * .01%);
  transform: translate(-50%,-50%) rotate(var(--tilt)); width: min(46px, calc(var(--diameter) * .01%));
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #e2c277; color: #fff3cd; font: bold min(1rem, calc(var(--diameter) * .0035cqi))/1 Georgia,serif;
  text-decoration: none; background: radial-gradient(circle at 30% 21%,#cf9688,#863b42 39%,#51212f 85%);
  box-shadow: 0 3px 9px #0008,inset -3px -3px 5px #491420;
}
.bauble::before { content: ""; position: absolute; left: 36%; top: -11%; width: 28%; height: 13%; background: #d7b56d; border-radius: 2px; }
.bauble::after { content: ""; position: absolute; inset: -9%; }
.bauble.color-green { background: radial-gradient(circle at 31% 20%,#80a79b,#2c6152 45%,#183b32); }
.bauble.color-gold { background: radial-gradient(circle at 31% 20%,#fff0ba,#debd70 45%,#936628); color: #302415; }
.bauble:hover, .bauble:focus-visible { outline: 3px solid #fff0be; outline-offset: 2px; }
.guest-list { margin-top: 1rem; }
.guest-list summary { cursor: pointer; }
.guest-list li { padding: .3rem; }
body:has(.advent-dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .advent-dialog { scroll-behavior: auto; } }
.masthead:has(.advent-languages) { flex-wrap: wrap; gap: .5rem 1rem; }
.advent-languages { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.advent-languages a { color: inherit; padding: .35rem .5rem; font: 500 .85rem/1.4 system-ui,sans-serif; text-decoration: none; }
.advent-languages a[aria-current] { text-decoration: underline; text-underline-offset: .25em; font-weight: 700; }
.advent-languages a:hover { text-decoration: underline; }
.reading .advent-languages { margin: .45rem 0 .9rem; }
.board-colours { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; min-width: 0; margin: 0; padding: .7rem; border: 1px solid var(--line); border-radius: 6px; }
.board-colours legend { padding-inline: .35rem; font-weight: 600; }
.board-colours label { display: block; font-size: .88rem; }
.intro-entry .board-colours input[type="color"] { display: block; padding: .2rem; height: 2.6rem; cursor: pointer; }
[data-board-preview] h3 { margin: 0 0 .5rem; }
.board-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 1rem; align-items: start; }
.board-card { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .5rem; background: var(--chrome); }
.madlib-gallery .board-post { padding: .75rem 1rem; }
.board-layouts { border: 0; padding: 0; margin: 0; min-width: 0; }
.board-layouts legend { margin-bottom: .45rem; font-weight: 600; }
.layout-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
.layout-option { position: relative; display: grid; justify-items: center; align-content: center; gap: .3rem; padding: .55rem .15rem; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; text-align: center; cursor: pointer; }
.layout-option:has(:checked) { box-shadow: inset 0 0 0 2px currentColor; }
.layout-option:has(:focus-visible) { outline: 2px solid currentColor; outline-offset: 3px; }
.intro-entry .layout-option input[type="radio"] { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.layout-icon { position: relative; display: block; width: 2.7rem; height: 1.6rem; }
.layout-icon i { position: absolute; width: 35%; height: 67%; left: 7%; top: 11%; border: 1px solid currentColor; background: var(--chrome); transform: rotate(-12deg); }
.layout-icon i:nth-child(2) { left: 35%; top: 23%; transform: rotate(6deg); }
.layout-icon i:nth-child(3) { left: 58%; top: 4%; transform: rotate(12deg); }
.layout-icon[data-style="orbits"] i { border-radius: 50%; height: auto; aspect-ratio: 1; }
.layout-icon[data-style="orbits"] i:nth-child(2) { width: 42%; top: 34%; }
.layout-icon[data-style="arches"] i { width: 26%; height: 72%; transform: none; border-radius: 100% 100% 0 0; }
.layout-icon[data-style="arches"] i:nth-child(3) { left: 63%; }

.board-art { --tone-1: #28463b; --tone-2: #e8ba83; --tone-3: #ba6b6a; position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; justify-content: center; margin: 0; min-width: 0; min-height: 10rem; padding: 7%; overflow: hidden; border-radius: .55rem; background: linear-gradient(135deg,var(--tone-1),var(--tone-2) 54%,var(--tone-3)); color: #231e24; }
.board-art::before { content: ""; position: absolute; z-index: -1; inset: 3%; border: 1px solid rgb(255 255 255 / 50%); pointer-events: none; }
.art-photos { position: relative; aspect-ratio: 1.48; }
.art-photos[data-count="0"] { display: none; }
.art-photo { position: absolute; display: block; left: var(--x); top: var(--y); width: var(--w); height: var(--h); transform: rotate(var(--tilt,0deg)); }
.art-photo:focus-visible { z-index: 2; outline: 3px solid #242027; outline-offset: 3px; }
.art-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-note { position: relative; align-self: flex-start; max-width: 100%; padding: .65em 1em; background: #fff8eaf2; color: #292323; box-shadow: 0 2px 7px #261c1828; overflow-wrap: anywhere; }
.art-note strong { display: block; font: italic 600 clamp(1.2rem,7cqi,2.8rem)/1.12 Georgia,serif; }
.board-art .art-note p { margin: .3rem 0 0; color: inherit; font: 500 clamp(.85rem,3.4cqi,1.05rem)/1.45 system-ui,sans-serif; white-space: pre-line; }
.art-note p:empty, .art-note:not(:has(strong:not(:empty),p:not(:empty))) { display: none; }
.board-art[data-layout="scrapbook"] .art-photo { background: #fffaf0; padding: 1.1% 1.1% 3.6%; box-shadow: 0 4px 9px #281e2445; }
.board-art[data-layout="scrapbook"] .art-photo::after { content: ""; position: absolute; top: -3%; left: 31%; width: 36%; height: 8%; background: #f7e6bdc9; transform: rotate(-7deg); }
.art-photo:nth-child(1) { --x: 4%; --y: 3%; --w: 43%; --h: 49%; --tilt: -7deg; }
.art-photo:nth-child(2) { --x: 51%; --y: 2%; --w: 43%; --h: 48%; --tilt: 6deg; }
.art-photo:nth-child(3) { --x: 8%; --y: 52%; --w: 42%; --h: 48%; --tilt: 4deg; }
.art-photo:nth-child(4) { --x: 54%; --y: 52%; --w: 43%; --h: 47%; --tilt: -5deg; }
.art-photos[data-count="3"] .art-photo:first-child { --y: 12%; --h: 74%; }
.art-photos[data-count="3"] .art-photo:nth-child(3) { --x: 51%; }
.art-photos[data-count="2"] .art-photo { --h: 73%; --y: 8%; }
.art-photos[data-count="2"] .art-photo:nth-child(2) { --y: 20%; }
.art-photos[data-count="1"] .art-photo { --x: 12%; --y: 4%; --w: 76%; --h: 90%; --tilt: -3deg; }
.board-art[data-layout="scrapbook"] .art-photos[data-count="1"] img { object-fit: contain; }
.board-art[data-layout="scrapbook"] .art-note { margin: .7em 3% 0; transform: rotate(-1deg); }

.board-art[data-layout="orbits"] { background: radial-gradient(ellipse at 76% 22%,var(--tone-3),transparent 62%),linear-gradient(30deg,var(--tone-1),var(--tone-2) 76%); }
.board-art[data-layout="orbits"]::before { inset: 10% -13%; border-radius: 50%; transform: rotate(-19deg); box-shadow: 0 0 0 10px #ffffff24; }
.board-art[data-layout="orbits"] .art-photo { height: auto; aspect-ratio: 1; border-radius: 50%; padding: 1%; background: #fff8e6cf; box-shadow: 0 4px 14px #211c2733; transform: none; }
.board-art[data-layout="orbits"] .art-photo img { border-radius: inherit; }
[data-layout="orbits"] .art-photo:nth-child(1) { --x: 4%; --y: 6%; --w: 42%; }
[data-layout="orbits"] .art-photo:nth-child(2) { --x: 48%; --y: 0%; --w: 28%; }
[data-layout="orbits"] .art-photo:nth-child(3) { --x: 36%; --y: 60%; --w: 24%; }
[data-layout="orbits"] .art-photo:nth-child(4) { --x: 65%; --y: 43%; --w: 33%; }
[data-layout="orbits"] [data-count="3"] .art-photo:nth-child(3) { --x: 57%; --y: 46%; --w: 34%; }
[data-layout="orbits"] [data-count="2"] .art-photo:nth-child(2) { --x: 50%; --y: 29%; --w: 42%; }
[data-layout="orbits"] [data-count="1"] .art-photo { --x: 21%; --y: 4%; --w: 58%; }
.board-art[data-layout="orbits"] .art-note { align-self: center; border-radius: 1.4em; margin-top: .5em; text-align: center; background: #191722e8; color: #fffaf1; }

.board-art[data-layout="arches"] { background: linear-gradient(160deg,var(--tone-3),var(--tone-2) 46%,var(--tone-1)); }
.board-art[data-layout="arches"] .art-note { order: -1; align-self: center; margin-bottom: .85em; text-align: center; border-block: 1px solid #695247; }
.board-art[data-layout="arches"] .art-note strong { font-style: normal; }
[data-layout="arches"] .art-photos:not([data-count="0"]) { display: flex; justify-content: center; align-items: flex-end; gap: 2.5%; aspect-ratio: 1.95; }
.board-art[data-layout="arches"] .art-photo { position: static; transform: none; width: 45%; max-width: 70%; flex: 0 1 auto; height: 83%; padding: 1%; background: #fff7dfdb; border-radius: 50% 50% 2px 2px / 27% 27% 2px 2px; }
.board-art[data-layout="arches"] .art-photo:nth-child(even) { align-self: flex-start; }
.board-art[data-layout="arches"] .art-photo:only-child { width: 55%; height: 100%; }
.board-art[data-layout="arches"] .art-photo img { border-radius: inherit; }

.board-colours[hidden], .board-layouts[hidden] { display: none; }
.finished-board { margin: 0; min-width: 0; }
.finished-board .art-photos { aspect-ratio: auto; }
.finished-board .art-photo { position: static; width: auto; height: auto; transform: none; }
.finished-board .art-photo img { width: 100%; height: auto; display: block; }
.finished-board .art-note { margin-top: .5rem; padding: 0; background: none; box-shadow: none; color: inherit; }
.finished-board .art-note strong { font: 600 1.1rem/1.25 Georgia,serif; }
.finished-board .art-note p { margin: .25rem 0 0; white-space: pre-line; }
.board-art[data-layout] .art-photos[data-many] { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3cqi; aspect-ratio: auto; }
.board-art[data-layout] [data-many] .art-photo { position: relative; inset: auto; flex: none; width: 30%; height: auto; aspect-ratio: 1; align-self: center; }
.board-art[data-layout="scrapbook"] [data-many] .art-photo { aspect-ratio: 4 / 5; transform: rotate(-3deg); }
.board-art[data-layout="scrapbook"] [data-many] .art-photo:nth-child(even) { transform: rotate(3deg); }
.board-art[data-layout="arches"] [data-many] .art-photo { aspect-ratio: 3 / 4; }

.board-gallery-item { min-width: 0; }
.board-review-offer { border-inline-start: 3px solid var(--line); margin-block-start: .8rem; padding: .5rem .9rem; }
.board-review-offer p { margin-block: .4rem .8rem; }
.board-review-offer label:not([hidden]) { display: grid; gap: .3rem; margin-bottom: .7rem; }
.board-review-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.board-export { margin-top: .65rem; }
.board-export [hidden], .board-export[hidden], [data-board-art][hidden] + .board-export { display: none; }
.board-export [data-board-ready] > .entry-button { margin: 0 .2rem .35rem 0; }
.board-export [role="status"]:not(:empty) { display: block; margin-block: .4rem; }

/* Day 3 composition controls */
[data-board-editor] [hidden] { display: none !important; }
.board-empty { display: grid; place-items: center; min-height: 6.5rem; margin: 0; padding: 1rem; border: 1px dashed var(--line); border-radius: .55rem; text-align: center; }
.board-tools { min-width: 0; padding: clamp(.65rem,2.4vw,1rem); border: 1px solid var(--line); border-radius: .65rem; }
.board-tabs { display: flex; gap: .25rem; padding-bottom: .6rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
.board-tabs button { flex: 1; padding: .62rem .2rem; background: transparent; color: inherit; border: 1px solid transparent; border-radius: .45rem; font: 600 .9rem/1.25 system-ui,sans-serif; cursor: pointer; }
.board-tabs button[aria-selected="true"] { background: var(--ink); color: var(--chrome); }
.board-tool-panel { display: grid; gap: .85rem; }
.board-tool-panel .board-cycle { justify-self: start; }
.board-sticker-options { display: grid; grid-template-columns: minmax(5rem,1fr) auto; align-items: center; gap: .2rem .6rem; }
.board-sticker-options label { grid-column: 1 / -1; }
.board-sticker-options input[type="range"] { padding: 0; height: 2rem; accent-color: var(--wine); cursor: pointer; }
.board-sticker-picks { display: grid; grid-template-columns: repeat(auto-fill,minmax(3.1rem,1fr)); gap: .4rem; }
.board-sticker-picks button { position: relative; aspect-ratio: 1; padding: .2rem; background: #f4ebda; border: 2px solid transparent; border-radius: .6rem; cursor: pointer; color: #272420; }
.board-sticker-picks img, .illustrated-sticker img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.board-sticker-picks button[aria-pressed="true"] { border-color: #996140; }
.board-sticker-picks button[aria-pressed="true"]::after { content: "✓"; position: absolute; bottom: 1px; right: 1px; border-radius: 50%; background: #374b40; color: #fff; font: bold .7rem/1.1rem sans-serif; width: 1.1rem; }
.reading .board-sticker-help { font-size: .9rem; margin: 0; }
.art-stickers { position: absolute; inset: 0; margin: clamp(14px,5cqi,36px); z-index: 1; pointer-events: none; }
.art-sticker { position: absolute; display: grid; place-items: center; transform: translate(-50%,-50%); font: clamp(20px,8cqi,54px)/1 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; filter: drop-shadow(0 1px 2px #462c2850); user-select: none; }
button.art-sticker { cursor: grab; touch-action: none; pointer-events: auto; padding: 0; min-width: 32px; min-height: 32px; border: 0; background: transparent; }
.art-stickers .illustrated-sticker { width: calc(var(--size) * 1cqi); height: calc(var(--size) * 1cqi); max-height: 100%; min-width: 0; min-height: 0; left: var(--sx); top: var(--sy); transform: translate(calc(0% - var(--sx)),calc(0% - var(--sy))); }
.illustrated-sticker.is-selected { outline: 1px dashed #534e43; outline-offset: 2px; border-radius: .35rem; }
button.art-sticker:active { cursor: grabbing; }
.board-tools button:focus-visible, .art-sticker:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.board-cycle, .board-presets button { font: 600 .82rem/1.25 system-ui,sans-serif; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 2rem; cursor: pointer; }
.board-cycle { padding: .45rem .8rem; }
.board-cycle span { font-size: 1.15em; }
.board-palette { min-width: 0; padding: 0; border: 0; margin: 0; }
.board-palette legend { margin: 0 0 .45rem; font-weight: 600; }
.board-presets { display: flex; gap: .4rem; flex-wrap: wrap; }
.board-presets button { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem .4rem .4rem; }
.board-presets i { border-radius: 50%; width: 1.25rem; aspect-ratio: 1; background: var(--swatch); border: 1px solid #ffffff60; }
.board-presets button[aria-pressed=true] { box-shadow: inset 0 0 0 1px currentColor; }
.board-presets button[aria-pressed=true] i::after { content: "✓"; display: grid; place-items: center; height: 100%; color: white; text-shadow: 0 1px 3px #000; }
.board-custom { margin-top: .55rem; }
.board-custom summary { width: fit-content; cursor: pointer; font-size: .9rem; padding-block: .3rem; }
.board-custom summary::before { content: "+"; margin-inline-end: .45em; }
.board-custom[open] summary::before { content: "−"; }
.board-presets[hidden], .board-palette[hidden], .board-cycle[hidden] { display: none; }
.board-layouts { container-type: inline-size; }
@container (min-width: 29rem) { .layout-options { grid-template-columns: repeat(5,minmax(0,1fr)); } }
.layout-icon[data-style="film"] { background: #29282d; border-block: 3px dotted #e8dbb7; }
.layout-icon[data-style="film"] i { inset: 10% auto 10% 8%; width: 23%; height: auto; background: #d3ad94; border: 0; transform: none; }
.layout-icon[data-style="film"] i:nth-child(2) { left: 37%; background: #b1c7ce; }
.layout-icon[data-style="film"] i:nth-child(3) { left: 66%; background: #b29eac; }
.layout-icon[data-style="cover"] i { inset: 0 auto 0 4%; width: 57%; height: auto; transform: none; background: #e3b6a8; }
.layout-icon[data-style="cover"] i:nth-child(2), .layout-icon[data-style="cover"] i:nth-child(3) { left: 66%; width: 30%; height: 42%; background: #90a8a4; }
.layout-icon[data-style="cover"] i:nth-child(3) { top: auto; bottom: 0; }

/* A contact sheet with perforated film edges and a handwritten label. */
.board-art[data-layout="film"] { background: linear-gradient(145deg,var(--tone-2),var(--tone-3) 53%,var(--tone-1)); }
.board-art[data-layout="film"] .art-photos:not([data-count="0"]) {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 1.3cqi;
  aspect-ratio: auto; padding: 4cqi 2cqi; transform: rotate(-2deg);
  background: repeating-linear-gradient(90deg,transparent 0 2cqi,#e4d7bf 2cqi 4cqi,transparent 4cqi 6cqi) top 1cqi left / 100% 1cqi no-repeat,
              repeating-linear-gradient(90deg,transparent 0 2cqi,#e4d7bf 2cqi 4cqi,transparent 4cqi 6cqi) bottom 1cqi left / 100% 1cqi no-repeat,#242124;
  box-shadow: 0 4px 12px #28172355;
}
.board-art[data-layout="film"] .art-photos:is([data-many],[data-count="3"]) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.board-art[data-layout="film"] .art-photos .art-photo { position: static; transform: none; width: 100%; height: auto; aspect-ratio: 1; }
.board-art[data-layout="film"] .art-note { margin: 1em auto 0; transform: rotate(1deg); padding: .45em .85em; text-align: center; }

/* A magazine masthead with a lead photograph and smaller supporting frames. */
.board-art[data-layout="cover"] { background: linear-gradient(155deg,var(--tone-2),var(--tone-3) 56%,var(--tone-1)); }
.board-art[data-layout="cover"] .art-note { order: -1; align-self: stretch; margin-bottom: 3cqi; background: #fff9ee; border-top: .45em solid #292323; box-shadow: none; }
.board-art[data-layout="cover"] .art-note strong { font: 700 clamp(1.35rem,9cqi,3.3rem)/.98 Georgia,serif; letter-spacing: -.045em; }
.board-art[data-layout="cover"] .art-photos:not([data-count="0"]) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-flow: row dense; grid-auto-rows: 20cqi; gap: 1.3cqi; aspect-ratio: auto; }
.board-art[data-layout="cover"] .art-photos .art-photo { position: static; transform: none; align-self: stretch; width: 100%; height: 100%; border: 2px solid #fff9ee; }
.board-art[data-layout="cover"] .art-photo:first-child { grid-column: span 2; grid-row: span 2; }
.board-art[data-layout="cover"] [data-count="2"] .art-photo:nth-child(2) { grid-row: span 2; }
.board-art[data-layout="cover"] [data-count="4"] .art-photo:last-child { grid-column: span 3; }

.fold-tutorial { border-block-end: 1px solid var(--line); }
.fold-tutorial summary { display: flex; gap: .85rem; align-items: center; padding: .8rem .2rem; cursor: pointer; font-weight: 650; }
.fold-tutorial summary::-webkit-details-marker { display: none; }
.fold-tutorial summary::after { content: "+"; margin-inline-start: auto; }
.fold-tutorial[open] summary::after { content: "−"; }
.fold-face { flex: none; width: 2.5rem; height: 2.3rem; }
.fold-face.cat { background: conic-gradient(from 35deg at 48% 66%,#43444a,#89868a,#34353c,#64656c); clip-path: polygon(3% 3%,32% 25%,69% 25%,97% 3%,91% 74%,54% 96%,12% 77%); }
.fold-face.dog { background: conic-gradient(from 32deg at 51% 69%,#c68f4d,#efd290,#ac723a,#d8ab6d); clip-path: polygon(0 53%,17% 12%,83% 12%,100% 53%,85% 69%,76% 42%,72% 80%,50% 98%,28% 80%,24% 42%,15% 69%); }
.fold-tutorial > iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: .4rem; background: #191e1c; }
.fold-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; padding: .7rem 0; font-size: .9rem; }
.origami-gallery { scroll-margin-block-start: 3.25rem; }
.fold-exhibits { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); align-items: start; gap: 1.6rem 1rem; }
.fold-exhibit { min-width: 0; container-type: inline-size; }
.fold-exhibit[data-social] { grid-column: 1 / -1; }
.fold-piece {
  --wall: #263a32; --glow: #7f7850;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  position: relative; isolation: isolate; min-height: 15rem; padding: 2rem 5% .8rem;
  border-radius: 48% 48% .3rem .3rem / 2.4rem 2.4rem .3rem .3rem;
  background: radial-gradient(ellipse at 43% 0%,var(--glow),transparent 68%),linear-gradient(150deg,var(--wall),#151b18);
  box-shadow: inset 0 0 0 1px #c5b08245;
}
.fold-exhibit[data-kind="moment"] .fold-piece { --wall: #412d39; --glow: #926951; }
.fold-piece::after { content: ""; width: 100%; aspect-ratio: 4.17; margin-top: -4%; background: url("exhibit-plinth.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 .4rem .26rem #100e0c75); }
.fold-piece > * { position: relative; z-index: 1; }
.fold-picture { display: block; max-width: 90%; padding: .3rem; background: #f7ecd3; box-shadow: 0 .3rem .65rem #16110f65; }
.fold-picture:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.fold-picture img, .fold-film { display: block; max-width: 100%; max-height: 18rem; max-height: min(65cqi,22rem); height: auto; margin: auto; object-fit: contain; }
.fold-film { width: 94%; background: #151718; }
.fold-social { align-self: stretch; min-width: 0; margin: 0 2%; padding: .65rem; color: #f6ecda; background: #202722; border: 1px solid #b0a590; }
.fold-social p { margin: .3rem 0; text-align: center; }
.fold-paper { width: 86%; min-width: 0; padding: 1.15rem .95rem; color: #392e29; background: linear-gradient(140deg,#fff8e7,#eddec0); border-inline-start: 3px solid #c7aa79; box-shadow: 0 .3rem .65rem #16110f60; }
.fold-piece .fold-paper p { margin: 0; font: italic 1.04rem/1.55 Georgia,serif; color: inherit; overflow-wrap: anywhere; }
.fold-paper p + p { padding-top: .5em; }
.fold-label { margin: .75rem .4rem 0; padding-inline-start: .75rem; border-inline-start: 2px solid #b3975e; overflow-wrap: anywhere; }
.reading .fold-label h3 { margin: 0; font: 600 1.16rem/1.25 Georgia,serif; }
.fold-label .fold-author { margin: .2rem 0 0; color: var(--subtle); font-size: .88rem; }
.fold-caption p { margin: .5rem 0 0; }
.poem-preview summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.poem-page { position: relative; margin: .9rem 0; padding: clamp(1.15rem,4vw,2.2rem); overflow-wrap: anywhere; border: 1px solid #d7c3a3; border-inline-start: .4rem solid #813d4b; border-radius: .25rem .65rem .65rem .25rem; background: linear-gradient(110deg,#f5e8cc,#fffbf1 38%,#f8efde); box-shadow: 0 3px 8px #0002; color: #322325; }
.reading .poem-page h3 { margin: 0 0 .8rem; font: 600 1.5rem/1.2 Georgia,serif; color: #6d2e3d; }
.reading .poem-page .poem-lines { white-space: pre-wrap; margin: 0; color: inherit; font: 1.08rem/1.65 Georgia,serif; }
.reading .poem-page .poem-signature { margin: 1rem 0 0; color: #693a41; text-align: end; font-style: italic; }
.poem-page [data-poem-title]:empty, .poem-page [data-poem-name]:empty { display: none; }
.poem-page summary { color: #6d2e3d; }
.choice-sheet { margin-block: .6rem; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.choice-sheet > summary { padding: .8rem 1rem; font-weight: 700; cursor: pointer; }
.choice-sheet > summary span { margin-inline-start: .5rem; font-size: .85rem; font-weight: 400; }
.choice-sheet form { display: grid; gap: .8rem; padding: 0 .85rem 1rem; }
.choice-sheet .entry-button { justify-self: start; }
.choice-art img, .choice-art canvas { display: block; width: 100%; height: auto; border-radius: .3rem; }
.choice-art canvas { cursor: pointer; }
.choice-sheet [hidden], .choice-art [hidden] { display: none; }
.choice-art[data-choice-result] canvas { cursor: default; }
.choice-pair { margin: 0; min-width: 0; border: 0; padding: 0; }
.choice-pair legend { margin-bottom: .2rem; font-size: .82rem; }
.choice-pair > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
.choice-pair label { display: flex; align-items: center; gap: .4rem; padding: .45rem; border: 1px solid var(--line); border-radius: .5rem; min-height: 2.75rem; cursor: pointer; }
.choice-pair label:has(:checked) { outline: 2px solid currentColor; outline-offset: -2px; }
.choice-pair input { flex: none; margin: 0; }
.choice-author { display: grid; gap: .3rem; }
.choice-author input, .choice-author textarea { width: 100%; min-width: 0; padding: .5rem; border: 1px solid var(--line); background: var(--chrome); color: inherit; font: inherit; border-radius: .3rem; }
.candle-room { padding: 1rem; border: 1px solid #66513b; border-radius: .8rem; background: radial-gradient(ellipse at bottom,#3b2a22,#231e24 67%); color: #fff3dc; }
.reading .candle-room h2, .reading .candle-room p { color: inherit; }
.candle-shelf { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,6rem),1fr)); align-items: start; gap: .65rem; }
.candle-light { min-width: 0; border-bottom: 1px solid #876a4c; }
.candle-light[open], .candle-empty { grid-column: 1 / -1; }
.candle-room .candle-light summary { display: grid; justify-items: center; gap: .6rem; padding: 1.4rem .35rem .65rem; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.candle-light summary::-webkit-details-marker { display: none; }
.votive { position: relative; display: inline-block; width: 2rem; height: 2.5rem; margin-top: .8rem; border-radius: 48% 48% 32% 32% / 12% 12% 8% 8%; background: linear-gradient(90deg,#48291e55,transparent 40%,#fff9 65%,transparent),var(--wax,#dfa549); box-shadow: 0 0 18px #ffcf792b; }
.votive::before { content: ""; position: absolute; left: 35%; top: -1.2rem; width: 30%; height: 1.25rem; border-radius: 90% 12% 70% 50%; background: radial-gradient(ellipse at 50% 75%,#fffbe7 20%,#ffd077 55%,#da803d); box-shadow: 0 0 .7rem #ffb653b0; }
[data-colour="honey"], .candle-picker:has(input[value="honey"]:checked) > .votive { --wax: #dfa549; }
[data-colour="rose"], .candle-picker:has(input[value="rose"]:checked) > .votive { --wax: #e88797; }
[data-colour="ivory"], .candle-picker:has(input[value="ivory"]:checked) > .votive { --wax: #f4e7cc; }
[data-colour="coral"], .candle-picker:has(input[value="coral"]:checked) > .votive { --wax: #ed795c; }
[data-colour="ruby"], .candle-picker:has(input[value="ruby"]:checked) > .votive { --wax: #bd3f58; }
[data-colour="peach"], .candle-picker:has(input[value="peach"]:checked) > .votive { --wax: #ffbc94; }
[data-colour="mint"], .candle-picker:has(input[value="mint"]:checked) > .votive { --wax: #8bdac1; }
[data-colour="forest"], .candle-picker:has(input[value="forest"]:checked) > .votive { --wax: #4a9966; }
[data-colour="teal"], .candle-picker:has(input[value="teal"]:checked) > .votive { --wax: #36b8be; }
[data-colour="sky"], .candle-picker:has(input[value="sky"]:checked) > .votive { --wax: #88c7ef; }
[data-colour="indigo"], .candle-picker:has(input[value="indigo"]:checked) > .votive { --wax: #7679cb; }
[data-colour="lavender"], .candle-picker:has(input[value="lavender"]:checked) > .votive { --wax: #c198e0; }
.candle-picker { min-width: 0; margin: 0; padding: .75rem; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: .5rem; }
.candle-picker legend { padding-inline: .3rem; font-weight: 600; }
.candle-palette { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,7.3rem),1fr)); gap: .35rem; }
.candle-option { position: relative; display: flex; align-items: center; gap: .4rem; padding: .35rem .45rem; border: 1px solid var(--line); border-radius: .45rem; cursor: pointer; font-size: .84rem; }
.candle-option::before { content: ""; flex: none; border-radius: 50%; width: .9rem; height: .9rem; background: var(--wax); }
.intro-entry .candle-option input[type=radio] { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.candle-option:has(:checked) { box-shadow: inset 0 0 0 2px currentColor; }
.candle-option:has(:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 540px) { .candle-picker { grid-template-columns: 1fr; } .candle-picker > .votive { justify-self: center; } .candle-palette { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.candle-wish { padding: .4rem 1rem 1rem; overflow-wrap: anywhere; }
.candle-wish img, .candle-wish video { display: block; max-width: 100%; max-height: 28rem; margin: .6rem auto; border-radius: .4rem; }
.candle-empty { margin: .35rem 0; }
.cw-tools { display: grid; gap: .5rem; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: .5rem; }
.cw-tools[hidden], .cw-activity [hidden] { display: none; }
.cw-tools label { display: grid; gap: .25rem; font-weight: 600; }
.cw-tools select, .cw-word input { width: 100%; min-width: 0; padding: .4rem; border-radius: .25rem; border: 1px solid var(--line); font: inherit; }
.reading .cw-tools p { margin: 0; }
.cw-pattern { letter-spacing: .22em; font-family: monospace; }
.cw-word { display: flex; flex-wrap: wrap; align-items: end; gap: .45rem; }
.cw-word label { flex: 1 1 10rem; }
.cw-scroll { max-height: min(55vh,35rem); overflow: auto; overscroll-behavior: contain; border-radius: .35rem; border: 1px solid var(--line); background: #202b29; }
.cw-grid { --cell: 1.7rem; display: grid; width: max-content; padding: .6rem; grid-template-columns: repeat(31,var(--cell)); grid-template-rows: repeat(34,var(--cell)); }
.cw-cell { position: relative; background: #fcf8ec; color: #231d22; border: 1px solid #6c6158; }
.cw-cell small { position: absolute; left: 1px; top: 0; font: 600 .52rem/1 sans-serif; pointer-events: none; }
.cw-cell input { display: block; margin: 0; padding: .22rem 0 0; width: 100%; height: 100%; text-align: center; border: 0; border-radius: 0; background: transparent; color: inherit; font: 600 1rem/1 system-ui,sans-serif; text-transform: uppercase; }
.cw-cell.cw-active { background: #ffdb99; }
.cw-cell:focus-within { z-index: 1; outline: 2px solid #8d2545; outline-offset: -2px; }
.cw-clues { margin: .8rem 0; }
.cw-clues li { margin-block: .5rem; }
.cw-clues summary { cursor: pointer; }

.dessert-table { margin-block: 2rem; }
.dessert-cards {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr));
  padding: clamp(.85rem,3vw,1.4rem); border-radius: .5rem;
  background-color: #76474a;
  background-image: repeating-linear-gradient(0deg,transparent 0 10px,#fff2 10px 20px),
                    repeating-linear-gradient(90deg,transparent 0 10px,#fff2 10px 20px);
}
.dessert-table .dessert-card { margin: 0; min-width: 0; padding: 1rem; color: #382522; background: #fff7e9;
  border-radius: .2rem; box-shadow: 0 2px 5px #32181d55; overflow-wrap: anywhere; }
.dessert-table .dessert-card h3 { margin: 0; color: #622c35; }
.dessert-table .dessert-card p, .dessert-table .dessert-card summary { color: #382522; }
.dessert-table .dessert-card a { color: #742f3c; }
.dessert-card img { display: block; width: 100%; max-height: 18rem; object-fit: contain; margin-bottom: .8rem; }
.dessert-recipe { border-top: 1px solid #cba99a; margin-top: .65rem; }
.dessert-card .dessert-author { margin: .3rem 0; font-style: italic; }

.mistletoe-album {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap: .85rem; padding: 1rem; background: #264839; border-radius: .5rem;
}
.mistletoe-gallery .mistletoe-card {
  min-width: 0; margin: 0; overflow-wrap: anywhere; padding: 1.1rem; color: #352723;
  background: #fff9ec; border-top: .25rem solid #974650; border-radius: .2rem;
}
.mistletoe-gallery .mistletoe-card h3 { margin: 0; color: #793742; }
.mistletoe-gallery .mistletoe-card p, .mistletoe-gallery .mistletoe-card summary { color: #352723; }
.mistletoe-gallery .mistletoe-card a { color: #653345; }
.mistletoe-card img, .mistletoe-card video { display: block; width: 100%; max-height: 22rem; object-fit: contain; margin-block: .75rem; }

.audio-jar-glass {
  position: relative; display: grid; align-content: end;
  margin: 2.7rem auto 1rem; width: min(100%,32rem); box-sizing: border-box;
  min-height: 12rem; padding: 1.25rem; border: .2rem double #bdc8c7;
  border-radius: 3rem 3rem 2rem 2rem;
  background: linear-gradient(105deg,#53626e 0%,#253748 12%,#172331 51%,#2c3e4e 90%,#61747b);
  box-shadow: inset 0 -.4rem .6rem #0c1929;
}
.audio-jar-glass::before {
  content: ""; position: absolute; bottom: 100%; left: 14%; right: 14%; height: 1rem;
  background: repeating-linear-gradient(0deg,#98713d 0 2px,#dabc87 2px 5px);
  border: 1px solid #e7c999; border-radius: .3rem;
}
.audio-jar .audio-jar-glass > p { align-self: center; color: #f6e6bd; text-align: center; }
.audio-jar-stars { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center;
  max-height: 23rem; overflow-y: auto; padding: .4rem .2rem; }
.audio-jar-stars .audio-star {
  display: grid; place-items: center; flex: 0 0 2.75rem; height: 2.75rem;
  border-radius: 50%; text-decoration: none; color: #ffda88;
  --star-size: 1.95rem; --drift-x: -2px; --drift-y: 2px; --phase: -2.7s;
}
.audio-star:nth-of-type(3n+1) { --star-size: 1.55rem; --drift-x: 3px; --drift-y: -3px; --phase: -1.4s; }
.audio-star:nth-of-type(4n) { --star-size: 2.2rem; --drift-x: 1px; --drift-y: -1px; --phase: -4.2s; }
.audio-star:nth-of-type(5n+2) { --drift-x: -3px; --drift-y: -4px; --phase: -.5s; }
.north-star {
  display: grid; place-items: center; width: var(--star-size); height: var(--star-size);
  position: relative; transform: translate(var(--drift-x),var(--drift-y)); pointer-events: none;
  background: radial-gradient(ellipse, #fff1ae66, #fbc35228 38%, transparent 70%);
}
.north-star::before, .north-star::after { content: ""; position: absolute; }
.north-star::before {
  inset: 0;
  clip-path: polygon(50% 0%,55% 35%,76% 21%,63% 42%,96% 49%,62% 54%,76% 76%,55% 62%,50% 98%,45% 62%,24% 76%,38% 54%,4% 49%,37% 42%,24% 21%,45% 35%);
  background: repeating-conic-gradient(from 0deg at 50% 49%, #fff5bc 0deg, #fff0a6 20deg, #d79a36 23deg, #ffdf83 45deg);
}
.north-star::after { width: 15%; height: 15%; border-radius: 50%; background: #fffde6;
  box-shadow: 0 0 4px 2px #fff0b4, 0 0 9px 4px #ffc94c7a; }
.audio-jar-stars .audio-star { filter: drop-shadow(0 0 2px #eebd55a8); }
@media (prefers-reduced-motion: no-preference) {
  .north-star { animation: north-star-glimmer 5.8s ease-in-out var(--phase) infinite alternate; }
  .audio-star:nth-of-type(3n) .north-star { animation-duration: 4.6s; }
  @keyframes north-star-glimmer { from { opacity: .73; } to { opacity: 1; } }
}
.audio-star:is(:hover,:focus-visible,[aria-current]) .north-star { animation: none; }
.audio-jar-stars .audio-star:is(:focus-visible,[aria-current]) { outline: 2px solid currentColor; outline-offset: -3px; }
.audio-star-card { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; overflow-wrap: anywhere; }
.audio-star-card audio { display: block; width: min(100%,28rem); margin-block: .75rem; }

.jar-interactive .audio-jar-glass { width: min(100%,24rem); min-height: 0; margin: .4rem auto;
  padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; display: block; }
.jar-interactive .audio-jar-glass::before { display: none; }
.jar-interactive .audio-jar-stars { display: block; position: relative; aspect-ratio: 360 / 440;
  padding: 0; max-height: none; overflow: visible; }
.jar-interactive .jar-canvas { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.jar-interactive .audio-star { position: absolute; width: var(--hit); height: var(--hit);
  left: var(--x); top: var(--y); transform: translate(-50%,-50%); pointer-events: none; filter: none; }
.jar-interactive .audio-star .north-star { display: none; }
.jar-glint::after { content: ""; position: absolute; top: 48%; left: 48%; width: 3px; height: 3px;
  border-radius: 50%; background: #fff8da; box-shadow: 0 0 4px 1px #ffdc91; opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  .jar-glint::after { animation: jar-sparkle 5.2s ease-in-out var(--phase) infinite alternate; }
  @keyframes jar-sparkle { 0%,38% { opacity: .04; } 75% { opacity: .85; } 100% { opacity: .24; } }
}
.jar-interactive .audio-star[aria-current]:not(:focus-visible) { outline: 0; }
.jar-controls:not([hidden]) { display: flex; flex-wrap: wrap; align-items: end; justify-content: center;
  gap: 1rem; margin-bottom: 1.25rem; }
.jar-controls label { display: grid; gap: .25rem; max-width: 100%; }
.jar-controls select { max-width: 100%; padding: .4rem; font: inherit; }

.tradition-album .tradition-chapter, .tradition-album .tradition-empty {
  margin: .8rem 0; border: 1px solid #cfbc95; border-inline-start: .45rem solid #395f50;
  border-radius: .25rem; background: #faf3e2; color: #352c23; overflow-wrap: anywhere;
}
.tradition-album .tradition-empty, .tradition-chapter > summary, .tradition-page { padding: 1rem; }
.tradition-album .tradition-chapter > summary { cursor: pointer; color: #284b3d; font-weight: 700; }
.tradition-page { margin-inline: .5rem; border-top: 1px solid #d6c7a6; }
.tradition-album .tradition-page :is(h3,p,summary) { color: #352c23; }
.tradition-page .tradition-author { font-style: italic; }
.tradition-page :is(img,video) { display: block; max-width: 100%; max-height: 23rem; margin: .65rem auto; }

.meteor-sky {
  display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr));
  align-items: start; align-content: center; min-height: 12rem; padding: 1rem; border-radius: .7rem;
  border: 1px solid #76668e; background-color: #19233b;
  background-image: radial-gradient(1px 1px at 15px 12px,#dccda8 90%,transparent),
    radial-gradient(1px 1px at 28px 23px,#a6aacd 90%,transparent),linear-gradient(130deg,#18243b,#35314f 65%,#453849);
  background-size: 73px 51px,97px 89px,cover;
}
.meteor-sky > p { text-align: center; color: #fff2da; }
.meteor-gallery .meteor-wish { min-width: 0; padding: .25rem; overflow-wrap: anywhere; }
.meteor-wish > summary { display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .45rem; color: #fff2d9; text-align: center; border-radius: .3rem; }
.meteor-wish > summary::-webkit-details-marker { display: none; }
.meteor-wish > summary:is(:focus-visible,:hover) { outline: 1px solid #e4c48f; }
.meteor-trail { position: relative; margin-inline-start: -1.7rem; font-size: 1.75rem; line-height: 1.2; color: #ffe9aa; text-shadow: 0 0 6px #ffc865; }
.meteor-trail::after { content: ""; position: absolute; left: 65%; top: 44%; width: 2.8rem; height: 2px;
  transform-origin: left; transform: rotate(-26deg); background: linear-gradient(90deg,#ffe0a6,transparent); }
.meteor-message { padding: .3rem .8rem; background: #1c2238; border: 1px solid #a3927666; border-radius: .4rem; }
.meteor-gallery .meteor-message p { color: #fff4db; }
.meteor-guide { margin-block: 1.2rem; }
.meteor-guide summary { cursor: pointer; }
.meteor-guide table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.meteor-guide th, .meteor-guide td { text-align: start; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }

.postcard-collection { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); align-items: start; }
.travel-postcard { min-width: 0; color: #263d38; background: #fff7e7; border-radius: .25rem; overflow: hidden;
  border: .35rem solid transparent; border-image: repeating-linear-gradient(130deg,#aa5a50 0 10px,#f7eedb 10px 18px,#446777 18px 28px,#f7eedb 28px 36px) 6; overflow-wrap: anywhere; }
.travel-postcard header { display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 1rem; background: radial-gradient(ellipse at 20% 140%,#bcd8c8,transparent 75%),#f4e8ca; }
.travel-postcard header > div > span { font-style: italic; color: #435c50; }
.travel-postcard header h3 { margin: .2rem 0 0; font: 600 clamp(1.5rem,4vw,2.3rem)/1.15 Georgia,serif; color: #20483e; }
.postcard-stamp { display: grid; place-items: center; flex: none; width: 2.5rem; height: 3rem;
  border: 3px dotted #49695b; outline: 1px solid #b7ab85; color: #ead7a4; background: #49695b; background-clip: padding-box; font-size: 1.65rem; transform: rotate(5deg); }
.travel-postcard img:not([hidden]) { display: block; width: 100%; max-height: 19rem; object-fit: contain; background: #e8dfcd; }
.travel-postcard .postcard-back { padding: .8rem 1rem; }
.postcard-back summary { color: #314f44; cursor: pointer; }
.travel-postcard .postcard-back p { color: #343a34; white-space: pre-line; }
.travel-postcard .postcard-signature { text-align: end; font-style: italic; }
.travel-postcard [hidden], [data-postcard-preview][hidden] { display: none; }
