/* =============================================
   NSW 2026 Announcement Popup
============================================= */
#nsw2026-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.nsw2026-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 24, 0.82);
  cursor: pointer;
}

/* ---- Modal ---- */
.nsw2026-popup__modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #0a1028;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* grid texture */
.nsw2026-popup__modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* yellow top accent line */
.nsw2026-popup__modal::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fff000 0%, rgba(255, 240, 0, 0.25) 65%, transparent 100%);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---- Stars ---- */
.nsw2026-popup__stars {
  position: absolute;
  top: 0; right: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: 1;
}

.nsw2026-popup__stars span {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: nsw-star-twinkle 3s ease-in-out infinite;
}

.nsw2026-popup__stars span:nth-child(1) { width: 2px; height: 2px; top: 20%; right: 16%;              animation-duration: 2.8s; animation-delay: 0s; }
.nsw2026-popup__stars span:nth-child(2) { width: 1px; height: 1px; top: 36%; right: 40%; opacity: 0.5; animation-duration: 3.5s; animation-delay: 0.7s; }
.nsw2026-popup__stars span:nth-child(3) { width: 3px; height: 3px; top: 10%; right: 52%; opacity: 0.35; animation-duration: 4.1s; animation-delay: 1.4s; }
.nsw2026-popup__stars span:nth-child(4) { width: 1px; height: 1px; top: 52%; right: 20%;              animation-duration: 3.2s; animation-delay: 2.1s; }
.nsw2026-popup__stars span:nth-child(5) { width: 2px; height: 2px; top:  7%; right: 28%; opacity: 0.7; animation-duration: 2.5s; animation-delay: 0.4s; }
.nsw2026-popup__stars span:nth-child(6) { width: 1px; height: 1px; top: 68%; right: 58%; opacity: 0.45; animation-duration: 3.9s; animation-delay: 1.9s; }
.nsw2026-popup__stars span:nth-child(7) { width: 2px; height: 2px; top: 42%; right:  7%; opacity: 0.55; animation-duration: 3.1s; animation-delay: 1.1s; }
.nsw2026-popup__stars span:nth-child(8) { width: 1px; height: 1px; top: 26%; right: 70%; opacity: 0.4;  animation-duration: 4.4s; animation-delay: 2.6s; }

/* ---- Close ---- */
.nsw2026-popup__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}

.nsw2026-popup__close:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
}

.nsw2026-popup__close span {
  position: absolute;
  width: 14px; height: 1.5px;
  background: #fff;
  display: block;
}

.nsw2026-popup__close span:first-child { transform: rotate(45deg); }
.nsw2026-popup__close span:last-child  { transform: rotate(-45deg); }

/* ---- Content ---- */
.nsw2026-popup__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 25px 40px;
}

/* eyebrow */
.nsw2026-popup__eyebrow {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 240, 0, 0.6);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* event name */
.nsw2026-popup__event-name {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(14px, 3.2308px + 1.9231vw, 18px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 4px;
  text-transform: uppercase;
}

/* "2026" outline hero number */
.nsw2026-popup__year {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(70px, 16.1538px + 9.6154vw, 90px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px #fff000;
  text-stroke: 1px #fff000;
  margin: 0 0 28px;
  user-select: none;
}

/* divider */
.nsw2026-popup__divider {
  width: 40px;
  height: 2px;
  background: #fff000;
  margin-bottom: 20px;
  opacity: 0.7;
}

/* date */
.nsw2026-popup__date {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nsw2026-popup__date-range {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.nsw2026-popup__date-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 240, 0, 0.75);
  letter-spacing: 0.1em;
}

/* notes */
.nsw2026-popup__notes {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  justify-content: center;
}

.nsw2026-popup__notes li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #fff;
  position: relative;
  line-height: 1.8;
}

/* CTA button */
.nsw2026-popup__btn {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff000;
  color: #0a1028;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
  padding: 15px 20px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.2s, gap 0.2s;
}

.nsw2026-popup__btn:hover {
  background: #ffe800;
  gap: 14px;
  color: #0a1028;
  text-decoration: none;
}

/* ---- Star twinkle ---- */
@keyframes nsw-star-twinkle {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.1; transform: scale(0.7); }
}

/* ---- Entrance animation ---- */
@keyframes nsw-popup-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes nsw-accent-line-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

#nsw2026-popup.is-open .nsw2026-popup__modal {
  animation: nsw-popup-in 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

#nsw2026-popup.is-open .nsw2026-popup__modal::after {
  animation: nsw-accent-line-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

/* ---- Mobile ---- */
@media (max-width: 580px) {
  .nsw2026-popup__content {
    padding: 40px 15px 34px;
  }
  .nsw2026-popup__date-range {
    font-size: 13px;
  }
  .nsw2026-popup__btn{
    padding: 15px 10px;
    font-size: 11px;
  }
  .nsw2026-popup__notes li{
    font-size: 12px;  
  }
}
@media(max-width:389px){
  .nsw2026-popup__date-range{
    font-size: max(12px, 3.3vw);
  }
  .nsw2026-popup__notes li{
font-size: max(11px, 3vw);
  }
}
@media(max-width:370px){
  .nsw2026-popup__btn{
    font-size:10px;
  }
}