/* extinction.meme · "cottage core" theme (the styling half of cottage.js). Requested by a player, built 2026-10-18.
   Everything hangs off html[data-cottage="on"], which theme.js sets before first paint (only when the visitor picked it: there is
   no date that turns it on by itself). Remove the attribute and the site looks exactly like it did before.
   - light "discord kitten" -> sunny meadow: cream linen, sage gingham, toadstool red, buttercup, sunbeams + drifting spores
   - dark  "reddit mod"     -> candlelit cottage at night: deep moss, warm candle-cream text, amber hard shadows, fireflies
   Motifs (the requester's picks): mushrooms & moss (toadstools, frogs, snails, ferns) and gingham & lace. Sweet, with a dark wink.
   Decoration only: nothing here takes pointer events (except the draggable stickers and the hopping frog) or moves the layout,
   and it all goes still under prefers-reduced-motion / calm mode.
   Load it AFTER season.css and america.css: Halloween's decorations stay, but cottage wins the palette. America and cottage are
   never on together (cottage.js and america.js switch each other off). */

/* ============================================================ art tokens (the same in both vibes) ============================================================ */
html[data-cottage="on"] {
  --xc-ink: #3a2e1f;
  --xc-cap: #d4553b; --xc-cap-d: #a83a26; --xc-dot: #fff8e6;
  --xc-stem: #f4ead2; --xc-stem-d: #dccba3;
  --xc-brown: #b07c4c; --xc-brown-d: #7d5432;
  --xc-moss: #7f9a4f; --xc-moss-d: #5d7a36; --xc-moss-l: #a9c26f;
  --xc-frog: #8fbf6a; --xc-frog-d: #5f8f45; --xc-belly: #e9f2c8;
  --xc-shell: #d9a066; --xc-shell-d: #a8703e; --xc-snail: #ead9b0;
  --xc-lacef: #fffdf6; --xc-gingr: #d4553b;
  --xc-wax: #f6e8c6; --xc-flame: #ffb43d; --xc-flame-c: #fff1b8; --xc-brass: #c79a4a;
  --xc-blush: #f2a3a0; --xc-thread: #b8402b;
  --xc-stitch: rgba(111, 133, 77, .75);
  --xc-d-kitten: block; --xc-d-mod: none;
}

/* ============================================================ light = discord kitten -> sunny meadow ============================================================ */
html[data-cottage="on"]:not(#xc) {
  --ink: #3a2e1f; --ink-soft: #6b5a43; --line: #c9b98f; --shade: #3a2e1f; --card: #fffaf0; --well: #f1ead6;
  --header-bg: rgba(253, 248, 236, .93); --rule-line: #e2d7b8; --toast-bg: #3a2e1f; --toast-fg: #f6e7b0;
  --title-stroke: #3a2e1f; --title-shadow: #3a2e1f; --pastel-ink: #2a2318; --paper: #fdf8ec;
  --bg: #f6efdc; --gingham: rgba(122, 148, 92, .17);
  --hot: #c8432b; --pink: #eeb7a8; --bubble: #f6d9cc; --butter: #f3d77a; --sky: #bcd4e3; --mint: #cfdfb3; --lilac: #d9cbe3; --nope: #5f7fae;
  --xs-hot-ink: #fff;
}

/* ============================================================ dark = reddit mod -> candlelit cottage at night ============================================================ */
@media (prefers-color-scheme: dark) {
  html[data-cottage="on"]:not([data-theme="light"]):not(#xc) {
    --ink: #f1e6cc; --ink-soft: #b9ad8e; --paper: #1b2117; --bg: #10150e; --gingham: rgba(214, 170, 92, .055);
    --line: #cdbb8e; --shade: #d08a3a; --card: #232b1f; --well: #151a12; --header-bg: rgba(16, 21, 14, .93);
    --rule-line: rgba(241, 230, 204, .13); --toast-bg: #f1e6cc; --toast-fg: #1b2117; --title-stroke: #10150e; --title-shadow: #d08a3a;
    --hot: #e0623f; --pink: #e9b3a3; --bubble: #f3d3c6; --butter: #f2d480; --sky: #b6cde0; --mint: #c9dcae; --lilac: #d6c6e6; --nope: #8ea9de;
    --pastel-ink: #2a2318; --xs-hot-ink: #fff;
    --xc-stitch: rgba(208, 138, 58, .55); --xc-lacef: #e9dcbc; --xc-thread: #c4472f;
    --xc-d-kitten: none; --xc-d-mod: block;
  }
}
html[data-cottage="on"][data-theme="dark"]:not(#xc) {
  --ink: #f1e6cc; --ink-soft: #b9ad8e; --paper: #1b2117; --bg: #10150e; --gingham: rgba(214, 170, 92, .055);
  --line: #cdbb8e; --shade: #d08a3a; --card: #232b1f; --well: #151a12; --header-bg: rgba(16, 21, 14, .93);
  --rule-line: rgba(241, 230, 204, .13); --toast-bg: #f1e6cc; --toast-fg: #1b2117; --title-stroke: #10150e; --title-shadow: #d08a3a;
  --hot: #e0623f; --pink: #e9b3a3; --bubble: #f3d3c6; --butter: #f2d480; --sky: #b6cde0; --mint: #c9dcae; --lilac: #d6c6e6; --nope: #8ea9de;
  --pastel-ink: #2a2318; --xs-hot-ink: #fff;
  --xc-stitch: rgba(208, 138, 58, .55); --xc-lacef: #e9dcbc; --xc-thread: #c4472f;
  --xc-d-kitten: none; --xc-d-mod: block;
}

/* ============================================================ the page: gingham (from style.css, recoloured above) + a faint linen weave ============================================================ */
html[data-cottage="on"] body {
  background-image:
    linear-gradient(90deg, var(--gingham) 50%, transparent 50%),
    linear-gradient(var(--gingham) 50%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(120, 100, 60, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 100, 60, .03) 0 1px, transparent 1px 3px);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

/* ============================================================ lace trim: under the header, over the footer ============================================================ */
/* one 20x12 tile of scalloped lace with eyelet holes (colours baked into the svg: a light and a dark version) */
html[data-cottage="on"] .top::after, html[data-cottage="on"] footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background-repeat: repeat-x; background-size: 20px 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'><path fill-rule='evenodd' fill='%23fffdf6' stroke='%23c9b98f' stroke-width='.8' d='M0 .4H20V4.6C20 9 15.6 11.6 10 11.6S0 9 0 4.6Z M10 6.6m-1.9 0a1.9 1.9 0 1 0 3.8 0a1.9 1.9 0 1 0 -3.8 0Z M4.2 2.6m-.9 0a.9 .9 0 1 0 1.8 0a.9 .9 0 1 0 -1.8 0Z M15.8 2.6m-.9 0a.9 .9 0 1 0 1.8 0a.9 .9 0 1 0 -1.8 0Z'/></svg>");
}
html[data-cottage="on"] .top::after { top: 100%; }
html[data-cottage="on"] footer { position: relative; }
html[data-cottage="on"] footer::before { bottom: 100%; transform: scaleY(-1); margin-bottom: 3px; }
@media (prefers-color-scheme: dark) {
  html[data-cottage="on"]:not([data-theme="light"]) .top::after, html[data-cottage="on"]:not([data-theme="light"]) footer::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'><path fill-rule='evenodd' fill='%23e9dcbc' stroke='%238c7a55' stroke-width='.8' d='M0 .4H20V4.6C20 9 15.6 11.6 10 11.6S0 9 0 4.6Z M10 6.6m-1.9 0a1.9 1.9 0 1 0 3.8 0a1.9 1.9 0 1 0 -3.8 0Z M4.2 2.6m-.9 0a.9 .9 0 1 0 1.8 0a.9 .9 0 1 0 -1.8 0Z M15.8 2.6m-.9 0a.9 .9 0 1 0 1.8 0a.9 .9 0 1 0 -1.8 0Z'/></svg>");
  }
}
html[data-cottage="on"][data-theme="dark"] .top::after, html[data-cottage="on"][data-theme="dark"] footer::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'><path fill-rule='evenodd' fill='%23e9dcbc' stroke='%238c7a55' stroke-width='.8' d='M0 .4H20V4.6C20 9 15.6 11.6 10 11.6S0 9 0 4.6Z M10 6.6m-1.9 0a1.9 1.9 0 1 0 3.8 0a1.9 1.9 0 1 0 -3.8 0Z M4.2 2.6m-.9 0a.9 .9 0 1 0 1.8 0a.9 .9 0 1 0 -1.8 0Z M15.8 2.6m-.9 0a.9 .9 0 1 0 1.8 0a.9 .9 0 1 0 -1.8 0Z'/></svg>");
}

/* ============================================================ embroidery: a stitched line just inside the swipe cards and the round buttons ============================================================ */
html[data-cottage="on"] .card::after {
  content: ""; position: absolute; inset: 5px; border: 2px dashed var(--xc-stitch); border-radius: 17px; pointer-events: none;
}
html[data-cottage="on"] .round { outline: 2px dashed var(--xc-stitch); outline-offset: -8px; }
html[data-cottage="on"] .card .ttl { color: var(--ink); }

/* ============================================================ the home page title: toadstool red / cream / moss letters ============================================================ */
html[data-cottage="on"]:not(#xc) .hero-title .w1 .l:nth-child(3n+1) { color: var(--xc-cap); }
html[data-cottage="on"]:not(#xc) .hero-title .w1 .l:nth-child(3n+2) { color: #fff6dc; }
html[data-cottage="on"]:not(#xc) .hero-title .w1 .l:nth-child(3n) { color: var(--xc-moss-l); }
html[data-cottage="on"]:not(#xc) .hero-title .w2 .dot { color: var(--butter); }
html[data-cottage="on"]:not(#xc) .hero-title .w2 .l:nth-child(2) { color: var(--xc-moss-l); }
html[data-cottage="on"]:not(#xc) .hero-title .w2 .l:nth-child(3) { color: #fff6dc; }
html[data-cottage="on"]:not(#xc) .hero-title .w2 .l:nth-child(4) { color: var(--xc-cap); }
html[data-cottage="on"]:not(#xc) .hero-title .w2 .l:nth-child(5) { color: var(--butter); }

/* sunbeams by day (three soft diagonal shafts that drift a little), a candle glow and a low moon by night */
html[data-cottage="on"] .hero::after {
  content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: -10px; height: 440px; pointer-events: none;
  background: linear-gradient(112deg, transparent 16%, rgba(255, 228, 150, .34) 23%, transparent 30%, transparent 43%, rgba(255, 228, 150, .24) 49%, transparent 55%, transparent 65%, rgba(255, 228, 150, .3) 71%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 55%, transparent 92%);
  animation: xc-beam 11s ease-in-out infinite alternate;
}
@keyframes xc-beam { from { opacity: .65; transform: translateX(-14px); } to { opacity: 1; transform: translateX(14px); } }
@media (prefers-color-scheme: dark) {
  html[data-cottage="on"]:not([data-theme="light"]) .hero::after {
    background:
      radial-gradient(circle at 88% 12%, rgba(255, 246, 214, .6) 0 21px, rgba(255, 246, 214, .2) 23px, rgba(255, 246, 214, .07) 44px, transparent 72px),
      radial-gradient(ellipse 46% 52% at 50% 58%, rgba(255, 168, 80, .17), transparent 70%);
    -webkit-mask-image: none; mask-image: none;
    animation: xc-candle 4.5s ease-in-out infinite alternate;
  }
}
html[data-cottage="on"][data-theme="dark"] .hero::after {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 246, 214, .6) 0 21px, rgba(255, 246, 214, .2) 23px, rgba(255, 246, 214, .07) 44px, transparent 72px),
    radial-gradient(ellipse 46% 52% at 50% 58%, rgba(255, 168, 80, .17), transparent 70%);
  -webkit-mask-image: none; mask-image: none;
  animation: xc-candle 4.5s ease-in-out infinite alternate;
}
@keyframes xc-candle { 0% { opacity: .78; } 30% { opacity: .95; } 55% { opacity: .84; } 100% { opacity: 1; } }

/* ============================================================ decoration plumbing ============================================================ */
.xc-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.xc-fxcv { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 89; pointer-events: none; }

/* symbol parts (the symbols live in .xc-defs; colours come from the tokens above, inherited through <use>) */
.xc-o { stroke: var(--xc-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.xc-o2 { stroke: var(--xc-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.xc-ln { fill: none; stroke: var(--xc-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xc-ln2 { fill: none; stroke: var(--xc-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.xc-ink-f { fill: var(--xc-ink); }
.xc-white-f { fill: #fff; }
.xc-nofill { fill: none; }
.xc-cap { fill: var(--xc-cap); } .xc-capdk { fill: var(--xc-cap-d); } .xc-dot { fill: var(--xc-dot); }
.xc-stem { fill: var(--xc-stem); } .xc-stemdk { fill: var(--xc-stem-d); }
.xc-brown { fill: var(--xc-brown); } .xc-browndk { fill: var(--xc-brown-d); }
.xc-moss { fill: var(--xc-moss); } .xc-mossdk { fill: var(--xc-moss-d); } .xc-mossl { fill: var(--xc-moss-l); }
.xc-frog { fill: var(--xc-frog); } .xc-frogdk { fill: var(--xc-frog-d); } .xc-belly { fill: var(--xc-belly); }
.xc-shell { fill: var(--xc-shell); } .xc-shelldk { fill: var(--xc-shell-d); } .xc-snail { fill: var(--xc-snail); }
.xc-lace { fill: var(--xc-lacef); }
.xc-ging { fill: var(--xc-gingr); } .xc-gingl { fill: var(--xc-gingr); opacity: .45; }
.xc-wax { fill: var(--xc-wax); } .xc-brass { fill: var(--xc-brass); }
.xc-flame { fill: var(--xc-flame); } .xc-flamec { fill: var(--xc-flame-c); }
.xc-blush { fill: var(--xc-blush); opacity: .85; }
.xc-shade { fill: #000; opacity: .1; }
.xc-shine { fill: #fff; opacity: .55; }
.xc-vein { fill: none; stroke: var(--xc-moss-d); stroke-width: 1.4; stroke-linecap: round; }
.xc-spiral { fill: none; stroke: var(--xc-shell-d); stroke-width: 2; stroke-linecap: round; }
.xc-holes { fill: var(--xc-ink); opacity: .16; }
.xc-flick { transform-box: fill-box; transform-origin: 50% 100%; animation: xc-flick 1.3s ease-in-out infinite alternate; }
@keyframes xc-flick { 0% { transform: scale(1, 1) rotate(-3deg); } 40% { transform: scale(.92, 1.08) rotate(2deg); } 100% { transform: scale(1.04, .95) rotate(-1deg); } }

/* ============================================================ logo: a toadstool cap on the kitten skull, two tiny mushrooms growing from the fedora ============================================================ */
html[data-cottage="on"] .logo { position: relative; }
html[data-cottage="on"] .logo .xc-logohat {   /* same box as the skull svgs (see ".logo svg" in style.css) */
  position: absolute; left: 0; top: 0; bottom: 0; margin: auto 0; overflow: visible; pointer-events: none; width: 38px; height: 38px;
}
html[data-cottage="on"] .logo .xc-hat-k { display: var(--xc-d-kitten); }
html[data-cottage="on"] .logo .xc-hat-m { display: var(--xc-d-mod); }
html[data-cottage="on"][data-season] .logo .xc-logohat { display: none; }   /* Halloween on too: keep its own logo decorations, no double hats */

/* ============================================================ spores by day, fireflies by night (a few dots in the hero, css only) ============================================================ */
.xc-mote {
  position: absolute; z-index: -1; width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%; pointer-events: none;
  background: rgba(255, 250, 228, .9); box-shadow: 0 0 6px 1px rgba(255, 232, 160, .85);
  animation: xc-drift var(--t, 16s) ease-in-out infinite alternate, xc-blink var(--b, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s), var(--d2, 0s);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .xc-mote { background: #fff3a0; box-shadow: 0 0 6px 2px rgba(255, 226, 110, .8), 0 0 18px 5px rgba(214, 255, 120, .22); }
}
html[data-theme="dark"] .xc-mote { background: #fff3a0; box-shadow: 0 0 6px 2px rgba(255, 226, 110, .8), 0 0 18px 5px rgba(214, 255, 120, .22); }
@keyframes xc-drift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(var(--dx1, 20px), var(--dy1, -30px)); }
  66% { transform: translate(var(--dx2, -16px), var(--dy2, -54px)); }
  100% { transform: translate(var(--dx3, 10px), var(--dy3, -80px)); }
}
@keyframes xc-blink { 0%, 100% { opacity: .18; } 50% { opacity: 1; } }

/* ============================================================ draggable stickers (look + feel of .sticker; cottage.js owns the dragging) ============================================================ */
.xc-sticker {
  position: absolute; pointer-events: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  font-size: 40px; line-height: 1; white-space: nowrap; transform: rotate(var(--r, 0deg)); transition: box-shadow .1s;
}
.xc-sticker.dragging { cursor: grabbing; z-index: 10; }
.xc-sticker.xc-pic { filter: drop-shadow(2px 3px 0 var(--shade)); }
.xc-sticker.xc-pic.dragging { filter: drop-shadow(4px 6px 0 var(--shade)); }
.xc-sticker svg { display: block; width: calc(1em * var(--sz, 1.15)); height: calc(1em * var(--sz, 1.15)); overflow: visible; }
.xc-sticker .xc-bob { animation: xc-bob 3.4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes xc-bob { from { transform: translateY(2px) rotate(-2deg); } to { transform: translateY(-3px) rotate(2deg); } }
.xc-sticker.xc-pill {
  font-family: var(--hand); font-weight: 700; font-size: 24px; padding: 6px 14px; border: 2.5px solid var(--line); border-radius: 999px;
  background: var(--xc-lacef); color: var(--xc-ink); box-shadow: 3px 3px 0 var(--shade);
  outline: 1.5px dashed var(--xc-stitch); outline-offset: -6px;
}
.xc-sticker.xc-pill.dragging { box-shadow: 6px 8px 0 var(--shade); }
.xc-pill.xc-p-moss { background: var(--mint); color: var(--pastel-ink); }
.xc-pill.xc-p-cap { background: var(--xc-cap); color: #fff8e6; outline-color: rgba(255, 248, 230, .6); }
.xc-pill.xc-p-butter { background: var(--butter); color: var(--pastel-ink); }
.xc-pill.xc-p-lace { background: var(--xc-lacef); color: var(--xc-ink); }
.xc-sticker[hidden] { display: none; }
.xc-sticker.xc-hop { animation: xc-hop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes xc-hop { 0% { transform: rotate(var(--r, 0deg)); } 45% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) - 8deg)) scale(1.06); } 100% { transform: rotate(var(--r, 0deg)); } }
/* the snail pulls in: animated on the <use> inside the svg (origin = 50% 90% of the 64x64 grid), NOT on the svg, so the bob keeps running and doesn't restart (a 2px twitch) when it ends */
.xc-sticker.xc-shy use { animation: xc-shy 1.6s ease-in-out; transform-origin: 32px 57.6px; }
@keyframes xc-shy { 0% { transform: scale(1); } 15% { transform: scale(.82, .7); } 75% { transform: scale(.82, .7); } 100% { transform: scale(1); } }

/* ============================================================ footer greeting ============================================================ */
footer .xc-foot { font-size: 26px; color: var(--hot); margin: 0 0 6px; }

/* ============================================================ the frog that hops past the bottom of the screen (behind the page until it is clickable) ============================================================ */
.xc-frogger { position: fixed; left: 0; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); z-index: -1; width: var(--w, 64px); height: var(--w, 64px); pointer-events: none; will-change: transform; }
.xc-frogger svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 3px 0 var(--shade)); }
.xc-frogger.rtl svg { transform: scaleX(-1); }
.xc-frogger.xc-live { z-index: 50; }
.xc-frogger.xc-live svg { pointer-events: none; }
.xc-frogger.xc-live svg use { pointer-events: visiblePainted; cursor: pointer; -webkit-tap-highlight-color: transparent; }   /* only the frog itself takes clicks */

/* ============================================================ "PRESERVED": an embroidery hoop thumped onto the screen (super-likes) ============================================================ */
.xc-hoop {
  position: fixed; left: 50%; top: 42%; z-index: 111; width: clamp(210px, 46vw, 330px); aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-7deg); animation: xc-hoop 2.2s cubic-bezier(.2, .85, .25, 1) forwards;
  filter: drop-shadow(5px 7px 0 rgba(58, 46, 31, .55));
}
.xc-hoop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.xc-hoop .xc-ring { fill: none; stroke: #b98a52; stroke-width: 9; }
.xc-hoop .xc-ring2 { fill: none; stroke: #8a5f33; stroke-width: 2.2; }
.xc-hoop .xc-linen { fill: #f8f0dc; }
.xc-hoop .xc-weave { fill: none; stroke: rgba(150, 120, 70, .14); stroke-width: 1; }
.xc-hoop .xc-clamp { fill: #c9a06a; stroke: #6b4a28; stroke-width: 2; }
.xc-hoop .xc-word { font-family: "Caveat", "Segoe Print", cursive; font-weight: 700; fill: var(--xc-thread); paint-order: stroke; stroke: #f8f0dc; stroke-width: 3; letter-spacing: .04em; }
.xc-hoop .xc-word2 { font-family: "Caveat", "Segoe Print", cursive; font-weight: 700; fill: #5d7a36; }
.xc-hoop .xc-sew { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.1; stroke-dasharray: 2.6 2.2; font-family: "Caveat", "Segoe Print", cursive; font-weight: 700; letter-spacing: .04em; }
.xc-hoop .xc-thr { fill: none; stroke: var(--xc-thread); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.xc-hoop.xc-still { animation: none; }
@keyframes xc-hoop {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(2.2); }
  12% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(.93); }
  18% { transform: translate(-50%, -50%) rotate(-7deg) scale(1.04); }
  24% { transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -54%) rotate(-7deg) scale(1.05); }
}

/* ============================================================ a keep: a few tiny toadstools pop up where the card went ============================================================ */
.xc-sprout { position: fixed; left: 0; top: 0; z-index: 90; width: var(--s, 30px); height: var(--s, 30px); pointer-events: none; transform-origin: 50% 100%; animation: xc-sprout 1.5s cubic-bezier(.3, 1.5, .5, 1) forwards; animation-delay: var(--d, 0s); opacity: 0; }
.xc-sprout svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes xc-sprout {
  0% { opacity: 1; transform: translate(var(--x), var(--y)) scale(0); }
  30% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1.12); }
  42% { transform: translate(var(--x), var(--y)) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) - 10px)) scale(1); }
}

/* ============================================================ phones ============================================================ */
@media (max-width: 760px) {
  .xc-sticker { font-size: 32px; }  .xc-sticker.xc-pill { font-size: 19px; }
  footer .xc-foot { font-size: 23px; }
  html[data-cottage="on"] .hero::after { height: 300px; top: 0; }
}

/* ============================================================ still, please: reduced motion + calm mode ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html[data-cottage="on"] .hero::after, .xc-mote, .xc-sticker .xc-bob, .xc-flick, .xc-hoop, .xc-sprout, .xc-sticker.xc-hop, .xc-sticker.xc-shy use { animation: none; }
  .xc-mote { opacity: .6; }
  .xc-sprout { opacity: 1; transform: translate(var(--x), var(--y)); }
}
html[data-calm][data-cottage="on"] .hero::after, html[data-calm] .xc-mote, html[data-calm] .xc-sticker .xc-bob, html[data-calm] .xc-flick,
html[data-calm] .xc-hoop, html[data-calm] .xc-sprout, html[data-calm] .xc-sticker.xc-hop, html[data-calm] .xc-sticker.xc-shy use { animation: none; }
html[data-calm] .xc-mote { opacity: .6; }
html[data-calm] .xc-sprout { opacity: 1; transform: translate(var(--x), var(--y)); }
