/*
  12daysofsinging.fun styles — the cubanjon.com family, dressed for Christmas.
  Owns:     every visual on the page: evergreen night with snow dots, the string of lights, lime
            lens frames with hard offset shadows, the Best Elf pop-out, season cards, advent gifts.
  Not here: content (index.html), the countdown and Share (elf.js), turning gimmicks on (gimmicks.js).
  Type:     Shrikhand for display only, Cabin body, Cabin Condensed labels (as cubanjon.com).
  Contrast (WCAG 2.2 AA, checked by tools/contrast.py): white/pine 10.3, butter/pine 7.3,
            frost/pine 7.9, white/stage 14.6, butter/stage 10.4, mint-dim/stage 9.9, ink/mint 13.3,
            flamingo-ink/mint 6.7, sea/mint 7.6, ink/butter 11.3, ink/lime 8.5, white/flamingo 6.8.
  Motion:   one orchestrated moment (lights on, elf pops, badge stamps) runs once, in CSS, only under
            prefers-reduced-motion: no-preference. Snow is off until the visitor turns it on.
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --pine: #0F4A33;          /* the evergreen night */
  --pine-deep: #0A3324;
  --frost: #CFE8DA;         /* secondary text on pine */
  --stage: #16235E;         /* the archive stage (cubanjon.com's credits navy) */
  --mint-dim: #B9DCCD;      /* secondary text on stage */
  --mint: #DCEFE5;          /* plaster */
  --ink: #14213D;
  --muted: #3D4A63;
  --sea: #0E4D6B;           /* links on mint */
  --flamingo: #B3173F;      /* shadows and fills behind white text */
  --flamingo-ink: #9E1240;  /* flamingo as text on mint */
  --butter: #F7D857;        /* headings on dark */
  --lime: #4FD83A;          /* frames only, never text on light */
  --red: #FF3B30; --sky: #74D7EE;   /* bulbs (decorative) */
  --wrap: 70rem;
  /* Shape, depth and type, shared by every page type (design pass, 2026-11-20). */
  --r-card: 14px; --r-chip: 999px; --r-bubble: 18px 18px 18px 4px;
  --drop-sm: 3px 3px 0; --drop: 6px 6px 0; --drop-lg: 10px 10px 0;
  --fs-h1: clamp(2.6rem, 7.4vw, 5.6rem);        /* the home hero */
  --fs-h1-page: clamp(2.6rem, 8vw, 4.4rem);     /* song pages and /songs/: one step under */
  --fs-h2: clamp(1.75rem, 4.2vw, 2.6rem);
  --fs-label: .95rem;                            /* Cabin Condensed 700 */
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--pine); color: #fff; font: 400 1.15rem/1.6 "Cabin", system-ui, sans-serif; overflow-x: clip; }
body::before {               /* Progress Pride, as a row of 1x1 bricks with studs (decorative) */
  content: ""; display: block; height: 12px;
  background:
    radial-gradient(circle at 12px 4px, rgb(255 255 255 / .38) 0 3px, transparent 3.5px) 0 0 / 24px 12px,
    linear-gradient(transparent 9px, rgb(0 0 0 / .22) 9px) 0 0 / 100% 12px,
    repeating-linear-gradient(90deg, transparent 0 23px, rgb(0 0 0 / .25) 23px 24px),
    linear-gradient(90deg, #E40303 0 11%, #FF8C00 0 22%, #FFED00 0 33%, #008026 0 44%,
      #24408E 0 55%, #732982 0 66%, #FFFFFF 0 72%, #FFAFC8 0 80%, #74D7EE 0 88%, #613915 0 94%, #000 0);
}
h1, h2 { font-family: "Shrikhand", Georgia, serif; font-weight: 400; line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); color: var(--butter); text-shadow: 3px 3px 0 var(--flamingo); }
h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
a { color: #fff; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--butter); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
section { padding: 4.5rem 0; }
.intro { max-width: 46rem; font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 0 0 2rem; }
.skip { position: absolute; left: -999px; top: 0; z-index: 90; background: var(--stage); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
h1, h2, h3, .kicker, .lede, .intro, .s-score, .f-t, .verdict { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Snow dots on every pine surface (static texture, decorative) */
.hero, .pine, .foot, .song-page main {
  background: radial-gradient(circle at 20px 30px, rgb(255 255 255 / .5) 0 2px, transparent 2.5px) 0 0 / 90px 70px,
    radial-gradient(circle at 60px 12px, rgb(255 255 255 / .3) 0 1.5px, transparent 2px) 0 0 / 130px 110px, var(--pine);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top { background: var(--pine-deep); border-bottom: 3px solid var(--lime); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block: .4rem; }
.brand { font: 400 1.35rem/1 "Shrikhand", Georgia, serif; color: var(--butter); text-decoration: none; text-shadow: 2px 2px 0 var(--flamingo); padding: .5rem 0; }
.top ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 .2rem; margin: 0; padding: 0; }
.top li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem; font-weight: 700; font-size: 1rem; text-decoration: none; }
.top li a:hover, .top li a[aria-current="page"] { text-decoration: underline; }
.top .quick a[aria-current="page"] { color: var(--butter); }

/* ============================================================
   HERO: the elf breaks out of a lime frame under a string of lights
   ============================================================ */
.hero { padding: 7rem 0 4.5rem; }
.frame { position: relative; display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.75rem); align-items: center;
  border: 12px solid var(--lime); border-top-width: 16px; border-radius: 999px 999px 28px 28px / 160px 160px 28px 28px;
  box-shadow: 10px 10px 0 var(--flamingo); padding: clamp(1.5rem, 4vw, 3rem);
  background: radial-gradient(ellipse at 30% 110%, #1B6B48, transparent 60%), var(--pine-deep); }
.lights { position: absolute; top: 4px; left: 42%; right: 14%; height: 30px; display: flex; justify-content: space-between; pointer-events: none;
  background: linear-gradient(#06190F, #06190F) 0 9px / 100% 2px no-repeat; }
.lights i, .meter i { display: block; width: 13px; height: 17px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; margin-top: 10px; position: relative; }
.lights i::before, .meter i::before { content: ""; position: absolute; left: 3px; top: -4px; width: 7px; height: 5px; border-radius: 2px; background: #2A3B33; }
.lights i:nth-child(even) { margin-top: 13px; }
.r { --c: var(--red); } .b { --c: var(--butter); } .g { --c: var(--lime); } .s { --c: var(--sky); }
.lights i, .meter i { background: var(--c); box-shadow: 0 0 10px 1px var(--c); }
.meter i.off { background: #3A4A60; box-shadow: none; }
.elf { position: relative; margin: -9.5rem 0 0; align-self: start; z-index: 1; }
.elf img { display: block; width: 100%; height: auto; filter: drop-shadow(6px 8px 0 rgb(0 0 0 / .3));
  -webkit-mask-image: linear-gradient(#000 78%, transparent 98%); mask-image: linear-gradient(#000 78%, transparent 98%); }
.elf-badge { position: absolute; right: -.4rem; bottom: 14%; rotate: -8deg; white-space: nowrap; background: var(--butter); color: var(--ink);
  padding: .4rem .9rem; border-radius: 999px; font: 700 1.05rem/1 "Cabin Condensed", "Cabin", sans-serif; box-shadow: 4px 4px 0 var(--flamingo); }
.kicker { margin: 0 0 .4rem; font-style: italic; color: var(--frost); font-size: 1.15rem; }
.s12 { display: inline-block; font: 700 .95rem/1 "Cabin Condensed", "Cabin", sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase;
  background: var(--flamingo); color: #fff; padding: .35rem .6rem; border-radius: 6px; margin-left: .3rem; rotate: -3deg; }
h1 { font-size: var(--fs-h1); color: var(--butter); text-shadow: 4px 4px 0 var(--flamingo); margin: 0 0 .25em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; margin: 0 0 .8rem; max-width: 36rem; }
/* The countdown sits under the elf like a gift tag (desktop); on phones it follows the buttons. */
.frame .elf { grid-column: 1; grid-row: 1; }
.frame .count { grid-column: 1; grid-row: 2; align-self: start; justify-self: center; text-align: center; margin: 0; rotate: -2deg; max-width: 17rem;
  font: 700 clamp(1.1rem, 2vw, 1.3rem)/1.3 "Cabin Condensed", "Cabin", sans-serif; letter-spacing: .03em; color: var(--ink);
  background: var(--butter); padding: .7rem 1rem; border-radius: 10px; box-shadow: 5px 5px 0 var(--flamingo); }
.frame .hero-copy { grid-column: 2; grid-row: 1 / span 2; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px; font: 700 1rem/1.2 "Cabin", sans-serif;
  text-decoration: none; color: var(--ink); background: var(--butter); border: 2px solid var(--butter); box-shadow: 0 4px 0 var(--flamingo); cursor: pointer; }
.cta:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--flamingo); }
.cta.ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 4px 0 rgb(0 0 0 / .35); }
.cta.ghost:hover { background: rgb(255 255 255 / .14); color: #fff; }
.fx-toggle[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.fx-toggle[hidden], .share[hidden] { display: none; }
.cta .ico { flex: none; margin-right: .45rem; }
@media (prefers-reduced-motion: reduce) { .cta:active { transform: none; } }

/* The moment: bulbs switch on one by one (each brightens once, never blinks), then the elf rises out
   of the frame and the badge stamps on. About 2.5 s, once. JS off still gets it; reduced motion
   gets the finished picture. */
@media (prefers-reduced-motion: no-preference) {
  .lights i { animation: bulb-on .45s calc(var(--n, 0) * 110ms + .2s) ease-out both; }
  .lights i:nth-child(1) { --n: 0; } .lights i:nth-child(2) { --n: 1; } .lights i:nth-child(3) { --n: 2; } .lights i:nth-child(4) { --n: 3; }
  .lights i:nth-child(5) { --n: 4; } .lights i:nth-child(6) { --n: 5; } .lights i:nth-child(7) { --n: 6; } .lights i:nth-child(8) { --n: 7; }
  .lights i:nth-child(9) { --n: 8; } .lights i:nth-child(10) { --n: 9; } .lights i:nth-child(11) { --n: 10; } .lights i:nth-child(12) { --n: 11; }
  @keyframes bulb-on { from { background: #3A4A60; box-shadow: none; } to { background: var(--c); box-shadow: 0 0 10px 1px var(--c); } }
  .elf img { animation: elf-pop .7s 1.55s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes elf-pop { from { transform: translateY(28%) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
  .elf-badge { animation: stamp .35s 2.2s cubic-bezier(.3, 1.8, .5, 1) both; }
  @keyframes stamp { from { scale: 1.8; opacity: 0; } to { scale: 1; opacity: 1; } }
}

/* Snow, on request (gimmicks.js toggles body.fx-snow; the button is the pause control, WCAG 2.2.2). */
.snow { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: none;
  background: radial-gradient(circle at 30px 40px, rgb(255 255 255 / .9) 0 2.5px, transparent 3px) 0 0 / 140px 160px,
    radial-gradient(circle at 90px 10px, rgb(255 255 255 / .7) 0 2px, transparent 2.5px) 0 0 / 190px 210px,
    radial-gradient(circle at 10px 90px, rgb(255 255 255 / .6) 0 1.5px, transparent 2px) 0 0 / 110px 130px; }
.fx-snow .snow { display: block; }   /* reduced motion keeps these still flakes */
@media (prefers-reduced-motion: no-preference) {
  .fx-snow .snow { animation: fall 14s linear infinite; }
  @keyframes fall { to { background-position: 40px 640px, -60px 840px, 20px 520px; } }
}

/* ============================================================
   STORY (plaster)
   ============================================================ */
.plaster { background: var(--mint); color: var(--ink); }
.plaster h2 { color: var(--flamingo-ink); text-shadow: 3px 3px 0 var(--butter); }
.plaster a { color: var(--sea); }
.plaster a:hover { color: var(--flamingo-ink); }
.plaster :focus-visible { outline-color: var(--flamingo); }
.big { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.45; }
.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .8rem; }
.stats li { background: #fff; border: 3px solid var(--stage); border-radius: 12px; box-shadow: 5px 5px 0 var(--lime); padding: .7rem .9rem; line-height: 1.25; font-weight: 600; }
.stats .n { display: block; font: 400 2.2rem/1.1 "Shrikhand", Georgia, serif; color: var(--flamingo-ink); }
.gags { padding-left: 1.2rem; margin: 0; }
.gags li { margin-bottom: .5rem; }

/* ============================================================
   SEASONS (stage): one <details> card per season
   ============================================================ */
.stage { background: var(--stage); }
.stage .intro, .fine { color: var(--mint-dim); }
.fine { font-size: 1rem; margin: 2rem 0 0; }
.seasons { display: grid; gap: 1rem; }
.season { background: #1C2C70; border: 3px solid var(--lime); border-radius: var(--r-card); box-shadow: var(--drop) var(--flamingo); }
.season.next { margin-bottom: 1rem; border-style: dashed; }
.season summary, .s-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding: .9rem 1.1rem; margin: 0; min-height: 44px; }
.season summary { cursor: pointer; list-style: none; }
.season summary::-webkit-details-marker { display: none; }
.season summary::after { content: "+"; margin-left: auto; font: 700 1.5rem/1 "Cabin", sans-serif; color: var(--butter); }
.season[open] summary::after { content: "−"; }
.season summary:hover .s-name { text-decoration: underline; }
.s-name { font: 400 1.5rem/1.1 "Shrikhand", Georgia, serif; color: var(--butter); }
.s-year { font: 700 1.15rem/1 "Cabin Condensed", "Cabin", sans-serif; color: var(--mint-dim); }
.meter { display: flex; gap: 4px; }
.meter i { width: 11px; height: 14px; margin-top: 4px; }
.meter i::before { left: 2px; width: 7px; }
.s-score { font-weight: 700; }
.s-tier { font: 700 .9rem/1 "Cabin Condensed", "Cabin", sans-serif; background: var(--butter); color: var(--ink); padding: .3rem .6rem; border-radius: 999px; rotate: -3deg; }
.s-body { padding: 0 1.1rem 1.1rem; }
.verdict { margin: 0 0 1rem; font-style: italic; color: #fff; }
.s-note, .basis { color: var(--mint-dim); font-size: 1rem; }
.basis { margin: 1rem 0 0; }
.eps { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.eps li { display: grid; grid-template-columns: 6.5rem 4rem minmax(0, 1fr) auto; gap: .2rem .8rem; padding: .45rem .3rem; border-top: 1px solid rgb(185 220 205 / .25); align-items: baseline; }
.ep-day { font: 700 1rem/1.3 "Cabin Condensed", "Cabin", sans-serif; color: var(--butter); text-transform: uppercase; letter-spacing: .04em; }
.ep-date { font-size: .95rem; color: var(--mint-dim); }
.ep-song a { font-weight: 700; display: inline-block; padding-block: .3rem; }   /* taller hit area */
.where { font: 600 .8rem/1 "Cabin Condensed", "Cabin", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
  background: var(--mint-dim); padding: .2rem .4rem; border-radius: 4px; margin-left: .3rem; vertical-align: 2px; white-space: nowrap; }
.ep-note { color: var(--mint-dim); font-size: .95rem; }
.gap .q { font: 400 1.3rem/1 "Shrikhand", Georgia, serif; color: var(--butter); }
@media (max-width: 560px) {
  .eps li { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .ep-song { grid-column: 1 / -1; }
  .eps .ep-page { grid-column: 3; grid-row: 1; }
  .season summary, .s-line { padding: .8rem .9rem; }
  .s-body { padding: 0 .9rem .9rem; }
}

/* ============================================================
   GIFTS (pine): advent.js. Thirteen wrapped boxes, each a body, a lid with a bow, and a paper tag.
   States: .is-locked (future: shakes, "no peeking"), .is-today (glows and wiggles), .is-past/.is-open
   (lid off, the song's thumbnail peeking out). Unwrapping flies the lid off and pops the elf up.
   ============================================================ */
.gifts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1.6rem 1.1rem; grid-auto-flow: dense; align-items: end; }
.gift.wide { grid-column: span 2; }
.gift.huge { grid-column: 1 / -1; }
.gift-btn { display: grid; justify-items: center; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.box { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; }
.gift.tall .box { aspect-ratio: 4 / 5; }
.gift.wide .box { aspect-ratio: 2 / 1; }
.gift.huge .box { aspect-ratio: 4 / 1; max-height: 12rem; }
/* The paper: --p the colour, --q the pattern ink, --rib the ribbon. */
.gift { --p: var(--flamingo); --q: rgb(247 216 87 / .55); --rib: var(--butter); }
.gift.p2 { --p: var(--stage); --q: rgb(255 255 255 / .35); --rib: var(--red); }
.gift.p3 { --p: #7A1F6B; --q: rgb(79 216 58 / .45); --rib: var(--butter); }
.gift.p4 { --p: var(--butter); --q: rgb(179 23 63 / .35); --rib: var(--flamingo); }
.gift.p5 { --p: var(--sea); --q: rgb(255 255 255 / .45); --rib: var(--lime); }
.gift.p6 { --p: var(--flamingo); --q: rgb(247 216 87 / .4); --rib: var(--lime); }
.box .body, .box .lid { position: absolute; border-radius: 6px; background-color: var(--p);
  background-image: linear-gradient(90deg, transparent calc(50% - .45rem), var(--rib) calc(50% - .45rem) calc(50% + .45rem), transparent 0); }
.box .body { inset: 24% 6% 0; z-index: 2; box-shadow: var(--drop) var(--pine-deep);
  background-image: linear-gradient(90deg, transparent calc(50% - .45rem), var(--rib) calc(50% - .45rem) calc(50% + .45rem), transparent 0),
    linear-gradient(transparent calc(50% - .45rem), var(--rib) calc(50% - .45rem) calc(50% + .45rem), transparent 0),
    radial-gradient(circle at 9px 9px, var(--q) 0 3px, transparent 3.5px); background-size: auto, auto, 22px 22px; }
.gift.p2 .box .body, .gift.p4 .box .body { background-image: linear-gradient(90deg, transparent calc(50% - .45rem), var(--rib) calc(50% - .45rem) calc(50% + .45rem), transparent 0),
    linear-gradient(transparent calc(50% - .45rem), var(--rib) calc(50% - .45rem) calc(50% + .45rem), transparent 0),
    repeating-linear-gradient(-45deg, var(--q) 0 6px, transparent 6px 16px); background-size: auto; }
.box .lid { left: 1%; right: 1%; top: 12%; height: 15%; z-index: 4; filter: brightness(.92); box-shadow: 0 4px 0 rgb(0 0 0 / .25);
  transform-origin: 15% 100%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.box .bow { position: absolute; left: 50%; bottom: 80%; width: 3.2rem; height: 1.6rem; translate: -50% 0; }
.box .bow::before, .box .bow::after { content: ""; position: absolute; bottom: 0; width: 1.6rem; height: 1.3rem; border: .4rem solid var(--rib);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.box .bow::before { left: 0; rotate: -18deg; }
.box .bow::after { right: 0; rotate: 18deg; }
.gift.huge .box .bow { width: 4.4rem; height: 2.2rem; }
.gift.huge .box .bow::before, .gift.huge .box .bow::after { width: 2.2rem; height: 1.8rem; }
/* The tag: white card, ink words (the only text on a gift). */
.tag { position: relative; z-index: 5; display: inline-grid; justify-items: center; margin-top: -.9rem; padding: .3rem .8rem .35rem; background: #fff;
  color: var(--ink); border-radius: 6px 6px 6px 6px; box-shadow: var(--drop-sm) var(--pine-deep); rotate: -3deg; text-align: center; }
.gift:nth-child(even) .tag { rotate: 2.5deg; }
.tag .num { font: 400 1.6rem/1 "Shrikhand", Georgia, serif; color: var(--flamingo-ink); }
.tag .when { font: 700 .9rem/1.2 "Cabin Condensed", "Cabin", sans-serif; }
.tag .state { font: 600 .85rem/1.2 "Cabin Condensed", "Cabin", sans-serif; color: var(--muted); }
.gift.huge .tag .num { font-size: 1.9rem; }
.gift-btn:hover .tag, .gift-btn:focus-visible .tag { background: var(--butter); }
.gift-btn:focus-visible { outline: 4px solid var(--butter); outline-offset: 6px; border-radius: 10px; }
/* Today: the one to open. */
.gift.is-today .tag { background: var(--butter); }
.gift.is-today .tag .state { color: var(--ink); font-weight: 700; }
.gift.is-today .box { filter: drop-shadow(0 0 .9rem rgb(247 216 87 / .75)); }
/* Opened: the lid sits askew and the song peeks out. */
.gift.is-past .lid, .gift.is-open .lid { transform: translate(-22%, -62%) rotate(-24deg); }
.box .peek { position: absolute; left: 16%; right: 16%; top: 6%; height: 40%; z-index: 1; object-fit: cover; object-position: 50% 30%;
  border-radius: 6px; border: 3px solid #fff; }
.box .elf-pop { position: absolute; left: 50%; bottom: 40%; width: 70%; max-width: 9rem; translate: -50% 0; z-index: 1; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .gift.is-today .box { animation: wiggle 3.2s ease-in-out 1s 3; }   /* three wiggles, then still (WCAG 2.2.2) */
  @keyframes wiggle { 0%, 82%, 100% { rotate: 0deg; } 86% { rotate: -4deg; } 90% { rotate: 4deg; } 94% { rotate: -2deg; } }
  .gift.shake .box { animation: shake .5s ease-in-out; }
  @keyframes shake { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
  .gift.unwrapping .lid { animation: lidfly .6s ease-in forwards; }
  @keyframes lidfly { to { transform: translate(-30%, -260%) rotate(-40deg); opacity: 0; } }
  .gift.unwrapping .elf-pop { animation: elfpop .9s cubic-bezier(.3, 1.5, .5, 1) forwards; }
  @keyframes elfpop { 0% { opacity: 0; transform: translateY(40%) scale(.6); } 35% { opacity: 1; transform: translateY(-18%) scale(1); }
    80% { opacity: 1; transform: translateY(-10%) scale(1); } 100% { opacity: 0; transform: translateY(20%) scale(.9); } }
  .unwrapped:not([hidden]) { animation: rise .35s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
.box .bubble { position: absolute; left: 50%; top: -1.6rem; z-index: 6; translate: -50% 0; padding: .3rem .7rem; white-space: nowrap;
  background: #fff; color: var(--ink); font: 700 .95rem/1.2 "Cabin", sans-serif; border-radius: var(--r-bubble); box-shadow: var(--drop-sm) var(--flamingo); }
.gift.is-unlocked .tag { background: var(--lime); }
.gift.is-unlocked .tag .state { color: var(--ink); font-weight: 700; }
.raised { margin: 1rem 0 0; padding: .6rem 1rem; display: inline-block; background: var(--pine-deep); border: 2px solid var(--butter); border-radius: 999px;
  color: var(--butter); font-weight: 700; }
.raised[hidden] { display: none; }
.unlock-intro { margin: 0 0 1rem; color: var(--frost); max-width: 46rem; }
.causes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.cause { padding: 1rem; background: var(--stage); border: 2px solid var(--lime); border-radius: 10px; display: grid; gap: .4rem; align-content: start; }
.cause p { margin: 0; }
.cause-name { font-weight: 700; color: #fff; }
.cause-why { color: var(--frost); font-size: .95rem; }
.cause .cta { justify-self: start; margin-top: .3rem; }
.forward { margin-top: 1.2rem; }
.forward p { margin: 0 0 .5rem; }
.forward-h { color: var(--frost); }
.forward-addr { font: 700 clamp(1.05rem, 3vw, 1.3rem)/1.3 "Cabin", sans-serif; color: var(--butter); word-break: break-all; user-select: all; }
.forward-wait { color: var(--frost); font-size: .95rem; margin-top: .6rem !important; }
.copy-addr[hidden] { display: none; }
.gift-say { min-height: 1.5em; margin: 1.2rem 0 0; font-weight: 700; color: var(--butter); }
.sample-row { margin: 1.4rem 0 0; }
/* What was inside. */
.unwrapped { margin-top: 1rem; padding: 1.2rem; background: var(--pine-deep); border: 4px solid var(--lime); border-radius: var(--r-card);
  box-shadow: var(--drop) var(--flamingo); }
#gift-h:focus { outline: none; }
#gift-h:focus-visible { outline: 3px solid var(--butter); outline-offset: 4px; border-radius: 4px; }
#gift-h { margin: 0 0 1rem; font: 400 clamp(1.3rem, 3.4vw, 1.8rem)/1.15 "Shrikhand", Georgia, serif; color: var(--butter); text-shadow: var(--drop-sm) var(--flamingo); }
.gift-body { display: grid; gap: 1.2rem; }
.gift-card { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.gift-card + .gift-card { padding-top: 1.2rem; border-top: 1px solid rgb(185 220 205 / .25); }
.gift-card .g-poster { grid-area: auto; width: 100%; }
.g-words p { margin: 0; }
.g-kicker { font: 700 var(--fs-label)/1.3 "Cabin Condensed", "Cabin", sans-serif; color: var(--butter); }
.g-song { font: 400 clamp(1.4rem, 3.6vw, 2rem)/1.15 "Shrikhand", Georgia, serif; color: #fff; margin: .2rem 0 !important; }
.g-meta { color: var(--frost); }
.g-acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .9rem !important; }
@media (max-width: 560px) {
  .gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; }
  .gift.wide { grid-column: 1 / -1; }
  .gift.huge .box { aspect-ratio: 3 / 1; }
  .gift-card { grid-template-columns: 1fr; }
}

/* The deliveries card (plaster on pine): sign up, pick a sweater and a time, install. */
.deliveries { margin-top: 3rem; padding: 1.4rem; background: var(--mint); color: var(--ink); border: 4px solid var(--lime); border-radius: var(--r-card);
  box-shadow: var(--drop) var(--flamingo); }
.deliveries :focus-visible { outline: 3px solid var(--flamingo); outline-offset: 3px; }
.deliveries a { color: var(--sea); font-weight: 700; }
.deliveries a:hover { color: var(--flamingo-ink); }
.deliv-head { display: flex; gap: 1rem; align-items: flex-end; }
.deliv-elf { flex: none; width: 6.5rem; height: 6.5rem; margin-top: -3.4rem; border-radius: 50%; background: #326074; border: 4px solid var(--lime);
  object-fit: cover; object-position: 50% 0; }
#deliv-h { margin: 0; font: 400 clamp(1.4rem, 3.6vw, 2rem)/1.15 "Shrikhand", Georgia, serif; color: var(--flamingo-ink); text-shadow: 2px 2px 0 var(--butter); }
.deliv-lede { margin: .4rem 0 0; }
.install { margin: 1rem 0 0; padding: .8rem 1rem; background: #fff; border-radius: 10px; }
.install p { margin: 0 0 .4rem; }
.install-go.cta.ghost { color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--butter); }
.deliv-form fieldset { margin: 1.4rem 0 0; padding: 0; border: 0; }
.how-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .5rem; }
.how-opt { display: flex; gap: .55rem; align-items: flex-start; min-height: 44px; padding: .7rem .8rem; background: #fff; border: 3px solid #fff; border-radius: 10px; cursor: pointer; }
.how-opt:has(input:checked) { border-color: var(--flamingo); box-shadow: var(--drop-sm) var(--butter); }
.how-opt input { accent-color: var(--flamingo-ink); width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; }
.how-name { display: block; font-weight: 700; }
.how-blurb { display: block; font-size: .9rem; color: var(--muted); }
.how-field, .code-step p { margin: 1rem 0 0; display: grid; gap: .35rem; max-width: 26rem; }
.how-field label, .code-step label { font-weight: 700; }
.how-field input, .code-step input { min-height: 44px; padding: .5rem .8rem; font: 400 1.05rem/1.3 "Cabin", sans-serif; color: var(--ink);
  background: #fff; border: 2px solid var(--muted); border-radius: 8px; }
.how-field input[aria-invalid="true"], .code-step input[aria-invalid="true"] { border-color: var(--flamingo-ink); border-width: 3px; }
.code-step input { max-width: 9rem; letter-spacing: .25em; font-weight: 700; }
.sms-terms, .email-terms { margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); max-width: 44rem; }
.deliveries [hidden] { display: none; }   /* .cta's display would otherwise beat [hidden] */
.deliv-form legend { font: 700 1.15rem/1.3 "Cabin", sans-serif; padding: 0; }
.deliv-form .hint { margin: .2rem 0 .7rem; color: var(--muted); }
.sweater-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.sw { position: relative; display: grid; gap: .5rem; align-content: start; padding: .7rem; background: #fff; border: 3px solid #fff; border-radius: 10px; cursor: pointer; }
.sw:has(input:checked) { border-color: var(--flamingo); box-shadow: var(--drop-sm) var(--butter); }
.sw:has(input:focus-visible) { outline: 3px solid var(--flamingo); outline-offset: 3px; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw-name { display: block; font-weight: 700; line-height: 1.2; }
.sw-blurb { display: block; font-size: .9rem; color: var(--muted); }
/* The knit: one swatch per level, plain to loud (decorative). */
.sw-knit { height: 2.4rem; border-radius: 6px; background: var(--stage); }
.sw1 .sw-knit { background: repeating-linear-gradient(90deg, #7A1F6B 0 6px, #6A1A5D 6px 12px); }
.sw2 .sw-knit { background: repeating-linear-gradient(0deg, var(--flamingo) 0 6px, #9E1240 6px 12px); }
.sw3 .sw-knit { background: radial-gradient(circle at 8px 8px, var(--butter) 0 3px, transparent 3.5px) 0 0 / 16px 16px, var(--pine); }
.sw4 .sw-knit { background: repeating-linear-gradient(45deg, var(--red) 0 7px, #fff 7px 10px, var(--lime) 10px 17px, #fff 17px 20px); }
.sw5 .sw-knit { background: radial-gradient(circle at 10px 10px, var(--butter) 0 4px, transparent 4.5px) 0 0 / 20px 20px,
  repeating-linear-gradient(45deg, var(--red) 0 7px, #fff 7px 10px, var(--lime) 10px 17px, #fff 17px 20px); }
.sw:has(input:checked) .sw-name::after { content: " ✓"; color: var(--flamingo-ink); }
.knock-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.knock-row label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .3rem .9rem; background: #fff; border: 3px solid #fff;
  border-radius: 999px; cursor: pointer; font-weight: 600; }
.knock-row label:has(input:checked) { border-color: var(--flamingo); }
.knock-row input { accent-color: var(--flamingo-ink); width: 1.1rem; height: 1.1rem; margin: 0; }
.knock-row .t { color: var(--muted); font-weight: 400; }
.special { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.2rem; cursor: pointer; }
.special input { accent-color: var(--flamingo-ink); width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; flex: none; }
.deliv-go { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.3rem 0 0; }
.deliv-stop.cta.ghost { color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 rgb(0 0 0 / .2); }
.deliv-stop.cta.ghost:hover { background: #fff; }
.deliv-stop[hidden] { display: none; }
.cta[aria-disabled="true"] { opacity: .7; cursor: progress; }
.deliv-status { margin: .8rem 0 0; font-weight: 700; color: var(--sea); }
.deliv-error { margin: .4rem 0 0; font-weight: 700; color: var(--flamingo-ink); }
.deliv-status:empty, .deliv-error:empty { display: none; }
@media (max-width: 760px) { .sweater-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sw5 { grid-column: 1 / -1; } .how-row { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .sweater-row { grid-template-columns: 1fr; } .deliv-elf { width: 5rem; height: 5rem; } }

/* ============================================================
   FAVORITES (plaster)
   ============================================================ */
.intro.dark { color: var(--ink); }
.favs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.6rem 1.2rem; }
.favs li { display: flex; flex-direction: column; gap: .5rem; }
.favs a:not(.ep-page) { display: grid; gap: .3rem; color: var(--ink); text-decoration: none; flex: 1; align-content: start; }
.favs img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 4px solid var(--lime); box-shadow: 6px 6px 0 var(--stage); background: var(--stage); }
.f-t { font-weight: 700; font-size: 1.1rem; line-height: 1.25; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--sea); }
.favs a:hover .f-t { color: var(--flamingo-ink); }
.f-y { font-size: .95rem; color: var(--muted); }
.f-why { font: 700 .95rem/1.2 "Cabin Condensed", "Cabin", sans-serif; color: var(--flamingo-ink); }
.f-why.pick { justify-self: start; background: var(--butter); color: var(--ink); padding: .25rem .55rem; border-radius: 999px; rotate: -2deg; box-shadow: 3px 3px 0 var(--flamingo); }
.favs a:focus-visible { outline: 3px solid var(--flamingo); outline-offset: 5px; }
.said-h { font: 400 clamp(1.5rem, 3vw, 2rem)/1.1 "Shrikhand", Georgia, serif; color: var(--flamingo-ink); margin: 3.5rem 0 1rem; }
.said { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.said li { background: #fff; border: 3px solid var(--stage); border-radius: 18px 18px 18px 4px; padding: .9rem 1rem; box-shadow: 5px 5px 0 var(--butter); display: grid; gap: .4rem; }
.said q { font-size: 1.15rem; font-weight: 600; }
.said span { font-size: .95rem; color: var(--muted); }

/* ============================================================
   FOLLOW + FOOTER (pine)
   ============================================================ */
.social { list-style: none; padding: 0; margin: 1.6rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.social a { display: grid; min-height: 44px; padding: .65rem 1.3rem; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 700; border: 3px solid var(--lime); box-shadow: 0 5px 0 var(--flamingo); line-height: 1.25; }
.social a span { font-weight: 400; font-size: .95rem; color: var(--muted); }
.social a:hover { background: var(--butter); }
.social a:hover span { color: var(--ink); }
.more { color: var(--frost); }
.foot { border-top: 3px solid var(--lime); padding: 1.5rem 0 2.5rem; color: var(--frost); font-size: 1rem; background-color: var(--pine-deep); }
.foot p { margin: 0; }

/* ============================================================
   PHONES
   ============================================================ */
@media (max-width: 760px) {
  .hero { padding-top: 8.5rem; }
  .frame { grid-template-columns: minmax(0, 1fr); text-align: center; border-radius: 120px 120px 24px 24px / 80px 80px 24px 24px; }
  .elf { width: min(14rem, 66%); justify-self: center; margin-top: -9rem; z-index: 2; }
  .lights { left: 16%; right: 16%; }
  .lights i:nth-child(n+9) { display: none; }   /* eight bulbs fit a phone frame */
  .frame .elf, .frame .count, .frame .hero-copy { grid-column: 1; grid-row: auto; }
  .frame .count { order: 2; }
  .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .bar { justify-content: center; }
  .top li a { padding: 0 .4rem; font-size: .95rem; }
}

/* Screen-reader-only text: the separators that keep spans from running together ("Day 1, Sun 13 Dec"). */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ============================================================
   HERO LAYERS (JdA, 2026-11-20): the lights hang from BEHIND the frame, then the elf comes in front.
   Back to front: frame background → light string → lime border ring → elf.
   The border is drawn by .frame::after (same widths and radii) so the string can sit under it; .lights is
   the frame's exact outer box with the frame's radius and overflow hidden, so wherever the top edge curves
   down the bulbs tuck behind the border instead of floating over it, at every width.
   ============================================================ */
.frame { isolation: isolate; border-color: transparent; }
.frame::after { content: ""; position: absolute; inset: -16px -12px -12px; border: 12px solid var(--lime); border-top-width: 16px;
  border-radius: inherit; z-index: 2; pointer-events: none; }
.lights { inset: -16px -12px -12px; height: auto; border-radius: inherit; overflow: hidden; z-index: 1; background: none; }
.lights .string { position: absolute; top: 3px; left: 42%; right: 14%; height: 34px; display: flex; justify-content: space-between;
  background: linear-gradient(#06190F, #06190F) 0 9px / 100% 2px no-repeat; }   /* wire at 12px: under the 16px top border */
.elf { z-index: 3; }
@media (max-width: 760px) {
  .elf { z-index: 3; }
  .lights .string { left: 12%; right: 12%; top: 14px; }   /* phones: the corners curve sooner, so hang a little lower */
}

/* The moment, re-timed: the string drops in from behind the border, the bulbs light one by one, and only
   then the elf rises in front and the badge stamps on. About 2.9 s, once; reduced motion gets the finished picture. */
@media (prefers-reduced-motion: no-preference) {
  .lights .string { animation: string-in .45s ease-out both; }
  @keyframes string-in { from { transform: translateY(-18px); } }
  .lights i { animation: bulb-on .45s calc(var(--n, 0) * 90ms + .45s) ease-out both; }
  .elf img { animation: elf-pop .7s 1.9s cubic-bezier(.3, 1.6, .5, 1) both; }
  .elf-badge { animation: stamp .35s 2.55s cubic-bezier(.3, 1.8, .5, 1) both; }
}

/* ============================================================
   HEADER (2026-11-20): the cubanjon.com pattern. Fixed, so Safari 26 on iOS colours the status bar and
   Dynamic Island strip from it (it takes the topmost FIXED layer at the top edge), with the Pride bricks
   along its bottom and a Menu disclosure (native <details>; elf.js adds Escape and click-away).
   The page reserves the header's exact height: 3.6rem bar + 18px bricks + 3px rule.
   ============================================================ */
:root { --top-h: calc(3.6rem + 21px + env(safe-area-inset-top, 0px)); }
body::before { content: none; }
body { padding-top: var(--top-h); }
html { scroll-padding-top: calc(var(--top-h) + 1rem); }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); }
.top .bar { flex-wrap: nowrap; min-height: 3.6rem; padding-block: 0; gap: 1rem; justify-content: flex-start; }
.top .wrap { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
.brand { white-space: nowrap; }
.snow { top: var(--top-h); }   /* never the top layer: the header stays the one Safari reads */

/* Bricks: exactly --n bricks across, 11 Pride colours of n/11 bricks each, so colours change on seams. */
.top::after {
  content: ""; display: block; --n: 33; height: 18px;
  background:
    radial-gradient(circle at 40% 6px, rgb(255 255 255 / .6) 0 2px, transparent 2.5px) 0 0 / calc(100% / var(--n)) 18px,
    radial-gradient(circle at 50% 8px, rgb(255 255 255 / .25) 0 6px, rgb(0 0 0 / .32) 6px 7.5px, transparent 8px) 0 0 / calc(100% / var(--n)) 18px,
    linear-gradient(transparent 15px, rgb(0 0 0 / .25) 15px) 0 0 / 100% 18px,
    linear-gradient(90deg, transparent calc(100% - 1px), rgb(0 0 0 / .3) 0) 0 0 / calc(100% / var(--n)) 18px,
    linear-gradient(90deg, #E40303 0% 9.0909%, #FF8C00 9.0909% 18.1818%, #FFED00 18.1818% 27.2727%, #008026 27.2727% 36.3636%,
      #24408E 36.3636% 45.4545%, #732982 45.4545% 54.5455%, #FFFFFF 54.5455% 63.6364%, #FFAFC8 63.6364% 72.7273%,
      #74D7EE 72.7273% 81.8182%, #613915 81.8182% 90.9091%, #000 90.9091% 100%);
}

/* Section links inline only where they fit; the Menu always. */
.menu { position: relative; margin-left: auto; }
@media (min-width: 980px) { .quick { margin-left: auto; } .quick + .menu { margin-left: 0; } }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  font-weight: 700; background: var(--butter); color: var(--ink); box-shadow: 0 3px 0 var(--flamingo); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; white-space: pre; }
.menu[open] summary::after { content: " ▴"; }
.menu summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .6rem); width: min(19rem, calc(100vw - 2.5rem)); max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); overflow: auto;
  background: #fff; color: var(--ink); border: 3px solid var(--pine-deep); border-radius: 14px; padding: .9rem 1.1rem 1.1rem; box-shadow: 8px 8px 0 var(--flamingo); }
.menu-h { font: 700 .8rem/1 "Cabin Condensed", "Cabin", sans-serif; color: var(--flamingo-ink, #9E1240); text-transform: uppercase; letter-spacing: .12em; margin: .6rem 0 .4rem; }
.menu-panel ul { list-style: none; display: block; padding: 0; margin: 0 0 .4rem; }
.menu-panel li a { display: block; min-height: 0; padding: .45rem .3rem; font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; border-radius: 6px; }
.menu-panel li a[aria-current="page"] { color: var(--flamingo-ink); }
.menu-panel li a:hover { background: var(--mint); text-decoration: underline; }
.menu-panel li a:focus-visible { outline: 3px solid var(--flamingo); outline-offset: 1px; }
.menu-social { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 .5rem; }
@media (max-width: 979px) { .quick { display: none; } }
@media (max-width: 760px) { .top .bar { justify-content: flex-start; } .brand { font-size: 1.2rem; } .top::after { --n: 22; } }

/* Short screens (landscape phones, 400% zoom): the header scrolls away instead of covering a third of the view. */
@media (max-height: 30rem) {
  .top { position: static; }
  body { padding-top: 0; }
  html { scroll-padding-top: 1rem; }
}

/* ============================================================
   SHELL: one footer on every page; on short pages it sits at the bottom.
   ============================================================ */
.foot p + p { margin-top: .3rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.song-page { min-height: 100svh; display: flex; flex-direction: column; }
.song-page main { flex: 1; }

/* "Song page" links (seasons, favorites): 44px pills. */
.ep-page { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border: 2px solid var(--butter); border-radius: var(--r-chip);
  font-size: .9rem; font-weight: 700; line-height: 1.1; color: var(--butter); text-decoration: none; white-space: nowrap; }
.ep-page:hover { background: var(--butter); color: var(--ink); }
.eps .ep-page { align-self: center; }
.favs .ep-page { align-self: flex-start; color: var(--sea); border-color: var(--sea); }
.favs .ep-page:hover { background: var(--sea); color: #fff; }
.songs-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin: -.8rem 0 2rem; color: var(--mint-dim); }

/* ============================================================
   SONG PAGES (tools/songs.py): one per song, with every take, Jon's notes and visitors' memories.
   Text on pine is white/frost (≥ 9:1); white cards take a flamingo focus ring (butter fails on white).
   ============================================================ */
.song-page main { padding: 2.5rem 0 4rem; }
.song section { padding: 0; margin: 2.75rem 0 0; }   /* one rhythm between sections, no full-bleed bands */
.song h1 { font: 400 var(--fs-h1-page)/1.02 "Shrikhand", Georgia, serif; color: var(--butter); text-shadow: 4px 4px 0 var(--flamingo); margin: .3rem 0 .5rem; }
.song h2 { font: 400 var(--fs-h2)/1.1 "Shrikhand", Georgia, serif; color: var(--butter); text-shadow: var(--drop-sm) var(--flamingo); margin: 0 0 1rem; }
.song h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.sung { color: var(--frost); font-size: 1.2rem; margin: 0; }

/* The hero: a slim version of the home page's lime frame. */
.song-hero { border: 6px solid var(--lime); border-radius: 28px; box-shadow: var(--drop-lg) var(--flamingo); background: var(--pine-deep);
  padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.crumb li + li::before { content: "›" / ""; margin: 0 .45rem; color: var(--frost); font-weight: 700; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--frost); font-weight: 700; font-size: 1rem; }
.crumb a[aria-current="page"] { color: #fff; text-decoration: none; }

/* The season string: one bulb per December, 2015 to 2025, lit when the song was sung. Lit bulbs are
   butter, lime or sky (all ≥ 3:1 on pine); unsung seasons are a frost ring (7.9:1). Red never marks a season. */
.string { margin: 1.4rem 0 0; }
.run { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); max-width: 34rem;
  background: linear-gradient(#06190F, #06190F) 0 4px / 100% 2px no-repeat; }
.run .bc { display: grid; justify-items: center; gap: .35rem; }
.run i { display: block; position: relative; width: 18px; height: 24px; margin-top: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c); box-shadow: 0 0 12px 1px var(--c); }
.run i::before { content: ""; position: absolute; left: 5px; top: -5px; width: 8px; height: 6px; border-radius: 2px; background: #2A3B33; }
.run .off i { background: transparent; box-shadow: inset 0 0 0 2px var(--frost); }
.run b { font: 700 .8rem/1 "Cabin Condensed", "Cabin", sans-serif; color: var(--frost); }
.run .off b { font-weight: 500; }
@media (max-width: 560px) { .run .cc { display: none; } .run b::before { content: "’"; } }
.run.mini { display: flex; gap: 4px; max-width: none; justify-self: start; background-position: 0 3px; }
.run.mini i { width: 9px; height: 12px; margin-top: 5px; box-shadow: 0 0 6px var(--c); }
.run.mini i::before { left: 2px; top: -3px; width: 5px; height: 4px; }
.run.mini .off i { box-shadow: inset 0 0 0 1.5px var(--frost); }
@media (prefers-reduced-motion: no-preference) {
  .song-hero .run .bc:not(.off) i { animation: bulb-on .45s calc(var(--n, 0) * 90ms + .2s) ease-out both; }
  .run .bc:nth-child(2) { --n: 1; } .run .bc:nth-child(3) { --n: 2; } .run .bc:nth-child(4) { --n: 3; } .run .bc:nth-child(5) { --n: 4; }
  .run .bc:nth-child(6) { --n: 5; } .run .bc:nth-child(7) { --n: 6; } .run .bc:nth-child(8) { --n: 7; } .run .bc:nth-child(9) { --n: 8; }
  .run .bc:nth-child(10) { --n: 9; } .run .bc:nth-child(11) { --n: 10; }
}
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 0; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--ink); border: 2px solid var(--stage); border-radius: var(--r-card);
  box-shadow: var(--drop-sm) var(--lime); padding: .35rem .8rem; font-weight: 700; line-height: 1.2; }
.facts .n { font: 400 1.4rem/1 "Shrikhand", Georgia, serif; color: var(--flamingo-ink); }
.facts .where { margin: 0; }

/* Every take, skinned like the home page's season cards, each led by its poster: the take's thumbnail
   in one 16:9 frame (vertical reels crop to the face), a butter play glyph and the platform chip. */
.perfs { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.perfs li { display: grid; grid-template-columns: auto 4.5rem minmax(0, 1fr) auto; grid-template-areas: "p y w g"; gap: .3rem 1rem; align-items: center;
  background: #1C2C70; border: 3px solid var(--lime); border-radius: var(--r-card); box-shadow: var(--drop) var(--flamingo); padding: .8rem; }
.poster { grid-area: p; position: relative; display: block; width: 11.5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px;
  background: var(--stage); box-shadow: var(--drop-sm) var(--pine-deep); }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.poster .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--butter); box-shadow: var(--drop-sm) var(--flamingo); }
.poster .play::after { content: ""; position: absolute; left: 1rem; top: .75rem; border: .55rem solid transparent; border-left: .85rem solid var(--ink); border-right: 0; }
.poster .where { position: absolute; left: .35rem; bottom: .35rem; margin: 0; }
.poster:hover .play { background: var(--lime); }
.poster.none { display: grid; place-items: center;   /* no thumbnail: flamingo with snow, the platform's name */
  background: radial-gradient(circle at 16px 20px, rgb(255 255 255 / .5) 0 2px, transparent 2.5px) 0 0 / 44px 36px, var(--flamingo); }
.poster.none span { font: 400 1.3rem/1 "Shrikhand", Georgia, serif; color: #fff; text-shadow: var(--drop-sm) var(--stage); }
.perfs .t-year { grid-area: y; } .perfs .t-when { grid-area: w; } .perfs .t-go { grid-area: g; }
.t-year { font: 400 1.6rem/1 "Shrikhand", Georgia, serif; color: var(--butter); }
.t-when { font: 700 var(--fs-label)/1.35 "Cabin Condensed", "Cabin", sans-serif; color: var(--mint-dim); }
.t-when a { color: #fff; }
.t-when .ep-note { display: block; font: 400 .95rem/1.35 "Cabin", sans-serif; }
.t-go { display: flex; align-items: center; gap: .6rem; }
.t-go .where { margin: 0; }
.cta.small { padding: .4rem 1.1rem; }
@media (max-width: 760px) {
  .perfs li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "p y" "p w" "g g"; align-items: start; }
  .poster { width: 8.5rem; }
  .poster .play { width: 2rem; height: 2rem; }
  .poster .play::after { left: .75rem; top: .55rem; border-width: .45rem; border-left-width: .7rem; border-right-width: 0; }
  .perfs .t-year { align-self: end; }
}

/* Also in Season N: the rest of that December, as chips. */
.also-in h3 { font: 700 var(--fs-label)/1.2 "Cabin Condensed", "Cabin", sans-serif; color: var(--frost); margin: 1.2rem 0 .5rem; }
.also { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.also a { display: inline-flex; align-items: center; min-height: 36px; padding: .2rem .85rem; border: 2px solid var(--frost); border-radius: var(--r-chip);
  color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; }   /* 36px + gap: clears 2.5.8 */
.also a:hover { border-color: var(--butter); color: var(--butter); text-decoration: underline; }

/* From the elf: a gift tag, with the Best Elf peeking over its edge. */
.elf-notes { position: relative; background: var(--mint); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--drop) var(--lime);
  rotate: -.6deg; margin-top: 4.5rem !important; }
.song .elf-notes { padding: 1.4rem 1.4rem 1.2rem; }
.elf-notes h2 { color: var(--flamingo-ink); text-shadow: none; padding-right: 5.5rem; }
.elf-notes p:last-child { margin-bottom: 0; }
.tag-elf { position: absolute; top: -3.2rem; right: 1rem; width: 5.5rem; height: auto; filter: drop-shadow(3px 4px 0 rgb(0 0 0 / .25));
  -webkit-mask-image: linear-gradient(#000 70%, transparent 96%); mask-image: linear-gradient(#000 70%, transparent 96%); }
.notes-empty { font-style: italic; color: var(--muted); margin-bottom: .5rem; }
.notes-ask { margin: 0; font-weight: 700; }
.notes-ask a { color: var(--flamingo-ink); }

/* Memories: finished-looking at any count (memories.js sets data-stage).
   empty = just the invitation; few (1–2) = full-width cards; wall (3–8) and many (9+) = two columns on wider
   screens, pinned cards first and full width, three shadow colours so a big wall reads as a patchwork. */
.mem-count { margin: -.2rem 0 .6rem; font-weight: 700; color: var(--frost); font-variant-numeric: tabular-nums; }
.mem-count:empty { display: none; }
.mem-list { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; gap: 1rem; }
.mem-list:empty { display: none; }
.mem-list li { background: #fff; color: var(--ink); border-radius: var(--r-bubble); padding: 1rem 1.15rem .9rem; box-shadow: 5px 5px 0 var(--flamingo);
  display: flex; flex-direction: column; gap: .45rem; break-inside: avoid; }
.mem-list li:nth-child(3n+2) { box-shadow: 5px 5px 0 var(--lime); }
.mem-list li:nth-child(3n) { box-shadow: 5px 5px 0 var(--butter); }
.mem-list p { margin: 0; }
.mem-list .say { white-space: pre-line; font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; }
.mem-list .by { color: var(--muted); font-size: .95rem; }
.mem-list .who { font-weight: 700; color: var(--flamingo-ink); }
.mem-list a { color: var(--sea); font-weight: 700; }
.mem-list .pinned { border: 3px solid var(--butter); box-shadow: var(--drop) var(--flamingo); }
.mem-list .pinned .say { font-size: 1.15rem; }
.mem-list .pin { align-self: flex-start; font: 700 .78rem/1 "Cabin", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  background: var(--butter); color: var(--ink); padding: .3rem .55rem; border-radius: var(--r-chip); }
.mem-list li[hidden] { display: none; }
@media (min-width: 640px) {   /* masonry-style: two columns that pack cards of any height without gaps */
  .memories[data-stage="wall"] .mem-list, .memories[data-stage="many"] .mem-list { display: block; columns: 2; column-gap: 1.1rem; }
  .memories[data-stage="wall"] .mem-list li, .memories[data-stage="many"] .mem-list li { margin: 0 0 1.1rem; }
  .memories .mem-list .pinned { column-span: all; }
}
.mem-more-wrap { margin: 0 0 1.4rem; text-align: center; }
.mem-more { min-height: 44px; padding: .55rem 1.3rem; border-radius: var(--r-chip); border: 3px solid var(--butter); background: transparent;
  color: var(--butter); font: 700 1rem/1.2 "Cabin", sans-serif; cursor: pointer; }
.mem-more:hover { background: var(--butter); color: var(--ink); }
.mem-more:focus-visible, .mem-go:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
/* The invitation: big and warm when the wall is empty, a slim nudge once memories exist. */
.mem-invite { margin: 1rem 0 1.6rem; padding: 1.3rem 1.4rem; border: 3px dashed var(--butter); border-radius: var(--r-card); text-align: center; }
.mem-invite p { margin: 0 0 .7rem; }
.mem-invite p:last-child { margin: 0; }
.mem-invite-h { font: 400 clamp(1.4rem, 4vw, 1.8rem)/1.1 "Shrikhand", Georgia, serif; color: var(--butter); text-shadow: var(--drop-sm) var(--flamingo); }
.mem-invite-p { color: var(--frost); max-width: 34rem; margin-inline: auto !important; }
.memories:not([data-stage="empty"]) .mem-invite { padding: .9rem 1.1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1rem; text-align: left; }
.memories:not([data-stage="empty"]) .mem-invite p { margin: 0; }
.memories:not([data-stage="empty"]) .mem-invite-h { font-size: 1.25rem; }
.mem-form { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 1.2rem 1.4rem; box-shadow: var(--drop) var(--lime); }
.mem-form h3 { font: 400 1.5rem/1.1 "Shrikhand", Georgia, serif; color: var(--flamingo-ink); margin: 0 0 .5rem; }
.mem-help, .hint, .opt { color: var(--muted); }
.hint { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.mem-form input[type="text"], .mem-form input[type="url"], .mem-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: .6rem .7rem; }
.mem-form input[aria-invalid="true"] { border-color: #9E1240; border-width: 3px; }
.mem-form :focus-visible, .mem-list li :focus-visible, .elf-notes :focus-visible { outline: 3px solid var(--flamingo); outline-offset: 2px; }
.mem-form .cta { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.mem-form .cta[aria-disabled="true"] { opacity: .7; cursor: progress; }
.mem-status, .mem-error { margin: .6rem 0 0; font-weight: 700; }
.mem-status.ok { color: #1F6B2F; } .mem-error { color: #9E1240; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* bot trap, hidden from people */

/* Previous and next song, A to Z. */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.prevnext a { display: grid; gap: .2rem; align-content: start; min-height: 44px; padding: .8rem 1rem; border: 3px solid var(--lime); border-radius: var(--r-card);
  background: var(--pine-deep); color: #fff; font-weight: 700; line-height: 1.25; text-decoration: none; box-shadow: var(--drop-sm) var(--flamingo); }
.prevnext a:hover { border-color: var(--butter); text-decoration: underline; }
.pn-l { font: 700 var(--fs-label)/1.2 "Cabin Condensed", "Cabin", sans-serif; color: var(--frost); }
.pn-prev .pn-l::before { content: "‹ " / ""; }
.pn-next { text-align: right; }
.pn-next .pn-l::after { content: " ›" / ""; }
@media (max-width: 480px) { .prevnext { grid-template-columns: 1fr; } .pn-next { text-align: left; } }

/* ============================================================
   EVERY SONG (/songs/): a Most sung shelf, then one row per song with its mini season string.
   ============================================================ */
.songs-all .song-hero { max-width: 46rem; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.6rem 1.2rem; }
.shelf .most { display: grid; gap: .55rem; align-content: start; height: 100%; padding: 1rem 1.1rem 1.1rem; border-radius: var(--r-card, 14px);
  background: var(--flamingo); color: #fff; text-decoration: none; border: 3px solid var(--lime); box-shadow: var(--drop, 6px 6px) var(--pine-deep); }
.shelf .m-t { font: 400 1.45rem/1.1 "Shrikhand", Georgia, serif; text-wrap: balance; }
.shelf .m-n { font-weight: 700; font-size: .95rem; }
.shelf .most:hover, .shelf .most:focus-visible { background: #8E1232; }
.shelf .most:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.song-index { columns: 2 26rem; column-gap: 2.5rem; padding: 0; list-style: none; margin: 0; }
.song-index li { break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) auto 4.6rem; gap: .9rem; align-items: center;
  min-height: 44px; border-top: 1px solid rgb(185 220 205 / .25); }
.song-index a { display: flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; line-height: 1.25; }
.song-index .times { color: var(--frost); font-size: .95rem; text-align: right; }
@media (max-width: 420px) {   /* phones: title on its own line, the string and the count under it */
  .song-index li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "r n"; gap: 0 .8rem; padding-bottom: .55rem; }
  .song-index a { grid-area: t; } .song-index .run { grid-area: r; } .song-index .times { grid-area: n; }
}

/* ============================================================
   SONG PAGES, ACTIONS FIRST (2026-11-20): the hero carries the latest take large and an action bar
   (Watch, Share, Add your memory, the song's gimmick); stories come next, then every take.
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1rem 1.75rem; align-items: start; }
.feature { margin: .8rem 0 0; display: grid; gap: .6rem; }
.poster.big { grid-area: auto; width: 100%; aspect-ratio: 16 / 9; border: 4px solid var(--butter); border-radius: var(--r-card); box-shadow: var(--drop) var(--flamingo); rotate: 1.5deg; }
.poster.big .play { width: 3.6rem; height: 3.6rem; }
.poster.big .play::after { left: 1.4rem; top: 1.05rem; border-width: .75rem; border-left-width: 1.15rem; border-right-width: 0; }
.poster.big:hover { border-color: var(--lime); }
.feature figcaption { font: 700 var(--fs-label)/1.35 "Cabin Condensed", "Cabin", sans-serif; color: var(--frost); }
.feature figcaption a { color: #fff; }
.feature figcaption .ep-note { display: block; font: 400 .95rem/1.35 "Cabin", sans-serif; }
.actbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.6rem 0 0; padding-top: 1.4rem; border-top: 2px dashed rgb(207 232 218 / .4); }
.actbar .share { font-size: 1.1rem; padding-inline: 1.35rem 1.5rem; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .poster.big { rotate: none; }
  .actbar .share { flex: 1 1 100%; justify-content: center; }
  .actbar .cta { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .cta, .poster.big, .fx-pill { transition: background-color .15s, border-color .15s, color .15s, transform .12s; }
  .fx-toggle[aria-pressed="true"] { animation: pressed .3s cubic-bezier(.3, 1.8, .5, 1); }
  @keyframes pressed { from { scale: .92; } }
}

/* The memory form has its own section now, near the end; its heading sits on white. */
.mem-form h2 { font: 400 1.6rem/1.1 "Shrikhand", Georgia, serif; color: var(--flamingo-ink); text-shadow: none; margin: 0 0 .5rem; }
.memories .mem-invite { margin-bottom: 0; }
.memories[data-stage="empty"] .mem-invite { background: rgb(10 51 36 / .6); padding-block: 1.8rem; }

/* Phones: the dock (elf.js shows it once the action bar scrolls away; never over the form or the footer). */
.dock { display: none; }
@media (max-width: 760px) {
  .dock:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: .5rem;
    padding: .6rem max(.75rem, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    background: var(--pine-deep); border-top: 3px solid var(--lime); }
  .dock .cta { flex: 1 1 auto; justify-content: center; padding: .45rem .6rem; font-size: .95rem; box-shadow: none; }
  .dock .cta .ico { margin-right: .3rem; }
  html.docked { scroll-padding-bottom: 6rem; }   /* WCAG 2.4.11: focus scrolls clear of the dock */
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .dock:not([hidden]) { animation: dock-in .22s ease-out; }
  @keyframes dock-in { from { translate: 0 100%; } }
}

/* Share feedback: one polite toast; the copy-by-hand box when the clipboard says no. */
.toast { position: fixed; left: 50%; bottom: 1.25rem; translate: -50% 0; z-index: 60; margin: 0; max-width: calc(100vw - 2rem);
  background: var(--butter); color: var(--ink); font-weight: 700; padding: .6rem 1.2rem; border-radius: var(--r-chip);
  box-shadow: var(--drop-sm) var(--flamingo); pointer-events: none; }
.toast:empty { padding: 0; box-shadow: none; }
.share-box { position: fixed; left: 50%; bottom: 4.5rem; translate: -50% 0; z-index: 61; width: min(26rem, calc(100vw - 2rem));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .6rem; background: #fff; color: var(--ink);
  border: 3px solid var(--pine-deep); border-radius: var(--r-card); padding: .8rem 1rem; box-shadow: var(--drop) var(--flamingo); }
.share-box[hidden] { display: none; }
.share-box label { grid-column: 1 / -1; font-weight: 700; }
.share-box input { min-width: 0; min-height: 44px; font: inherit; font-size: 1rem; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: .3rem .6rem; }
.share-box button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--r-chip); background: var(--butter); color: var(--ink); font: 700 1rem/1 "Cabin", sans-serif; cursor: pointer; }
.share-box :focus-visible { outline: 3px solid var(--flamingo); outline-offset: 2px; }
html.docked .toast { bottom: 5.5rem; }
html.docked .share-box { bottom: 8.5rem; }

/* ============================================================
   GIMMICKS (gimmicks.js toggles body.fx-<name>). Nothing moves until pressed; the same button stops it.
   Motion only under prefers-reduced-motion: no-preference; the "still" versions below are what reduced
   motion gets (snow has none, so its button stays hidden). Nothing blinks: every loop is a slow ease.
   Overlays never take clicks.
   ============================================================ */
/* twinkle: the lit bulbs of the season string breathe, each out of step (about one swell every 3.6 s). */
.fx-twinkle .song-hero .run .bc:not(.off) i { box-shadow: 0 0 20px 5px var(--c); }
/* jingle: the elf on the gift tag and the season bulbs swing like bells. */
.fx-jingle .tag-elf { rotate: -8deg; transform-origin: 60% 0; }
/* grinch: the page's flamingo accents go Grinch green; titles turn lime. */
body.fx-grinch { --flamingo: #1F6B2F; --flamingo-ink: #1F6B2F; }
.fx-grinch .song h1, .fx-grinch .song > section:not(.elf-notes) > h2 { color: var(--lime); }
/* nose: a red nose glows at the end of the title. */
.fx-nose .song h1::after { content: ""; display: inline-block; width: .3em; height: .3em; margin-left: .18em; vertical-align: .12em;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 .35em .12em var(--red); }
/* fire: a warm hearth glow rises in the hero. */
.fx-fire .song-hero { border-color: var(--butter); box-shadow: var(--drop-lg) var(--flamingo), inset 0 -7rem 5rem -3rem rgb(255 140 0 / .34); }
/* dim: silent night: the evergreen goes darker and quieter. */
body.fx-dim { --pine: #062418; --pine-deep: #03140D; }
@media (prefers-reduced-motion: no-preference) {
  .fx-twinkle .song-hero .run .bc:not(.off) i { animation: twinkle 1.8s calc(var(--n, 0) * -.45s) ease-in-out infinite alternate; }
  @keyframes twinkle { from { opacity: 1; box-shadow: 0 0 18px 4px var(--c); } to { opacity: .55; box-shadow: 0 0 3px 0 var(--c); } }
  .fx-jingle .tag-elf { rotate: 0deg; animation: jingle 1.8s ease-in-out infinite; }
  .fx-jingle .song-hero .run .bc:not(.off) i { transform-origin: 50% -5px; animation: jingle 1.8s calc(var(--n, 0) * 80ms) ease-in-out infinite; }
  @keyframes jingle { 0%, 55%, 100% { rotate: 0deg; } 10% { rotate: -10deg; } 22% { rotate: 9deg; } 34% { rotate: -6deg; } 45% { rotate: 3deg; } }
  .fx-nose .song h1::after { animation: nose 1.5s ease-in-out infinite alternate; }
  @keyframes nose { from { box-shadow: 0 0 .1em 0 var(--red); } to { box-shadow: 0 0 .6em .25em var(--red); } }
  .fx-fire .song-hero { animation: hearth 2.8s ease-in-out infinite alternate; }
  @keyframes hearth {
    0% { box-shadow: var(--drop-lg) var(--flamingo), inset 0 -7rem 5rem -3rem rgb(255 140 0 / .24); }
    45% { box-shadow: var(--drop-lg) var(--flamingo), inset 0 -8rem 5rem -3rem rgb(255 140 0 / .38); }
    70% { box-shadow: var(--drop-lg) var(--flamingo), inset 0 -7.5rem 5rem -3rem rgb(255 120 0 / .3); }
    100% { box-shadow: var(--drop-lg) var(--flamingo), inset 0 -8.5rem 5rem -3rem rgb(255 150 0 / .4); }
  }
}

/* ============================================================
   PASS 2 (2026-11-20): Share leads; the gimmick is a pill beside the season string with a switch glyph
   and words that change ("Let it snow" / "Snow on"); phones see the actions on the first screen.
   ============================================================ */
.string-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin: 1.4rem 0 0; }
.string-row .string { margin: 0; flex: 1 1 18rem; }
.fx-toggle::before { content: ""; flex: none; width: 1.9rem; height: 1.1rem; margin-right: .45rem; border: 2px solid currentColor; border-radius: var(--r-chip);
  background: radial-gradient(circle at .5rem 50%, currentColor 0 .3rem, transparent .33rem); }   /* a switch: knob left = off */
.fx-toggle[aria-pressed="true"]::before { background: radial-gradient(circle at calc(100% - .5rem) 50%, currentColor 0 .3rem, transparent .33rem); }
.fx-pill { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .85rem .25rem .45rem; border: 2px solid var(--frost); border-radius: var(--r-chip);
  background: transparent; color: #fff; font: 700 1rem/1.1 "Cabin Condensed", "Cabin", sans-serif; cursor: pointer; }
.fx-pill:hover { border-color: var(--butter); color: var(--butter); }
.fx-pill[aria-pressed="true"] { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.fx-pill:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.fx-pill[hidden] { display: none; }

/* snow, still or falling: a frosted hero. */
.fx-snow .song-hero { border-color: #fff; box-shadow: var(--drop-lg) var(--flamingo), inset 0 0 0 3px rgb(207 232 218 / .6), inset 0 0 2.5rem rgb(255 255 255 / .12); }
/* jingle: the hero poster swings too (still: tilted). */
.fx-jingle .poster.big { rotate: -3deg; }
@media (prefers-reduced-motion: no-preference) {
  .fx-jingle .poster.big { transform-origin: 50% 0; animation: jingle-soft 1.8s .15s ease-in-out infinite; }
  @keyframes jingle-soft { 0%, 55%, 100% { rotate: 1.5deg; } 10% { rotate: -3deg; } 22% { rotate: 4deg; } 34% { rotate: -1.5deg; } 45% { rotate: 2.5deg; } }
}

/* Phones: a compact poster row and a one-line crumb, so Share, Watch and Add your memory are on the first screen. */
@media (max-width: 760px) {
  .feature { grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: .9rem; margin: .2rem 0 0; }
  .poster.big { border-width: 3px; box-shadow: var(--drop-sm) var(--flamingo); }
  .poster.big .play { width: 2.3rem; height: 2.3rem; }
  .poster.big .play::after { left: .85rem; top: .6rem; border-width: .55rem; border-left-width: .8rem; border-right-width: 0; }
  .actbar { margin-top: 1.1rem; padding-top: 1rem; }
  .string-row { margin-top: 1rem; }
  .facts { margin-top: .9rem; }
}
@media (max-width: 560px) { .crumb li:last-child { display: none; } }   /* the h1 right under it names the page */

/* ============================================================
   PLAYER (player.js): a native <dialog> with the platform's player, loaded on open, removed on close.
   ============================================================ */
html.player-open { overflow: hidden; }
.player { width: min(58rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow: auto; padding: 0 0 .2rem;
  border: 4px solid var(--lime); border-radius: var(--r-card); background: var(--pine-deep); color: #fff; box-shadow: var(--drop-lg) var(--flamingo); }
.player[data-shape="9-16"] { width: min(26rem, calc(100vw - 1.5rem)); }
.player::backdrop { background: rgb(3 20 13 / .85); }
.player-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .7rem 1.2rem; }
.player-head h2 { margin: .3rem 0 0; font: 400 clamp(1.15rem, 3.4vw, 1.6rem)/1.15 "Shrikhand", Georgia, serif; color: var(--butter); text-shadow: var(--drop-sm) var(--flamingo); }
.player-close { flex: none; min-width: 44px; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--r-chip); background: var(--butter); color: var(--ink);
  font: 700 1rem/1 "Cabin", sans-serif; box-shadow: 0 3px 0 var(--flamingo); cursor: pointer; }
.player-close:hover { background: var(--lime); }
.player-frame { margin-inline: auto; background: #000; border-radius: 10px; overflow: hidden; }
.player-frame.s-16-9 { aspect-ratio: 16 / 9; width: min(calc(100% - 2rem), calc((100dvh - 13rem) * 16 / 9)); }
.player-frame.s-9-16 { aspect-ratio: 9 / 16; width: min(calc(100% - 2rem), calc((100dvh - 13rem) * 9 / 16)); }
.player[data-shape="1-1"] { width: min(34rem, calc(100vw - 1.5rem)); }
.player-frame.s-1-1 { aspect-ratio: 1 / 1; width: min(calc(100% - 2rem), calc(100dvh - 13rem)); }   /* Smule's square video player */
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-frame.s-poster { width: min(calc(100% - 2rem), 22rem); aspect-ratio: auto; background: var(--pine-deep); }
.player[data-shape="poster"] { width: min(26rem, calc(100vw - 1.5rem)); }
.player-poster { display: grid; justify-items: center; gap: .7rem; padding-bottom: .4rem; color: var(--mint); text-decoration: none; }
.player-poster img { display: block; width: 100%; max-height: calc(100dvh - 20rem); object-fit: cover; border-radius: 10px; }
.player-frame .pp-note { margin: 0 0 .3rem; font-size: .9rem; text-align: center; color: var(--mint); }
.player-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin: .9rem 1.2rem 0; }
.player-acts .cta[hidden] { display: none; }
.player-out { margin: .3rem 1.2rem .5rem; }
.player-out a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; color: var(--mint); }
@media (max-width: 560px) { .pp-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.player :focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.w-on { margin-left: .28em; }   /* a flex item: its leading space would collapse */
@media (max-width: 560px) {   /* phones: Share on one row, Watch and Add your memory side by side on the next */
  .w-on { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* still in the name: "Watch on YouTube" */
  .song-page main { padding-top: 1rem; }
  .song-hero { padding-top: .5rem; }
  .song h1 { font-size: clamp(2.2rem, 10vw, 2.6rem); }
  .actbar { gap: .6rem; }
}

/* ============================================================
   LEGAL PAGES (/terms/, /privacy/): readable tables that stack on phones.
   ============================================================ */
.legal h2 { margin-top: 2rem; }
.legal-date { color: var(--frost); font-weight: 700; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-top: 1px solid rgb(207 232 218 / .3); }
.legal-table thead th { border-top: 0; font: 700 var(--fs-label)/1.3 "Cabin Condensed", "Cabin", sans-serif; }
.legal-table tbody th { font-weight: 700; }
@media (max-width: 640px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table tr { padding: .4rem 0; border-top: 1px solid rgb(207 232 218 / .3); }
  .legal-table th, .legal-table td { border: 0; padding: .2rem 0; }
  .legal-table td::before { display: block; font: 700 .8rem/1.3 "Cabin Condensed", "Cabin", sans-serif; color: var(--butter); }
  .legal-table td:nth-of-type(1)::before { content: "From"; }
  .legal-table td:nth-of-type(2)::before { content: "Why"; }
  .legal-table td:nth-of-type(3)::before { content: "How long"; }
}
.choices-toggle[hidden], .choices-gpc[hidden], .choices-state[hidden] { display: none; }

