/* The rig is hung from the lower edge of the masthead, above the painted coast. */
html.records-holiday-active .masthead {
  position: relative;
  background: radial-gradient(ellipse at 12% 130%, #25463e, transparent 56%),
    linear-gradient(115deg, #102a38, #101e33 72%);
  box-shadow: inset 0 -1px #cab88154;
}

.holiday-rig {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  height: clamp(105px, 12vw, 172px);
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(to bottom, #0b24357a, #162b3814 54%, transparent);
}

.holiday-lights {
  display: block;
  width: 100%;
  height: 86px;
}

.holiday-pine {
  position: absolute;
  inset: -7px auto auto -8px;
  width: clamp(170px, 23vw, 325px);
  height: auto;
  filter: drop-shadow(1px 3px 4px #06242f50);
}

html.records-holiday-active .horizon .surface-scene { filter: saturate(.84); }

.winter-snow {
  position: absolute;
  inset: 0 0 auto;
  height: 82%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(#000 65%, transparent 100%);
  background: linear-gradient(174deg, #b3cfe039, transparent 52%);
  --fall: calc(var(--surface-scene-height) * .82 + 14px);
}
.winter-flake {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: var(--alpha);
  background: radial-gradient(closest-side, white 33%, #eff8ffdc 66%, transparent 100%);
  animation: records-snowfall var(--period) linear var(--phase) infinite both paused;
}
.winter-flake.near {
  box-shadow: 0 0 3px #f5faff76;
}
@keyframes records-snowfall {
  from { transform: translate3d(0,0,0); }
  47%  { transform: translate3d(calc(var(--wind) * .8),calc(var(--fall) * .47),0); }
  to   { transform: translate3d(var(--wind),var(--fall),0); }
}
.ocean[data-marine-motion="running"] .winter-snow.in-view .winter-flake {
  animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
  .winter-snow .winter-flake { animation-play-state: paused !important; }
}
@media (max-width: 700px) {
  .holiday-rig { height: 91px; }
  .holiday-lights { height: 64px; }
  .holiday-pine { width: clamp(118px, 34vw, 165px); }
  .winter-flake:nth-child(n+49) { display: none; }
}

@media (forced-colors: active), print {
  .holiday-rig, .winter-snow { display: none; }
}

/* Refuerzo de la ambientación; retirada automática el 15/01/2027 Madrid. */
.holiday-rig{height:clamp(130px,14vw,190px);z-index:3;background:radial-gradient(ellipse at 50% 0,#e4b36822,transparent 64%)}
.holiday-lights{height:112px;filter:drop-shadow(0 0 8px #ffce7b66)}
.holiday-pine{width:clamp(210px,25vw,360px);filter:drop-shadow(0 4px 7px #00131c90)}
.holiday-pine--right{left:auto;right:-8px;transform:scaleX(-1)}
.winter-snow{height:96%;--fall:calc(var(--surface-scene-height) * .96 + 18px);background:linear-gradient(174deg,#d1e7f32b,transparent 55%)}
.winter-flake.near{filter:drop-shadow(0 0 3px #ffffff90)}
html.records-holiday-active .masthead{box-shadow:inset 0 -1px #eec98980,0 8px 35px #e9b44c14}
html.records-holiday-active .air-hose{filter:drop-shadow(0 0 3px #efcb8660)}
html.records-holiday-active .buoy-entry{filter:drop-shadow(0 0 6px #ffd08595)}
@media(max-width:700px){.holiday-rig{height:112px}.holiday-lights{height:88px}.holiday-pine{width:clamp(100px,26vw,145px)}}
html:not(.records-holiday-active) .holiday-rig,html:not(.records-holiday-active) .winter-snow{display:none!important}



/* Decoración en todas las páginas y a lo largo de la navegación. */
.holiday-host{position:relative}
body>.winter-snow{position:fixed;inset:0;height:100vh;height:100dvh;z-index:25;opacity:.58;background:none;mask-image:none;-webkit-mask-image:none;--fall:calc(100vh + 18px);pointer-events:none}
html.records-holiday-motion .winter-snow .winter-flake{animation-play-state:running}
html:not(.records-holiday-motion) .winter-snow .winter-flake{animation-play-state:paused!important}
.holiday-section-decoration{display:block;position:relative;width:128px;height:28px;margin:14px 0 8px;pointer-events:none;background:radial-gradient(circle at 8px 8px,#ffe4a3 0 2px,#e9bc5966 3px,transparent 7px),radial-gradient(circle at 36px 10px,#cf5255 0 3px,transparent 5px),radial-gradient(circle at 64px 8px,#ffe4a3 0 2px,transparent 6px),radial-gradient(circle at 92px 10px,#68a88c 0 3px,transparent 5px),radial-gradient(circle at 120px 8px,#ffe4a3 0 2px,transparent 6px);filter:drop-shadow(0 0 4px #efc56670);border-top:1px solid #b7a36d66;border-radius:50%}
.holiday-section-decoration::after{content:"";position:absolute;left:57px;top:7px;width:14px;height:17px;background:linear-gradient(135deg,#fff1b5,#bd8741);clip-path:polygon(50% 0,61% 34%,98% 38%,69% 61%,79% 100%,50% 78%,21% 100%,31% 61%,2% 38%,39% 34%)}
.holiday-section-decoration--gold{filter:drop-shadow(0 0 7px #efc56690)}
.holiday-motion-toggle{position:fixed;right:12px;bottom:12px;z-index:60;min-height:44px;padding:9px 14px;border:1px solid #d7bb7a88;border-radius:24px;color:#f7e8c8;background:#082738ee;box-shadow:0 3px 15px #0003;font:500 12px/1.3 system-ui;cursor:pointer}
.holiday-motion-toggle:focus-visible{outline:2px solid #ffe4a3;outline-offset:3px}
html:not(.records-holiday-active) .holiday-section-decoration,html:not(.records-holiday-active) .holiday-motion-toggle{display:none!important}
@media(max-width:700px){body>.winter-snow{opacity:.42}.holiday-motion-toggle{right:8px;bottom:8px;font-size:11px}.holiday-section-decoration{transform:scale(.85);transform-origin:left center;margin-top:8px}}
@media(prefers-reduced-motion:reduce){.winter-flake{animation:none!important}.holiday-motion-toggle{display:none}}
@media print,(forced-colors:active){.holiday-motion-toggle,.holiday-section-decoration{display:none!important}}

.holiday-santa-hat{position:absolute;left:107px;top:-9px;width:33px!important;height:30px!important;max-width:none!important;object-fit:contain;filter:drop-shadow(0 2px 3px #0004)}
.holiday-footer-scene{position:relative;display:flex;align-items:flex-end;justify-content:center;flex-basis:100%;width:100%;height:178px;margin:10px 0 20px;pointer-events:none;border-bottom:1px solid #d9edf122;background:radial-gradient(ellipse at 50% 105%,#d9edf119,transparent 60%)}
.holiday-footer-scene>img{width:158px;height:178px;object-fit:contain;display:block}
.holiday-footer-scene>.holiday-footer-hat{width:54px;height:50px;margin:0 0 8px -6px;transform:rotate(12deg)}
@media(max-width:700px){.holiday-footer-scene{height:148px}.holiday-footer-scene>img{width:132px;height:148px}}
@media print,(forced-colors:active){.holiday-footer-scene{display:none!important}}
