/* ================================================================
   NO PERRY — cofounders-44a.css
   Five equal war standards · real GameInfo profiles
   ================================================================ */

.np-cofounders {
  position: relative;
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 0;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(120, 148, 108, 0.22);
  overflow: hidden;
}

.np-cofounders__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(28, 38, 24, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 40% at 20% 20%, rgba(18, 22, 16, 0.65), transparent 60%),
    linear-gradient(180deg, rgba(6, 8, 7, 0.2) 0%, rgba(8, 10, 9, 0.92) 45%, rgba(5, 7, 6, 0.98) 100%),
    url('../assets/images/hero-no-perry-battlefield.webp') center 35% / cover no-repeat;
  filter: saturate(0.45) brightness(0.38);
  opacity: 0.55;
}

.np-cofounders__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0 1px,
      transparent 1px 3px
    );
  opacity: 0.35;
}

.np-cofounders__inner {
  position: relative;
  z-index: 1;
}

.np-cofounders__header {
  max-width: 40rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.np-cofounders__title {
  margin: 0;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: 0.14em;
  color: rgba(196, 210, 178, 0.95);
  text-transform: uppercase;
}

.np-cofounders__subtitle {
  margin: 0.65rem auto 0;
  max-width: 34rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  color: rgba(180, 194, 168, 0.72);
}

.np-cofounders__standards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  align-items: stretch;
  max-width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 clamp(0.25rem, 1vw, 0.5rem);
}

.np-cofounder-standard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(108, 128, 96, 0.35);
  background:
    linear-gradient(180deg, rgba(14, 18, 14, 0.92) 0%, rgba(8, 10, 9, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(160, 180, 140, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.np-cofounder-standard:hover,
.np-cofounder-standard:focus-visible {
  border-color: rgba(140, 168, 120, 0.55);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(180, 200, 160, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.42);
  outline: none;
}

.np-cofounder-standard:focus-visible {
  box-shadow:
    0 0 0 2px rgba(120, 148, 100, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

.np-cofounder-standard__pole {
  height: 10px;
  background: linear-gradient(90deg, rgba(70, 82, 62, 0.2), rgba(110, 128, 96, 0.45), rgba(70, 82, 62, 0.2));
  border-bottom: 1px solid rgba(108, 128, 96, 0.25);
}

.np-cofounder-standard__crest {
  position: relative;
  margin: 0.85rem auto 0.55rem;
  width: clamp(64px, 7vw, 78px);
  height: clamp(64px, 7vw, 78px);
}

.np-cofounder-standard__crest .np-war-portrait {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.np-cofounder-standard__crest .np-avatar-aperture {
  inset: 6%;
}

.np-cofounder-standard__name {
  margin: 0 0.45rem;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(210, 220, 198, 0.95);
  word-break: break-word;
}

.np-cofounder-standard__role {
  margin: 0.35rem 0.45rem 0;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(140, 168, 120, 0.82);
}

.np-cofounder-standard__stats {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0.55rem 0;
  padding: 0.55rem 0.35rem 0;
  border-top: 1px solid rgba(108, 128, 96, 0.22);
}

.np-cofounder-standard__stat {
  display: grid;
  gap: 0.08rem;
}

.np-cofounder-standard__stat-label {
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 158, 128, 0.72);
}

.np-cofounder-standard__stat-value {
  font-size: clamp(0.68rem, 1vw, 0.76rem);
  font-weight: 600;
  color: rgba(220, 230, 210, 0.92);
}

.np-cofounder-standard__cta {
  margin: auto 0.55rem 0.75rem;
  padding-top: 0.65rem;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 188, 140, 0.78);
}

.np-cofounders__overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(4, 6, 5, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.np-cofounders__overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.np-cofounder-sheet {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(92vh, 44rem);
  overflow: auto;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(120, 148, 108, 0.4);
  background:
    linear-gradient(180deg, rgba(12, 16, 12, 0.98), rgba(8, 10, 9, 0.99));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.np-cofounder-sheet__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(120, 148, 108, 0.35);
  background: rgba(10, 14, 10, 0.85);
  color: rgba(200, 214, 188, 0.9);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.np-cofounder-sheet__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.np-cofounder-sheet__portrait {
  width: 88px;
  height: 88px;
}

.np-cofounder-sheet__portrait .np-war-portrait {
  width: 100%;
  height: 100%;
}

.np-cofounder-sheet__identity h3 {
  margin: 0;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 1.15rem;
  color: rgba(210, 224, 198, 0.96);
}

.np-cofounder-sheet__meta {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(160, 178, 148, 0.82);
}

.np-cofounder-sheet__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.np-cofounder-sheet__field {
  padding: 0.45rem 0.35rem;
  border-top: 1px solid rgba(108, 128, 96, 0.18);
}

.np-cofounder-sheet__field-label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(130, 150, 118, 0.75);
}

.np-cofounder-sheet__field-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(220, 230, 210, 0.94);
}

.np-cofounder-sheet__recent {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(108, 128, 96, 0.25);
}

.np-cofounder-sheet__recent h4 {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(140, 168, 120, 0.85);
}

.np-cofounder-sheet__event {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(190, 204, 178, 0.88);
}

.np-cofounder-sheet__freshness {
  margin-top: 0.85rem;
  font-size: 0.62rem;
  color: rgba(130, 148, 118, 0.62);
}

.np-cofounder-sheet__actions {
  margin-top: 1rem;
}

.np-cofounder-sheet__actions a {
  display: inline-block;
}

@media (max-width: 1100px) {
  .np-cofounders__standards {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  .np-cofounder-standard {
    scroll-snap-align: center;
    min-width: 148px;
  }
}

@media (max-width: 640px) {
  .np-cofounders__standards {
    grid-template-columns: none;
    display: flex;
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .np-cofounder-standard {
    flex: 0 0 min(78vw, 220px);
    min-width: min(78vw, 220px);
  }
}

@media (max-width: 430px) {
  .np-cofounder-sheet__grid {
    grid-template-columns: 1fr;
  }
}
