/* The site's advent calendar, `/adventi-naptar/` (AC2; docs/features/advent-calendar).
 *
 * The design's `advent-css` block (`mockup/advent-calendar.html`), with the mockup's
 * container queries and `cqw` as the window's `@media` and `vw` (`mockup/README.md`).
 *
 * Shared by every theme, like quiz.css, and bound by the same contract (themes/TOKENS.md,
 * rule 3): no `:root` block and no literal colour or font family. Every colour comes from the
 * theme's tokens, so the calendar is festive in any site's palette (AC D9): the deep band is
 * the night, the secondary colour the red door, the light door a lit window. The largest type
 * is 3.5rem (G12). The few theme classes the markup borrows (`.page-title`, `.eyebrow`) are
 * set here in full, because two of the four themes style them differently or not at all.
 *
 * Loaded by publicsite/_head.html on the calendar's page only (`advent_page`), after the
 * theme's stylesheet. The bar under the header on the other pages is in each theme's own
 * stylesheet (`.advent-bar`): a shared file would be one request more on every page.
 *
 * The doors' states — the server's (`advent.page`), and `is-open` the script's (`site.js`):
 *   .is-locked  not yet: a dark, coloured door with a lock
 *   .is-ready   may be opened, not opened yet: light, ajar
 *   .is-today   today's: the band's accent, with a pulsing ring
 *   .is-open    opened: the recipe's photo
 */

/* ------------------------------------------------------------------ the band */

.advent { position: relative; overflow: hidden; background: var(--color-deep); color: var(--color-bg); }
.advent :focus-visible { outline-color: var(--color-deep-accent); }
.advent > .wrap-wide { position: relative; padding-top: 3.5rem; padding-bottom: 4.5rem; }

/* In a theme's frame (every theme but gastro, whose band runs the window's width): a rounded
 * block with room inside. */
.advent-framed { margin-top: var(--space-md); border-radius: var(--radius-md); }
.advent-framed > .wrap-wide { padding-left: clamp(1.25rem, 3vw, 2.5rem); padding-right: clamp(1.25rem, 3vw, 2.5rem); }

/* Snowfall: two layers of dots in the band's own light colours. Motion only for whoever
 * has not asked for less. */
.advent-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.4; }
.advent-snow::before, .advent-snow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; }
.advent-snow::before {
  top: -14rem; background-size: 14rem 14rem;
  background-image:
    radial-gradient(circle at 12% 18%, var(--color-bg) 0 1.5px, transparent 2px),
    radial-gradient(circle at 61% 9%, var(--color-bg) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 47%, var(--color-bg) 0 2px, transparent 2.5px),
    radial-gradient(circle at 33% 64%, var(--color-bg) 0 1px, transparent 1.5px),
    radial-gradient(circle at 7% 88%, var(--color-bg) 0 1.5px, transparent 2px);
}
.advent-snow::after {
  top: -21rem; background-size: 21rem 21rem;
  background-image:
    radial-gradient(circle at 24% 31%, var(--color-primary-soft) 0 2.5px, transparent 3px),
    radial-gradient(circle at 72% 13%, var(--color-primary-soft) 0 1.5px, transparent 2px),
    radial-gradient(circle at 48% 79%, var(--color-primary-soft) 0 2px, transparent 2.5px),
    radial-gradient(circle at 91% 66%, var(--color-primary-soft) 0 1.5px, transparent 2px);
}
@media (prefers-reduced-motion: no-preference) {
  .advent-snow::before { animation: advent-fall-near 26s linear infinite; }
  .advent-snow::after { animation: advent-fall-far 38s linear infinite; }
}
@keyframes advent-fall-near { to { transform: translateY(14rem); } }
@keyframes advent-fall-far { to { transform: translateY(21rem); } }

/* ------------------------------------------------------------------ the head */

.advent-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--space-lg) 3rem;
}
.advent-intro { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.advent .eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  margin: 0; font: 700 0.8125rem/1.2 var(--font-heading); text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--color-deep-accent);
}
.advent .eyebrow svg { flex: none; width: 1rem; height: 1rem; }
/* The page's title, the same size on every theme: gastro's (G12), 56 px wide, 36 on a phone. */
.advent .page-title {
  margin: 0; color: inherit;
  font: 700 clamp(2.25rem, 1.7rem + 2.25vw, 3.5rem)/1.04 var(--font-heading);
  letter-spacing: -0.03em; text-transform: none;
}
.advent-deck {
  margin: 0; max-width: 46ch; color: var(--color-primary-soft);
  font: italic 400 clamp(1.25rem, 1.14rem + 0.45vw, 1.5rem)/1.35 var(--font-body);
}

/* Today: the advent wreath's four candles (as many burn as Sundays of Advent have passed)
 * and the date. While a door opens today the whole box links it (#ma): it may be at the
 * bottom of the page. */
.advent-today {
  display: flex; align-items: center; gap: 1.125rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--color-primary-ink); border-radius: var(--radius-md);
  color: var(--color-bg); text-decoration: none;
  transition: border-color 0.15s ease;
}
a.advent-today:hover { border-color: var(--color-deep-accent); }
.advent-jump { flex: none; width: 1.25rem; height: 1.25rem; margin-left: 0.25rem; color: var(--color-deep-accent); }
.advent-wreath { flex: none; display: flex; align-items: flex-end; gap: 0.4375rem; color: var(--color-primary-soft); }
.advent-wreath svg { display: block; width: 0.875rem; height: 2.75rem; overflow: visible; }
.candle { color: var(--color-primary-ink); }
.candle.is-lit { color: var(--color-primary-soft); }
.candle-flame { fill: var(--color-deep-accent); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.candle.is-lit .candle-flame { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .candle.is-lit .candle-flame { animation: advent-flame 1.9s ease-in-out infinite alternate; }
  .candle.is-lit:nth-child(2n) .candle-flame { animation-duration: 2.3s; }
}
@keyframes advent-flame { from { transform: scale(0.94, 0.9); } to { transform: scale(1.04, 1.1); } }
.advent-status {
  margin: 0; display: flex; flex-direction: column; gap: 0.125rem;
  font: 400 0.9375rem/1.35 var(--font-heading); color: var(--color-primary-soft);
}
.advent-status strong { font-weight: 650; font-size: 1.0625rem; color: var(--color-bg); }

/* ------------------------------------------------------------------ the grid */

/* Six columns, five rows. A plain door is a square; the 1st, 6th, 13th and 20th span two
 * columns, the 24th three, so the thirty cells fill without a gap and the doors stay in
 * order (AC D14):
 *   [1 1][2][3][4][5] / [6 6][7][8][9][10] / [11][12][13 13][14][15] /
 *   [16][17][18][19][20 20] / [21][22][23][24 24 24] */
.advent-grid {
  position: relative; list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.door {
  position: relative; min-width: 0; aspect-ratio: 1 / 1; perspective: 56rem; scroll-margin-top: 6rem;
  /* the closed doors' colours: green, red and an outlined deep one, dealt so that no two
   * neighbours are alike */
  --patch: var(--color-primary-ink); --patch-ink: var(--color-bg); --patch-line: var(--color-primary-ink);
  --leaf: var(--patch); --leaf-ink: var(--patch-ink); --leaf-line: var(--patch-line);
}
.door:nth-child(1), .door:nth-child(4), .door:nth-child(8), .door:nth-child(12),
.door:nth-child(15), .door:nth-child(18), .door:nth-child(21), .door:nth-child(24) {
  --patch: var(--color-secondary-ink); --patch-line: var(--color-secondary-ink);
}
.door:nth-child(3), .door:nth-child(7), .door:nth-child(10), .door:nth-child(11),
.door:nth-child(14), .door:nth-child(17), .door:nth-child(19), .door:nth-child(23) {
  --patch: var(--color-deep); --patch-ink: var(--color-primary-soft); --patch-line: var(--color-primary-ink);
}
.door-w { grid-column: span 2; aspect-ratio: auto; }
.door-finale { grid-column: span 3; aspect-ratio: auto; }

.door.is-ready { --leaf: var(--color-primary-soft); --leaf-ink: var(--color-deep); --leaf-line: var(--color-primary-soft); }
.door.is-today { --leaf: var(--color-deep-accent); --leaf-ink: var(--color-deep); --leaf-line: var(--color-deep-accent); }

/* The whole door is one link or button (without the script an opening door is the recipe's
 * link, AC D8). */
.door-hit {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: var(--radius-md); background: none;
  color: var(--color-bg); font: inherit; text-align: left; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.door.is-locked .door-hit { cursor: default; }

/* What is behind the door: the recipe's photo, its title at the bottom. */
.door-back {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: var(--radius-md); background: var(--color-primary-soft);
}
.door-back img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease-out;
}
/* The ajar door's shadow on the photo; it goes when the door opens. */
.door-back::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--color-deep), transparent 60%);
  opacity: 0.75; transition: opacity 0.45s ease;
}
.door.is-open .door-back::after { opacity: 0; }
.door-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 0.875rem 0.75rem;
  background: linear-gradient(to top, var(--color-deep), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.door.is-open .door-caption { opacity: 1; transition-delay: 0.4s; }
.door-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font: 650 0.9375rem/1.22 var(--font-heading); letter-spacing: -0.01em; color: var(--color-bg);
}
.door-w .door-name, .door-finale .door-name { font-size: 1.125rem; }
.door-chip {
  position: absolute; left: 0.625rem; top: 0.625rem;
  min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-text);
  font: 700 0.9375rem/2rem var(--font-heading); text-align: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.door.is-open .door-chip { opacity: 1; transition-delay: 0.4s; }
.door.is-today .door-chip { background: var(--color-deep-accent); color: var(--color-deep); }
.door.is-open .door-hit:hover .door-back img { transform: scale(1.03); }
.door.is-open .door-hit:hover .door-name { text-decoration: underline; text-underline-offset: 0.15em; }

/* The leaf turns on its left edge. */
.door-leaf {
  position: absolute; inset: 0;
  border: 1px solid var(--leaf-line); border-radius: var(--radius-md);
  background: var(--leaf); color: var(--leaf-ink);
  transform-origin: 0 50%; backface-visibility: hidden;
  transition: transform 0.75s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s linear,
    background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
/* the leaf's panel and its knob */
.door-leaf::before {
  content: ""; position: absolute; inset: 0.5rem;
  border: 1px solid currentColor; border-radius: calc(var(--radius-md) - 0.375rem); opacity: 0.3;
}
.door-knob {
  position: absolute; right: 1.125rem; top: 50%; width: 0.5rem; height: 0.5rem;
  margin-top: -0.25rem; border-radius: 50%; background: currentColor; opacity: 0.75;
}
.door-lock {
  position: absolute; right: 0.9375rem; top: 50%; width: 1.125rem; height: 1.125rem;
  margin-top: -0.5625rem; display: block; opacity: 0.85;
}
.door-num {
  position: absolute; left: 1.125rem; bottom: 0.875rem;
  font: 700 3rem/1 var(--font-heading); letter-spacing: -0.04em;
}
.door-w .door-num, .door-finale .door-num { font-size: 3.5rem; }
/* The day's name (Mikulás, Luca napja, Szenteste) and a Sunday of Advent's candle (D13). */
.door-note {
  position: absolute; left: 1.125rem; top: 1.0625rem; right: 3.5rem;
  display: flex; align-items: center; gap: 0.375rem;
  font: 700 0.6875rem/1.2 var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em;
}
.door-note svg { flex: none; width: 1rem; height: 1rem; margin: -0.125rem 0; }
.door-tag {
  position: absolute; right: 0.875rem; top: 0.875rem;
  padding: 0.3125rem 0.5625rem; border-radius: var(--radius-pill);
  background: var(--color-deep); color: var(--color-bg);
  font: 700 0.6875rem/1 var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em;
}

/* The last door's star. */
.door-star {
  position: absolute; right: 3.5rem; top: 50%; width: 2.75rem; height: 2.75rem;
  margin-top: -1.375rem; opacity: 0.6;
}

/* Ajar: what may be opened invites. */
.door.is-ready .door-leaf, .door.is-today .door-leaf { transform: rotateY(-24deg); }
@media (hover: hover) {
  .door.is-ready .door-hit:hover .door-leaf, .door.is-today .door-hit:hover .door-leaf { transform: rotateY(-38deg); }
}
.door.is-ready .door-hit:focus-visible .door-leaf, .door.is-today .door-hit:focus-visible .door-leaf { transform: rotateY(-38deg); }
.door.is-open .door-leaf {
  transform: rotateY(-112deg); opacity: 0; pointer-events: none;
  transition-delay: 0s, 0.5s, 0s, 0s, 0s;
}

/* A ring pulsing round today's door. */
.door.is-today:not(.is-open)::after {
  content: ""; position: absolute; inset: -0.3125rem; pointer-events: none;
  border: 2px solid var(--color-deep-accent); border-radius: calc(var(--radius-md) + 0.3125rem);
  opacity: 0.6;
}
@media (prefers-reduced-motion: no-preference) {
  .door.is-today:not(.is-open)::after { animation: advent-ring 2.4s ease-out infinite; }
  .door.is-nudged .door-leaf { animation: advent-nudge 0.4s ease; }
}
@keyframes advent-ring {
  0% { transform: scale(0.97); opacity: 0.9; }
  70%, 100% { transform: scale(1.05); opacity: 0; }
}
@keyframes advent-nudge {
  20% { transform: translateX(-0.25rem); } 50% { transform: translateX(0.25rem); }
  80% { transform: translateX(-0.125rem); }
}
@media (prefers-reduced-motion: reduce) {
  .door-leaf { transition-duration: 0.01s; }
  .door.is-open .door-leaf { transition-delay: 0s; }
}

.advent-rule {
  position: relative; margin: 1.75rem 0 0;
  font: 400 0.9375rem/1.5 var(--font-heading); color: var(--color-primary-soft);
}

/* A closed door clicked: when it opens. */
.advent-toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 45; transform: translate(-50%, 0.5rem);
  max-width: calc(100% - 2.5rem); margin: 0; padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-text);
  box-shadow: 0 18px 30px -24px var(--color-muted);
  font: 600 0.9375rem/1.3 var(--font-heading); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.advent-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------- the recipe behind the door */

/* After the door opens, the recipe large (D6): a card in the middle on a wide screen, a sheet
 * rising from the bottom on a phone. A real `<dialog>`, opened with `showModal()`.
 *
 * On the page's own colour, not the surface: palette.py walks the `-ink` shades and the
 * muted text to 4.5:1 against `--color-bg`, and on a dark site the lifted surface took the
 * kicker under it (4.23:1, measured). On a light site the two are one colour to the eye. */
.advent-reveal {
  width: min(58rem, calc(100% - 3rem)); max-width: none; max-height: calc(100% - 3rem);
  margin: auto; padding: 0;
  border: 0; border-radius: calc(var(--radius-md) + 0.5rem);
  background: var(--color-bg); color: var(--color-text); overflow: visible;
}
.advent-reveal::backdrop { background: var(--color-deep); opacity: 0.86; }
.reveal-card {
  position: relative; display: grid; align-items: center; gap: 2.75rem;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); padding: 1.5rem;
}
.reveal-image { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-md); background: var(--color-primary-soft); }
.reveal-image img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md);
}
/* the door's number, as a gift tag */
.reveal-tag {
  position: absolute; left: -0.875rem; top: -0.875rem;
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem;
  border: 3px solid var(--color-bg); border-radius: 50%;
  background: var(--color-deep-accent); color: var(--color-deep);
  font: 700 1.625rem/1 var(--font-heading); letter-spacing: -0.03em; transform: rotate(-8deg);
}
.reveal-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  min-width: 0; padding-right: 1.5rem;
}
.reveal-kicker {
  margin: 0; font: 700 0.8125rem/1.2 var(--font-heading); text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--color-secondary-ink);
}
.reveal-title { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.reveal-main {
  font: 700 clamp(1.75rem, 1.53rem + 0.9vw, 2.25rem)/1.1 var(--font-heading); letter-spacing: -0.025em;
}
.reveal-deck { font: italic 400 1.375rem/1.3 var(--font-body); letter-spacing: 0; color: var(--color-muted); }
.reveal-deck:empty { display: none; }
.reveal-meta {
  margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem;
  font: 400 0.9375rem/1.4 var(--font-heading); color: var(--color-muted);
}
.reveal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin: 0.5rem 0 0; }
/* The theme's own button, whichever theme: two of them draw it as an inline block. */
.reveal-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); }
.reveal-actions .btn svg { flex: none; width: 1.125rem; height: 1.125rem; }
.reveal-back {
  padding: 0.625rem 0; border: 0; background: none; cursor: pointer;
  font: 600 1rem/1.4 var(--font-heading); color: var(--color-primary-ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.reveal-back:hover { color: var(--color-text); }
.reveal-close {
  position: absolute; right: 0.875rem; top: 0.875rem; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-bg); color: var(--color-text); cursor: pointer;
  transition: border-color 0.15s ease;
}
.reveal-close:hover { border-color: var(--color-text); }
.reveal-close svg { width: 1.25rem; height: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .advent-reveal[open] { animation: advent-rise 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
@keyframes advent-rise { from { opacity: 0; transform: translateY(1.25rem); } }

/* ------------------------------------------------- under the calendar */

/* "Még több karácsonyi recept" (D12): the source collection's cards, in the theme's grid. */
.advent-more { margin-top: var(--space-xl); }
.home-main > .advent-more { margin-bottom: var(--space-xl); }
/* Always four cards: one row of them on a wide screen, as in the design, whatever the
 * theme's own grid does with a list of any length. A phone keeps the theme's columns. */
@media (min-width: 60rem) {
  .advent-more .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ a phone */

@media (max-width: 63.99rem) {
  .door:not(.door-w):not(.door-finale) .door-caption { display: none; }
  .door-num { font-size: 2.25rem; }
  .door-w .door-num, .door-finale .door-num { font-size: 2.75rem; }
}

/* On a phone four columns, eight rows. Here the 22nd is wide as well and the 24th the whole
 * row, so the grid again fills without a gap:
 *   [1 1][2][3] / [4][5][6 6] / [7][8][9][10] / [11][12][13 13] /
 *   [14][15][16][17] / [18][19][20 20] / [21][22 22][23] / [24 24 24 24] */
@media (max-width: 47.99rem) {
  .advent > .wrap-wide { padding-top: 2rem; padding-bottom: 2.5rem; }
  .advent-framed > .wrap-wide { padding-left: 1rem; padding-right: 1rem; }
  .advent-head { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .advent-intro { gap: 0.75rem; }
  .advent .eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; }
  .advent-today { padding: 0.75rem 1rem 0.75rem 0.875rem; }
  .advent-jump { margin-left: auto; }
  .advent-status { font-size: 0.875rem; }
  .advent-status strong { font-size: 1rem; }
  .advent-grid { margin-top: 1.75rem; gap: 0.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .door-w-sm { grid-column: span 2; aspect-ratio: auto; }
  .door-finale { grid-column: 1 / -1; aspect-ratio: 3.4 / 1; }

  /* other neighbours, another deal of the colours */
  .advent-grid > .door { --patch: var(--color-primary-ink); --patch-ink: var(--color-bg); --patch-line: var(--color-primary-ink); }
  .advent-grid > .door:nth-child(1), .advent-grid > .door:nth-child(6), .advent-grid > .door:nth-child(7),
  .advent-grid > .door:nth-child(13), .advent-grid > .door:nth-child(15), .advent-grid > .door:nth-child(20),
  .advent-grid > .door:nth-child(21), .advent-grid > .door:nth-child(24) {
    --patch: var(--color-secondary-ink); --patch-line: var(--color-secondary-ink);
  }
  .advent-grid > .door:nth-child(3), .advent-grid > .door:nth-child(5), .advent-grid > .door:nth-child(9),
  .advent-grid > .door:nth-child(12), .advent-grid > .door:nth-child(14), .advent-grid > .door:nth-child(17),
  .advent-grid > .door:nth-child(19), .advent-grid > .door:nth-child(23) {
    --patch: var(--color-deep); --patch-ink: var(--color-primary-soft); --patch-line: var(--color-primary-ink);
  }

  .door-hit, .door-back, .door-leaf { border-radius: var(--radius-sm); }
  .door.is-today:not(.is-open)::after { inset: -0.25rem; border-radius: calc(var(--radius-sm) + 0.25rem); }
  .door-leaf::before { inset: 0.3125rem; border-radius: calc(var(--radius-sm) - 0.25rem); }
  .door-num, .door-w .door-num, .door-finale .door-num { left: 0.625rem; bottom: 0.5rem; font-size: 1.75rem; }
  .door-w .door-num, .door-w-sm .door-num, .door-finale .door-num { font-size: 2.25rem; }
  .door-knob { right: 0.5625rem; width: 0.375rem; height: 0.375rem; margin-top: -0.1875rem; }
  .door-lock { right: 0.4375rem; width: 0.875rem; height: 0.875rem; margin-top: -0.4375rem; }
  .door-star { right: 2rem; width: 2rem; height: 2rem; margin-top: -1rem; }
  .door-note { left: 0.625rem; top: 0.5625rem; right: 0.5rem; font-size: 0.625rem; letter-spacing: 0.1em; }
  .door:not(.door-w):not(.door-w-sm):not(.door-finale) .door-note span { display: none; }
  .door-tag { right: 0.375rem; top: 0.375rem; padding: 0.25rem 0.4375rem; font-size: 0.625rem; letter-spacing: 0.1em; }
  .door.is-today .door-note { display: none; }
  .door-chip {
    left: 0.375rem; top: 0.375rem; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem;
    font-size: 0.75rem; line-height: 1.5rem;
  }
  .door-caption { padding: 2rem 0.625rem 0.5rem; }
  .door-w .door-name, .door-finale .door-name { font-size: 0.8125rem; }
  .door-w-sm .door-caption { display: none; }
  .advent-rule { margin-top: 1.25rem; font-size: 0.875rem; }

  .advent-reveal {
    width: 100%; max-width: none; max-height: calc(100% - 2rem); margin: auto 0 0;
    border-radius: calc(var(--radius-md) + 0.5rem) calc(var(--radius-md) + 0.5rem) 0 0; overflow: auto;
  }
  .reveal-card { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1rem 1rem 1.5rem; }
  .reveal-image { aspect-ratio: 4 / 3; }
  .reveal-tag { left: 0.75rem; top: 0.75rem; width: 3.25rem; height: 3.25rem; font-size: 1.375rem; }
  .reveal-body { gap: 0.75rem; padding: 0 0.25rem; }
  .reveal-kicker { font-size: 0.75rem; letter-spacing: 0.12em; }
  .reveal-deck { font-size: 1.1875rem; }
  .reveal-actions { width: 100%; justify-content: center; }
  .reveal-actions .btn { width: 100%; }
  .reveal-close { right: 1.5rem; top: 1.5rem; }
}
