/* NexPal page – extra styles (Palworld project).
   Distinct layout AND distinct mood on purpose: warm, rounded, "cozy campfire
   in the wilderness" feel instead of NexCraft's blocky pixel-game language.
   No hard drop-shadow buttons, no shouty uppercase headlines. */

.nexpal-hero-band {
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.3);
  background: radial-gradient(circle at 0% 0%, rgba(var(--nexpal-terracotta-rgb),0.26), transparent 55%), radial-gradient(circle at 100% 100%, rgba(var(--nexpal-blue-rgb),0.22), transparent 55%), linear-gradient(145deg, #020617, #020617 35%, #020617 60%, #020617 100%);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .nexpal-hero-band {
    grid-template-columns: minmax(0, 1fr);
  }
}
.nexpal-hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Fixed circle radius (not farthest-corner) so the glow stays a
     contained pool of light instead of stretching across the whole
     box. min() keeps it from ballooning on wide boxes while still
     shrinking gracefully on narrow ones. */
  background: radial-gradient(circle min(260px, 30vw) at 20% 45%, rgba(234, 140, 58, 0.22) 0%, rgba(234, 140, 58, 0.08) 55%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
.nexpal-hero-watermark {
  position: absolute;
  bottom: -1.2rem;
  left: -1rem;
  transform: rotate(8deg);
  font-size: min(11rem, 22vw);
  line-height: 1;
  color: var(--nexpal-terracotta);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.nexpal-hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.nexpal-hero-logo img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  animation: nexpal-logo-float 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(var(--nexpal-terracotta-rgb), 0.35));
}
@keyframes nexpal-logo-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}
.nexpal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.nexpal-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.3rem, 4.3vw, 3.3rem);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #FBEFE1;
  margin: 0.8rem 0 0;
  text-shadow: 0 6px 28px rgba(var(--nexpal-terracotta-rgb), 0.28);
}
.nexpal-highlight {
  font-style: italic;
  background: linear-gradient(120deg, #F6C892, #E08A46, #B4552A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nexpal-hero-sub {
  margin-top: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
  line-height: 1.75;
}
.nexpal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--nexpal-terracotta-rgb), 0.14);
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.4);
  color: #F0C49A;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nexpal-status-badge-live {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.5);
  color: #86EFAC;
}
.nexpal-status-badge-live i {
  animation: nexpal-live-pulse 1.6s ease-in-out infinite;
}
@keyframes nexpal-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.nexpal-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(120, 70, 40, 0.28);
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.35);
  color: #EAC7A2;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.7rem 0 0;
  letter-spacing: 0.03em;
}
.nexpal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* Cozy pill buttons: soft gradient fill, blurred elevation, no hard pixel offset */
.nexpal-btn {
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 189, 0.3);
  background: linear-gradient(135deg, #C97A3E, #8B4A24);
  color: #FCEEDD;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 22px rgba(96, 51, 20, 0.45);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.2s ease;
}
.nexpal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--nexpal-terracotta-rgb), 0.5);
  background: linear-gradient(135deg, #DA8A4B, #A2582B);
}
.nexpal-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(96, 51, 20, 0.45);
}
.nexpal-btn-disabled {
  cursor: default;
  opacity: 0.7;
  background: rgba(120, 70, 40, 0.35);
  border-style: dashed;
  box-shadow: none;
}
.nexpal-btn-disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(120, 70, 40, 0.35);
}
.nexpal-btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: rgba(var(--nexpal-terracotta-rgb), 0.45);
  color: #EAC7A2;
}
.nexpal-btn-ghost:hover {
  background: rgba(var(--nexpal-terracotta-rgb), 0.14);
  box-shadow: none;
  transform: translateY(-2px);
}
.nexpal-hero-badges {
  margin-top: 1rem;
}
.nexpal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.nexpal-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.35);
  color: #EAC7A2;
  background: rgba(120, 70, 40, 0.22);
}

/* --- Lower page container --- */
.nexpal-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.nexpal-section-title {
  margin: 0 0 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  color: #C98B58;
}
.nexpal-section-title-tight {
  margin-bottom: 0.4rem;
}

/* --- Process loop track (unique to NexPal) --- */
.nexpal-cycle-track {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.nexpal-cycle-step {
  flex: 1 1 200px;
  background: linear-gradient(165deg, rgba(21, 41, 48, 0.9), rgba(15, 26, 30, 0.85));
  border: 1px solid rgba(var(--nexpal-blue-rgb), 0.35);
  border-radius: 22px;
  padding: 1.7rem 1.4rem 1.4rem;
  text-align: center;
}
.nexpal-cycle-node {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #0E7490, #164E63);
  border: 2px solid rgba(252, 238, 221, 0.35);
  box-shadow: 0 8px 20px rgba(var(--nexpal-blue-rgb), 0.45);
}
.nexpal-cycle-node i {
  font-size: 1.4rem;
  color: #FCEEDD;
}
.nexpal-cycle-num {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #1c130c;
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.6);
  color: #F0C49A;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}
.nexpal-cycle-step h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: #F0C49A;
  margin-bottom: 0.5rem;
}
.nexpal-cycle-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.nexpal-cycle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexpal-blue);
  font-size: 1.1rem;
  flex: 0 0 auto;
  opacity: 0.85;
}
.nexpal-cycle-loop-note {
  text-align: center;
  margin: 1.2rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.nexpal-cycle-loop-note i {
  color: var(--nexpal-blue);
}
@media (max-width: 800px) {
  .nexpal-cycle-track {
    flex-direction: column;
  }
  .nexpal-cycle-arrow {
    transform: rotate(90deg);
  }
}

/* --- Build progress checklist (unique to NexPal) --- */
.nexpal-progress-band {
  margin-top: 3.5rem;
  background: rgba(28, 19, 13, 0.75);
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.22);
  border-radius: 22px;
  padding: 2rem 2.2rem;
}
.nexpal-progress-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #FBEFE1;
}
.nexpal-progress-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.nexpal-progress-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.nexpal-progress-list strong {
  display: block;
  color: #FBEFE1;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.nexpal-progress-list span {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.nexpal-progress-dot {
  width: 0.8rem;
  height: 0.8rem;
  min-width: 0.8rem;
  border-radius: 50%;
  margin-top: 0.35rem;
}
.nexpal-progress-list li.is-done .nexpal-progress-dot {
  background: #7FA870;
  box-shadow: 0 0 10px rgba(127, 168, 112, 0.55);
}
.nexpal-progress-list li.is-progress .nexpal-progress-dot {
  background: var(--nexpal-terracotta);
  box-shadow: 0 0 10px rgba(var(--nexpal-terracotta-rgb), 0.6);
  animation: nexpal-pulse-dot 1.8s ease-in-out infinite;
}
.nexpal-progress-list li.is-planned .nexpal-progress-dot {
  background: #6b5b4d;
}
@keyframes nexpal-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* --- Bottom CTA band --- */
.nexpal-cta-band {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.9rem 2.1rem;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(var(--nexpal-terracotta-rgb), 0.18), rgba(28, 19, 13, 0.85), rgba(var(--nexpal-blue-rgb), 0.16));
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.3);
}
.nexpal-cta-band h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #FBEFE1;
  margin-bottom: 0.35rem;
}
.nexpal-cta-band p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32rem;
}
.nexpal-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* --- Join modal --- */
.nexpal-join-modal-content {
  max-width: 560px;
  text-align: left;
}
.nexpal-join-modal-img-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  margin-bottom: 1.2rem;
}
.nexpal-join-modal-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(var(--nexpal-terracotta-rgb), 0.3);
  display: block;
  transition: filter 0.2s ease;
}
.nexpal-join-modal-img-btn:hover .nexpal-join-modal-img {
  filter: brightness(0.7);
}
.nexpal-join-modal-img-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.nexpal-join-modal-img-btn:hover .nexpal-join-modal-img-hint,
.nexpal-join-modal-img-btn:focus-visible .nexpal-join-modal-img-hint {
  opacity: 1;
}
.nexpal-join-steps {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 2;
}
.nexpal-join-steps strong {
  color: #f9fafb;
}

/* --- Image lightbox (click-to-enlarge) --- */
.nexpal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(6px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: zoom-out;
}
.nexpal-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.nexpal-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.nexpal-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.nexpal-lightbox-close:hover {
  background: rgba(15, 23, 42, 1);
}
