/* christmas.css | "A Book for Christmas Eve" (christmas/ and christmas/young-readers/). Edited by hand.
   VOICE: warm, dry, elegant. The Christmas window of a beautiful old bookshop, never plastic lights.
   IDEA: a shop window at dusk; the books are wrapped gifts under a pen-and-ink tree, like the cover motifs.
   COLOUR: pine (site green), ivory paper, discreet gold, burgundy from Book Three's cover.
   TYPE: the site's Newsreader + DM Mono. Every selector is scoped to body.xmas so style.css stays untouched. */
.xmas {
  --pine: #173f35; --pine-2: #0f2c25; --ivory: #f7f1e3; --ivory-2: #efe5cf;
  --gold: #d9b765; --gold-ink: #7a5a14; --burg: #8c1c2b; --burg-2: #6d1421; --ink-line: #1d2621;
  background: var(--ivory);
}
.xmas .site-head { background: var(--ivory); border-bottom-color: #d8ccb0; }
.xmas .xm a:not(.btn) { color: var(--burg); }
/* One button family for both Christmas pages: same height, shape and type; solid = primary, outline = secondary */
.xmas .xm .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 3.25rem; padding: .7rem 1.3rem; border: 1.5px solid var(--burg); border-radius: 4px; color: var(--burg); background: transparent; font-family: var(--mono); font-size: .86rem; line-height: 1.3; letter-spacing: .01em; white-space: normal; text-decoration: none; }
.xmas .xm-hero .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 36rem; align-items: stretch; }
.xmas .xm-hero .btns .btn { width: 100%; min-height: 3.75rem; }
@media (max-width: 600px) { .xmas .xm-hero .btns { grid-template-columns: minmax(0, 1fr); max-width: none; } }
.xmas .xm .btn:hover { background: #f1dfdc; }
.xmas .xm .btn.solid { background: var(--burg); border-color: var(--burg); color: #fbf5ea; }
.xmas .xm .btn.solid:hover { background: var(--burg-2); }
.xmas .xm .sub { color: var(--gold-ink); }
.xmas .xm h2 { max-width: 24ch; text-wrap: balance; }
.xmas .xm-h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.xmas .xm-h4 { font-size: 1.25rem; margin: 0 0 .35rem; }
.xmas .xm-intro { max-width: 60ch; color: #3f4a44; }
.xmas .xm-fine { font-family: var(--mono); font-size: .78rem; color: #4f5b55; margin: .8rem 0 0; max-width: 62ch; }

/* Santa's lines: a small pen-and-ink hat, never a branded Santa */
.xmas .xm-santa { display: flex; gap: .7rem; align-items: flex-start; font-style: italic; margin: .6rem 0 1rem; }
.xmas .xm-hat { flex: none; width: 2.1rem; height: 1.7rem; margin-top: .1rem; }
.xmas .xm-hat .hat-body { fill: var(--burg); stroke: var(--ink-line); stroke-width: 1.4; stroke-linejoin: round; }
.xmas .xm-hat .hat-fur, .xmas .xm-hat .hat-pom { fill: var(--ivory); stroke: var(--ink-line); stroke-width: 1.4; }
.xmas .xm-santa-big { font-size: 1.25rem; }

/* ---------- Hero: the shop window ---------- */
.xmas .xm-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 75% 10%, #21503f 0, var(--pine) 50%, var(--pine-2) 100%); color: var(--ivory); padding: 3.5rem 0 4rem; }
.xmas .xm-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.xmas .xm-kicker { color: var(--gold); margin: 0 0 1rem; }
.xmas .xm-kicker a { color: var(--gold) !important; }
.xmas .xm-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.015em; line-height: 1.06; text-wrap: balance; }
.xmas .xm-domain { font-style: italic; color: var(--gold); overflow-wrap: anywhere; }
.xmas .xm-lede { font-size: 1.3rem; max-width: 36ch; margin: 1.3rem 0 2rem; color: #e9e2cf; }
.xmas .xm-hero .xm-santa { color: #e9e2cf; max-width: 40ch; }
.xmas .xm-hero .btn { border-color: var(--ivory); color: var(--ivory); }
.xmas .xm-hero .btn:hover { background: rgba(247,241,227,.1); }
.xmas .xm-hero .btn.solid { background: var(--ivory); color: var(--burg); border-color: var(--ivory); }
.xmas .xm-hero .btn.solid:hover { background: #fff; }
.xmas .xm-small { color: var(--gold); margin: 1.2rem 0 0; display: flex; align-items: center; gap: .5rem; }
.xmas .xm-star { width: .8rem; height: .8rem; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

.xmas .xm-window { position: relative; justify-self: center; width: min(26rem, 100%); aspect-ratio: 13 / 16; border: 1.5px solid rgba(217,183,101,.75); border-radius: 13rem 13rem 6px 6px; background: linear-gradient(#123329, #0c241e); box-shadow: inset 0 0 0 8px #0e2a22, inset 0 0 0 9.5px rgba(217,183,101,.35), 0 30px 60px -30px rgba(0,0,0,.7); overflow: hidden; }
.xmas .xm-glow { position: absolute; inset: 0; background: radial-gradient(40% 32% at 18% 86%, rgba(255,196,110,.42), transparent 70%), radial-gradient(55% 40% at 50% 92%, rgba(255,210,140,.16), transparent 75%); animation: xm-flicker 5s ease-in-out infinite; }
@keyframes xm-flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 60% { opacity: .95; } }
.xmas .xm-tree { position: absolute; left: 6%; top: 6%; width: 88%; height: 76%; overflow: visible; }
.xmas .xm-tree .tier, .xmas .xm-tree .trunk { fill: var(--ivory-2); stroke: var(--ink-line); stroke-width: 1.6; stroke-linejoin: round; }
.xmas .xm-tree .trunk { fill: #b79b72; }
.xmas .xm-tree .garland { fill: none; stroke: var(--burg); stroke-width: 1.3; stroke-dasharray: 1 4.5; stroke-linecap: round; }
.xmas .xm-tree .hatch { fill: none; stroke: var(--ink-line); stroke-width: 1; opacity: .55; stroke-linecap: round; }
.xmas .xm-tree .star { fill: var(--gold); stroke: var(--ink-line); stroke-width: 1.2; }
.xmas .xm-tree .baubles circle { fill: var(--burg); stroke: var(--ink-line); stroke-width: 1.2; }
.xmas .xm-tree .baubles circle.g { fill: var(--gold); }
.xmas .xm-tree .sleigh path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.xmas .xm-tree .wax { fill: var(--ivory); stroke: var(--ink-line); stroke-width: 1.2; }
.xmas .xm-tree .wick { stroke: var(--ink-line); stroke-width: 1.2; }
.xmas .xm-tree .flame { fill: #ffcf7a; transform-origin: 29px 234px; animation: xm-flame 2.4s ease-in-out infinite; }
@keyframes xm-flame { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.92, 1.06) rotate(-3deg); } }
.xmas .xm-tree-gifts { position: absolute; left: 22%; right: 22%; bottom: 9%; display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.xmas .xm-tree-gift { position: relative; width: 26%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.xmas .xm-tree-gift.g1 { transform: rotate(-6deg); }
.xmas .xm-tree-gift.g2 { width: 30%; }
.xmas .xm-tree-gift.g3 { transform: rotate(5deg); }
.xmas .xm-window-sign { position: absolute; left: 0; right: 0; bottom: 2.5%; margin: 0; text-align: center; font-family: var(--mono); font-size: .7rem; color: var(--gold); letter-spacing: .04em; }

/* Snow: three soft layers, CSS only; style.css already stops all motion under prefers-reduced-motion */
.xmas .xm-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.xmas .xm-snow i { position: absolute; inset: -100% 0 0; background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 60%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 55% 35%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 75% 80%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 10%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 45% 90%, #fff 50%, transparent 51%); background-size: 220px 220px; opacity: .55; animation: xm-snow 26s linear infinite; }
.xmas .xm-snow i:nth-child(2) { background-size: 320px 320px; opacity: .35; animation-duration: 38s; left: -40px; }
.xmas .xm-snow i:nth-child(3) { background-size: 150px 150px; opacity: .25; animation-duration: 18s; }
@keyframes xm-snow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(30px, 50%, 0); } }
@media (prefers-reduced-motion: reduce) { .xmas .xm-snow i, .xmas .xm-glow, .xmas .xm-tree .flame, .xmas .xm-elf { animation: none !important; } }

/* ---------- Gifts: covers tied with ribbon ---------- */
.xmas .xm-gift, .xmas .xm-tree-gift { position: relative; display: block; }
.xmas .xm-cover { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 10px 14px 26px -16px rgba(15,44,37,.7); }
.xmas .ph-series { padding-right: 30%; }
.xmas .xm-cover-ph { padding-right: 16% !important; }
.xmas .xm-cover-ph.ink-dark { color: #17201c; }
.xmas .xm-cover-ph.ink-dark .ph-series { color: #26332c; }
.xmas .xm-cover-ph.ink-dark .ph-author { color: #3d2f08; border-top-color: rgba(23,32,28,.35); }
.xmas .is-teen .xm-cover-ph .ph-author { margin-right: 14%; }
.xmas .xm-cover-ph.has-stripe { background: linear-gradient(90deg, rgba(0,0,0,.5), transparent 9%), repeating-linear-gradient(180deg, transparent 0 11px, var(--s) 11px 12px, transparent 12px 23px, var(--s) 23px 25px, transparent 25px 41px), var(--c); }
.xmas .xm-cover-ph.has-stripe .ph-title { color: #fff; text-shadow: 0 0 6px #111114, 0 0 2px #111114; }
.xmas .xm-cover-ph.has-stripe .ph-series { color: #e6e1ff; text-shadow: 0 0 4px #111114; }
.xmas .xm-cover-ph.has-stripe .ph-author { color: #f3e2b0; text-shadow: 0 0 4px #111114; }
.xmas .xm-cover-ph { display: flex; flex-direction: column; padding: 12% 10%; background: linear-gradient(90deg, rgba(0,0,0,.3), transparent 9%), var(--c); color: var(--ivory); }
.xmas .ph-series { font-family: var(--mono); font-size: .62rem; color: #d9d2bf; }
.xmas .ph-title { margin-top: auto; font-size: 1.35rem; line-height: 1.08; }
.xmas .ph-author { margin-bottom: 22%; font-size: .72rem; letter-spacing: .05em; color: var(--gold); margin-top: .6rem; border-top: 1px solid rgba(247,241,227,.3); padding-top: .4rem; }
.xmas .xm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Gift wrap: SVG in the cover's 600 x 900 space; ribbon and bow stay clear of every cover's text */
.xmas .xm-wrap { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.xmas .xm-wrap .sash { filter: drop-shadow(-1px 1px 2px rgba(0,0,0,.35)); }
.xmas .xm-wrap .sash-shine { fill: none; stroke: #fff6d6; stroke-width: 3; opacity: .45; }
.xmas .xm-wrap .sash-edge { fill: none; stroke: #6d5212; stroke-width: 2; opacity: .8; }
.xmas .xm-wrap .bow { filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); }
.xmas .xm-wrap .loop, .xmas .xm-wrap .tail, .xmas .xm-wrap .knot { fill: url(#xm-satin); stroke: #6d5212; stroke-width: 1.6; stroke-linejoin: round; }
.xmas .xm-wrap .fold { fill: #7a5a14; opacity: .28; }
.xmas .xm-wrap .shine { fill: none; stroke: #fff8de; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.xmas .xm-wrap-teen .sash { opacity: .92; }
.xmas .xm-wrap-teen .circuit { fill: none; stroke: #0b1030; stroke-width: 2.2; opacity: .7; }
.xmas .xm-wrap-teen .nodes circle { fill: #0b1030; stroke: #e8fffa; stroke-width: 1.4; }
.xmas .xm-wrap-teen .pbow rect { fill: #5ef0d4; stroke: #0b1030; stroke-width: .8; }
.xmas .xm-wrap-teen .pbow rect.k { fill: #ff6ad5; }
.xmas .is-teen .xm-wrap-teen .pbow { animation: xm-pix 5s steps(1) infinite; }
@keyframes xm-pix { 0%, 90%, 100% { transform: translate(474px, 790px); } 92% { transform: translate(478px, 788px); } 94% { transform: translate(471px, 792px); } }

.xmas .xm-wrap .t-tier { fill: #f4ead3; stroke: #1d2621; stroke-width: 1.6; stroke-linejoin: round; }
.xmas .xm-wrap .t-trunk { fill: #b79b72; stroke: #1d2621; stroke-width: 1.4; }
.xmas .xm-wrap .t-garland { fill: none; stroke: #8c1c2b; stroke-width: 1.1; stroke-dasharray: 1 3; stroke-linecap: round; }
.xmas .xm-wrap .t-b { fill: #8c1c2b; stroke: #1d2621; stroke-width: .8; }
.xmas .xm-wrap .t-g { fill: #e3bd5e; stroke: #1d2621; stroke-width: .8; }
.xmas .xm-wrap .t-star { fill: #e3bd5e; stroke: #6d5212; stroke-width: .8; }
.xmas .xm-wrap .tp rect { fill: rgba(94,240,212,.16); stroke: #5ef0d4; stroke-width: 1.2; }
.xmas .xm-wrap .tp .tk { fill: rgba(255,106,213,.25); stroke: #ff6ad5; }
.xmas .xm-wrap .ts { fill: #ffe066; }
.xmas .xm-wrap .tl { fill: #ff6ad5; } .xmas .xm-wrap .tl.m { fill: #ffe066; }
.xmas .xm-wrap-teen use { filter: url(#xm-glow); }

/* The tag hangs outside the cover, so it can never cover the cover */
.xmas .xm-tag { position: absolute; left: calc(100% + .9rem); top: 6%; width: 7.2rem; padding: .5rem .55rem .55rem 1.05rem; background: #fffdf7; border: 1px solid #c9a24f; border-radius: 3px 8px 8px 3px; box-shadow: 0 6px 12px -8px rgba(29,38,33,.6); transform: rotate(4deg); font-family: var(--serif); line-height: 1.2; color: var(--ink); }
.xmas .xm-tag::before { content: ""; position: absolute; left: .4rem; top: 50%; width: .38rem; height: .38rem; margin-top: -.19rem; border-radius: 50%; border: 1px solid #c9a24f; background: var(--ivory); }
.xmas .xm-tag::after { content: ""; position: absolute; right: 100%; top: 50%; width: .9rem; border-top: 1px solid #a3843a; transform: rotate(-24deg); transform-origin: right; }
.xmas .xm-tag .tg-0 { display: block; font-family: var(--mono); font-size: .56rem; letter-spacing: .02em; color: #6b5214; margin-bottom: .25rem; }
.xmas .xm-tag .tg-1 { display: block; font-size: .82rem; font-style: italic; color: var(--burg); }
.xmas .xm-tag .tg-2 { display: block; font-size: .7rem; margin-top: .2rem; color: #3f4a44; }
.xmas .xm-tag-teen { background: #0b1030; border-color: #5ef0d4; color: #e8fffa; font-family: var(--mono); border-radius: 2px; transform: rotate(-3deg); box-shadow: 0 0 0 1px rgba(255,106,213,.4), 0 0 14px -2px rgba(94,240,212,.6); }
.xmas .xm-tag-teen::before { border-color: #5ef0d4; background: #0b1030; }
.xmas .xm-tag-teen::after { border-top-color: #5ef0d4; }
.xmas .xm-tag-teen { width: 8.6rem; }
.xmas .xm-tag-teen .tg-1 { white-space: normal; font-style: normal; font-size: .62rem; color: #5ef0d4; letter-spacing: .02em; }
.xmas .xm-tag-teen .tg-0 { font-family: var(--mono); font-size: .56rem; color: #5ef0d4; }
.xmas .xm-tag-teen .tg-1 { color: #e8fffa !important; font-family: var(--mono); font-style: normal; font-size: .62rem; }
.xmas .xm-tag-teen .tg-2 { display: inline; color: #ffb8ec; font-size: .62rem; font-family: var(--mono); }
.xmas .tg-cursor { display: inline-block; width: .45rem; height: .75rem; margin-left: .2rem; vertical-align: -.1rem; background: #5ef0d4; animation: xm-blink 1s steps(1) infinite; }
@keyframes xm-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xmas .xm-wrap-teen .pbow, .xmas .tg-cursor { animation: none !important; } }

/* Working covers scale their type with the cover, so text keeps to the same zones at any size */
.xmas .xm-cover-ph { container-type: inline-size; }
.xmas .xm-cover-ph .ph-series { font-size: 5.6cqw; line-height: 1.35; }
.xmas .xm-cover-ph .ph-title { font-size: 13cqw; line-height: 1.08; }
.xmas .xm-cover-ph .ph-author { font-size: 5.8cqw; }

/* ---------- Books ---------- */
.xmas .xm-books { background: var(--ivory); }
.xmas .xm-cards { list-style: none; padding: 1.4rem 0 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem 2rem; }
.xmas .xm-card { display: grid; gap: 1.1rem; align-content: start; }
.xmas .xm-card .xm-gift { width: min(10.5rem, 54%); }
.xmas .xm-series { color: var(--gold-ink); margin: 0 0 .3rem; }
.xmas .xm-card-title { font-size: 1.5rem; }
.xmas .xm-card-title a { text-decoration: none; color: var(--ink) !important; }
.xmas .xm-card-title a:hover { text-decoration: underline; }
.xmas .xm-card .xm-santa { font-size: 1.02rem; }
.xmas .xm-avail { display: flex; align-items: center; gap: .45rem; color: #3f4a44; margin: .2rem 0 0; }
.xmas .xm-buy { margin-top: .4rem; }
.xmas .xm-young-link { margin: 2.2rem 0 0; font-style: italic; }
.xmas .xm-twice { margin-top: 3.5rem; padding: 2rem clamp(1.2rem, 3vw, 2.4rem); border: 1px solid #d8ccb0; border-radius: 6px; background: linear-gradient(#fbf7ee, var(--ivory)); }
.xmas .xm-cards-small { margin-top: 1.6rem; }
.xmas .xm-cards-small .xm-gift { width: min(9rem, 50%); }

/* ---------- Letter + envelope ---------- */
.xmas .xm-letter { background: var(--ivory-2); }
.xmas .xm-letter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.xmas .xm-letter p { max-width: 56ch; }
.xmas .xm-envelope { position: relative; display: block; width: min(24rem, 100%); aspect-ratio: 3 / 2; margin: 3.5rem auto 3.5rem; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; perspective: 900px; }
.xmas .xm-envelope:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.xmas .env-back, .xmas .env-front, .xmas .env-flap { position: absolute; inset: 0; border-radius: 4px; }
.xmas .env-back { z-index: 0; background: #dcc9a2; box-shadow: 0 22px 34px -20px rgba(29,38,33,.65); }
.xmas .env-paper { position: absolute; z-index: 1; left: 6%; right: 6%; top: 6%; bottom: 6%; background: #fffdf7 repeating-linear-gradient(transparent 0 14px, rgba(29,38,33,.08) 14px 15px); border-radius: 2px; transition: transform .7s cubic-bezier(.2,.8,.2,1) .2s; }
.xmas .env-front { z-index: 2; background: linear-gradient(160deg, #f4e9d0, #eadbb9); clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }
.xmas .env-flap { z-index: 3; background: linear-gradient(#ecdfc2, #e2d1ab); clip-path: polygon(0 0, 100% 0, 50% 60%); transform-origin: 50% 0; transition: transform .6s ease, z-index 0s .3s; }
.xmas .env-seal { position: absolute; z-index: 4; left: 50%; top: 56%; width: 3.6rem; height: 3.6rem; transform: translate(-50%, -50%); border-radius: 46% 54% 50% 50%; background: radial-gradient(circle at 35% 30%, #b13246, var(--burg) 55%, var(--burg-2)); color: #f3d6c9; display: grid; place-items: center; font-size: 1.7rem; font-style: italic; box-shadow: 0 0 0 3px rgba(140,28,43,.3), 0 4px 8px rgba(0,0,0,.3); transition: opacity .3s ease, transform .4s ease; }
.xmas .env-label { position: absolute; left: 0; right: 0; bottom: -2.6rem; font-family: var(--mono); font-size: .86rem; color: var(--burg); text-decoration: underline; text-underline-offset: .2em; }
.xmas .xm-envelope[aria-expanded="true"] .env-flap { transform: rotateX(180deg); z-index: 0; }
.xmas .xm-envelope[aria-expanded="true"] .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.xmas .xm-envelope[aria-expanded="true"] .env-paper { transform: translateY(-42%); }
.xmas .xm-letter-side { text-align: center; }
.xmas .xm-letter-side .xm-sample { text-align: left; margin-top: 1rem; }
.xmas .xm-sample { background: #fffdf7; padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: 3px; box-shadow: 0 1px 0 #e7dcc3, 0 24px 50px -30px rgba(29,38,33,.55); position: relative; animation: xm-rise .6s ease both; }
.xmas .xm-sample::before { content: ""; position: absolute; inset: .6rem; border: 1px solid #eadfc6; pointer-events: none; }
@keyframes xm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.xmas .xm-sample p { font-size: 1.08rem; }
.xmas .xm-sample-tag { display: inline-block; margin: 0 0 1rem; padding: .2rem .6rem; border: 1px solid var(--burg); color: var(--burg); border-radius: 999px; }
.xmas .xm-sign { font-style: italic; font-size: 1.25rem !important; margin-bottom: .2rem; }
.xmas .xm-sign-ph { display: inline-block; border: 1.5px dashed #a39572; padding: .7rem .9rem; color: #5a5139; max-width: 30ch; }

/* ---------- How it works ---------- */
.xmas .xm-how { background: var(--ivory); }
.xmas .xm-steps { list-style: none; padding: 0; margin: 2.2rem 0 1.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: none; }
.xmas .xm-steps li { position: relative; padding-top: 3.4rem; }
.xmas .xm-step-n { position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--gold-ink); color: var(--gold-ink); display: grid; place-items: center; font-size: 1.2rem; font-style: italic; }
.xmas .xm-steps p { margin: 0; color: #3f4a44; }
.xmas .xm-steps-compact { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.xmas .xm-steps-compact li { padding: 0 0 0 3.6rem; }
.xmas .xm-trust { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .45rem; color: #3f4a44; }
.xmas .xm-trust li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; background: var(--gold); transform: rotate(45deg); vertical-align: .1em; }

/* Steps as hanging gift tags with a gold bauble numeral */
.xmas .xm-how { background: radial-gradient(70% 60% at 50% 0, #fbf6ea, var(--ivory)); }
.xmas .xm-how-note { max-width: 54ch; margin: 1.2rem 0 0; font-size: 1.2rem; font-style: italic; color: #3f4a44; }
.xmas .xm-tags { list-style: none; padding: 0; margin: 3.2rem 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 2rem; }
.xmas .xm-tagcard { position: relative; text-align: center; padding: 3.4rem 1.4rem 1.6rem; background: #fffdf7; border: 1px solid #dcc9a0; border-radius: 14px 14px 10px 10px; box-shadow: 0 1px 0 #efe3c6, 0 22px 40px -28px rgba(29,38,33,.55); }
.xmas .xm-tagcard:nth-child(1) { transform: rotate(-1.2deg); }
.xmas .xm-tagcard:nth-child(3) { transform: rotate(1deg); }
.xmas .xm-tagcard::before { content: ""; position: absolute; left: 50%; top: -1.9rem; height: 1.9rem; border-left: 1px solid #b8913a; }
.xmas .xm-tagcard::after { content: ""; position: absolute; inset: .45rem; border: 1px dashed #e3d4b0; border-radius: 10px 10px 6px 6px; pointer-events: none; }
.xmas .xm-num { position: absolute; z-index: 2; left: 50%; top: 0; transform: translate(-50%, -50%); width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: #fff7e0; background: radial-gradient(circle at 34% 30%, #b13246, var(--burg) 55%, var(--burg-2)); box-shadow: 0 0 0 2px #fffdf7, 0 0 0 3px #c9a24f, 0 8px 14px -6px rgba(0,0,0,.45); }
.xmas .xm-num::before { content: ""; position: absolute; top: -.5rem; left: 50%; width: .9rem; height: .55rem; transform: translateX(-50%); background: linear-gradient(90deg, #8a6a1e, #f3dc95, #8a6a1e); border-radius: 2px 2px 0 0; }
.xmas .xm-tagcard p { margin: .4rem 0 0; color: #3f4a44; }
.xmas .xm-step-link { display: inline-block; margin-top: 1rem; font-family: var(--mono); font-size: .84rem; min-height: 2.75rem; line-height: 2.75rem; color: var(--burg); }
.xmas .xm-how .xm-trust { max-width: 44rem; margin: 0 auto; justify-items: center; text-align: center; }

/* ---------- Quiz ---------- */
.xmas .xm-quiz-sec { background: var(--pine); color: var(--ivory); }
.xmas .xm-quiz-sec .sub { color: var(--gold); }
.xmas .xm-quiz-sec .xm-fine { color: #d3ccb8; }
.xmas .xm-quiz-sec .xm-fine a { color: var(--gold) !important; }
.xmas .xm-quiz-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.xmas .xm-quiz { background: #fffdf7; color: var(--ink); border-radius: 6px; padding: clamp(1.2rem, 3.5vw, 2.2rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); min-height: 24rem; }
.xmas .xm-progress { height: 6px; background: #ece3cf; border-radius: 3px; overflow: hidden; }
.xmas .xm-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--burg), #b0475a); transition: width .35s ease; }
.xmas .xm-count { color: #4f5b55; margin: .6rem 0 1.2rem; }
.xmas .xm-q { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.2; margin: 0 0 .5rem; outline: none; text-wrap: balance; }
.xmas .xm-help { margin: 0 0 1.2rem; color: #4f5b55; font-size: 1rem; }
.xmas .xm-opts { display: grid; gap: .6rem; margin: 1.2rem 0 0; }
.xmas .xm-opt { font: inherit; font-size: 1.05rem; text-align: left; color: var(--ink); background: #fbf6ea; border: 1.5px solid #d7c9a8; border-radius: 10px; padding: .8rem 1rem; min-height: 3rem; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.xmas .xm-opt:hover { border-color: var(--burg); background: #fff; transform: translateY(-1px); }
.xmas .xm-opt[aria-pressed="true"] { border-color: var(--burg); background: #f6e4e2; box-shadow: inset 0 0 0 1px var(--burg); }
.xmas .xm-opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.xmas .xm-book-opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
.xmas .xm-book-opt { display: grid; gap: .5rem; align-content: start; padding: .7rem; font-size: .92rem; line-height: 1.25; }
.xmas .xm-book-opt .xm-cover { box-shadow: 4px 6px 12px -8px rgba(0,0,0,.6); }
.xmas .xm-book-opt .ph-title { font-size: .95rem; }
.xmas .xm-book-opt small { font-family: var(--mono); font-size: .7rem; color: #4f5b55; }
.xmas .xm-book-help { grid-column: 1 / -1; text-align: center; font-style: italic; }
.xmas .xm-field { display: grid; gap: .35rem; margin: 1rem 0 0; }
.xmas .xm-field label { font-size: 1rem; }
.xmas .xm-field input[type="text"], .xmas .xm-field input[type="email"], .xmas .xm-field textarea { font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1.5px solid #bfb08c; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.xmas .xm-field textarea { min-height: 5.5rem; resize: vertical; }
.xmas .xm-field input:focus, .xmas .xm-field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.xmas .xm-check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .6rem; align-items: start; margin: 1rem 0 0; font-size: .98rem; line-height: 1.45; }
.xmas .xm-check input { width: 1.3rem; height: 1.3rem; margin: .12rem 0 0; accent-color: var(--burg); }
.xmas .xm-err { color: #8c1c2b; font-family: var(--mono); font-size: .8rem; margin: .3rem 0 0; }
.xmas .xm-nav { display: flex; gap: .8rem; justify-content: space-between; align-items: center; margin-top: 1.6rem; flex-wrap: wrap; }
.xmas .xm-back { font: inherit; font-family: var(--mono); font-size: .84rem; background: none; border: 0; color: var(--burg); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 2.75rem; padding: 0 .2rem; }
.xmas .xm-done { text-align: center; padding: 1rem 0; }
.xmas .xm-done .xm-q { margin-top: 1rem; }
.xmas .xm-done-seal { width: 4rem; height: 4rem; margin: 0 auto; border-radius: 46% 54% 50% 50%; background: radial-gradient(circle at 35% 30%, #b13246, var(--burg) 55%, var(--burg-2)); color: #f3d6c9; display: grid; place-items: center; font-size: 1.8rem; font-style: italic; }
.xmas .xm-rec { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: center; text-align: left; margin: 1.4rem auto 0; max-width: 26rem; padding: 1rem; border: 1px solid #d7c9a8; border-radius: 8px; }
.xmas .xm-preview-note { font-family: var(--mono); font-size: .76rem; color: #5a5139; border: 1.5px dashed #a39572; padding: .5rem .7rem; display: inline-block; margin-top: 1rem; }

/* ---------- Order-by + countdown ---------- */
.xmas .xm-order { position: relative; overflow: hidden; background: var(--burg); color: #fbf1ea; }
.xmas .xm-order .xm-snow i { opacity: .3; }
.xmas .xm-order-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem; align-items: center; }
.xmas .xm-order-by { font-size: 1.35rem; margin: 1rem 0 0; }
.xmas .xm-order .xm-fine { color: #f3dcd6; }
.xmas .xm-countdown { border: 1px solid rgba(243,214,201,.5); border-radius: 6px; padding: 1.4rem; text-align: center; }
.xmas .xm-countdown .mono { margin: 0 0 .6rem; color: #f3d6c9; }
.xmas .xm-cd { display: flex; justify-content: center; gap: 1.4rem; margin: 0; flex-wrap: wrap; font-family: var(--mono); font-size: .8rem; }
.xmas .xm-cd span { display: grid; justify-items: center; }
.xmas .xm-cd b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Iceland + more ---------- */
.xmas .xm-iceland { background: var(--ivory); padding-bottom: 2.5rem; }
.xmas .xm-narrow p { max-width: 60ch; }
.xmas .xm-iceland p { font-size: 1.15rem; }
.xmas .xm-more { font-family: var(--mono); font-size: .8rem; color: #4f5b55; padding-top: 0; padding-bottom: 3rem; margin: 0 auto; }
.xmas .doors { margin-top: 0; }

/* ---------- Young readers page ---------- */
.xmas .xm-y .xm-hero { background: radial-gradient(120% 90% at 75% 10%, #2a3a6a 0, #1d2a52 45%, var(--pine-2) 100%); }
/* Teen hero stage: violet night, pixel snow, notifications, the robot-elf wrapping the book */
.xmas .xm-y .xm-hero { background: radial-gradient(110% 80% at 80% 15%, #3b1f78 0, #24145a 45%, #120b33 100%); }
.xmas .xm-ystage { position: relative; justify-self: center; width: min(26rem, 100%); aspect-ratio: 13 / 16; border-radius: 18px; overflow: hidden; background: radial-gradient(60% 45% at 30% 75%, rgba(255,106,213,.28), transparent 70%), radial-gradient(55% 45% at 80% 20%, rgba(94,240,212,.22), transparent 70%), linear-gradient(160deg, #2a1868, #160d3e); box-shadow: 0 0 0 1px rgba(94,240,212,.35), 0 0 40px -10px rgba(143,123,255,.7), 0 30px 60px -30px rgba(0,0,0,.8); }
.xmas .ys-grid { position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%; background: repeating-linear-gradient(90deg, rgba(94,240,212,.18) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(94,240,212,.18) 0 1px, transparent 1px 22px); transform: perspective(240px) rotateX(55deg); transform-origin: bottom; }
.xmas .ys-psnow { position: absolute; inset: 0; pointer-events: none; }
.xmas .ys-psnow i { position: absolute; inset: -100% 0 0; background-image: linear-gradient(#e8fffa, #e8fffa), linear-gradient(#ffb8ec, #ffb8ec), linear-gradient(#e8fffa, #e8fffa), linear-gradient(#5ef0d4, #5ef0d4), linear-gradient(#e8fffa, #e8fffa); background-size: 4px 4px; background-repeat: no-repeat; background-position: 12% 10%, 38% 42%, 66% 18%, 84% 64%, 52% 80%; opacity: .8; animation: ys-fall 9s steps(30) infinite; }
.xmas .ys-psnow i:nth-child(2) { background-position: 24% 70%, 8% 30%, 74% 44%, 92% 12%, 46% 6%; opacity: .5; animation-duration: 13s; }
@keyframes ys-fall { from { transform: translateY(0); } to { transform: translateY(50%); } }
.xmas .ys-bubble { position: absolute; z-index: 3; margin: 0; max-width: 58%; padding: .45rem .65rem; font-family: var(--mono); font-size: .68rem; line-height: 1.35; color: #e8fffa; background: rgba(11,16,48,.86); border: 1px solid rgba(94,240,212,.6); border-radius: 10px 10px 10px 2px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.8); display: flex; gap: .45rem; align-items: flex-start; }
.xmas .ys-bubble.b1 { top: 5%; left: 5%; animation: ys-glitch 7s steps(1) infinite; }
.xmas .ys-bubble.b2 { top: 21%; right: 5%; border-color: rgba(255,106,213,.7); border-radius: 10px 10px 2px 10px; animation: ys-glitch 9s steps(1) 2s infinite; }
.xmas .ys-dot { flex: none; width: .5rem; height: .5rem; margin-top: .25rem; background: #ff6ad5; }
.xmas .ys-dot.ok { background: #5ef0d4; }
@keyframes ys-glitch { 0%, 93%, 100% { transform: none; opacity: 1; } 94% { transform: translate(3px, -1px) skewX(-6deg); opacity: .7; } 96% { transform: translate(-2px, 1px); } }
.xmas .ys-box { position: absolute; z-index: 2; top: 31%; right: 10%; width: 18%; overflow: visible; filter: drop-shadow(0 0 6px rgba(94,240,212,.8)); animation: ys-float 4s ease-in-out infinite; }
.xmas .ys-box .bx { fill: rgba(143,123,255,.25); stroke: #5ef0d4; stroke-width: 2; }
.xmas .ys-box .rb, .xmas .ys-box .bw { fill: none; stroke: #ff6ad5; stroke-width: 2.4; stroke-linejoin: round; }
@keyframes ys-float { 50% { transform: translateY(-6px); } }
.xmas .xm-ystage .xm-y-book { position: absolute; z-index: 1; left: 9%; bottom: 13%; width: 42%; transform: rotate(-5deg); filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)); }
.xmas .xm-ystage .xm-elf { z-index: 2; right: 5%; bottom: 9%; width: 34%; }
.xmas .xm-elf .elf-ribbon { fill: none; stroke: url(#xm-neon); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(94,240,212,.9)); }
.xmas .xm-elf .elf-hand { fill: var(--ivory-2); stroke: var(--ink-line); stroke-width: 1.4; }
.xmas .ys-sign { position: absolute; left: 0; right: 0; bottom: 2.5%; margin: 0; text-align: center; font-family: var(--mono); font-size: .7rem; color: #5ef0d4; }
@media (prefers-reduced-motion: reduce) { .xmas .ys-psnow i, .xmas .ys-bubble, .xmas .ys-box { animation: none !important; } }
.xmas .xm-elf { position: absolute; right: 6%; bottom: 10%; width: 32%; overflow: visible; animation: xm-glitch 6s steps(1) infinite; }
.xmas .xm-elf .elf-hat { fill: #2f7a5c; stroke: var(--ink-line); stroke-width: 1.6; stroke-linejoin: round; }
.xmas .xm-elf .elf-pom, .xmas .xm-elf .elf-fur { fill: var(--ivory); stroke: var(--ink-line); stroke-width: 1.4; }
.xmas .xm-elf .elf-head, .xmas .xm-elf .elf-body { fill: var(--ivory-2); stroke: var(--ink-line); stroke-width: 1.6; }
.xmas .xm-elf .elf-screen { fill: #1d2a52; stroke: var(--ink-line); stroke-width: 1.2; }
.xmas .xm-elf .elf-eyes rect { fill: #8fe8d4; }
.xmas .xm-elf .elf-mouth, .xmas .xm-elf .elf-arms, .xmas .xm-elf .elf-legs, .xmas .xm-elf .elf-belt { fill: none; stroke: var(--ink-line); stroke-width: 1.6; stroke-linecap: round; }
.xmas .xm-elf .elf-belt { stroke: var(--burg); stroke-width: 3; }
@keyframes xm-glitch { 0%, 92%, 100% { transform: none; filter: none; } 93% { transform: translate(2px, -1px) skewX(-4deg); filter: hue-rotate(60deg); } 95% { transform: translate(-2px, 1px); } 97% { transform: translate(1px, 0) skewX(3deg); } }
.xmas .xm-why { background: var(--ivory); }
.xmas .xm-why-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.5rem; }
.xmas .xm-why-list li { border-top: 1px solid #d8ccb0; padding-top: 1rem; }
.xmas .xm-why-list p { margin: 0; color: #3f4a44; }
.xmas .xm-feature { background: var(--ivory-2); }
.xmas .xm-feature-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3rem; align-items: start; }
.xmas .xm-gift-lg { width: min(15rem, 48%); justify-self: start; margin-left: 4%; }
.xmas .xm-feature h2 a { color: var(--ink) !important; text-decoration: none; }
.xmas .xm-feature h2 a:hover { text-decoration: underline; }
.xmas .xm-feature p { max-width: 58ch; }
.xmas .xm-y .xm-letter { background: var(--ivory); }
.xmas .xm-quiz-wrap .xm-quiz { margin-top: 1rem; border: 1px solid #d8ccb0; }


.xmas .xm-letter-line { max-width: 40ch; margin: -.8rem 0 1.4rem; padding-left: .9rem; border-left: 2px solid var(--gold); color: #f3ead2; font-style: italic; }
.xmas .xm-book-opt .xm-gift { position: relative; }
.xmas .xm-book-opt .tg-q { font-family: var(--mono); font-size: .66rem; color: var(--burg); }
.xmas .xm-book-opt.is-teen .tg-q { color: #3a3480; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .xmas .xm-hero-grid, .xmas .xm-letter-grid, .xmas .xm-quiz-grid, .xmas .xm-order-grid, .xmas .xm-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .xmas .xm-window { width: min(22rem, 100%); }
  .xmas .xm-steps { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .xmas .xm-steps li { padding: 0 0 0 3.6rem; }
  .xmas .xm-why-list { grid-template-columns: minmax(0, 1fr); }
  .xmas .xm-tags { grid-template-columns: minmax(0, 1fr); gap: 3rem; max-width: 26rem; margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .xmas .xm-hero { padding: 2.4rem 0 3rem; }
  .xmas .xm-lede, .xmas .xm-santa-big { font-size: 1.12rem; }
  .xmas .xm-envelope { margin-bottom: 1.5rem; }
}
/* v5: adult books show their Christmas cover, no ribbon or tag, so they can be a little larger */
.xmas .xm-card .xm-gift.is-xmas { width: min(12rem, 68%); }
.xmas .xm-cards-small .xm-gift.is-xmas { width: min(10rem, 58%); }

/* v6: one composition per section: centred heads, centred card rows, balanced two-column blocks */
.xmas .xm-head { text-align: center; max-width: 46rem; margin: 0 auto; }
.xmas .xm-head h2 { margin-left: auto; margin-right: auto; max-width: 30ch; }
.xmas .xm-head .xm-intro, .xmas .xm-head .xm-how-note { margin-left: auto; margin-right: auto; }
.xmas .xm-center { text-align: center; }
.xmas .xm-center-block { text-align: center; margin-left: auto; margin-right: auto; }
.xmas .xm-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 15.5rem)); justify-content: center; gap: 2.5rem 1.8rem; }
.xmas .xm-how .xm-tags { max-width: 72rem; }
.xmas .xm-inline-link { color: var(--burg); font-family: var(--mono); font-size: .84rem; white-space: nowrap; }
.xmas .xm-iceland { padding: 4.5rem 0; background: var(--ivory); }
.xmas .xm-iceland-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; max-width: 60rem; }
.xmas .xm-iceland-card { padding: 2rem clamp(1.2rem, 3vw, 2.4rem); border: 1px solid #dcc9a0; border-radius: 10px; background: #fffdf7; box-shadow: 0 22px 40px -30px rgba(29,38,33,.5); position: relative; }
.xmas .xm-iceland-card::after { content: ""; position: absolute; inset: .45rem; border: 1px dashed #e3d4b0; border-radius: 6px; pointer-events: none; }
.xmas .xm-iceland-card p { font-size: 1.1rem; }
.xmas .xm-still { width: 100%; max-width: 26rem; justify-self: center; overflow: visible; }
.xmas .xm-still .ink { fill: none; stroke: #1d2621; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.xmas .xm-still .ink.paper { fill: #f4ead3; }
.xmas .xm-still .ink.mug { fill: #8c1c2b; }
.xmas .xm-still .ink.thin { stroke-width: .9; opacity: .7; }
.xmas .xm-still .ink.ribbon { fill: #8c1c2b; stroke-width: 1.2; }
.xmas .xm-still .flame { fill: #ffcf7a; stroke: #b47b1d; stroke-width: .8; transform-origin: 262px 114px; animation: xm-flame 2.4s ease-in-out infinite; }
.xmas .xm-still .cnd-glow { fill: rgba(255,207,122,.22); stroke: none; }
.xmas .xm-still .sf path { fill: none; stroke: #c9a24f; stroke-width: 1.4; stroke-linecap: round; }
.xmas .xm-more { padding-top: 1rem; }
.xmas .xm-twice .xm-cards-small { justify-content: center; }
@media (max-width: 860px) { .xmas .xm-iceland-grid { grid-template-columns: minmax(0, 1fr); } .xmas .xm-still { max-width: 18rem; } }
@media (prefers-reduced-motion: reduce) { .xmas .xm-still .flame { animation: none !important; } }

/* Home page seasonal band (only while christmas.enabled) */
.xm-homeband .xm-hero-home { padding: clamp(2rem, 4vw, 3.2rem) 0; }
.xm-homeband .xm-home-h { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; margin: 0; color: var(--ivory); max-width: 16ch; }
.xm-homeband .xm-santa-big { font-size: 1.12rem; margin-top: 1rem; }
.xm-homeband .xm-letter-line { margin: .2rem 0 1.3rem; }
.xm-homeband .xm-hb-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: end; padding: 1.4rem 1.2rem 1.2rem; border: 1.5px solid rgba(217,183,101,.6); border-radius: 12px; background: rgba(12,36,30,.55); text-decoration: none; box-shadow: inset 0 0 40px rgba(255,196,110,.12); }
.xm-homeband .xm-hb-shelf:hover { border-color: #d9b765; }
.xm-homeband .xm-hb-gift { position: relative; }
.xm-homeband .xm-hb-gift:nth-child(odd) { transform: rotate(-2deg); }
.xm-homeband .xm-hb-gift:nth-child(even) { transform: rotate(2deg); }
.xm-homeband .xm-hb-gift .xm-cover { box-shadow: 0 10px 18px -8px rgba(0,0,0,.6); }
@media (max-width: 860px) { .xm-homeband .xm-hb-shelf { max-width: 26rem; } }

/* v7: young readers portal on the adult page */
.xmas .xm-portal { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; margin: 3.5rem auto 0; max-width: 60rem; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 20px; overflow: hidden; text-decoration: none; color: #e8fffa;
  background: radial-gradient(60% 70% at 25% 70%, rgba(255,106,213,.22), transparent 70%), radial-gradient(55% 60% at 80% 15%, rgba(94,240,212,.2), transparent 70%), linear-gradient(150deg, #2a1868, #160d3e 60%, #0f0a2c);
  box-shadow: 0 0 0 1.5px rgba(94,240,212,.5), 0 0 0 6px rgba(143,123,255,.12), 0 30px 60px -28px rgba(22,13,62,.8); transition: box-shadow .4s ease, transform .4s ease; }
.xmas .xm-portal:hover, .xmas .xm-portal:focus-visible { box-shadow: 0 0 0 1.5px #5ef0d4, 0 0 0 8px rgba(143,123,255,.22), 0 0 60px -6px rgba(143,123,255,.75), 0 30px 60px -28px rgba(22,13,62,.8); transform: translateY(-2px); }
.xmas .xm-portal:focus-visible { outline: 3px solid #5ef0d4; outline-offset: 4px; }
.xmas .xp-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(94,240,212,.12), transparent 30%, rgba(255,106,213,.12), transparent 60%); animation: xp-spin 14s linear infinite; pointer-events: none; }
@keyframes xp-spin { to { transform: rotate(360deg); } }
.xmas .xp-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.xmas .xp-snow i { position: absolute; inset: -100% 0 0; background-image: linear-gradient(#e8fffa,#e8fffa), linear-gradient(#ffb8ec,#ffb8ec), linear-gradient(#5ef0d4,#5ef0d4), linear-gradient(#e8fffa,#e8fffa), linear-gradient(#e8fffa,#e8fffa); background-size: 4px 4px; background-repeat: no-repeat; background-position: 8% 12%, 34% 40%, 62% 20%, 88% 66%, 50% 84%; opacity: .7; animation: ys-fall 10s steps(30) infinite; }
.xmas .xp-snow i:nth-child(2) { background-position: 22% 72%, 6% 34%, 76% 46%, 94% 10%, 44% 4%; opacity: .45; animation-duration: 14s; }
.xmas .xp-art { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 15rem; }
.xmas .xp-gift { width: min(10rem, 48%); transform: rotate(-4deg); }
.xmas .xp-gift { margin-top: 7.6rem; }
.xmas .xp-gift .xm-tag { left: 8%; right: auto; top: -7.4rem; transform: rotate(-3deg); width: 8.4rem; }
.xmas .xp-gift .xm-tag::after { right: auto; left: 50%; top: 100%; width: 0; height: .7rem; border-top: 0; border-left: 1px solid #5ef0d4; transform: none; }
.xmas .xm-portal .xp-elf { position: relative; right: auto; bottom: auto; width: 34%; margin-left: -.6rem; }
.xmas .xp-text { position: relative; display: grid; gap: .8rem; justify-items: start; }
.xmas .xp-kicker { font-family: var(--mono); font-size: .76rem; color: #5ef0d4; }
.xmas .xp-h { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.1; color: #fff; }
.xmas .xp-line { font-size: 1.08rem; line-height: 1.5; color: #e6e1ff; max-width: 40ch; }
.xmas .xp-steps { display: grid; gap: .35rem; font-family: var(--mono); font-size: .8rem; color: #e8fffa; }
.xmas .xp-steps b { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: .5rem; border-radius: 4px; background: rgba(94,240,212,.16); box-shadow: inset 0 0 0 1px #5ef0d4; color: #5ef0d4; font-weight: 500; }
.xmas .xm .btn.solid.xp-btn { background: #5ef0d4; border-color: #5ef0d4; color: #0f0a2c; margin-top: .4rem; }
.xmas .xm .xm-portal:hover .btn.solid.xp-btn { background: #8ff5e2; }
@media (max-width: 760px) { .xmas .xm-portal { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } .xmas .xp-art { min-height: 12rem; } .xmas .xm .xp-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .xmas .xp-glow, .xmas .xp-snow i { animation: none !important; } .xmas .xm-portal, .xmas .xm-portal:hover { transform: none; } }
/* home band shelf: each cover is its own link; the teen one opens the young readers page */
.xm-homeband .xm-hb-link { display: block; border-radius: 4px; }
.xm-homeband .xm-hb-link:focus-visible { outline: 3px solid #e8c873; outline-offset: 4px; }
.xm-homeband .is-teen-link { filter: drop-shadow(0 0 10px rgba(143,123,255,.7)); }
.xm-homeband .xm-hb-link:nth-child(odd) .xm-hb-gift { transform: rotate(-2deg); }
.xm-homeband .xm-hb-link:nth-child(even) .xm-hb-gift { transform: rotate(2deg); }
.xm-homeband .xm-hb-cap { grid-column: 1 / -1; margin: .4rem 0 0; text-align: center; font-family: var(--mono); font-size: .8rem; color: #e8c873; }
.xm-homeband .xm-hb-cap a { color: #f3e2b0 !important; }

/* ===== v8 ===== */
/* Books and "arrives twice": one centred composition, equal columns, text centred on shared baselines */
.xmas .xm-books .xm-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 17rem)); justify-content: center; align-items: stretch; gap: 2.5rem 2.2rem; }
.xmas .xm-books .xm-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; height: 100%; }
.xmas .xm-books .xm-card .xm-gift.is-xmas { width: min(12rem, 72%); margin: 0 auto; }
.xmas .xm-books .xm-card-text { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
.xmas .xm-books .xm-series { min-height: 1.3em; }
.xmas .xm-books .xm-cards:not(.xm-cards-small) .xm-card-title { min-height: 2.4em; display: flex; align-items: flex-start; justify-content: center; }
.xmas .xm-books .xm-card .xm-santa { justify-content: center; text-align: left; max-width: 16rem; margin-left: auto; margin-right: auto; }
.xmas .xm-books .xm-avail, .xmas .xm-books .xm-buy { margin-top: auto; justify-content: center; }
.xmas .xm-books .xm-card .xm-fine { text-align: center; margin-top: .5rem; }
.xmas .xm-books .xm-twice { text-align: center; }
.xmas .xm-books .xm-twice .xm-cards-small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 16rem)); }
.xmas .xm-books .xm-twice .xm-card .xm-gift.is-xmas { width: min(10rem, 66%); }

/* Letter section on pine, envelope in ivory paper with a gold edge and burgundy seal */
.xmas .xm:not(.xm-y) .xm-letter { background: radial-gradient(80% 90% at 75% 40%, #21503f, var(--pine) 55%, var(--pine-2)); color: var(--ivory); }
.xmas .xm:not(.xm-y) .xm-letter .sub { color: var(--gold); }
.xmas .xm:not(.xm-y) .xm-letter h2 { color: #fff; }
.xmas .xm:not(.xm-y) .xm-letter p { color: #ebe4cf; }
.xmas .xm:not(.xm-y) .xm-letter .xm-santa { color: #f3ead2; }
.xmas .xm:not(.xm-y) .xm-letter .xm-sample p { color: var(--ink); }
.xmas .xm:not(.xm-y) .xm-letter .xm-sample .xm-sample-tag { color: var(--burg); }
.xmas .env-back { background: #efe2c3; box-shadow: 0 0 0 1.5px #d9b765, 0 30px 50px -22px rgba(0,0,0,.75), 0 0 60px -10px rgba(255,214,140,.35); }
.xmas .env-front { background: linear-gradient(160deg, #fffaf0, #f3e7cc 60%, #eadbb9); }
.xmas .env-front::after { content: ""; }
.xmas .env-flap { background: linear-gradient(#fbf3e1, #efe0bd); filter: drop-shadow(0 3px 2px rgba(120,90,30,.25)); }
.xmas .env-seal { box-shadow: 0 0 0 3px rgba(217,183,101,.85), 0 0 0 4.5px rgba(109,20,33,.5), 0 6px 10px rgba(0,0,0,.45); }
.xmas .env-label { color: var(--gold); }
.xmas .xm-envelope:focus-visible { outline-color: var(--gold); }
.xmas .xm:not(.xm-y) .xm-letter a:not(.btn) { color: var(--gold) !important; }

/* Quiz: one centred column */
.xmas .xm-quiz-single { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.6rem; }
.xmas .xm-quiz-single .xm-quiz-side { text-align: center; max-width: 40rem; }
.xmas .xm-quiz-single .xm-quiz-side .xm-santa { justify-content: center; }
.xmas .xm-quiz-single .xm-quiz-side .xm-fine { margin-left: auto; margin-right: auto; }
.xmas .xm-quiz-single .xm-quiz { width: 100%; max-width: 45rem; }

/* Sleigh flight across the order-by section */
.xmas .xm-order { overflow: hidden; }
.xmas .xm-flight { position: absolute; inset: 0; pointer-events: none; }
.xmas .xm-sleigh { position: absolute; top: 6%; left: 0; width: clamp(200px, 26vw, 340px); overflow: visible; animation: xm-fly 16s linear infinite; }
.xmas .xm-sleigh .sk path, .xmas .xm-sleigh .sk circle { fill: none; stroke: #f6ecdc; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xmas .xm-sleigh .body { fill: rgba(246,236,220,.12) !important; }
.xmas .xm-sleigh .santa, .xmas .xm-sleigh .hat { fill: #6d1421 !important; }
.xmas .xm-sleigh .pom, .xmas .xm-sleigh .face { fill: #f6ecdc !important; }
.xmas .xm-sleigh .sack { fill: rgba(217,183,101,.35) !important; stroke: #e8c873 !important; }
.xmas .xm-sleigh .rein { stroke: #e8c873 !important; stroke-width: 1 !important; }
.xmas .xm-sleigh .spark path { fill: #e8c873; animation: xm-twinkle 1.6s ease-in-out infinite; }
.xmas .xm-sleigh .spark path:nth-child(2) { animation-delay: .5s; } .xmas .xm-sleigh .spark path:nth-child(3) { animation-delay: 1s; }
@keyframes xm-twinkle { 50% { opacity: .2; } }
@keyframes xm-fly {
  0% { transform: translate(105vw, 60px) rotate(4deg); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translate(40vw, 0) rotate(0); }
  94% { opacity: 1; }
  100% { transform: translate(-40vw, 50px) rotate(-4deg); opacity: 0; }
}
.xmas .xm-order-grid { padding-top: clamp(3rem, 6vw, 5rem); }
@media (prefers-reduced-motion: reduce) {
  .xmas .xm-sleigh { animation: none !important; left: auto; right: 4%; top: 4%; transform: none; }
  .xmas .xm-sleigh .spark path { animation: none !important; }
}
@media (max-width: 600px) { .xmas .xm-sleigh { width: 210px; top: 2%; } .xmas .xm-order-grid { padding-top: 5.5rem; } }
/* v8: availability lines share one baseline; release notes sit in a reserved strip below them */
.xmas .xm-books .xm-cards:not(.xm-cards-small) .xm-card-text { position: relative; padding-bottom: 3.9rem; }
.xmas .xm-books .xm-cards:not(.xm-cards-small) .xm-card .xm-fine { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
.xmas .xm-books .xm-avail { white-space: nowrap; }
.xmas .xm-books .xm-twice .xm-cards-small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 17rem)); }
.xmas .xm-books .xm-card-title { display: flex; justify-content: center; }
.xmas .xm-quiz-single .xm-book-opts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .xmas .xm-quiz-single .xm-book-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v9: adult hero and home band: text column fills its width, illustration sits close beside it */
@media (min-width: 861px) {
  .xmas .xm:not(.xm-y) .xm-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
  .xmas .xm:not(.xm-y) .xm-hero .xm-window { justify-self: start; width: min(29rem, 100%); }
  .xm-homeband .xm-hb-shelf { justify-self: start; width: 100%; }
}
.xmas .xm:not(.xm-y) .xm-hero .xm-lede { max-width: 46ch; }
.xmas .xm:not(.xm-y) .xm-hero .xm-letter-line { max-width: 48ch; }
.xmas .xm:not(.xm-y) .xm-hero .xm-santa { max-width: 48ch; }
.xmas .xm:not(.xm-y) .xm-hero .btns { max-width: 38rem; }
.xmas .xm:not(.xm-y) .xm-hero .xm-small { max-width: 48ch; }
.xm-homeband .xm-hero-home .xm-santa, .xm-homeband .xm-hero-home .xm-letter-line, .xm-homeband .xm-hero-home .xm-small { max-width: 50ch; }
@media (min-width: 861px) { .xm-homeband .xm-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); } }

/* ===================== v10: young readers page, teen style ===================== */
.xmas .xm-y { --yv: #120b33; --yv2: #1b1050; --cy: #5ef0d4; --mg: #ff6ad5; --ye: #ffe066; --yi: #e8fffa; --ym: #c9c3f2; }
.xmas .xm-y .px { width: 1.6rem; height: 1.6rem; flex: none; image-rendering: pixelated; shape-rendering: crispEdges; }
.xmas .xm-y .yw, .xmas .xm-y .yb, .xmas .xm-y .yu, .xmas .xm-y .yl, .xmas .xm-y .yq { color: var(--yi); }
.xmas .xm-y .yw .sub, .xmas .xm-y .yb .sub, .xmas .xm-y .yl .sub, .xmas .xm-y .yq .sub { color: var(--cy); }
.xmas .xm-y .yw h2, .xmas .xm-y .yb h2, .xmas .xm-y .yl h2, .xmas .xm-y .yq h2, .xmas .xm-y .yu h2 { color: #fff; }
.xmas .xm-y .yw a:not(.btn), .xmas .xm-y .yb a:not(.btn), .xmas .xm-y .yu a:not(.btn), .xmas .xm-y .yl a:not(.btn), .xmas .xm-y .yq a:not(.btn) { color: var(--cy) !important; }
.xmas .xm-y .yw .xm-santa, .xmas .xm-y .yb .xm-santa, .xmas .xm-y .yu .xm-santa, .xmas .xm-y .yq .xm-santa { color: var(--ym); }
.xmas .xm-y .xm-fine { color: var(--ym); }
.xmas .xm-y .xm-head .xm-intro { color: var(--ym); }

/* hero text column: tight, balanced with the stage */
@media (min-width: 861px) {
  .xmas .xm-y .xm-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
  .xmas .xm-y .xm-ystage { justify-self: start; width: min(27rem, 100%); }
}
.xmas .xm-y .yh-text h1 { max-width: 15ch; }
.xmas .xm-y .yh-text .xm-santa { max-width: 46ch; margin-top: 1.2rem; }
.xmas .xm-y .yh-text .xm-letter-line { max-width: 46ch; margin: 0 0 1.4rem; }
.xmas .xm-y .yh-text .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 34rem; }
.xmas .xm-y .yh-text .btns .btn { width: 100%; min-height: 3.75rem; }
.xmas .xm-y .yh-text .btn.solid { background: var(--cy); border-color: var(--cy); color: #0f0a2c; }
.xmas .xm-y .yh-text .btn:not(.solid) { border-color: var(--cy); color: var(--yi); }
@media (max-width: 600px) { .xmas .xm-y .yh-text .btns { grid-template-columns: minmax(0, 1fr); } }

/* why: system notifications */
.xmas .xm-y .yw { background: linear-gradient(180deg, #120b33, #1b1050); padding: 4.5rem 0; position: relative; overflow: hidden; }
.xmas .xm-y .yw::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); pointer-events: none; }
.xmas .xm-y .yw-list { list-style: none; padding: 0; margin: 2.4rem auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 60rem; position: relative; }
.xmas .xm-y .yw-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 14px; background: rgba(11,16,48,.85); box-shadow: 0 0 0 1px rgba(94,240,212,.4), 0 16px 30px -18px rgba(0,0,0,.8); }
.xmas .xm-y .yw-note.is-ach { box-shadow: 0 0 0 1px rgba(255,224,102,.6), 0 0 26px -8px rgba(255,224,102,.5); }
.xmas .xm-y .yw-k { margin: 0 0 .2rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--cy); }
.xmas .xm-y .is-ach .yw-k { color: var(--ye); }
.xmas .xm-y .yw-h { margin: 0 0 .35rem; font-size: 1.2rem; color: #fff; }
.xmas .xm-y .yw-note p { margin: 0; color: var(--ym); font-size: 1rem; }
.xmas .xm-y .yw-cur { display: inline-block; width: .5rem; height: 1rem; margin-left: .3rem; vertical-align: -.1rem; background: var(--cy); animation: xm-blink 1s steps(1) infinite; }
.xmas .xm-y .yw-bar { display: block; height: 6px; margin: .7rem 0 .3rem; border-radius: 3px; background: rgba(94,240,212,.15); overflow: hidden; }
.xmas .xm-y .yw-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cy), var(--mg)); animation: yw-load 2.4s ease-out both; transform-origin: left; }
.xmas .xm-y .yw-mini { font-family: var(--mono); font-size: .72rem !important; color: var(--cy) !important; }
@keyframes yw-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.xm-js .xmas .xm-y .yw-note[data-reveal]:not(.is-in) { opacity: 0; }
.xmas .xm-y .yw-note.is-in { animation: yw-in .55s steps(6) both; }
@keyframes yw-in { 0% { opacity: 0; transform: translateX(-10px) skewX(-8deg); filter: hue-rotate(80deg); } 50% { opacity: 1; transform: translateX(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@media (max-width: 760px) { .xmas .xm-y .yw-list { grid-template-columns: minmax(0, 1fr); } }

/* book: holographic stand + complaint ticket */
.xmas .xm-y .yb { background: radial-gradient(60% 70% at 25% 60%, rgba(143,123,255,.25), transparent 70%), #160d3e; padding: 4.5rem 0; }
.xmas .xm-y .yb-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; max-width: 64rem; }
.xmas .xm-y .yb-stand { position: relative; display: grid; justify-items: center; padding: 5.5rem 0 1rem; }
.xmas .xm-y .yb-stand .xm-gift { width: min(13rem, 60%); position: relative; z-index: 1; animation: yb-float 5s ease-in-out infinite; }
.xmas .xm-y .yb-stand .xm-tag { top: -5.2rem; left: 10%; }
.xmas .xm-y .yb-holo { position: absolute; left: 50%; bottom: 1.6rem; width: 70%; height: 70%; transform: translateX(-50%); background: linear-gradient(0deg, rgba(94,240,212,.35), transparent 80%); clip-path: polygon(30% 100%, 70% 100%, 100% 0, 0 0); filter: blur(2px); }
.xmas .xm-y .yb-base { position: relative; display: grid; justify-items: center; width: 70%; margin-top: .4rem; }
.xmas .xm-y .yb-base i { display: block; width: 100%; height: .55rem; border-radius: 50%; border: 1.5px solid var(--cy); box-shadow: 0 0 14px rgba(94,240,212,.6); margin-top: -.2rem; }
.xmas .xm-y .yb-base i:nth-child(2) { width: 80%; opacity: .7; } .xmas .xm-y .yb-base i:nth-child(3) { width: 60%; opacity: .45; }
@keyframes yb-float { 50% { transform: translateY(-8px); } }
.xmas .xm-y .yb-ticket { margin: 0 0 1.6rem; padding: 1rem 1.2rem; border-radius: 10px; background: #0b1030; border: 1px dashed rgba(94,240,212,.6); font-family: var(--mono); box-shadow: 0 0 0 4px rgba(94,240,212,.06); }
.xmas .xm-y .yb-ticket p { margin: 0; }
.xmas .xm-y .yb-tk-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .72rem; color: var(--cy); margin-bottom: .6rem !important; }
.xmas .xm-y .yb-status { color: var(--ye); animation: yb-blink 2.4s steps(1) infinite; }
@keyframes yb-blink { 50% { opacity: .45; } }
.xmas .xm-y .yb-tk-row { display: flex; gap: .8rem; font-size: .8rem; color: var(--ym); }
.xmas .xm-y .yb-tk-row span { min-width: 5.5rem; } .xmas .xm-y .yb-tk-row b { color: #fff; font-weight: 500; }
.xmas .xm-y .yb-tk-hook { margin-top: .7rem !important; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #fff; }
.xmas .xm-y .yb-text h2 a { color: #fff !important; text-decoration: none; }
.xmas .xm-y .yb-text > p { color: var(--ym); max-width: 54ch; }
@media (max-width: 860px) { .xmas .xm-y .yb-grid { grid-template-columns: minmax(0, 1fr); } }

/* gift that arrives twice: software update card */
.xmas .xm-y .yu { background: #120b33; padding: 3.5rem 0; }
.xmas .xm-y .yu-card { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.8rem; align-items: center; max-width: 46rem; margin: 0 auto; padding: 1.6rem; border-radius: 16px; background: #0b1030; box-shadow: 0 0 0 1px rgba(143,123,255,.6), 0 0 40px -12px rgba(124,58,237,.7); }
.xmas .xm-y .yu-cover .xm-cover { box-shadow: 0 10px 20px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(124,58,237,.6); }
.xmas .xm-y .yu-k { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-family: var(--mono); font-size: .74rem; color: var(--cy); }
.xmas .xm-y .yu-k .px { width: 1.1rem; height: 1.1rem; }
.xmas .xm-y .yu-title { margin: .3rem 0 0; font-size: 1.15rem; color: #fff; }
.xmas .xm-y .yu-title span { font-family: var(--mono); font-size: .72rem; color: var(--ym); }
.xmas .xm-y .yu-body > p { color: var(--ym); margin: .5rem 0 0; }
.xmas .xm-y .yu-progress { height: 8px; border-radius: 4px; margin: 1rem 0 .5rem; background: rgba(124,58,237,.2); overflow: hidden; }
.xmas .xm-y .yu-fill { display: block; height: 100%; width: 68%; background: repeating-linear-gradient(45deg, #7c3aed 0 10px, #9b6bff 10px 20px); background-size: 28px 28px; animation: yu-stripe 1.2s linear infinite; }
@keyframes yu-stripe { to { background-position: 28px 0; } }
.xmas .xm-y .yu-row { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-family: var(--mono); font-size: .76rem; color: var(--ym); margin: 0; }
@media (max-width: 600px) { .xmas .xm-y .yu-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: left; } .xmas .xm-y .yu-cover { width: 9rem; } }

/* letter: encrypted message that decrypts */
.xmas .xm-y .yl { background: linear-gradient(180deg, #1b1050, #120b33); padding: 4.5rem 0; }
.xmas .xm-y .yl-msg { max-width: 40rem; margin: 2rem auto 0; display: grid; gap: 1rem; }
.xmas .xm-y .yl-crypt { font: inherit; text-align: left; cursor: pointer; border: 0; padding: 0 0 1rem; border-radius: 14px; overflow: hidden; background: #0b1030; color: var(--yi); box-shadow: 0 0 0 1.5px rgba(94,240,212,.55), 0 0 30px -8px rgba(94,240,212,.45); display: grid; transition: box-shadow .3s ease; }
.xmas .xm-y .yl-crypt:hover { box-shadow: 0 0 0 1.5px var(--cy), 0 0 40px -4px rgba(255,106,213,.55); }
.xmas .xm-y .yl-crypt:focus-visible { outline: 3px solid var(--cy); outline-offset: 4px; }
.xmas .xm-y .yl-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .9rem; background: rgba(255,255,255,.05); font-family: var(--mono); font-size: .74rem; color: var(--ym); }
.xmas .xm-y .yl-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #2a3470; } .xmas .xm-y .yl-bar i:first-child { background: var(--mg); }
.xmas .xm-y .yl-bar span { margin-left: .5rem; }
.xmas .xm-y .yl-code { padding: 1rem 1.1rem .4rem; font-family: var(--mono); font-size: .9rem; line-height: 1.6; color: var(--cy); word-break: break-word; }
.xmas .xm-y .yl-lock { padding: 0 1.1rem; }
.xmas .xm-y .yl-label { margin: .4rem 1.1rem 0; justify-self: start; font-family: var(--mono); font-size: .86rem; padding: .7rem 1.1rem; border-radius: 4px; background: var(--cy); color: #0f0a2c; }
.xmas .xm-y .yl-sample { background: #fffdf7; color: var(--ink); }
.xmas .xm-y .yl-sample p { color: var(--ink); }
.xmas .xm-y .yl-steps { list-style: none; padding: 0; margin: 2.6rem auto 1.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; max-width: 64rem; }
.xmas .xm-y .yl-steps li { padding: 1.2rem; border-radius: 14px; background: rgba(11,16,48,.8); box-shadow: 0 0 0 1px rgba(143,123,255,.45); text-align: center; }
.xmas .xm-y .yl-steps h3 { color: #fff; margin-top: .7rem; }
.xmas .xm-y .yl-steps p { margin: 0; color: var(--ym); font-size: 1rem; }
.xmas .xm-y .yl-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: 999px; font-family: var(--mono); font-size: .76rem; color: var(--cy); background: rgba(94,240,212,.08); box-shadow: inset 0 0 0 1px rgba(94,240,212,.55); }
.xmas .xm-y .yl-chip .px { width: 1rem; height: 1rem; }
.xmas .xm-y .yl-trust { color: var(--ym); max-width: 44rem; margin: 0 auto; justify-items: center; text-align: center; }
@media (max-width: 760px) { .xmas .xm-y .yl-steps { grid-template-columns: minmax(0, 1fr); } }

/* quiz: centred terminal card for the grown-up */
.xmas .xm-y .yq { background: #120b33; padding: 4.5rem 0; }
.xmas .xm-y .yq .xm-head .xm-santa { justify-content: center; }
.xmas .xm-y .yq-term { max-width: 45rem; margin: 2rem auto 0; border-radius: 14px; overflow: hidden; background: #0b1030; box-shadow: 0 0 0 1.5px rgba(94,240,212,.5), 0 30px 60px -30px rgba(0,0,0,.8); }
.xmas .xm-y .yq-bar { display: flex; align-items: center; gap: .35rem; margin: 0; padding: .6rem .9rem; background: rgba(255,255,255,.05); font-family: var(--mono); font-size: .74rem; color: var(--ym); }
.xmas .xm-y .yq-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #2a3470; } .xmas .xm-y .yq-bar i:first-child { background: var(--cy); }
.xmas .xm-y .yq-bar span { margin-left: .5rem; }
.xmas .xm-y .yq .xm-quiz { margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--yi); box-shadow: none; min-height: 22rem; }
.xmas .xm-y .yq .xm-progress { background: rgba(94,240,212,.15); }
.xmas .xm-y .yq .xm-progress span { background: linear-gradient(90deg, var(--cy), var(--mg)); }
.xmas .xm-y .yq .xm-count, .xmas .xm-y .yq .xm-help, .xmas .xm-y .yq .xm-book-opt small { color: var(--ym); }
.xmas .xm-y .yq .xm-q { color: #fff; }
.xmas .xm-y .yq .xm-opt { background: rgba(94,240,212,.05); color: var(--yi); border-color: rgba(94,240,212,.45); }
.xmas .xm-y .yq .xm-opt:hover { background: rgba(94,240,212,.14); border-color: var(--cy); }
.xmas .xm-y .yq .xm-opt[aria-pressed="true"] { background: rgba(255,106,213,.16); border-color: var(--mg); box-shadow: inset 0 0 0 1px var(--mg); }
.xmas .xm-y .yq .xm-opt:focus-visible { outline-color: var(--cy); }
.xmas .xm-y .yq .xm-book-opt .tg-q { color: var(--cy); }
.xmas .xm-y .yq .xm-field label, .xmas .xm-y .yq .xm-check label { color: var(--yi); }
.xmas .xm-y .yq .xm-field input, .xmas .xm-y .yq .xm-field textarea { background: #fff; color: var(--ink); }
.xmas .xm-y .yq .xm-check input { accent-color: var(--cy); }
.xmas .xm-y .yq .xm-err { color: #ffb8ec; }
.xmas .xm-y .yq .xm-back { color: var(--cy); }
.xmas .xm-y .yq .btn { border-color: var(--cy); color: var(--yi); }
.xmas .xm-y .yq .btn.solid { background: var(--cy); color: #0f0a2c; }
.xmas .xm-y .yq .xm-done-seal { background: radial-gradient(circle at 35% 30%, #ff9ae6, var(--mg) 55%, #a8338f); color: #0f0a2c; }
.xmas .xm-y .yq .xm-preview-note { color: var(--ym); border-color: var(--ym); }
.xmas .xm-y .yq .xm-rec { border-color: rgba(94,240,212,.4); }
.xmas .xm-y .yq-fine { text-align: center; margin: 1rem auto 0; }

/* sleigh section in the teen palette */
.xmas .xm-y .yo { background: radial-gradient(80% 90% at 70% 20%, #3b1f78, #24145a 55%, #160d3e); }
.xmas .xm-y .yo .xm-sleigh .spark path { fill: var(--cy); filter: drop-shadow(0 0 3px var(--cy)); }
.xmas .xm-y .yo .xm-sleigh .rein, .xmas .xm-y .yo .xm-sleigh .sack { stroke: var(--mg) !important; }
.xmas .xm-y .yo .xm-countdown { border-color: rgba(94,240,212,.55); box-shadow: 0 0 24px -8px rgba(94,240,212,.5); }

/* Iceland on the teen page */
.xmas .xm-y .yi { background: #f7f1e3; }
.xmas .xm-y .yi-dnd { display: inline-block; margin-top: .4rem; padding: .3rem .7rem; border-radius: 999px; background: #0b1030; color: var(--cy); font-size: .74rem !important; }
.xmas .xm-y .yi-art { position: relative; justify-self: center; width: 100%; max-width: 26rem; }
.xmas .xm-y .yi-phone { position: absolute; left: 2%; bottom: 6%; width: 22%; aspect-ratio: 2 / 1; border-radius: 6px; background: #1d2621; transform: rotate(-8deg); box-shadow: inset 0 0 0 2px #3a4a43, 0 6px 10px -4px rgba(0,0,0,.4); }
.xmas .xm-y .yi-phone::after { content: "zz"; position: absolute; right: -1.2rem; top: -1rem; font-family: var(--mono); font-size: .75rem; color: #7c3aed; }

@media (prefers-reduced-motion: reduce) {
  .xmas .xm-y .yw-cur, .xmas .xm-y .yw-bar i, .xmas .xm-y .yw-note.is-in, .xmas .xm-y .yb-stand .xm-gift, .xmas .xm-y .yb-status, .xmas .xm-y .yu-fill { animation: none !important; }
}
.xmas .xm-y .yq .xm-book-opts { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 11rem)); justify-content: center; }
.xmas .xm-countdown .mono { max-width: 22rem; margin-left: auto; margin-right: auto; }
.xmas .xm-y .yb-stand { padding-top: 8rem; }
.xmas .xm-y .yb-stand .xm-gift { justify-self: center; margin: 0 auto; }
.xmas .xm-y .yb-stand .xm-tag { top: -7.6rem; left: 50%; margin-left: -4.3rem; }

/* v11: Iceland section in the teen style */
.xmas .xm-y .yi { position: relative; overflow: hidden; background: radial-gradient(70% 80% at 80% 30%, rgba(143,123,255,.28), transparent 70%), linear-gradient(180deg, #160d3e, #120b33); color: var(--yi); }
.xmas .xm-y .yi .wrap { position: relative; }
.xmas .xm-y .yi .xm-iceland-card { background: #0b1030; border: 0; box-shadow: 0 0 0 1.5px rgba(94,240,212,.55), 0 0 34px -10px rgba(94,240,212,.5); }
.xmas .xm-y .yi .xm-iceland-card::after { border-color: rgba(143,123,255,.45); }
.xmas .xm-y .yi .sub { color: var(--cy); }
.xmas .xm-y .yi h2 { color: #fff; }
.xmas .xm-y .yi .xm-iceland-card p { color: var(--ym); }
.xmas .xm-y .yi .xm-santa { color: var(--yi); }
.xmas .xm-y .yi .yi-dnd { background: rgba(255,106,213,.12); color: #ffb8ec; box-shadow: inset 0 0 0 1px var(--mg); }
.xmas .xm-y .yi .xm-still { filter: drop-shadow(0 0 4px rgba(94,240,212,.55)); }
.xmas .xm-y .yi .xm-still .ink { stroke: var(--cy); }
.xmas .xm-y .yi .xm-still .ink.paper { fill: rgba(94,240,212,.06); }
.xmas .xm-y .yi .xm-still .ink.mug { fill: rgba(255,106,213,.25); stroke: var(--mg); }
.xmas .xm-y .yi .xm-still .ink.ribbon { fill: rgba(255,106,213,.4); stroke: var(--mg); }
.xmas .xm-y .yi .xm-still .ink.thin { stroke: #c9c3f2; }
.xmas .xm-y .yi .xm-still .flame { fill: var(--ye); stroke: #e0b300; }
.xmas .xm-y .yi .xm-still .cnd-glow { fill: rgba(255,224,102,.07); }
.xmas .xm-y .yi .xm-still .sf path { stroke: var(--ye); }
.xmas .xm-y .yi .yi-phone { background: #0b1030; box-shadow: inset 0 0 0 1.5px var(--cy), 0 0 12px -2px rgba(94,240,212,.7); }
.xmas .xm-y .yi .yi-phone::after { color: var(--mg); }

/* ===================== v12: adult /christmas/ page on pine green, one continuous snow layer ===================== */
body.xmas:not(.xmas-young) { background: var(--pine); color: var(--ivory); }
body.xmas:not(.xmas-young)::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 100vh; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 70% at 75% 10%, rgba(33,80,63,.9), transparent 70%), radial-gradient(80% 60% at 10% 100%, rgba(15,44,37,.9), transparent 70%); }
body.xmas:not(.xmas-young)::after { content: ""; position: fixed; left: 0; right: 0; top: -100vh; height: 200vh; z-index: -1; pointer-events: none; will-change: transform;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 60%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 55% 35%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 75% 80%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 10%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 45% 90%, #fff 50%, transparent 51%);
  background-size: 240px 240px; opacity: .4; animation: xm-pagesnow 30s linear infinite; }
@keyframes xm-pagesnow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(24px, 100vh, 0); } }
@media (prefers-reduced-motion: reduce) { body.xmas:not(.xmas-young)::after { animation: none !important; } }

/* every section transparent over the pine, except the sleigh section (burgundy) */
body.xmas:not(.xmas-young) .xm .xm-hero, body.xmas:not(.xmas-young) .xm .xm-books, body.xmas:not(.xmas-young) .xm .xm-letter,
body.xmas:not(.xmas-young) .xm .xm-how, body.xmas:not(.xmas-young) .xm .xm-quiz-sec, body.xmas:not(.xmas-young) .xm .xm-iceland,
body.xmas:not(.xmas-young) .doors, body.xmas:not(.xmas-young) .site-foot { background: transparent; }
body.xmas:not(.xmas-young) .xm-hero .xm-snow { display: none; }
body.xmas:not(.xmas-young) .xm-books, body.xmas:not(.xmas-young) .xm-how, body.xmas:not(.xmas-young) .xm-iceland, body.xmas:not(.xmas-young) .doors { border-top: 1px solid rgba(217,183,101,.18); }

/* light text on green; gold accents */
body.xmas:not(.xmas-young) .xm { color: var(--ivory); }
body.xmas:not(.xmas-young) .xm .sub { color: var(--gold); }
body.xmas:not(.xmas-young) .xm .xm-intro, body.xmas:not(.xmas-young) .xm .xm-how-note { color: #e6dfcb; }
body.xmas:not(.xmas-young) .xm .xm-fine, body.xmas:not(.xmas-young) .xm .xm-trust, body.xmas:not(.xmas-young) .xm .xm-avail { color: #ddd5c0; }
body.xmas:not(.xmas-young) .xm a:not(.btn) { color: var(--gold) !important; }
body.xmas:not(.xmas-young) .xm-books .xm-series { color: var(--gold); }
body.xmas:not(.xmas-young) .xm-books .xm-card-title a { color: var(--ivory) !important; }
body.xmas:not(.xmas-young) .xm-books .xm-santa { color: #f3ead2; }
body.xmas:not(.xmas-young) .xm-books .xm-cover { box-shadow: 0 16px 30px -14px rgba(0,0,0,.7); }
body.xmas:not(.xmas-young) .xm-books .xm-twice { background: rgba(255,255,255,.04); border-color: rgba(217,183,101,.5); }
body.xmas:not(.xmas-young) .xm-trust li::before { background: var(--gold); }

/* cards keep their own paper and dark text */
body.xmas:not(.xmas-young) .xm .xm-tagcard { color: var(--ink); }
body.xmas:not(.xmas-young) .xm .xm-tagcard a:not(.btn), body.xmas:not(.xmas-young) .xm .xm-quiz a:not(.btn), body.xmas:not(.xmas-young) .xm .xm-sample a:not(.btn) { color: var(--burg) !important; }
body.xmas:not(.xmas-young) .xm .xm-quiz { color: var(--ink); box-shadow: 0 0 0 1.5px rgba(217,183,101,.6), 0 30px 60px -30px rgba(0,0,0,.7); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-fine { color: #4f5b55; }
body.xmas:not(.xmas-young) .xm .xm-portal a, body.xmas:not(.xmas-young) .xm a.xm-portal { color: #e8fffa !important; }

/* Iceland: gold-lined card on green, drawing in ivory and gold */
body.xmas:not(.xmas-young) .xm-iceland-card { background: rgba(12,36,30,.55); box-shadow: 0 0 0 1px rgba(217,183,101,.7), 0 22px 40px -30px rgba(0,0,0,.6); border: 0; }
body.xmas:not(.xmas-young) .xm-iceland-card::after { border-color: rgba(217,183,101,.35); }
body.xmas:not(.xmas-young) .xm-iceland-card p { color: #ebe4cf; }
body.xmas:not(.xmas-young) .xm-iceland h2 { color: #fff; }
body.xmas:not(.xmas-young) .xm-still .ink { stroke: var(--ivory); }
body.xmas:not(.xmas-young) .xm-still .ink.paper { fill: rgba(247,241,227,.08); }
body.xmas:not(.xmas-young) .xm-still .ink.thin { stroke: #e6dfcb; }
body.xmas:not(.xmas-young) .xm-still .ink.mug, body.xmas:not(.xmas-young) .xm-still .ink.ribbon { fill: rgba(217,183,101,.35); stroke: var(--gold); }

/* doors and footer on green */
body.xmas:not(.xmas-young) .doors, body.xmas:not(.xmas-young) .doors-h, body.xmas:not(.xmas-young) .door-label strong { color: var(--ivory); }
body.xmas:not(.xmas-young) .doors-sub, body.xmas:not(.xmas-young) .door-desc, body.xmas:not(.xmas-young) .door-name { color: #e6dfcb; opacity: 1; }
body.xmas:not(.xmas-young) .door-state { border-color: rgba(217,183,101,.7); color: var(--gold); }
body.xmas:not(.xmas-young) .is-here .door-state { background: var(--ivory); color: var(--pine); border-color: var(--ivory); }
body.xmas:not(.xmas-young) .door a:focus-visible { outline-color: var(--gold); }
body.xmas:not(.xmas-young) .site-foot { color: var(--ivory); border-top-color: rgba(217,183,101,.3); }
body.xmas:not(.xmas-young) .site-foot a { color: var(--gold); }
body.xmas:not(.xmas-young) .site-foot .mono, body.xmas:not(.xmas-young) .site-foot small { color: #ddd5c0; }
body.xmas:not(.xmas-young) :focus-visible { outline-color: var(--gold); }
body.xmas:not(.xmas-young) .xm .xm-more { color: #e6dfcb; }
body.xmas:not(.xmas-young) .xm-still .cnd-glow { fill: rgba(255,207,122,.12); }

/* v12b: quiz card and sleigh section on the pine as well */
body.xmas:not(.xmas-young) .xm .xm-order { background: transparent; border-top: 1px solid rgba(217,183,101,.18); color: var(--ivory); }
body.xmas:not(.xmas-young) .xm .xm-order .xm-snow { display: none; }
body.xmas:not(.xmas-young) .xm .xm-order .xm-fine { color: #ddd5c0; }
body.xmas:not(.xmas-young) .xm .xm-countdown { border-color: rgba(217,183,101,.6); background: rgba(12,36,30,.45); }
body.xmas:not(.xmas-young) .xm .xm-countdown .mono { color: var(--gold); }
body.xmas:not(.xmas-young) .xm .xm-sleigh .santa, body.xmas:not(.xmas-young) .xm .xm-sleigh .hat { fill: #8c1c2b !important; }

body.xmas:not(.xmas-young) .xm .xm-quiz { background: rgba(12,36,30,.55); color: var(--ivory); box-shadow: 0 0 0 1px rgba(217,183,101,.75), 0 30px 60px -30px rgba(0,0,0,.6); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-progress { background: rgba(247,241,227,.15); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-progress span { background: linear-gradient(90deg, #c9a24f, var(--gold)); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-count, body.xmas:not(.xmas-young) .xm .xm-quiz .xm-help, body.xmas:not(.xmas-young) .xm .xm-quiz .xm-book-opt small, body.xmas:not(.xmas-young) .xm .xm-quiz .xm-fine { color: #ddd5c0; }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-q { color: #fff; }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-opt { background: rgba(247,241,227,.06); color: var(--ivory); border-color: rgba(217,183,101,.55); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-opt:hover { background: rgba(247,241,227,.12); border-color: var(--gold); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-opt[aria-pressed="true"] { background: rgba(217,183,101,.2); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-opt:focus-visible { outline-color: var(--gold); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-field label, body.xmas:not(.xmas-young) .xm .xm-quiz .xm-check label { color: var(--ivory); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-field input, body.xmas:not(.xmas-young) .xm .xm-quiz .xm-field textarea { background: #0f2c25; color: var(--ivory); border-color: rgba(217,183,101,.7); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-field input:focus, body.xmas:not(.xmas-young) .xm .xm-quiz .xm-field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-check input { accent-color: var(--gold); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-err { color: #ffc9b8; }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-back, body.xmas:not(.xmas-young) .xm .xm-quiz a:not(.btn) { color: var(--gold) !important; }
body.xmas:not(.xmas-young) .xm .xm-quiz .btn { border-color: var(--gold); color: var(--ivory); }
body.xmas:not(.xmas-young) .xm .xm-quiz .btn.solid { background: var(--ivory); border-color: var(--ivory); color: #6d1421; }
body.xmas:not(.xmas-young) .xm .xm-quiz .btn.solid:hover { background: #fff; }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-rec { border-color: rgba(217,183,101,.55); }
body.xmas:not(.xmas-young) .xm .xm-quiz .xm-preview-note { color: #ddd5c0; border-color: rgba(217,183,101,.7); }

/* ===================== v13: young readers page on one continuous night, pixel snow ===================== */
body.xmas-young { background: #120b33; color: #e8fffa; }
body.xmas-young::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 100vh; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 70% at 78% 12%, rgba(59,31,120,.95), transparent 70%), radial-gradient(70% 60% at 8% 95%, rgba(42,24,104,.8), transparent 70%); }
body.xmas-young::after { content: ""; position: fixed; left: 0; right: 0; top: -100vh; height: 200vh; z-index: -1; pointer-events: none; will-change: transform;
  background-image: linear-gradient(#e8fffa,#e8fffa), linear-gradient(#ffb8ec,#ffb8ec), linear-gradient(#5ef0d4,#5ef0d4), linear-gradient(#e8fffa,#e8fffa), linear-gradient(#e8fffa,#e8fffa), linear-gradient(#5ef0d4,#5ef0d4);
  background-size: 4px 4px; background-repeat: no-repeat;
  background-position: 8% 6%, 34% 21%, 62% 9%, 88% 33%, 50% 42%, 18% 47%;
  opacity: .7; animation: ys-pagesnow 22s steps(60) infinite; }
body.xmas-young .xm-y::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#e8fffa,#e8fffa), linear-gradient(#5ef0d4,#5ef0d4), linear-gradient(#ffb8ec,#ffb8ec), linear-gradient(#e8fffa,#e8fffa), linear-gradient(#e8fffa,#e8fffa), linear-gradient(#5ef0d4,#5ef0d4), linear-gradient(#e8fffa,#e8fffa), linear-gradient(#ffb8ec,#ffb8ec);
  background-size: 3px 3px; background-repeat: no-repeat;
  background-position: 22% 14%, 72% 18%, 44% 30%, 92% 52%, 6% 66%, 58% 74%, 30% 88%, 80% 92%; opacity: .45; animation: ys-twinkle 4s steps(2) infinite; }
@keyframes ys-pagesnow { from { transform: translateY(0); } to { transform: translateY(100vh); } }
@keyframes ys-twinkle { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { body.xmas-young::after, body.xmas-young .xm-y::before { animation: none !important; } }

/* sections transparent, no per-section snow */
body.xmas-young .xm-y .xm-hero, body.xmas-young .xm-y .yw, body.xmas-young .xm-y .yb, body.xmas-young .xm-y .yu, body.xmas-young .xm-y .yl,
body.xmas-young .xm-y .yq, body.xmas-young .xm-y .yo, body.xmas-young .xm-y .yi, body.xmas-young .doors, body.xmas-young .site-foot { background: transparent; }
body.xmas-young .xm-y .yw::before { display: none; }
body.xmas-young .xm-y > section > .xm-snow, body.xmas-young .xm-y .yi-snow { display: none; }
body.xmas-young .xm-y .yb, body.xmas-young .xm-y .yu, body.xmas-young .xm-y .yl, body.xmas-young .xm-y .yq, body.xmas-young .xm-y .yo, body.xmas-young .xm-y .yi, body.xmas-young .doors { border-top: 1px solid rgba(94,240,212,.14); }
body.xmas-young .xm-y .yo .xm-countdown { background: rgba(11,16,48,.6); }

/* light text everywhere */
body.xmas-young .xm-y .xm-more { color: #c9c3f2; }
body.xmas-young .xm-y .xm-more a { color: #5ef0d4 !important; }
body.xmas-young .doors, body.xmas-young .doors-h, body.xmas-young .door-label strong { color: #fff; }
body.xmas-young .doors-sub, body.xmas-young .door-desc, body.xmas-young .door-name { color: #c9c3f2; opacity: 1; }
body.xmas-young .door-state { border-color: rgba(94,240,212,.7); color: #5ef0d4; }
body.xmas-young .is-here .door-state { background: #5ef0d4; color: #0f0a2c; border-color: #5ef0d4; }
body.xmas-young .door a:focus-visible { outline-color: #5ef0d4; }
body.xmas-young .site-foot { color: #e8fffa; border-top-color: rgba(94,240,212,.25); }
body.xmas-young .site-foot a { color: #5ef0d4; }
body.xmas-young .site-foot .mono, body.xmas-young .site-foot small { color: #c9c3f2; }
body.xmas-young :focus-visible { outline-color: #5ef0d4; }
