/* TROOP — player site. Tokens aligned with Gorilla Portfolio / Apex. */

:root {
  --navy: #071427;
  --navy-mid: #0c1f3a;
  --navy-edge: #163056;
  --gold: #c4a36a;
  --gold-hover: #d4b57a;
  --text: #e8eef6;
  --muted: #9aa8b8;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --radius: 1.1rem;
  --max: 72rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  line-height: 1.55;
  color: var(--text);
  background: var(--navy);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

p { text-wrap: pretty; margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

button:not(:disabled),
[role="button"]:not(:disabled) { cursor: pointer; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  border-bottom: 1px solid var(--navy-edge);
}

header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  flex-shrink: 0;
}

.brand .mark {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--text);
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  border-radius: 0.45rem;
  transition: color 0.15s, background 0.15s;
}

nav a:hover { color: var(--text); }
nav a.is-active { color: var(--gold); }
nav a.ext { color: var(--gold); }

.btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--navy-edge);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hero */
.hero {
  padding: 3.25rem 0 2.5rem;
}

.hero-wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.25rem, 18vw, 9.25rem);
  letter-spacing: 0.08em;
  line-height: 0.88;
  color: var(--text);
  margin: 0 0 1.15rem;
}

.hero-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--gold);
  margin: 0 0 1rem;
  max-width: 22ch;
}

.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

/* Sections */
.band {
  border-top: 1px solid var(--navy-edge);
  border-bottom: 1px solid var(--navy-edge);
  background: var(--navy-mid);
}

.section { padding: 3.25rem 0; }

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  margin-top: 0.35rem;
}

/* Featured game */
.featured {
  display: grid;
  gap: 1.35rem;
}

.board-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--navy-edge);
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(196, 163, 106, 0.08), transparent 55%),
    var(--navy);
  overflow: hidden;
}

.board-grid {
  position: absolute;
  inset: 10% 8%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3.2%;
}

.cell {
  border-radius: 22%;
  background: rgba(232, 238, 246, 0.045);
  border: 1px solid rgba(196, 163, 106, 0.1);
}

.cell.on {
  background: rgba(196, 163, 106, 0.38);
  border-color: rgba(196, 163, 106, 0.45);
}

.cell.mid {
  background: rgba(196, 163, 106, 0.16);
  border-color: rgba(196, 163, 106, 0.22);
}

.board-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--navy) 88%, transparent) 100%);
  pointer-events: none;
}

.board-caption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 1;
}

.board-caption h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 163, 106, 0.32);
  color: var(--muted);
  background: color-mix(in srgb, var(--navy) 70%, transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  cursor: default;
}

.featured-copy {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 40rem;
}

.featured-copy strong { color: var(--text); font-weight: 600; }

/* Pillars */
.pillars {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--navy);
  border: 1px solid var(--navy-edge);
  border-radius: var(--radius);
  padding: 1.55rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.band .card { background: var(--navy); }

.card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--navy-edge));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.card .meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

/* CTA */
.cta-band {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* Legal / support */
.prose {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.prose p + p,
.prose ul + p,
.prose p + ul { margin-top: 1rem; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.02em;
}

.prose ul {
  padding-left: 1.15rem;
  margin: 0.5rem 0 0;
}

.prose li { margin: 0.35rem 0; }

.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.75rem 0 1.35rem;
}

.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
}

.faq details {
  border: 1px solid var(--navy-edge);
  background: var(--navy-mid);
  border-radius: 0.9rem;
  padding: 0.15rem 1.15rem;
}

.faq summary {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.25rem;
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0 0 1.05rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--navy-edge);
  padding: 2.1rem 0 2.35rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  max-width: 28rem;
}

.footer-brand .brand { margin-bottom: 0.65rem; }

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  align-items: center;
}

.footer-links a:hover { color: var(--gold); }

.footer-meta {
  width: 100%;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--navy-edge);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-meta a { color: var(--gold); font-weight: 600; }
.footer-meta a:hover { color: var(--gold-hover); }

.family {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Mobile */
@media (max-width: 720px) {
  header .bar {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0 0.75rem;
    min-height: 0;
    text-align: center;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  nav a {
    min-height: 2.75rem;
    padding: 0 0.6rem;
    font-size: 0.84rem;
  }

  .hero {
    padding: 2.35rem 0 2rem;
    text-align: center;
  }

  .hero-wordmark,
  .hero-tag,
  .lede { margin-inline: auto; }

  .hero .actions { justify-content: center; }

  .hero .actions .btn {
    flex: 1 1 100%;
  }

  .board-caption {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .section { padding: 2.35rem 0; }

  .cta-band { padding: 2.5rem 1.25rem; }

  .cta-band .actions { justify-content: center; }

  .cta-band .actions .btn { flex: 1 1 12rem; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand { max-width: 100%; }

  .footer-brand .brand { justify-content: center; }

  .footer-links { justify-content: center; width: 100%; }

  .footer-meta {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
