.santa-peek {
  display:block; width:56px; height:44px; border:0; padding:0; margin:0; border-radius:4px;
  background:transparent url('/assets/christmas-santa.webp') center bottom / 100% auto no-repeat;
  cursor:pointer; z-index:2; filter:drop-shadow(0 1px 2px #251a1338);
}
.santa-ledge { width:100%; padding:0; }
.santa-home-perch { display:inline-flex; position:relative; max-width:100%; }
.santa-home-perch .santa-peek { position:absolute; right:6px; bottom:calc(100% - 2px); }
html[data-season="christmas-2026"] .hero p { margin-bottom:49px; }
.santa-peek:focus-visible,.santa-invitation button:focus-visible { outline:3px solid #daae54;outline-offset:3px; }
.santa-snow { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:1; }
html[data-season="christmas-2026"] .hero-content { z-index:2; }
.santa-snow i {
  position:absolute; top:-8px; width:var(--size); height:var(--size);
  border-radius:50%; background:#fff; opacity:0;
  animation:quiet-snow var(--fall) var(--phase) linear infinite;
}
.santa-snow { container-type:size; }
@keyframes quiet-snow {
  0% { opacity:0; transform:translate(0,0); }
  4%, 22% { opacity:.8; }
  42% { opacity:.55; }
  66% { opacity:.23; }
  86% { opacity:.06; }
  100% { transform:translate(var(--drift),103cqh);opacity:0; }
}
.snow-paused i { animation-play-state:paused; }
.santa-invitation {
  position:absolute; z-index:3; right:clamp(22px,5vw,72px);bottom:38px; display:flex;align-items:center;
  background:#152837e8;border:1px solid #d6bb7c80; border-radius:24px;
}
.santa-invitation button { background:transparent; color:#fff6dc; border:0; cursor:pointer; min-height:40px; font:600 12px/1.2 Manrope,Arial,sans-serif; }
.santa-play { padding:0 14px; }
.santa-invitation .snow-toggle { width:38px;border-left:1px solid #d6bb7c60; }
@media(max-width:640px) {
  .santa-invitation { right:16px; bottom:11px; }
  .santa-invitation button { min-height:38px;font-size:11px; }
  .santa-play { padding:0 10px; }
  .santa-snow i:nth-child(even) {display:none;}
  .santa-home-perch .santa-peek { width:51px; }
}
@media(prefers-reduced-motion:reduce) {
  .santa-snow,.santa-invitation .snow-toggle { display:none; }
}
@media print { .santa-peek,.santa-ledge,.santa-invitation,.santa-snow,.flight-dialog { display:none!important; } }

/* Keep the runner in the free space in each header layout. */
.santa-header-track { display:none; }
@media screen and (prefers-reduced-motion:no-preference) {
  html[data-season="christmas-2026"] .header-inner { position:relative; }
  .santa-header-track {
    display:block; position:absolute; inset:0 17% auto 20%; height:25px;
    overflow:hidden; container-type:inline-size; pointer-events:none;
  }
  .santa-header-track i {
    display:block; width:84px; height:100%; visibility:hidden;
    animation:header-sleigh-pass 60s var(--sleigh-phase) linear infinite;
  }
  .santa-header-track svg { display:block; width:100%; height:100%; }
  .santa-header-track .stag-near { fill:#b6652b; stroke:#653b20; }
  .santa-header-track .stag-far { fill:#875029; stroke:#59351f; --stride-delay:-.10s; }
  .santa-header-track .stag-hoof { fill:#573724; }
  .santa-header-track svg path { stroke-width:1.8px; stroke-linejoin:round; }
  .santa-header-track :is(.stag-thigh,.stag-shin) {
    transform-origin:0 0; animation-duration:.68s; animation-timing-function:ease-in-out;
    animation-iteration-count:infinite; animation-delay:var(--stride-delay,0s);
  }
  .stag-fore .stag-thigh { animation-name:stag-fore-reach; }
  .stag-fore .stag-shin { animation-name:stag-fore-fold; }
  .stag-hind .stag-thigh { animation-name:stag-hind-push; }
  .stag-hind .stag-shin { animation-name:stag-hind-tuck; }
  @keyframes stag-fore-reach {
    0%,100% { transform:rotate(-63deg); } 25% { transform:rotate(-12deg); }
    52% { transform:rotate(43deg); } 78% { transform:rotate(-32deg); }
  }
  @keyframes stag-fore-fold {
    0%,100% { transform:rotate(6deg); } 26% { transform:rotate(13deg); }
    55% { transform:rotate(58deg); } 78% { transform:rotate(83deg); }
  }
  @keyframes stag-hind-push {
    0%,100% { transform:rotate(64deg); } 24% { transform:rotate(24deg); }
    52% { transform:rotate(-53deg); } 76% { transform:rotate(-7deg); }
  }
  @keyframes stag-hind-tuck {
    0%,100% { transform:rotate(3deg); } 26% { transform:rotate(62deg); }
    52% { transform:rotate(49deg); } 76% { transform:rotate(13deg); }
  }
  @keyframes header-sleigh-pass {
    0%, 4% { visibility:hidden; transform:translateX(-100%); }
    4.001% { visibility:visible; transform:translateX(-100%); }
    12% { visibility:visible; transform:translateX(100cqw); }
    12.001%, 100% { visibility:hidden; transform:translateX(100cqw); }
  }
  @media (min-width:1201px) {
    .header-inner > .logo { order:-2; }
    .header-inner > .santa-header-track {
      /* The header has a 26px flex gap; leave 7px clear at either end of the run. */
      position:relative; inset:auto; top:4px; order:-1; flex:1 1 0;
      min-width:0; height:38px; margin-inline:-19px;
    }
  }
  @media (max-width:1200px) {
    .santa-header-track { inset:12px 90px auto 212px; height:32px; }
  }
  @media (max-width:760px) {
    .santa-header-track { inset:13px 63px auto 173px; height:28px; }
    .santa-header-track i { width:68px; }
  }
}

/* Standalone modal. The stage keeps the same flight geometry across screen sizes. */
.flight-dialog {
  width:min(710px,95vw); max-width:95vw; max-height:94dvh; overflow:auto;
  margin:auto; padding:0; border:1px solid #ac9364; border-radius:10px; background:#122b3b; color:#fff7e7;
  box-shadow:0 22px 90px #06111988;
}
.flight-dialog::backdrop { background:#081622b8; }
.flight-dialog .flight-head {
  position:static;display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:#122b3b; padding:12px 18px 12px 22px;color:#fff7e7;border:0;
}
.flight-dialog h2 {margin:0;font:400 clamp(23px,4.5vw,33px)/1.1 Editorial,Georgia,serif;color:inherit;}
.flight-dialog button {cursor:pointer;}
.flight-close,.flight-pause {width:44px;height:44px;background:#122b3bdb;color:#fff;border:1px solid #c6b28277;border-radius:50%;font:24px/1 Georgia,serif;}
.flight-stage {position:relative;aspect-ratio:3 / 2;isolation:isolate;background:#12334a url('/assets/christmas-village.webp') center / cover no-repeat;}
.flight-stage canvas {display:block;width:100%;height:100%;touch-action:none;}
.flight-hud {position:absolute;top:12px;left:14px;display:flex;gap:12px;align-items:center;background:#102838d9;border:1px solid #f9e5bc44;border-radius:5px;padding:5px 9px;pointer-events:none;color:#eee0bc;font:600 12px/1.4 Manrope,Arial,sans-serif;}
.flight-hud b {color:#fff;margin-left:3px;font-variant-numeric:tabular-nums;}
.flight-pause {position:absolute;top:8px;right:8px;font-size:15px;}
.flight-overlay {position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0 14px 9%;background:linear-gradient(0deg,#081c2c99,transparent 60%);text-align:center;}
.flight-stage [hidden] {display:none!important;}
.flight-overlay .flight-status {font:600 clamp(12px,2.2vw,16px)/1.4 Manrope,Arial,sans-serif;color:white;margin:0 0 13px;text-shadow:0 2px 4px #07131e;}
.flight-start {border:1px solid #eed497;border-radius:4px;background:#f2d9a1;color:#102c3a;padding:11px 24px;min-height:44px;font:700 14px/1.2 Manrope,Arial,sans-serif;}
.flight-dialog .flight-instructions {margin:0;padding:13px 21px;color:#e6e4d7;font:500 12px/1.5 Manrope,Arial,sans-serif;}
.flight-dialog :focus-visible {outline:2px solid #ffde92;outline-offset:-3px;}
@media(max-height:520px) and (min-aspect-ratio: 14/10) {
 .flight-dialog {width:min(95vw,calc((97dvh - 98px)*1.5));max-height:98dvh;}
 .flight-dialog .flight-head {padding:4px 12px;}
 .flight-dialog .flight-instructions {padding:5px 12px;}
}
