.nobilis-box,
.nobilis-box *,
.nobilis-box *::before,
.nobilis-box *::after {
  box-sizing: border-box;
}

.nobilis-box {
  min-width: 0;
  max-width: 100%;
  color: var(--cream, #f3ede1);
}

body.nobilis-box-page {
  --site-header-h: 96px;
  --nbx-admin-h: 0px;
  --nobilis-box-dock-h: 72px;
  overflow-x: clip;
}

body.nobilis-box-page.admin-bar {
  --nbx-admin-h: 32px;
}

html:has(body.nobilis-box-page.nbx-hero-only),
body.nobilis-box-page.nbx-hero-only {
  height: 100%;
  overflow: hidden;
}

body.nobilis-box-page.nbx-hero-only .section.section-dark {
  padding-bottom: 0;
}

body.nobilis-box-page.nbx-hero-only #box-configuratore {
  display: none;
}

body.nobilis-box-page.nbx-config-only .nbx-hero {
  display: none;
}

body.nobilis-box-page .container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.nobilis-box-page .reveal {
  opacity: 1;
  transform: none;
}

body.nobilis-box-page .section.section-dark {
  padding: 0 0 clamp(48px, 7vw, 96px);
}

body.nobilis-box-page .container > h1.serif {
  display: none;
}

.nobilis-box .section-head {
  text-align: left;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.nobilis-box-lead,
.nobilis-box-empty-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-light, rgba(243, 237, 225, 0.72));
  margin: 0 0 28px;
  max-width: 42rem;
}

.nobilis-box-empty .nobilis-box-empty-text {
  margin-top: 14px;
  margin-bottom: 0;
}

.nobilis-box-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
}

.nobilis-box-browse,
.nobilis-box-main,
.nobilis-box-catalog,
.nobilis-box-panel,
.nobilis-box .dgrid,
.nobilis-box .subgroup {
  min-width: 0;
  max-width: 100%;
}

.nobilis-box .subgroup-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 32px);
  color: var(--gold-soft, #d8b765);
  margin: 0;
  white-space: normal;
}

.nobilis-box .dgrid-gin {
  grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 188px));
}

.nobilis-box .dcard-wine:hover .card-media-wine img,
.nobilis-box .dcard:hover .card-media img {
  transform: translateX(-50%);
}

.nobilis-box .dcard-head h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--cream, #f3ede1);
  margin: 0;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nobilis-box .dcard-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.nobilis-box .dcard-wine .card-media-wine {
  aspect-ratio: 2 / 3;
  min-height: 200px;
}

.nobilis-box .dcard-wine .card-media-wine img {
  object-fit: contain;
  object-position: center bottom;
  width: 78%;
  height: 90%;
  inset: auto;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
}

.nobilis-box .dcard.is-selected {
  border-color: rgba(200, 162, 76, 0.55);
}

.nobilis-box-availability {
  display: inline-block;
  margin: 8px 0 0;
  padding: 3px 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nobilis-box-availability.is-available {
  color: #1a1408;
  background: var(--gold, #c8a24c);
}

.nobilis-box-availability.is-bookable {
  color: var(--gold-light, #e3c87e);
  background: transparent;
  border: 1px solid rgba(227, 200, 126, 0.75);
}

.nobilis-box-booking {
  margin: 0 0 14px;
  color: var(--gold-light, #e3c87e);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
}

.nobilis-box-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.nobilis-box-qty button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 2px;
  border: 1px solid rgba(227, 200, 126, 0.4);
  background: rgba(243, 237, 225, 0.04);
  color: var(--gold-light, #e3c87e);
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nobilis-box-qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nobilis-box-qty-value {
  min-width: 1.5ch;
  font-family: "Space Grotesk", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  color: var(--cream, #f3ede1);
}

.nobilis-box-panel {
  position: relative;
  background: var(--card, #14181b);
  border: 1px solid var(--line-dark, rgba(255, 255, 255, 0.07));
  border-radius: 3px;
  padding: 22px 18px 20px;
  scroll-margin-top: calc(var(--site-header-h, 72px) + 12px);
}

.nobilis-box-included {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark, rgba(255, 255, 255, 0.07));
}

.nobilis-box-included .eyebrow {
  margin-bottom: 10px;
}

.nobilis-box-included ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
}

.nobilis-box-included li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--cream, #f3ede1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.3;
}

.nobilis-box-included span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nobilis-box-included svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--gold, #c8a24c);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nobilis-box-progress {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 6vw, 42px);
  line-height: 1;
  color: var(--cream, #f3ede1);
  margin: 0 0 12px;
}

.nobilis-box-progress.is-range {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

.nobilis-box-minimum {
  margin: -6px 0 14px;
  color: var(--gold-light, #e3c87e);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.nobilis-box-meter {
  height: 3px;
  background: rgba(243, 237, 225, 0.12);
  margin-bottom: 18px;
}

.nobilis-box-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold, #c8a24c);
}

.nobilis-box-lines-empty,
.nobilis-box-lines,
.nobilis-box-note,
.nobilis-box-privacy,
.nobilis-box-alert {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
}

.nobilis-box-lines-empty {
  color: var(--muted-light, rgba(243, 237, 225, 0.55));
  margin: 0 0 14px;
}

.nobilis-box-lines {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.nobilis-box-lines li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-dark, rgba(255, 255, 255, 0.07));
  overflow-wrap: anywhere;
}

.nobilis-box-base,
.nobilis-box-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.nobilis-box-base {
  color: var(--muted-light, rgba(243, 237, 225, 0.72));
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nobilis-box-total {
  color: var(--gold-light, #e3c87e);
  font-size: 18px;
  margin: 4px 0 18px;
  font-variant-numeric: tabular-nums;
}

.nobilis-box-summary-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nobilis-box-field {
  margin-bottom: 14px;
}

.nobilis-box-field label {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c8a24c);
}

.nobilis-box-field input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid rgba(243, 237, 225, 0.3);
  background: rgba(243, 237, 225, 0.04);
  color: var(--cream, #f3ede1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
}

.nobilis-box-field input[aria-invalid="true"] {
  border-color: #d27b6a;
}

.nobilis-box-field-error {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #e3b2a6;
}

.nobilis-box-note {
  color: var(--muted-light, rgba(243, 237, 225, 0.72));
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.nobilis-box-alert {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 162, 76, 0.4);
  color: var(--gold-light, #e3c87e);
}

.nobilis-box-privacy {
  color: var(--muted-light, rgba(243, 237, 225, 0.72));
  margin: 0 0 16px;
}

.nobilis-box-privacy a {
  color: var(--gold-light, #e3c87e);
}

.nobilis-box-submit {
  width: 100%;
  min-height: 48px;
}

.nobilis-box-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nobilis-box button:focus-visible,
.nobilis-box input:focus-visible,
.nobilis-box a:focus-visible {
  outline: 2px solid var(--gold-light, #e3c87e);
  outline-offset: 3px;
}

.nobilis-box-qty button:focus-visible {
  outline-offset: -3px;
}

.nobilis-box-dock {
  display: none;
}

@media (min-width: 901px) {
  .nobilis-box-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: start;
    gap: clamp(24px, 3vw, 40px);
  }

  .nobilis-box-panel {
    position: sticky;
    top: calc(var(--site-header-h, 72px) + 16px);
  }
}

@media (max-width: 900px) {
  body.nobilis-box-page {
    scroll-padding-top: calc(var(--site-header-h, 76px) + 68px);
  }

  .nobilis-box-layout,
  .nobilis-box-browse {
    display: flex;
    flex-direction: column;
  }

  .nobilis-box-main {
    max-height: calc(100dvh - var(--site-header-h, 76px) - var(--nobilis-box-dock-h, 72px) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nobilis-box .dcard,
  .nobilis-box-qty button,
  .nobilis-box input,
  .nobilis-box-field-error {
    scroll-margin-top: calc(var(--site-header-h, 76px) + 68px);
  }

  .nobilis-box-dock.is-released {
    position: static;
  }

  .nobilis-box-dock {
    display: flex;
    position: sticky;
    top: calc(var(--site-header-h, 76px) + 8px);
    z-index: 30;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--gold-line, rgba(200, 162, 76, 0.16));
    border-radius: 3px;
    background: var(--card, #14181b);
    color: var(--cream, #f3ede1);
    font-family: "Space Grotesk", sans-serif;
    text-align: left;
    cursor: pointer;
  }

  .nobilis-box-dock-kicker {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #c8a24c);
  }

  .nobilis-box-dock-progress,
  .nobilis-box-dock-total {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .nobilis-box-dock-progress {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .nobilis-box-dock-total {
    color: var(--gold-light, #e3c87e);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nobilis-box .card-media img,
  .nobilis-box .card-media-wine img,
  .nobilis-box .dcard,
  .nobilis-box .btn {
    transition: none;
  }

  .nobilis-box .dcard:hover .card-media img,
  .nobilis-box .dcard-wine:hover .card-media-wine img {
    transform: translateX(-50%);
  }
}

#box-configuratore {
  width: min(1340px, 100%);
  margin-inline: auto;
  padding-top: 32px;
  padding-inline: clamp(16px, 4vw, 30px);
  box-sizing: border-box;
}

#nobilis-box-title {
  scroll-margin-top: calc(var(--site-header-h, 96px) + var(--nbx-admin-h, 0px) + 64px);
}

#nobilis-box-title:focus:not(:focus-visible) {
  outline: none;
}

#nobilis-box-title:focus-visible {
  outline: 2px solid var(--gold-light, #e3c87e);
  outline-offset: 4px;
}

#nobilis-box-title[data-nbx-pointer]:focus {
  outline: none;
}

@media (max-width: 700px) {
  #box-configuratore {
    padding-top: 20px;
  }
}

body.nobilis-box-page .nbx-hero {
  position: relative;
  --nbx-pad-top: 16px;
  --nbx-pad-bottom: 24px;
  --nbx-gap: 12px;
  --nbx-after: 104px;
  --nbx-band: 0px;
  --nbx-lid-over: 0.56;
  --nbx-room: calc(100svh - var(--site-header-h, 96px) - var(--nbx-admin-h, 0px) - var(--nbx-pad-top) - var(--nbx-pad-bottom) - var(--nbx-gap) - var(--nbx-after));
  --nbx-box-h: min(calc((var(--nbx-room) - var(--nbx-band)) / (1 + var(--nbx-lid-over))), calc((100vw - 420px) * 830 / 700));
  width: 100%;
  max-width: none;
  margin: 0;
  height: calc(100svh - var(--site-header-h, 96px) - var(--nbx-admin-h, 0px));
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--nbx-gap);
  padding: var(--nbx-pad-top) 16px var(--nbx-pad-bottom);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(200, 162, 76, 0.16), transparent 70%),
    var(--ink, #0c0e10);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

body.nobilis-box-page .nbx-hero.is-leaving {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.nbx-stage,
.nbx-after {
  position: relative;
  z-index: 1;
}

.nbx-stage {
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: calc(var(--nbx-box-h) * var(--nbx-lid-over) + var(--nbx-band));
  overflow: visible;
}

.nbx-box {
  position: relative;
  width: calc(var(--nbx-box-h) * 700 / 830);
  height: var(--nbx-box-h);
  aspect-ratio: 700 / 830;
  flex: none;
  container-type: inline-size;
}

.nbx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.nbx-back { z-index: 1; }
.nbx-light { z-index: 2; }
.nbx-sparks { z-index: 3; }
.nbx-title { z-index: 4; }
.nbx-front { z-index: 5; }
.nbx-lid { z-index: 6; transform-origin: 50% 22%; }

.nbx-light {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: 80%;
  height: 80%;
  opacity: 0;
  transform-origin: 50% 100%;
  transform: scaleY(0.2);
  clip-path: polygon(18% 100%, 82% 100%, 100% 0, 0 0);
  background: linear-gradient(to top, rgba(255, 221, 145, 0.95), rgba(200, 162, 76, 0.28) 50%, transparent 92%);
  filter: blur(6px);
}

.nbx-labels {
  position: absolute;
  inset: 0;
  z-index: auto;
  pointer-events: none;
  overflow: visible;
}

.nbx-label {
  position: absolute;
  left: 50%;
  top: 20%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(227, 200, 126, 0.9);
  border-radius: 14px;
  background: rgba(12, 14, 16, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  color: var(--cream, #f3ede1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation-name: nbxRise;
  animation-duration: 3.2s;
  animation-timing-function: ease-out;
  animation-delay: var(--d, 0s);
  animation-fill-mode: forwards;
}

.nbx-label img {
  width: 36px;
  height: 52px;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(243, 237, 225, 0.06);
}

.nbx-label-name {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.nbx-title {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  margin: 0;
  color: var(--cream, #f3ede1);
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(28px, 12cqw, 48px);
  line-height: 0.92;
  opacity: 0;
  transform: translateY(95%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.nbx-title em {
  color: var(--gold, #c8a24c);
  font-style: italic;
}

.nbx-sparks { position: absolute; inset: 0; }

.nbx-sparks i {
  position: absolute;
  bottom: 82%;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #ffe3a3;
  box-shadow: 0 0 8px #ffd27a;
  opacity: 0;
}

.nbx-sparks i:nth-child(1) { --x: 14%; --s: 4px; --d: 0s; --h: -170%; }
.nbx-sparks i:nth-child(2) { --x: 26%; --s: 3px; --d: 0.7s; --h: -230%; }
.nbx-sparks i:nth-child(3) { --x: 38%; --s: 5px; --d: 1.5s; --h: -190%; }
.nbx-sparks i:nth-child(4) { --x: 50%; --s: 3px; --d: 0.3s; --h: -260%; }
.nbx-sparks i:nth-child(5) { --x: 60%; --s: 4px; --d: 1.1s; --h: -210%; }
.nbx-sparks i:nth-child(6) { --x: 71%; --s: 3px; --d: 1.9s; --h: -180%; }
.nbx-sparks i:nth-child(7) { --x: 82%; --s: 5px; --d: 0.5s; --h: -240%; }
.nbx-sparks i:nth-child(8) { --x: 90%; --s: 3px; --d: 1.4s; --h: -170%; }

.nbx-after {
  flex: 0 0 auto;
  max-width: min(30rem, 100%);
  opacity: 0;
  transform: translateY(14px);
}

.nbx-after p {
  margin: 0 0 14px;
  color: #cfc8ba;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.nbx-cta {
  display: inline-block;
  padding: 13px 26px;
  background: var(--gold, #c8a24c);
  color: var(--ink, #0c0e10);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nbx-cta:focus-visible {
  outline: 2px solid var(--cream, #f3ede1);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  body.nobilis-box-page .nbx-hero {
    --nbx-after: 120px;
    --nbx-band: 76px;
    --nbx-box-h: min(calc((var(--nbx-room) - var(--nbx-band)) / (1 + var(--nbx-lid-over))), calc((100vw - 24px) * 830 / 700));
  }

  .nbx-label {
    gap: 6px;
    padding: 4px 8px 4px 4px;
    font-size: 11px;
    white-space: normal;
  }

  .nbx-label img {
    width: 24px;
    height: 34px;
  }

  .nbx-label-name {
    white-space: normal;
  }
}

@media (max-height: 700px) {
  body.nobilis-box-page .nbx-hero {
    --nbx-gap: 8px;
    --nbx-after: 100px;
  }

  .nbx-title {
    top: -18%;
  }

  .nbx-after p {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .nbx-cta {
    padding: 10px 18px;
  }
}

@keyframes nbxRise {
  0% {
    opacity: 0;
    z-index: 4;
    transform: translate(-50%, 70%) scale(0.92);
  }

  6% {
    opacity: 0;
    z-index: 4;
    transform: translate(calc(-50% + var(--tx) * 0.9), calc(-50% + var(--ty) * 0.75)) scale(0.96);
  }

  12% {
    opacity: 1;
    z-index: 8;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);
  }

  90% {
    opacity: 1;
    z-index: 8;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);
  }

  100% {
    opacity: 0;
    z-index: 8;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);
  }
}

.nbx-hero.is-open .nbx-box { animation: nbxShake 0.5s ease-in-out 0.15s 1; }
.nbx-hero.is-open .nbx-lid { animation: nbxLid 1.25s cubic-bezier(0.22, 0.9, 0.26, 1) 0.6s both, nbxFloat 5s ease-in-out 1.85s infinite; }
.nbx-hero.is-open .nbx-light { animation: nbxLight 1.1s ease-out 0.85s both, nbxPulse 4.5s ease-in-out 2s infinite; }
.nbx-hero.is-open .nbx-title { animation: nbxTitle 1s cubic-bezier(0.2, 0.8, 0.25, 1) 1.15s both; }
.nbx-hero.is-open .nbx-after { animation: nbxAfter 0.7s ease-out 1.85s both; }
.nbx-hero.is-open .nbx-sparks i { animation: nbxSpark 3.4s ease-out calc(1.2s + var(--d)) infinite; }

@keyframes nbxShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-1.1deg); }
  50% { transform: rotate(1.1deg); }
  75% { transform: rotate(-0.6deg); }
}

@keyframes nbxLid {
  from { transform: none; }
  to { transform: translateY(-52%) rotate(-3deg); }
}

@keyframes nbxFloat {
  0%, 100% { transform: translateY(-52%) rotate(-3deg); }
  50% { transform: translateY(-54%) rotate(-2.2deg); }
}

@keyframes nbxLight {
  from { opacity: 0; transform: scaleY(0.2); }
  to { opacity: 0.72; transform: none; }
}

@keyframes nbxPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.5; }
}

@keyframes nbxTitle {
  from { opacity: 0; transform: translateY(95%); }
  to { opacity: 1; transform: none; }
}

@keyframes nbxAfter {
  to { opacity: 1; transform: none; }
}

@keyframes nbxSpark {
  0% { opacity: 0; transform: none; }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(var(--h)); }
}

@media (max-width: 782px) {
  body.nobilis-box-page.admin-bar {
    --nbx-admin-h: 46px;
  }
}

.nbx-hero.is-xmas {
  background:
    linear-gradient(to top, rgba(62, 18, 30, 0.7) 0%, rgba(62, 18, 30, 0.16) 20%, transparent 38%),
    radial-gradient(70% 55% at 50% 42%, rgba(200, 162, 76, 0.16), transparent 70%),
    var(--ink, #0c0e10);
}

.nbx-xmas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.nbx-xmas-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(26% 22% at 14% 86%, rgba(92, 32, 46, 0.42), transparent 72%),
    radial-gradient(22% 18% at 86% 78%, rgba(200, 162, 76, 0.16), transparent 74%),
    radial-gradient(16% 14% at 72% 16%, rgba(110, 42, 58, 0.22), transparent 72%);
  filter: blur(10px);
  opacity: 0.8;
}

.nbx-xmas-snow {
  position: absolute;
  inset: 0;
}

.nbx-flake {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #e3c87e;
  box-shadow: 0 0 4px rgba(227, 200, 126, 0.45);
  opacity: var(--o);
  animation: nbxSnow var(--dur) linear infinite;
  animation-delay: var(--delay);
}

.nbx-xmas.is-paused .nbx-flake {
  animation-play-state: paused;
}

.nbx-branch {
  position: absolute;
  bottom: 0;
  width: 112px;
  height: 70px;
}

.nbx-branch-left {
  left: 0;
}

.nbx-branch-right {
  right: 0;
  transform: scaleX(-1);
}

@keyframes nbxSnow {
  from { transform: translateY(-12px); }
  to { transform: translateY(100vh); }
}

@media (max-width: 700px) {
  .nbx-flake:nth-child(n + 15) {
    display: none;
  }

  .nbx-branch {
    width: 52px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nobilis-box-page .nbx-hero,
  body.nobilis-box-page .nbx-hero.is-leaving {
    transition: none;
  }

  .nbx-hero .nbx-lid {
    animation: none !important;
    transform: translateY(-52%) rotate(-3deg);
  }

  .nbx-hero .nbx-box,
  .nbx-hero .nbx-sparks i {
    animation: none !important;
  }

  .nbx-hero .nbx-light {
    animation: none !important;
    opacity: 0.72;
    transform: none;
  }

  .nbx-hero .nbx-title,
  .nbx-hero .nbx-after {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .nbx-label {
    animation: none;
    opacity: 1;
    z-index: 8;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)));
  }

  .nbx-flake {
    animation: none;
    transform: translateY(var(--rest));
  }
}
