/* AstralPass – Battle Pass UI */
.nc-ap {
  position: relative;
  min-height: 100vh;
  padding-bottom: 4rem;
  overflow-x: hidden;
}
.nc-ap__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(236, 72, 153, 0.1), transparent),
    #05020c;
}
.nc-ap-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.nc-ap-back:hover { color: #c084fc; }

.nc-ap-hero__eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.nc-ap-hero__title {
  margin-top: 0.75rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
}
.nc-ap-hero__title span {
  background: linear-gradient(135deg, #a78bfa, #22d3ee, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nc-ap-hero__sub {
  margin-top: 0.75rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
}
.nc-ap-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .nc-ap-hero__grid { grid-template-columns: 1fr auto; }
}
.nc-ap-hero__player {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}
.nc-ap-hero__avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(6, 182, 212, 0.4));
  color: #fff;
}
.nc-ap-hero__name { font-weight: 700; color: #fff; }
.nc-ap-hero__meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.15rem; }
.nc-ap-crystal { color: #22d3ee; font-weight: 700; }
.nc-ap-premium-badge {
  color: #fcd34d;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}
.nc-ap-hero__hint { margin-top: 1rem; color: rgba(255, 255, 255, 0.45); font-size: 0.9rem; }

.nc-ap-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}
.nc-ap-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.nc-ap-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}
.nc-ap-ring__fill {
  fill: none;
  stroke: url(#ncApGrad);
  stroke: #a78bfa;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 - (327 * var(--nc-ap-pct, 0) / 100));
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
  transition: stroke-dashoffset 0.6s ease;
}
.nc-ap-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nc-ap-ring__lvl {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.nc-ap-ring__txt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
}

.nc-ap-flash {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}
.nc-ap-flash--ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.nc-ap-flash--err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* Current quest */
.nc-ap-quest {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--nc-ap-qcolor, #06b6d4) 35%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--nc-ap-qcolor, #06b6d4) 12%, transparent);
}
@media (min-width: 768px) {
  .nc-ap-quest { grid-template-columns: auto 1fr auto; align-items: center; }
}
.nc-ap-quest__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #fff;
  background: color-mix(in srgb, var(--nc-ap-qcolor) 35%, #000);
  border: 1px solid color-mix(in srgb, var(--nc-ap-qcolor) 50%, transparent);
}
.nc-ap-quest__tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nc-ap-qcolor, #06b6d4);
}
.nc-ap-quest__title {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.nc-ap-quest__type { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.15rem; }
.nc-ap-quest__bar {
  margin-top: 0.75rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.nc-ap-quest__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nc-ap-qcolor), #a78bfa);
  transition: width 0.5s ease;
}
.nc-ap-quest__nums {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.nc-ap-quest__cta {
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.nc-ap-quest__cta code {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #c084fc;
}
.nc-ap-quest__cta span { font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); }

/* Premium upsell */
.nc-ap-premium-upsell {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(124, 58, 237, 0.08));
}
@media (min-width: 768px) {
  .nc-ap-premium-upsell { grid-template-columns: 1fr auto; align-items: center; }
}
.nc-ap-premium-upsell__glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
  pointer-events: none;
}
.nc-ap-premium-upsell__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.nc-ap-premium-upsell__title {
  margin-top: 0.65rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}
.nc-ap-premium-upsell__text { margin-top: 0.5rem; color: rgba(255, 255, 255, 0.55); max-width: 36rem; }
.nc-ap-premium-upsell__perks {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.nc-ap-premium-upsell__perks i { color: #fcd34d; margin-right: 0.35rem; }
.nc-ap-premium-upsell__buy { position: relative; text-align: center; }
.nc-ap-premium-upsell__price { margin-bottom: 0.75rem; }
.nc-ap-premium-upsell__price .nc-ap-crystal { font-size: 1.75rem; }

.nc-ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.85rem;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nc-ap-btn:hover { transform: translateY(-2px); }
.nc-ap-btn--premium {
  color: #1a1000;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.35);
}
.nc-ap-btn--ghost {
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.nc-ap-btn--block { width: 100%; }
.nc-ap-btn--stripe {
  color: #fff;
  background: linear-gradient(135deg, #635bff, #7a73ff);
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.35);
}
.nc-ap-buy-options {
  display: grid;
  gap: 0.85rem;
  min-width: min(100%, 280px);
}
@media (min-width: 480px) {
  .nc-ap-buy-options { grid-template-columns: 1fr 1fr; min-width: 420px; }
}
.nc-ap-buy-option {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.nc-ap-buy-option--stripe { border-color: rgba(99, 91, 255, 0.25); }
.nc-ap-buy-option__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.nc-ap-buy-option__price {
  display: block;
  margin: 0.45rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}

/* Track */
.nc-ap-track-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.nc-ap-track-head__title { font-size: 1.35rem; font-weight: 800; color: #fff; }
.nc-ap-track-head__sub { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.2rem; }
.nc-ap-track-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}
.nc-ap-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.nc-ap-dot--free { background: #34d399; }
.nc-ap-dot--premium { background: #fcd34d; }
.nc-ap-dot--claim { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }

.nc-ap-track-wrap {
  position: relative;
  padding: 0 2.5rem;
}
.nc-ap-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.5) transparent;
}
.nc-ap-track-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}
.nc-ap-track-nav--prev { left: 0; }
.nc-ap-track-nav--next { right: 0; }
.nc-ap-track-nav:hover { border-color: #a78bfa; color: #c084fc; }

.nc-ap-tier {
  flex: 0 0 88px;
  scroll-snap-align: center;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}
.nc-ap-tier.is-current {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(124, 58, 237, 0.12);
  transform: scale(1.05);
  z-index: 1;
}
.nc-ap-tier.is-locked { opacity: 0.45; }
.nc-ap-tier__lvl {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}
.nc-ap-tier__reward {
  min-height: 3.2rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.65rem;
  font-size: 0.55rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.75);
}
.nc-ap-tier__reward i { font-size: 0.85rem; }
.nc-ap-tier__reward--free {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.nc-ap-tier__reward--premium {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.nc-ap-state--claimable {
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
  border-color: rgba(34, 211, 238, 0.5) !important;
}
.nc-ap-state--claimed { opacity: 0.5; }
.nc-ap-state--premium_locked { opacity: 0.35; filter: grayscale(0.6); }
.nc-ap-tier__node { position: relative; height: 1.25rem; display: grid; place-items: center; }
.nc-ap-tier__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.nc-ap-tier.is-done .nc-ap-tier__dot { background: #34d399; border-color: #6ee7b7; }
.nc-ap-tier.is-current .nc-ap-tier__dot { background: #a78bfa; border-color: #c084fc; }
.nc-ap-tier__pulse {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 2px solid #a78bfa;
  animation: nc-ap-pulse 1.5s ease-out infinite;
}
@keyframes nc-ap-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.nc-ap-tier__quest {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
}

.nc-ap-info-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.nc-ap-info-card h3 { font-size: 1.15rem; font-weight: 800; color: #fff; }
.nc-ap-info-card p { margin-top: 0.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.nc-ap-info-card ul { margin-top: 1rem; display: grid; gap: 0.35rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.nc-ap-info-card li::before { content: "✦ "; color: #34d399; }
.nc-ap-info-card--premium {
  border-color: rgba(251, 191, 36, 0.25);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.06), transparent);
}
.nc-ap-info-card--premium li::before { color: #fcd34d; }

.nc-ap-footer-cta {
  margin-top: 2rem;
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}
