/* The holiday look (Phil 11/29; Helpers/SeasonalTheme.cs, Services/HolidayTheme.cs, js/holiday.js). Every rule
   hangs off an <html> attribute holiday.js sets, so with the switches off this sheet draws nothing:
   - data-holiday-splash: the launch cover (NBootCover, #ncc-boot) gets a string of lights over the logo, twinkling
     in two sets, slow snow behind it, HAPPY HOLIDAYS under the bar and a red and green bar.
   - data-holiday-loaders: pull to refresh (NPullToRefresh) turns a white snowflake as you pull and spins it while it loads.
   - data-holiday-reactions: room for the seventh reaction (❄️) in the tray on a 320px phone.
   - .ncc-snow: the ❄️ pick's snow over the page (nccHoliday.snowBurst), one at a time, never in the way.
   Reduced motion: the lights and the snow stand still, the snowflake doesn't turn. */
:root { --ncc-holiday: 1; --ncc-flake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg%3E%3Cpath d='M12 2.5v19M12 6 9.6 3.6M12 6l2.4-2.4M12 18l-2.4 2.4M12 18l2.4 2.4'/%3E%3C/g%3E%3Cg transform='rotate(60 12 12)'%3E%3Cpath d='M12 2.5v19M12 6 9.6 3.6M12 6l2.4-2.4M12 18l-2.4 2.4M12 18l2.4 2.4'/%3E%3C/g%3E%3Cg transform='rotate(120 12 12)'%3E%3Cpath d='M12 2.5v19M12 6 9.6 3.6M12 6l2.4-2.4M12 18l-2.4 2.4M12 18l2.4 2.4'/%3E%3C/g%3E%3C/svg%3E");
  --ncc-lights-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 64'%3E%3Cpath d='M6 10Q83 48 160 14Q237 48 314 10' fill='none' stroke='%234a5a48' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='32.2' cy='29.8' r='11' fill='%23FF3B3F' opacity='.22'/%3E%3Ccircle cx='32.2' cy='29.8' r='6.5' fill='%23FF3B3F' opacity='.35'/%3E%3Crect x='29.6' y='21.3' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='32.2' cy='29.8' rx='3.6' ry='5.2' fill='%23FF3B3F'/%3E%3Cellipse cx='31.1' cy='28.0' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='99.9' cy='38.6' r='11' fill='%23FFC93C' opacity='.22'/%3E%3Ccircle cx='99.9' cy='38.6' r='6.5' fill='%23FFC93C' opacity='.35'/%3E%3Crect x='97.3' y='30.1' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='99.9' cy='38.6' rx='3.6' ry='5.2' fill='%23FFC93C'/%3E%3Cellipse cx='98.8' cy='36.8' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='186.2' cy='32.5' r='11' fill='%23FF3B3F' opacity='.22'/%3E%3Ccircle cx='186.2' cy='32.5' r='6.5' fill='%23FF3B3F' opacity='.35'/%3E%3Crect x='183.6' y='24.0' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='186.2' cy='32.5' rx='3.6' ry='5.2' fill='%23FF3B3F'/%3E%3Cellipse cx='185.1' cy='30.7' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='253.9' cy='37.7' r='11' fill='%23FFC93C' opacity='.22'/%3E%3Ccircle cx='253.9' cy='37.7' r='6.5' fill='%23FFC93C' opacity='.35'/%3E%3Crect x='251.3' y='29.2' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='253.9' cy='37.7' rx='3.6' ry='5.2' fill='%23FFC93C'/%3E%3Cellipse cx='252.8' cy='35.9' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3C/svg%3E");
  --ncc-lights-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 64'%3E%3Ccircle cx='66.1' cy='37.7' r='11' fill='%232FD27A' opacity='.22'/%3E%3Ccircle cx='66.1' cy='37.7' r='6.5' fill='%232FD27A' opacity='.35'/%3E%3Crect x='63.5' y='29.2' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='66.1' cy='37.7' rx='3.6' ry='5.2' fill='%232FD27A'/%3E%3Cellipse cx='65.0' cy='35.9' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='133.8' cy='32.5' r='11' fill='%234FA8FF' opacity='.22'/%3E%3Ccircle cx='133.8' cy='32.5' r='6.5' fill='%234FA8FF' opacity='.35'/%3E%3Crect x='131.2' y='24.0' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='133.8' cy='32.5' rx='3.6' ry='5.2' fill='%234FA8FF'/%3E%3Cellipse cx='132.7' cy='30.7' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='220.1' cy='38.6' r='11' fill='%232FD27A' opacity='.22'/%3E%3Ccircle cx='220.1' cy='38.6' r='6.5' fill='%232FD27A' opacity='.35'/%3E%3Crect x='217.5' y='30.1' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='220.1' cy='38.6' rx='3.6' ry='5.2' fill='%232FD27A'/%3E%3Cellipse cx='219.0' cy='36.8' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='287.8' cy='29.8' r='11' fill='%234FA8FF' opacity='.22'/%3E%3Ccircle cx='287.8' cy='29.8' r='6.5' fill='%234FA8FF' opacity='.35'/%3E%3Crect x='285.2' y='21.3' width='5.2' height='4' rx='1' fill='%236b7268'/%3E%3Cellipse cx='287.8' cy='29.8' rx='3.6' ry='5.2' fill='%234FA8FF'/%3E%3Cellipse cx='286.7' cy='28.0' rx='1' ry='1.6' fill='%23fff' opacity='.7'/%3E%3C/svg%3E"); }

/* ---- Launch cover ------------------------------------------------------------------------------------ */
html[data-holiday-splash] .n-boot:not(.n-boot--contained)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.6px 1.6px at 18px 22px, #fff 60%, transparent 70%),
    radial-gradient(1.2px 1.2px at 92px 64px, #fff 60%, transparent 70%),
    radial-gradient(2px 2px at 140px 118px, #fff 60%, transparent 70%),
    radial-gradient(1.4px 1.4px at 54px 140px, #fff 60%, transparent 70%),
    radial-gradient(2.4px 2.4px at 40px 60px, #fff 60%, transparent 70%),
    radial-gradient(1.8px 1.8px at 170px 190px, #fff 60%, transparent 70%),
    radial-gradient(2.2px 2.2px at 210px 40px, #fff 60%, transparent 70%),
    radial-gradient(1.5px 1.5px at 120px 220px, #fff 60%, transparent 70%);
  background-size: 160px 160px, 160px 160px, 160px 160px, 160px 160px, 240px 240px, 240px 240px, 240px 240px, 240px 240px;
  animation: ncc-hol-snow 9s linear infinite;
}
@keyframes ncc-hol-snow {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 16px 160px, 16px 160px, 16px 160px, 16px 160px, -24px 480px, -24px 480px, -24px 480px, -24px 480px; }
}
/* Two sets of bulbs (the wire rides with the first) that take turns glowing. */
html[data-holiday-splash] .n-boot:not(.n-boot--contained)::after,
html[data-holiday-splash] .n-boot:not(.n-boot--contained) picture::after {
  content: ""; position: absolute; top: calc(50% - 128px); left: 50%; width: 320px; height: 64px; margin-left: -160px;
  pointer-events: none; background: var(--ncc-lights-a) center / 100% 100% no-repeat;
  animation: ncc-hol-twinkle 1.6s ease-in-out infinite alternate;
}
html[data-holiday-splash] .n-boot:not(.n-boot--contained) picture::after {
  background-image: var(--ncc-lights-b); animation-delay: -1.6s;
}
@keyframes ncc-hol-twinkle { from { opacity: 1; } to { opacity: .45; } }
html[data-holiday-splash] .n-boot:not(.n-boot--contained) picture::before {
  content: "HAPPY HOLIDAYS"; position: absolute; top: calc(50% + 102px); left: 0; right: 0; text-align: center; pointer-events: none;
  color: var(--n-text-2); font: 700 11px/1 var(--n-font-display); letter-spacing: .32em;
}
/* A label (signing out, restoring) keeps its line; the greeting steps aside. */
html[data-holiday-splash] .n-boot:has(.n-boot__label) picture::before { content: none; }
html[data-holiday-splash] .n-boot:not(.n-boot--contained) .n-boot__bar::after {
  background: repeating-linear-gradient(90deg, #E8232B 0 8px, #2FD27A 8px 16px);
}

/* ---- Pull to refresh: a snowflake in the puck --------------------------------------------------------- */
html[data-holiday-loaders] .n-ptr__arrow,
html[data-holiday-loaders] .n-ptr__spin { visibility: hidden !important; }
html[data-holiday-loaders] .n-ptr__puck::before {
  content: ""; grid-area: 1 / 1; width: 22px; height: 22px; background: #fff;
  -webkit-mask: var(--ncc-flake) center / contain no-repeat; mask: var(--ncc-flake) center / contain no-repeat;
  rotate: var(--ptr-turn, 0deg);
}
/* White on the dark puck; the light theme's white puck gets the snow burst's icy blue so it still shows. */
html[data-theme="light"][data-holiday-loaders] .n-ptr__puck::before { background: #9ec9ef; }
html[data-holiday-loaders] .n-ptr.ncc-ptr-spinning .n-ptr__puck::before {
  animation: ncc-hol-spin calc(1100ms / var(--n-tempo, 1)) linear infinite;
}
@keyframes ncc-hol-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---- Reactions: seven fit a 320px phone --------------------------------------------------------------- */
.bs-tray--seven .bs-tray__opt { width: 40px; height: 40px; font-size: 24px; }
.bs-react--sm .bs-tray--seven .bs-tray__opt { width: 36px; height: 36px; font-size: 20px; }

/* ---- The ❄️ pick's snow ----------------------------------------------------------------------------------- */
.ncc-snow { position: fixed; inset: 0; z-index: calc(var(--n-z-toast, 9000) + 1); pointer-events: none; overflow: hidden; }
.ncc-snow > span {
  position: absolute; top: -24px; width: var(--s); height: var(--s); opacity: 0;
  animation: ncc-snow-fall var(--t) cubic-bezier(.35, .1, .6, 1) var(--d) forwards;
}
.ncc-snow__dot { border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .7); }
.ncc-snow__flake {
  background: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .7));
  -webkit-mask: var(--ncc-flake) center / contain no-repeat; mask: var(--ncc-flake) center / contain no-repeat;
}
html[data-theme="light"] .ncc-snow__dot, html[data-theme="light"] .ncc-snow__flake { background: #9ec9ef; }
@keyframes ncc-snow-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  12% { opacity: .95; }
  80% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--x), calc(100vh + 48px)) rotate(200deg); }
}
.ncc-snow--still > span { animation: ncc-snow-still 1400ms ease forwards; }
@keyframes ncc-snow-still { 0% { opacity: 0; } 25%, 70% { opacity: .9; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html[data-holiday-splash] .n-boot::before,
  html[data-holiday-splash] .n-boot::after,
  html[data-holiday-splash] .n-boot picture::after { animation: none; }
  html[data-holiday-loaders] .n-ptr__puck::before { rotate: none; }
  html[data-holiday-loaders] .n-ptr.ncc-ptr-spinning .n-ptr__puck::before { animation: none; }
}
