/* MONOLITH seasonal entrance layer — Christmas (festive) + New Year 2027.
   Decorative only. Has no effect unless <html> has class season-on.
   Does not change official logos, lockups, copy, or tile art. */

.season-fx{
  position:fixed;
  inset:0;
  z-index:40;
  pointer-events:none;
  overflow:hidden;
}
.season-fx .season-snow{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
.season-fx .season-lights{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:96px;
  overflow:visible;
}
.season-lights svg{display:block;width:100%;height:100%;overflow:visible}
.season-bulb{
  transform-box:fill-box;
  transform-origin:center;
  animation:season-twinkle 3.1s ease-in-out infinite;
}
.season-bulb:nth-child(3n){animation-duration:3.6s;animation-delay:.35s}
.season-bulb:nth-child(4n){animation-duration:2.7s;animation-delay:.8s}
.season-bulb:nth-child(5n){animation-duration:4s;animation-delay:1.15s}
@keyframes season-twinkle{
  0%,100%{opacity:.78}
  45%{opacity:1}
  70%{opacity:.85}
}

/* Desktop (and any wide layout) keeps the original 28px top room. */
.season-on .wrap{padding-top:28px}
.season-on main.card{position:relative}

/* Thin snow drift along the top edge of the entrance panel (Christmas). */
.season-roof-snow{
  position:absolute;
  top:-10px;
  left:0;
  right:0;
  height:28px;
  pointer-events:none;
  z-index:6;
  overflow:visible;
}
.season-roof-snow canvas{
  display:block;
  width:100%;
  height:100%;
}

@media(max-width:700px){
  .season-fx .season-lights{height:76px}
  .season-roof-snow{top:-8px;height:24px}
  /* Room above the card for compact mobile decorations, so they never
     sit on CLAIMS LIVE, the logo, buttons, or the mobile-users note. */
  .season-on .wrap{padding-top:96px}
}

@media(prefers-reduced-motion:reduce){
  .season-bulb,
  .season-bulb:nth-child(3n),
  .season-bulb:nth-child(4n),
  .season-bulb:nth-child(5n){
    animation:none;
    opacity:.95;
  }
}
html.season-reduced .season-bulb,
html.season-reduced .season-bulb:nth-child(n){
  animation:none;
  opacity:.95;
}

/* Shared backdrop (behind the card). */
.season-backdrop{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.season-on .wrap,
.season-on .hoc-footer{
  position:relative;
  z-index:1;
}
.season-gutter{
  position:absolute;
  top:0;
  bottom:0;
  overflow:hidden;
}
.season-gutter-right{transform:scaleX(-1)}
.season-gutter-right .season-year,
.season-gutter-right .season-hny{transform:scaleX(-1)}

.season-gutter img,
.season-mobile-deco img,
.season-ny-mobile img{
  display:block;
  position:absolute;
  height:auto;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}

/* ===== Christmas desktop / mid gutters (unchanged from live D) ===== */
.season-hills{
  position:absolute;
  left:0;right:0;bottom:0;
  height:32vh;
  min-height:180px;
  background:url("/assets/season/hills.png") center bottom / 140% auto no-repeat;
  opacity:.92;
}
.season-garland{
  position:absolute;
  top:0;left:0;
  width:170%;
  height:84px;
  background:url("/assets/season/garland.png") left top / auto 100% no-repeat;
  z-index:5;
}
.season-wreath{
  top:88px;
  right:-8px;
  width:96px;
  z-index:4;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.season-tree-tall{left:-10%;bottom:10%;width:78%;z-index:1}
.season-tree-mid{right:-6%;bottom:8%;width:70%;z-index:2}
.season-tree-small{left:8%;bottom:7%;width:48%;z-index:3}
.season-gifts{
  left:6%;
  bottom:7.5%;
  width:56%;
  z-index:4;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.45));
}
.season-backdrop[data-gutter="mid"] .season-tree-mid,
.season-backdrop[data-gutter="mid"] .season-tree-small,
.season-backdrop[data-gutter="mid"] .season-wreath{display:none}
.season-backdrop[data-gutter="mid"] .season-tree-tall{left:-30%;width:165%;bottom:4%}
.season-backdrop[data-gutter="mid"] .season-gifts{width:86%;left:2%}

.season-backdrop[data-gutter="narrow"] .season-gutter{display:none}
.season-backdrop[data-gutter="narrow"] .season-hills{height:16vh;min-height:90px;opacity:.55}

.season-garland-mobile{
  display:none;
  position:absolute;
  top:0;left:0;right:0;
  height:52px;
  background:url("/assets/season/garland-sm.png") center top / 110% auto no-repeat;
  z-index:5;
}
.season-backdrop[data-gutter="narrow"] .season-garland-mobile{display:block}

/* Compact Christmas tree + gifts for phones. Sit in the top padding band
   and peek from the bottom corners, always behind the card. */
.season-mobile-deco{display:none}
.season-backdrop[data-gutter="narrow"] .season-mobile-deco{display:block}
.season-mobile-tree{
  left:auto;
  right:8px;
  top:8px;
  width:78px;
  z-index:3;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.4));
  transform:scaleX(-1);
}
.season-mobile-gifts{
  right:-4px;
  top:42px;
  width:86px;
  z-index:4;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
/* Mobile tree and gifts sit in front of the top sash so they stay visible. */
.season-foliage .season-mobile-tree{
  left:auto;
  right:8px; /* mirrored to the top-right, fully on-screen */
  top:4px;
  width:110px;
  z-index:6;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.5));
  transform:scaleX(-1); /* face inward, same as from the left */
}
.season-foliage .season-mobile-gifts{
  right:8px; /* fully on-screen, small margin from the right edge */
  top:90px; /* raised to the CLAIMS LIVE row, above the tagline */
  width:115px;
  z-index:6;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.5));
}

/* t463u: hide all Christmas gifts (mobile and desktop). Images stay on disk. */
html.season-festive .season-gifts,
html.season-festive .season-mobile-gifts{
  display:none !important;
}

@media(max-width:700px){
  .season-garland{height:64px}
  .season-wreath{width:64px;top:70px}
}

/* ===== New Year 2027 desktop gutters ===== */
.season-fw-lg{
  left:-18%;top:2%;width:120%;z-index:1;opacity:.95;
  animation:season-fw-pulse 5.4s ease-in-out infinite;
}
.season-fw-md{
  right:-10%;top:28%;width:78%;z-index:2;opacity:.9;
  animation:season-fw-pulse 6.2s ease-in-out infinite;
  animation-delay:1.1s;
}
.season-fw-sm{
  left:8%;bottom:10%;width:52%;z-index:2;opacity:.88;
  animation:season-fw-pulse 4.8s ease-in-out infinite;
  animation-delay:2s;
}
@keyframes season-fw-pulse{
  0%,100%{opacity:.72;transform:scale(.96)}
  45%{opacity:1;transform:scale(1)}
  70%{opacity:.84;transform:scale(.98)}
}
.season-hny{
  left:8%;top:14%;width:78%;z-index:4;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.45));
}
.season-year{
  left:2%;top:38%;width:96%;z-index:5;
  filter:drop-shadow(0 3px 12px rgba(0,0,0,.5));
}
.season-backdrop[data-gutter="mid"] .season-fw-md,
.season-backdrop[data-gutter="mid"] .season-fw-sm{display:none}
.season-backdrop[data-gutter="mid"] .season-fw-lg{width:140%;left:-20%;top:8%}
.season-backdrop[data-gutter="mid"] .season-year{width:110%;left:-4%;top:42%}
.season-backdrop[data-gutter="mid"] .season-hny{width:90%;top:16%}

/* Compact New Year typography for phones, in the top padding band. */
.season-ny-mobile{display:none}
.season-backdrop[data-gutter="narrow"] .season-ny-mobile{display:block}
.season-ny-banner{
  left:50%;
  top:14px;
  width:min(280px,72vw);
  transform:translateX(-50%);
  z-index:6;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

@media(prefers-reduced-motion:reduce){
  .season-backdrop img,
  .season-garland,
  .season-garland-mobile,
  .season-hills,
  .season-fw-lg,
  .season-fw-md,
  .season-fw-sm{
    animation:none;
  }
}
html.season-reduced .season-fw-lg,
html.season-reduced .season-fw-md,
html.season-reduced .season-fw-sm{
  animation:none;
  opacity:.95;
}

/* Festive-only stacking: Christmas garland, trees, wreaths and mobile
   tree/gifts paint in front of the entrance panel border, but every
   piece of card content stays above them. New Year is unchanged. */
html.season-festive.season-on .wrap{
  z-index:auto;
}
html.season-festive .season-backdrop{
  z-index:auto;
}
html.season-festive.season-on .hoc-footer{
  z-index:4;
}
/* The card's backdrop-filter creates a stacking context that would trap
   CLAIMS LIVE and every other child behind the foliage layer. The fill
   is already an opaque gradient, so dropping the filter is invisible
   and lets content z-index work against the sash. New Year is unchanged. */
html.season-festive.season-on main.card{
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
/* Section frames (hero, CTA, wall, etc.) stay behind the foliage so
   the garland/wreath can hang over their borders. Direct children —
   text, buttons, images, CLAIMS LIVE — stay in front and clickable. */
html.season-festive.season-on main.card > *{
  position:relative;
  z-index:auto;
}
html.season-festive.season-on main.card > * > *{
  position:relative;
  z-index:3;
}
/* Beat the main.card > * position:relative rule so the drift stays
   on the card's top edge, behind the sash. */
html.season-festive.season-on main.card > .season-roof-snow{
  position:absolute;
  top:-10px;
  left:0;
  right:0;
  z-index:1;
}
.season-foliage{
  display:none;
}
html.season-festive .season-foliage{
  display:block;
  position:fixed;
  inset:0;
  z-index:2;
  pointer-events:none;
  overflow:hidden; /* clip gifts that hang off the right; no horizontal scroll */
}

/* data-gutter lives on .season-foliage for Christmas decorations. */
.season-foliage[data-gutter="mid"] .season-tree-mid,
.season-foliage[data-gutter="mid"] .season-tree-small,
.season-foliage[data-gutter="mid"] .season-wreath{display:none}
.season-foliage[data-gutter="mid"] .season-tree-tall{left:-30%;width:165%;bottom:4%}
.season-foliage[data-gutter="mid"] .season-gifts{width:86%;left:2%}
.season-foliage[data-gutter="narrow"] .season-gutter{display:none}
.season-foliage[data-gutter="narrow"] .season-garland-mobile{display:none}
.season-foliage[data-gutter="narrow"] .season-mobile-deco{display:block}

/* Full-width top sash (not clipped by the side gutters). The swag's dip
   hangs over the top edge of the first section. Content stays in front. */
html.season-festive .season-gutter .season-garland,
html.season-festive .season-garland-mobile,
.season-foliage[data-gutter="narrow"] .season-garland-mobile{
  display:none;
}
.season-garland-top{
  display:none;
}
html.season-festive .season-garland-top{
  display:block;
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:140px;
  background:url("/assets/season/garland-real.png") center top / 100% 100% no-repeat;
  z-index:5;
  pointer-events:none;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.45));
  overflow:visible;
}
@media(max-width:700px){
  html.season-festive .season-garland-top{
    height:150px;
    background-image:url("/assets/season/garland-real-sm.png");
  }
}

/* Santa fly-by: Christmas only, 15s cycle, top strip, behind content.
   The transform runs on .season-santa-fly, not on the img, so a
   filter/drop-shadow on the sprite cannot freeze the flight on WebKit.
   Keyframes use translate3d and 110vw (no calc()) for the same reason. */
.season-santa-lane{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:72px;
  overflow:visible;
  pointer-events:none;
  z-index:8;
}
.season-santa-fly{
  position:absolute;
  top:6px;
  left:0;
  animation:season-santa-fly 15s linear infinite;
  will-change:transform;
}
.season-santa{
  display:block;
  width:240px;
  height:auto;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
@media(max-width:700px){
  /* Fly through the sash dip, below the CSS string lights (76px),
     so Santa is not hidden behind them. Timing is unchanged. */
  .season-santa-lane{height:130px}
  .season-santa-fly{top:82px}
  .season-santa{width:156px}
}
@keyframes season-santa-fly{
  /* 13s crossing, then a 2s gap, in a 15s cycle. */
  0%{transform:translate3d(-280px,4px,0)}
  18%{transform:translate3d(8vw,-2px,0)}
  41%{transform:translate3d(30vw,4px,0)}
  64%{transform:translate3d(58vw,-2px,0)}
  87%{transform:translate3d(110vw,3px,0)}
  87.01%,100%{transform:translate3d(-280px,4px,0)}
}
@media(prefers-reduced-motion:reduce){
  .season-santa,
  .season-santa-fly,
  .season-santa-lane{
    display:none !important;
    animation:none;
  }
}
html.season-reduced .season-santa,
html.season-reduced .season-santa-fly,
html.season-reduced .season-santa-lane{
  display:none !important;
  animation:none;
}
/* Frozen mid-flight for screenshots (?seasonSanta=mid). */
html.season-santa-mid .season-santa-fly{
  animation:none;
  left:50%;
  top:8px;
  transform:translate3d(-50%,-2px,0);
}
@media(max-width:700px){
  html.season-santa-mid .season-santa-fly{
    top:82px;
  }
}
