.nouri-christmas-icon,
.nouri-christmas-loader[hidden],
.nouri-christmas-quote[hidden] { display: none !important; }

[data-nouri-christmas]:not([data-premium-member]) .nouri-christmas-free-ready .nouri-christmas-base-icon,
[data-nouri-christmas][data-premium-member] .nouri-christmas-premium-ready .nouri-christmas-base-icon { display: none !important; }
[data-nouri-christmas]:not([data-premium-member]) .nouri-christmas-free-ready .nouri-christmas-icon-free,
[data-nouri-christmas][data-premium-member] .nouri-christmas-premium-ready .nouri-christmas-icon-premium { display: block !important; }

[data-nouri-christmas] :where(body:not(.nouri-v2) > .topbar, .partner-header).nouri-christmas-header-ready { position: relative; }
[data-nouri-christmas] .nouri-christmas-header-ready:is(.topbar, .partner-header) {
  padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
}
.nouri-christmas-lights { display: none; }
[data-nouri-christmas] .nouri-christmas-lights {
  --christmas-light-count: 20;
  display: grid;
  grid-template-columns: repeat(var(--christmas-light-count), minmax(0, 1fr));
  position: absolute;
  inset: calc(env(safe-area-inset-top, 0px) + 1px) 0 auto;
  z-index: 1;
  height: 17px;
  overflow: hidden;
  pointer-events: none;
}
.nouri-christmas-light {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
}
.nouri-christmas-light::before {
  content: '';
  position: absolute;
  inset: -4px -1px auto;
  height: 9px;
  border-bottom: 2px solid #57765e;
  border-radius: 0 0 50% 50%;
}
.nouri-christmas-light[data-colour="blue"] { --christmas-bulb: #77c8ff; --christmas-phase: 0s; }
.nouri-christmas-light[data-colour="red"] { --christmas-bulb: #ff7374; --christmas-phase: .45s; }
.nouri-christmas-light[data-colour="yellow"] { --christmas-bulb: #ffdb71; --christmas-phase: .9s; }
.nouri-christmas-light[data-colour="green"] { --christmas-bulb: #b8ed85; --christmas-phase: 1.35s; }
.nouri-christmas-bulb {
  position: relative;
  width: 9px;
  height: 10px;
  margin-top: 6px;
  border-radius: 38% 38% 52% 52% / 32% 32% 64% 64%;
  background: var(--christmas-bulb);
  box-shadow: 0 0 4px color-mix(in srgb, var(--christmas-bulb) 55%, transparent);
  transform: rotate(-12deg);
  transform-origin: center top;
}
.nouri-christmas-light:nth-child(even) .nouri-christmas-bulb { transform: rotate(12deg); }
.nouri-christmas-bulb::before,
.nouri-christmas-bulb::after {
  position: absolute;
  content: '';
}
.nouri-christmas-bulb::before {
  inset: -3px 2px auto;
  height: 4px;
  border-radius: 2px 2px 1px 1px;
  background: #45644e;
}
.nouri-christmas-bulb::after {
  inset: 2px auto auto 2px;
  width: 2px;
  height: 4px;
  border-radius: 50%;
  background: rgb(255 255 255 / .68);
}
@media (max-width: 920px) {
  [data-nouri-christmas] .nouri-christmas-lights { --christmas-light-count: 12; }
  .nouri-christmas-light:nth-child(n+13) { display: none; }
}
@media (max-width: 520px) {
  [data-nouri-christmas] .nouri-christmas-lights { --christmas-light-count: 8; }
  .nouri-christmas-light:nth-child(n+9) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-nouri-christmas] .nouri-christmas-bulb {
    animation: nouri-christmas-blink 1.8s ease-in-out infinite backwards;
    animation-delay: var(--christmas-phase);
  }
}
@keyframes nouri-christmas-blink {
  0%, 39%, 100% { opacity: .58; }
  17% { opacity: 1; }
}

.nouri-christmas-splash-ready :is(.buddy-control-scene, #splashQuote) { display: none !important; }
.nouri-christmas-loader { min-width: 0; text-align: center; }
.nouri-christmas-scene {
  position: relative;
  isolation: isolate;
  width: min(420px, 83vw);
  max-width: 100%;
  max-height: 36svh;
  aspect-ratio: 33 / 14;
  margin-inline: auto;
  overflow: hidden;
  --christmas-throw-distance: clamp(36px, 17vw, 100px);
  --christmas-throw-height: clamp(22px, 9vw, 57px);
}

.nouri-christmas-sleigh {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: nouri-christmas-sleigh 2.1s ease-in-out infinite alternate;
}

.nouri-christmas-produce {
  position: absolute;
  z-index: 1;
  top: 27.5%;
  left: 41%;
  width: 11%;
  max-width: 43px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 2px 2px #0a1e1890);
  animation: nouri-christmas-throw 2.45s linear infinite;
}

.nouri-christmas-broccoli { --throw-x: var(--christmas-throw-distance); --throw-y: var(--christmas-throw-height); --throw-drop: 20px; --throw-turn: 130deg; animation-delay: -.35s; }
.nouri-christmas-carrot { --throw-x: calc(var(--christmas-throw-distance) * .75); --throw-y: calc(var(--christmas-throw-height) * .75); --throw-drop: 25px; --throw-turn: 165deg; animation-delay: -.96s; }
.nouri-christmas-apple { --throw-x: calc(var(--christmas-throw-distance) * -.7); --throw-y: calc(var(--christmas-throw-height) * .85); --throw-drop: 25px; --throw-turn: -150deg; animation-delay: -1.57s; }
.nouri-christmas-watermelon { --throw-x: calc(var(--christmas-throw-distance) * 1.12); --throw-y: calc(var(--christmas-throw-height) * .6); --throw-drop: 30px; --throw-turn: 115deg; animation-delay: -2.18s; }
.nouri-christmas-quote { min-height: 2.75rem; margin: .4rem auto .55rem; max-width: 26ch; color: inherit; font-size: .95rem; line-height: 1.45; }
.nouri-christmas-inline { width: min(100%, 19rem); margin-block: .5rem; }
.nouri-christmas-inline .nouri-christmas-quote { min-height: 0; font-size: .88rem; }

@keyframes nouri-christmas-sleigh {
  from { transform: translate3d(-1.2%, -1%, 0) rotate(-1deg); }
  to { transform: translate3d(1.2%, 1.2%, 0) rotate(.9deg); }
}

@keyframes nouri-christmas-throw {
  0%, 11% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0) scale(.64); }
  22% { opacity: 1; }
  49% { opacity: 1; transform: translate3d(calc(var(--throw-x) * .48), calc(var(--throw-y) * -1), 0) rotate(calc(var(--throw-turn) * .5)); }
  77% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--throw-x), var(--throw-drop), 0) rotate(var(--throw-turn)) scale(.85); }
}

.nouri-christmas-lights[data-nouri-motion-offscreen] .nouri-christmas-bulb,
.nouri-christmas-loader[data-nouri-motion-offscreen] :is(.nouri-christmas-sleigh,.nouri-christmas-produce),
[data-nouri-motion-background] :is(.nouri-christmas-bulb,.nouri-christmas-sleigh,.nouri-christmas-produce) { animation-play-state: paused; }

[data-nouri-motion-paused] :is(.nouri-christmas-bulb,.nouri-christmas-sleigh,.nouri-christmas-produce) { animation: none; }
[data-nouri-motion-paused] .nouri-christmas-produce { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .nouri-christmas-sleigh, .nouri-christmas-produce { animation: none; }
  .nouri-christmas-produce { opacity: 1; }
}
.nouri-christmas-produce {
  transform: translate3d(calc(var(--throw-x) * .6), calc(var(--throw-y) * -.5), 0) rotate(calc(var(--throw-turn) * .18));
}
[data-nouri-motion-paused] .nouri-christmas-carrot { top: 29%; }
[data-nouri-motion-paused] .nouri-christmas-watermelon { top: 52%; }
@media (prefers-reduced-motion: reduce) {
  .nouri-christmas-carrot { top: 29%; }
  .nouri-christmas-watermelon { top: 52%; }
}

[data-nouri-motion-toggle]:not([hidden]) {
  border: 1px solid var(--line, #425b48);
  border-radius: 10px;
  background: var(--surface-soft, #213728);
  color: var(--text, #f2f6e9);
  font: 750 .875rem/1.25 system-ui, sans-serif;
  min-height: 44px;
  padding: .55rem .8rem;
}
[data-nouri-motion-toggle][aria-pressed="true"] { box-shadow: inset 3px 0 #d9f78e; }
[data-nouri-motion-toggle]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.s4-project-footer:has([data-nouri-motion-toggle]:not([hidden])) { align-items: center; flex-wrap: wrap; gap: .75rem; }
#profileDialog [data-nouri-motion-toggle] { margin-block: .75rem 0; }
