/* Christmas 2026 -- the looks for what christmas-draw.js draws. On Dec 1 through
 * Dec 26, 11:59 pm ET. Everything is under html.xmas or a class christmas-draw.js
 * adds, so the file does nothing once the season is over; delete it with
 * christmas.js, christmas-draw.js and the two tags per page (Justin, 2026-12-03).
 *
 * The site keeps its own plum, lavender and gold: buttons, prices and links
 * are untouched. Holly red and evergreen live only in the decorations. */

.xm { pointer-events: none; }
html.xmas .xm-host, html.xmas .xm-seat, html.xmas .xm-capped { position: relative; }

/* A box that is off screen stands still (christmas-draw.js adds .on). */
.xm:not(.on) *, .xm-snow:not(.on) i { animation-play-state: paused !important; }

/* ---------- Snow ---------- */
.xm-snow { position: absolute; inset: 0; overflow: hidden; contain: strict; }
.xm-snow i { position: absolute; left: var(--x); top: -36px; width: var(--s); height: var(--s); opacity: 0;
  animation: xm-fall var(--d) linear var(--t) infinite; }
.xm-snow b { display: block; width: 100%; height: 100%; animation: xm-sway var(--sw) ease-in-out var(--t) infinite alternate; }
.xm-snow .fl b, .xm-burst .fl {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cg id='a'%3E%3Cpath d='M20 20V3M20 9L15.6 5M20 9L24.4 5M20 14.4L16.4 11.4M20 14.4L23.6 11.4'/%3E%3C/g%3E%3Cuse href='%23a' transform='rotate(60 20 20)'/%3E%3Cuse href='%23a' transform='rotate(120 20 20)'/%3E%3Cuse href='%23a' transform='rotate(180 20 20)'/%3E%3Cuse href='%23a' transform='rotate(240 20 20)'/%3E%3Cuse href='%23a' transform='rotate(300 20 20)'/%3E%3C/svg%3E") center / contain no-repeat; }
.xm-snow .dt b { border-radius: 50%; background: radial-gradient(circle, #fff 0 34%, rgba(255, 255, 255, .5) 52%, rgba(255, 255, 255, 0) 72%); }
@keyframes xm-fall { 0% { transform: translateY(0); opacity: 0; } 8%, 88% { opacity: calc(var(--o) * var(--k, .55)); }
  100% { transform: translateY(var(--fall, 100vh)); opacity: 0; } }
@keyframes xm-sway { from { transform: translateX(calc(var(--sway) * -1)) rotate(var(--r)); }
  to { transform: translateX(var(--sway)) rotate(calc(var(--r) + 90deg)); } }

/* Full strength over the home page's picture; fainter where it falls behind
   paragraphs, fainter still on a phone, so small print stays crisp. */
.xm-vivid { --k: 1; }
@media (max-width: 979px) { .xm-snow { --k: .42; } .xm-vivid { --k: .8; } }

/* Words stay above the snow in the sections whose content was not positioned. */
html.xmas .sp-head > .wrap, html.xmas .specials-page .today > .wrap { position: relative; z-index: 1; }
html.xmas .specials-page .today { position: relative; }
/* The quiz pages: behind everything, like the leaves in November. */
.xm-page { position: fixed; z-index: -1; }

/* ---------- The sleigh ----------
   In from the right edge, up and away to the left, shrinking as it goes. Each
   page's path stops short of its headline; --dx/--dy is how far it goes. On a
   phone only the two pages with a picture up there have it. */
.xm-sky { position: absolute; inset: 0; overflow: hidden; contain: strict; }
.xm-sleigh { --w: 320px; --top: 33svh; --dx: -44vw; --dy: -23svh; --end: .46;
  position: absolute; left: 100%; top: var(--top); width: var(--w); transform-origin: 0 50%; visibility: hidden; }
.xm-sleigh.fly { visibility: visible; animation: xm-fly 11s cubic-bezier(.3, .2, .6, 1); }
.xm-sleigh svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.fly .xm-bob { animation: xm-bob 1.7s ease-in-out infinite alternate; }
.xm-bob::after { content: ""; position: absolute; left: 93%; top: 46%; width: 46%; height: 34%;
  background: radial-gradient(circle, #FFE3A6 0 24%, rgba(240, 192, 106, 0) 60%) 0 0 / 15px 13px, radial-gradient(circle, #fff 0 18%, rgba(255, 255, 255, 0) 50%) 6px 4px / 23px 19px;
  -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
.fly .xm-deer { transform-box: fill-box; transform-origin: 60% 60%; animation: xm-deer .7s ease-in-out infinite alternate; }
@keyframes xm-fly { 0% { transform: translate3d(0, 0, 0) scale(1) rotate(5deg); opacity: 1; }
  86% { transform: translate3d(var(--dx), var(--dy), 0) scale(var(--end)) rotate(8deg); opacity: 1; }
  100% { transform: translate3d(calc(var(--dx) * 1.12), calc(var(--dy) * 1.14), 0) scale(calc(var(--end) * .8)) rotate(8deg); opacity: 0; } }
@keyframes xm-bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes xm-deer { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.xm-sky-spa .xm-sleigh { --w: 250px; --top: 17svh; --dx: -38vw; --dy: -5svh; --end: .5; }
.xm-sky-wide .xm-sleigh { --w: 280px; --top: 24svh; --dx: -38vw; --dy: -13svh; --end: .45; }
.xm-sky-short .xm-sleigh { --dx: -27vw; }
/* The quiz pages' header: a small sleigh in the gap between the logo and Call. */
.xm-sky-top { left: 27%; right: 24%;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12% 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12% 88%, transparent); }
.xm-sky-top .xm-sleigh { --w: 150px; --top: 12px; --dx: -60vw; --dy: 0px; --end: .85; }
html.xmas body > header.top > .wrap { position: relative; z-index: 1; }
@media (max-width: 979px) {
  .xm-sleigh { --w: 190px; --top: 27svh; --dx: -125vw; --dy: -12svh; --end: .7; }
  .xm-sky-spa .xm-sleigh { --w: 150px; --top: 17svh; --dx: -120vw; --dy: -4svh; --end: .8; }
  .xm-sky-wide, .xm-sky-top { display: none; }
}

/* ---------- Lights under the header, hat on the logo ---------- */
.xm-lights { position: absolute; left: 0; right: 0; top: 100%; height: 28px; transition: opacity .4s ease, visibility .4s; }
.xm-lights.dim { opacity: 0; visibility: hidden; }
.xm-lights svg { position: absolute; left: 0; top: 0; width: 100%; height: 28px; overflow: visible; }
.xm-tl { animation: xm-twinkle 2.7s ease-in-out infinite; }
@keyframes xm-twinkle { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
/* The quiz pages' header is in the page flow: room for the bulbs below it. */
html.xmas body > header.top { position: relative; margin-bottom: 18px; }
html.xmas .nav .brand, html.xmas body > header.top .brand { position: relative; }
.xm-hatbox { position: absolute; transform: translate(-30%, -52%) rotate(9deg); }
.xm-hatbox svg { display: block; width: 100%; height: auto; }

/* ---------- Garland on the light sections ---------- */
.xm-garland { position: absolute; left: 0; right: 0; top: 0; height: 60px; z-index: 1; }
.xm-garland svg { display: block; width: 100%; height: 60px; overflow: visible; filter: drop-shadow(0 4px 5px rgba(26, 16, 32, .22)); }

/* ---------- Snow on a card's top edge ---------- */
.xm-cap { position: absolute; left: 12px; right: 12px; top: -12px; height: 26px; z-index: 1; }
.xm-cap svg { display: block; width: 100%; height: 26px; filter: drop-shadow(0 3px 4px rgba(11, 6, 26, .3)); }

/* ---------- Santa, behind the booking form's top edge ---------- */
.xm-santa { position: absolute; left: 20px; bottom: 100%; width: 124px; height: 92px; overflow: hidden; }
.xm-santa svg { position: absolute; left: 0; bottom: -2px; width: 100%; height: auto; transform: translateY(104%);
  transition: transform .9s cubic-bezier(.3, 1.35, .5, 1); }
.xm-santa.up svg { transform: none; }
.xm-wave { transform-box: view-box; transform-origin: 100px 92px; }
.xm-santa.up .xm-wave { animation: xm-wave 5s ease-in-out 1s infinite; }
@keyframes xm-wave { 0%, 46%, 100% { transform: rotate(0); } 6%, 22%, 38% { transform: rotate(-13deg); } 14%, 30% { transform: rotate(6deg); } }
/* His head needs room: when the columns stack the form follows straight after the contact list. */
@media (max-width: 1139px) { html.xmas .book-form { margin-top: 74px; } }

/* ---------- Elfie, sitting on a card ----------
   The seat line is 82/118 of the way down the drawing; below it the legs hang. */
.xm-elfie { position: absolute; right: 26px; top: 0; width: 76px; z-index: 2; transform: translateY(-69.5%); }
.xm-elfie svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.xm-elf { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xm-leg { transform-box: view-box; animation: xm-legs 1.5s ease-in-out infinite alternate; }
.xm-leg.b { animation-direction: alternate-reverse; animation-duration: 1.8s; }
@keyframes xm-legs { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.xm-hi { transform-box: view-box; transform-origin: 65px 66px; transform: rotate(26deg); transition: transform .5s; }
.xm-elfie.hi .xm-hi { transform: none; animation: xm-hi 6s ease-in-out infinite; }
@keyframes xm-hi { 0%, 34%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20%, 30% { transform: rotate(8deg); } }
.xm-blink { transform-box: view-box; transform-origin: 48px 40px; animation: xm-blink 4.6s linear infinite; }
@keyframes xm-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.xm-elfie.hop svg { animation: xm-hop .7s cubic-bezier(.3, .6, .4, 1); }
@keyframes xm-hop { 0%, 100% { transform: none; } 18% { transform: scale(1.08, .88) translateY(4px); } 50% { transform: translateY(-20px) rotate(-6deg); } 80% { transform: scale(1.04, .94); } }

/* ---------- Bows, bursts, the hill ---------- */
.xm-bow { position: absolute; width: 58px; z-index: 2; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .35)); }
.xm-bow svg { display: block; width: 100%; height: auto; }
.xm-b-note { left: 12px; top: -30px; width: 48px; }
.xm-b-bag { left: 50%; top: 6.5%; width: 32%; transform: translateX(-50%); }
.xm-burst { position: fixed; inset: 0; z-index: 70; overflow: hidden; }
.xm-burst > div { position: absolute; }
.xm-burst svg { display: block; width: 100%; height: 100%; }
.xm-scene { position: relative; height: 150px; overflow: hidden; background: #0C0716; margin-bottom: -1px; }
.xm-scene svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 979px) {
  .xm-scene { height: 126px; }
  .xm-elfie { width: 54px; right: 10px; }
}

/* ---------- Page by page ---------- */
/* Home: the hero's IV bag swirls holly red and evergreen. It is the same CSS
   grade styles.css puts on this clip, turned the other way; the footage was shot
   gold and emerald. Outranks both of styles.css's .hero canvas rules. */
html.xmas .hero canvas, html.xmas .hero .poster { filter: hue-rotate(-38deg) saturate(1.05); }

/* Room for Elfie above the cards that follow straight after other words, so he
   never sits on a price or a label, and for the snow above the gift card note. */
html.xmas .sp-gift { margin-top: 62px; padding-top: 26px; }
html.xmas .hs-reserve .ritual-addons { margin-top: 62px; }
html.xmas .specials-page .today-panel:first-of-type { margin-top: 66px; }
html.xmas .specials-page .sp-daynav { margin-bottom: 0; }
.xm-e-guide { right: 45%; }
@media (min-width: 980px) and (max-width: 1239px) { html.xmas .quiz { margin-top: 46px; } }
@media (max-width: 979px) {
  html.xmas .quiz, html.xmas .guide { margin-top: 48px; }
  .xm-e-guide { right: 10px; }
  html.xmas .wl-page main { padding-top: 16px; }
}
/* The shop front clips its photo; Elfie and the snow need to stand above its edge. */
html.xmas .shop-front { overflow: visible; }
html.xmas .sf-photo { border-radius: 0 25px 25px 0; }
@media (max-width: 860px) { html.xmas .sf-photo { border-radius: 25px 25px 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .xm, .xm * { animation: none !important; transition: none !important; }
  .xm-santa svg { transform: none; }
  .xm-hi { transform: none; }
  .xm-snow { display: none; }
}
