#nb-advent .nb-hero-art img {
  height: auto;
  animation: nb-hover-gift 5.5s ease-in-out infinite;
}
#nb-advent .nb-hero-art::after {
  content: "✧";
  position: absolute;
  right: 21%;
  top: 24%;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1;
  color: #fff3da;
  text-shadow: 0 0 20px #fff3da;
  pointer-events: none;
  animation: nb-twinkle 4s ease-in-out infinite;
}
@keyframes nb-hover-gift {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-11px) rotate(1.3deg); }
}
@keyframes nb-twinkle {
  0%, 100% { opacity: .25; transform: scale(.65) rotate(-12deg); }
  45% { opacity: 1; transform: scale(1.1) rotate(11deg); }
}
#nb-advent .nb-burst { position: absolute; top: 123px; left: 50%; pointer-events: none; }
#nb-advent .nb-burst i {
  position: absolute;
  font: normal 22px/1 Georgia, serif;
  color: #ad3b7c;
  text-shadow: 0 0 7px #fff3da;
  transform: scale(.2);
  opacity: 0;
  animation: nb-snow-burst 1s cubic-bezier(.16, 1, .3, 1) var(--delay) both;
}
#nb-advent .nb-burst i:nth-child(3n) { color: #76508a; }
@keyframes nb-snow-burst {
  10% { opacity: 1; }
  63% { opacity: .9; }
  100% { transform: translate(var(--x), var(--y)) scale(.65) rotate(125deg); opacity: 0; }
}
#nb-advent .nb-modal-art { height: auto; }
#nb-advent .nb-ticket { font: 500 34px/1.2 var(--heading); letter-spacing: .04em; }
#nb-advent #nb-entry { display: grid; gap: 12px; text-align: left; }
#nb-advent #nb-entry label { display: grid; gap: 4px; font-size: 13px; }
#nb-advent #nb-entry input:not([type=checkbox]) {
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid #ad5983; border-radius: 10px;
  background: #fff8fc; color: var(--ink); font: inherit; font-size: 16px;
}
#nb-advent #nb-entry .nb-consent { grid-template-columns: auto 1fr; gap: 9px; align-items: start; }
#nb-advent .nb-consent input { accent-color: var(--ink); width: 17px; height: 17px; }
#nb-advent .nb-consent a { text-decoration: underline; }
#nb-advent #nb-entry [role=status] { margin: 0; }
#nb-advent .nb-button:disabled { opacity: .7; cursor: wait; }
@media (max-width: 600px) {
  #nb-advent .nb-hero-art img { width: min(315px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  #nb-advent .nb-hero-art img, #nb-advent .nb-hero-art::after,
  #nb-advent .nb-burst i { animation: none; }
}


#nb-advent .nb-header {
  height: clamp(66px, 11svh, 90px);
}
#nb-advent .nb-logo {
  flex: 0 1 auto;
  min-width: 0;
  width: clamp(134px, 16vw, 192px);
}
#nb-advent .nb-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
}
#nb-advent .nb-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(12px, 3vw, 36px);
  min-height: 0;
  padding: clamp(12px, 3svh, 28px) 0 clamp(16px, 4svh, 40px);
}
#nb-advent .nb-hero h1 {
  font-size: clamp(52px, min(8vw, 12svh), 96px);
  margin: clamp(8px, 2svh, 17px) 0 clamp(12px, 2.5svh, 24px);
}
#nb-advent .nb-hero .nb-intro {
  margin-bottom: clamp(12px, 2.6svh, 26px);
}
#nb-advent .nb-hero .nb-period {
  margin-top: clamp(10px, 2svh, 18px);
}
#nb-advent .nb-hero-art {
  height: auto;
  margin: 0;
  min-width: 0;
  justify-content: center;
}
#nb-advent .nb-hero-art img {
  display: block;
  width: min(100%, 66svh, 560px);
  height: auto;
  margin: 0;
}
@media (max-width: 600px) {
  #nb-advent .nb-header { height: 66px; }
  #nb-advent .nb-hero { padding: 8px 0 12px; }
  #nb-advent .nb-hero h1 { font-size: clamp(44px, min(13vw, 8svh), 68px); }
  #nb-advent .nb-hero-art { align-self: stretch; margin: 0; }
  #nb-advent .nb-hero-art img { width: min(76vw, 26svh, 280px); }
  #nb-advent .nb-art-note { bottom: 12%; }
  #nb-advent .nb-hero .nb-intro { line-height: 1.5; }
}


#nb-advent::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 18px 24px, #fff 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 78px 67px, #fff9 0 2px, transparent 3.2px),
    radial-gradient(circle at 39px 124px, #fff 0 1px, transparent 1.8px),
    radial-gradient(circle at 130px 82px, #fff8 0 1.6px, transparent 2.5px);
  background-size: 173px 260px, 223px 360px, 139px 206px, 293px 440px;
  opacity: .8;
  animation: nb-background-snow 17s linear infinite;
}
@keyframes nb-background-snow {
  to { background-position: 173px 260px, -223px 360px, 139px 412px, 293px 440px; }
}
@media (prefers-reduced-motion: reduce) {
  #nb-advent::before { animation: none; }
}
#nb-advent .nb-gift.nb-today .nb-gift-visual img {
  animation: none;
  filter: drop-shadow(0 0 2px #fff3bb) drop-shadow(0 0 7px #ffe4a0) drop-shadow(0 0 15px #ffc45b);
}
#nb-advent .nb-gift.nb-today .nb-gift-visual::before {
  content: "";
  position: absolute;
  inset: 27% 12% 9%;
  border-radius: 22%;
  box-shadow: 0 0 24px 6px #ffcf7266;
  pointer-events: none;
}
#nb-advent .nb-gift.nb-today .nb-gift-state {
  color: #ffefc7;
  font-weight: 700;
}
#nb-advent .nb-close { border-radius: 50%; }
#nb-advent .nb-close:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
#nb-advent #nb-modal-title:focus { outline: none; }
#nb-advent .nb-button .nb-arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: normal 1rem/1 Arial, sans-serif;
  text-align: center;
}
#nb-advent h1, #nb-advent h2, #nb-advent h3 { text-wrap: balance; }
#nb-advent .nb-intro, #nb-advent #nb-modal-body p, #nb-advent .nb-rules p { text-wrap: pretty; }


#nb-advent {
  background:
    radial-gradient(ellipse at 86% 9%, #db76aa 0%, transparent 30%),
    radial-gradient(ellipse at 14% 38%, #a63873 0%, transparent 41%),
    radial-gradient(ellipse at 83% 54%, #746489 0%, transparent 45%),
    linear-gradient(168deg, #303d5f 0%, #674967 28%, #a7648c 56%, #db9fbc 78%, #f2d5e4 100%);
}
#nb-advent .nb-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(6px, 2vw, 24px);
}
#nb-advent .nb-services > span {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-content: start;
  align-items: start;
  gap: clamp(7px, 1.4vw, 12px);
  text-align: center;
  text-wrap: balance;
}
#nb-advent .nb-services > span > i {
  display: grid;
  place-items: center;
  line-height: 1;
}
#nb-advent .nb-draw-note {
  display: block;
  width: fit-content;
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 600px) {
  #nb-advent .nb-services > span { font-size: clamp(10px, 2.8vw, 13px); }
  #nb-advent .nb-services i { width: 38px; height: 38px; font-size: 27px; }
}

#nb-advent .nb-brow-mark { display: block; transform: translateY(-.14em); }
