.christmas-controls[hidden],.christmas-art[hidden],#christmas-motion[hidden]{display:none}
.christmas-controls{width:fit-content;max-width:100%;margin-top:.9rem;font-size:.83rem;color:var(--ink)}
.christmas-controls summary{cursor:pointer;width:fit-content;font-weight:700;text-decoration:underline;text-underline-offset:.18em}
.christmas-options{display:grid;gap:.35rem;margin-top:.4rem;padding:.65rem .8rem;border:1px solid var(--line);border-radius:.45rem;background:var(--paper)}
.christmas-options select{width:100%;color:var(--ink);background:var(--paper);border:1px solid var(--muted);border-radius:.25rem;padding:.3rem}
.christmas-cycle{display:flex;align-items:center;gap:.4rem;cursor:pointer}
.christmas-cycle input{accent-color:var(--ink)}
.christmas-controls :focus-visible{outline:3px solid #5a62e8;outline-offset:3px}
.christmas-art{position:absolute;inset:0;pointer-events:none;z-index:2;background-repeat:no-repeat;background-size:contain;background-position:top center}
.christmas-art[data-style="1"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 200'%3E%3Cg fill='%23fffdf6' stroke='%2321231f' stroke-width='1.1'%3E%3Ccircle cx='23' cy='22' r='5'/%3E%3Ccircle cx='59' cy='42' r='3'/%3E%3Ccircle cx='117' cy='11' r='4'/%3E%3Ccircle cx='291' cy='23' r='5'/%3E%3Ccircle cx='335' cy='49' r='3'/%3E%3Ccircle cx='321' cy='9' r='3'/%3E%3Ccircle cx='20' cy='74' r='2.5'/%3E%3C/g%3E%3C/svg%3E")}
.christmas-art[data-style="2"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 200'%3E%3Cpath d='M6 5Q170 48 351 5' fill='none' stroke='%2321231f' stroke-width='2'/%3E%3Cg stroke='%2321231f' stroke-width='1'%3E%3Cellipse cx='43' cy='19' rx='5' ry='7' fill='%23f77e49'/%3E%3Cellipse cx='99' cy='27' rx='5' ry='7' fill='%23ffdf59'/%3E%3Cellipse cx='155' cy='33' rx='5' ry='7' fill='%2385b995'/%3E%3Cellipse cx='212' cy='33' rx='5' ry='7' fill='%23f77e49'/%3E%3Cellipse cx='268' cy='26' rx='5' ry='7' fill='%23ffdf59'/%3E%3Cellipse cx='324' cy='17' rx='5' ry='7' fill='%2385b995'/%3E%3C/g%3E%3C/svg%3E")}
.christmas-art[data-style="4"]{background-size:30% auto;background-position:94% 3%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 105'%3E%3Cg stroke='%2321231f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M55 51v24L44 92m11-17 14 13M55 60 40 67 30 57m25 3 16-12 4-15' fill='none'/%3E%3Ccircle cx='55' cy='39' r='14' fill='%23fffdf6'/%3E%3Cpath d='M41 32Q47 8 68 13l8 13-12-5 3 10z' fill='%23f77e49'/%3E%3Ccircle cx='78' cy='27' r='5' fill='%23fffdf6'/%3E%3Cpath d='M40 30h29v6H40z' fill='%23fffdf6'/%3E%3Cpath d='M51 42h.01m9 0h.01m-9 5q4 3 7-1' fill='none'/%3E%3C/g%3E%3C/svg%3E")}
.christmas-art[data-style="6"]{background-size:26% auto;background-position:96% 2%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 90'%3E%3Cg transform='rotate(8 60 44)' stroke='%2321231f' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M55 30C31 28 30 12 43 17Q54 21 55 30m0 0C79 26 77 10 65 17Q58 20 55 30' fill='none'/%3E%3Cpath d='M30 40h51v31H30z' fill='%23ffdf59'/%3E%3Cpath d='M27 30h57v14H27z' fill='%23fffdf6'/%3E%3Cpath d='M51 30h9v41h-9z' fill='%23f77e49'/%3E%3C/g%3E%3C/svg%3E")}
.christmas-art[data-style="8"]{background-size:36% auto;background-position:98% 0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 86'%3E%3Cg stroke='%2321231f' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M87 78V57' stroke-width='5'/%3E%3Cpath d='m87 14-12 19 6-1-13 15 8-1-17 20 50-3-16-16 7 2-11-17 7 2z' fill='%2385b995'/%3E%3Cpath d='m86 6 2 5 6 1-5 3 1 5-4-3-4 3 1-5-4-3 6-1z' fill='%23ffdf59'/%3E%3Ccircle cx='86' cy='41' r='2.5' fill='%23f77e49'/%3E%3Ccircle cx='79' cy='56' r='2.5' fill='%23ffdf59'/%3E%3Ccircle cx='94' cy='56' r='2.5' fill='%23f77e49'/%3E%3C/g%3E%3C/svg%3E")}

/* Each choice supplies a site frame, not just an illustration sticker. */
html[data-christmas="1"] {
  --holiday-bg:#f3faff; --holiday-a:#e7f5fc; --holiday-b:#f9fdff;
  --holiday-line:#a4c7d9; --holiday-accent:#295875; --holiday-shadow:#c5e3f0;
  --holiday-edge:url('/holiday/snow-edge.svg'); --holiday-trim:url('/holiday/snow-trim.svg');
  --edge-step:214px; --trim-step:180px;
}
html[data-christmas="2"] {
  --holiday-bg:#fff8ea; --holiday-a:#fff0cc; --holiday-b:#fffdf4;
  --holiday-line:#dec28c; --holiday-accent:#773924; --holiday-shadow:#f3d891;
  --holiday-edge:url('/holiday/lights-edge.svg'); --holiday-trim:url('/holiday/lights-trim.svg');
  --edge-step:186px; --trim-step:164px;
}
html[data-christmas="4"] {
  --holiday-bg:#fff5ea; --holiday-a:#fde6d7; --holiday-b:#fffaf1;
  --holiday-line:#e6b5a6; --holiday-accent:#8a3029; --holiday-shadow:#f3cb89;
  --holiday-edge:url('/holiday/santa-edge.svg'); --holiday-trim:url('/holiday/santa-trim.svg');
  --edge-step:236px; --trim-step:145px;
}
html[data-christmas="6"] {
  --holiday-bg:#fff5e4; --holiday-a:#fce5cd; --holiday-b:#fffaf2;
  --holiday-line:#e3b296; --holiday-accent:#842e22; --holiday-shadow:#efc3a8;
  --holiday-edge:url('/holiday/gift-edge.svg'); --holiday-trim:url('/holiday/gift-trim.svg');
  --edge-step:212px; --trim-step:205px;
}
html[data-christmas="8"] {
  --holiday-bg:#f5f8e9; --holiday-a:#e7edda; --holiday-b:#fbf9ea;
  --holiday-line:#b1c293; --holiday-accent:#2d542f; --holiday-shadow:#cedab3;
  --holiday-edge:url('/holiday/pine-edge.svg'); --holiday-trim:url('/holiday/pine-trim.svg');
  --edge-step:196px; --trim-step:174px;
}

html[data-christmas] body {
  --paper:var(--holiday-bg);
  --line:var(--holiday-line);
  background:var(--paper);
}
html[data-christmas] .announcement {
  background:var(--holiday-accent);
}
html[data-christmas] body > :is(header,footer) {
  border-color:var(--holiday-accent);
  background-color:var(--holiday-b);
  background-image:var(--holiday-trim);
  background-size:var(--trim-step) 24px;
  background-position:center top;
  background-repeat:repeat-x;
}
html[data-christmas] body > header {padding-top:12px}
html[data-christmas] body > footer {padding-top:49px}

html[data-christmas] main {
  position:relative;
  isolation:isolate;
  --rail-width:clamp(19px,4.6vw,59px);
}
html[data-christmas] main::before,
html[data-christmas] main::after {
  content:"";
  position:absolute;
  z-index:1;
  inset-block:0;
  left:0;
  width:var(--rail-width);
  pointer-events:none;
  background:var(--holiday-edge) left top / 100% calc(var(--edge-step) * .94) repeat-y;
}
html[data-christmas] main::after {
  right:0;
  left:auto;
  transform:scaleX(-1);
  background-position:left calc(var(--edge-step) / 3);
}

html[data-christmas] .hero {
  background:radial-gradient(ellipse at 74% 37%,var(--holiday-a),transparent 70%),var(--holiday-b);
}
html[data-christmas] .comic-grid {
  box-shadow:10px 11px 0 var(--holiday-shadow);
}
html[data-christmas] .hero-copy .eyebrow,
html[data-christmas] main .section-heading .eyebrow,
html[data-christmas] .how-section > .eyebrow {color:var(--holiday-accent)}
html[data-christmas] .ticker {border-color:var(--holiday-accent)}
html[data-christmas="4"] .hero {
  background:
    radial-gradient(var(--holiday-shadow) .75px,transparent 1px) 0 0 / 8px 8px,
    radial-gradient(ellipse at 74% 37%,var(--holiday-a),transparent 75%),
    var(--holiday-b);
}
html[data-christmas] main > :is(.books-section,.extras-section,.how-section) {
  background:var(--holiday-trim) center top / var(--trim-step) 20px repeat-x;
  background-color:var(--holiday-b);
}
html[data-christmas] #watch,
html[data-christmas] .how-section {background-color:var(--holiday-a)}
html[data-christmas] .extras-card {border-color:var(--holiday-line)}
html[data-christmas] .extras-card-body,
html[data-christmas] .christmas-options {
  background-color:var(--holiday-b);
}
html[data-christmas] .free-note,
html[data-christmas] .steps article,
html[data-christmas] .ordering-note {border-color:var(--holiday-accent)}
html[data-christmas] .premium-banner {
  background:var(--holiday-trim) center top / var(--trim-step) 20px repeat-x var(--holiday-a);
  border-color:var(--holiday-accent);
  box-shadow:0 3px 0 var(--holiday-shadow);
}
html[data-christmas] .premium-icon {color:var(--holiday-accent)}

@media(max-width:760px) {
  html[data-christmas] body > header {padding-top:25px}
  html[data-christmas] main {--rail-width:clamp(15px,4.1vw,31px)}
  html[data-christmas] main::before,
  html[data-christmas] main::after {
    background-size:100% calc(var(--edge-step) * .54);
  }
}
html[data-christmas] .book-card .cover-btn {
  box-shadow:3px 4px 0 var(--holiday-shadow);
}
html[data-christmas] .book-category,
html[data-christmas] .extras-card-footer strong {color:var(--holiday-accent)}
html[data-christmas] .ticker {background-color:var(--holiday-a)}

/* Always-visible controls; the whole bar wraps without horizontal scrolling. */
.christmas-controls{box-sizing:border-box;width:100%;max-width:42rem;margin-top:1.2rem;padding:.8rem 1rem;border:1px solid var(--ink);border-left:4px solid var(--orange);border-radius:.55rem;background:var(--paper);font-size:.94rem}
.christmas-controls h2{font:700 1.14rem/1.25 'Space Grotesk',sans-serif;margin:0 0 .45rem}
.christmas-controls .christmas-options{display:grid;grid-template-columns:auto minmax(8.6rem,1fr) auto;align-items:center;gap:.45rem .7rem;margin:0;padding:0;border:0;background:transparent}
.christmas-controls .christmas-options select{min-height:44px;padding:.4rem .55rem}
.christmas-controls .christmas-cycle{min-height:44px;font-weight:700}
.christmas-controls .christmas-cycle input{width:1.18rem;height:1.18rem;flex:none}
.christmas-controls .christmas-options small{grid-column:1/-1}
@media(max-width:560px){.christmas-controls .christmas-options{grid-template-columns:auto minmax(0,1fr)}.christmas-controls .christmas-cycle{grid-column:1/-1}}
