/* Rakusen Gumi — rakusengumi.com (single-page site)
   Palette: deep pitch green + gold, from the show's Force FC identity. */

:root {
  --green-950: #04150e;
  --green-900: #06231a;
  --green-800: #0a3524;
  --green-700: #0f4a30;
  --gold: #e3a82b;
  --gold-soft: #d8b26a;
  --cream: #f7f3e6;
  --muted: #a8bfa9;
  --card: #0b2e20;
  --card-edge: #1d5c3e;
  --radius: 16px;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green-950);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0;
}

a { color: var(--gold-soft); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.1rem;
  background: rgba(4, 21, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-edge);
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
}
.site-nav nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav nav a:hover, .site-nav nav a:focus-visible { color: var(--cream); background: var(--green-800); }
.site-nav nav a.nav-cta { color: var(--green-950); background: var(--gold); }
.site-nav nav a.nav-cta:hover { background: var(--gold-soft); color: var(--green-950); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(38, 106, 70, 0.55), rgba(4, 21, 14, 0) 70%),
    linear-gradient(180deg, var(--green-800), var(--green-900) 55%, var(--green-950));
  border-bottom: 3px solid var(--gold);
  text-align: center;
  padding: 3.2rem 1.1rem 3rem;
}
.hero-inner { max-width: 1180px; margin: 0 auto; }
.kicker, .section-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.hero-meaning {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin: 0.5rem auto 0;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--muted);
  margin: 0.9rem auto 1.2rem;
  max-width: 42rem;
}
.hero-where {
  color: var(--muted);
  font-size: 1.05rem;
  margin: -0.8rem 0 1.7rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.8rem;
}
.status-pill .dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-poster { margin: 0 auto 1.8rem; max-width: 1120px; }
.hero-poster img {
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.hero-ctas, .follow-links {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(227, 168, 43, 0.12); }

/* ---------- Sections ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.1rem;
}
.section-dark {
  max-width: none;
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
  border-top: 1px solid var(--card-edge);
  border-bottom: 1px solid var(--card-edge);
}
.section-dark > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.section-lede { color: var(--muted); font-size: 1.15rem; margin: 0 0 1.6rem; }
.prose { max-width: 46rem; }
.prose p { margin: 0 0 1.1rem; }
.prose strong { color: var(--gold-soft); }

/* ---------- Teaser (coming soon) ---------- */
.teaser-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.teaser-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(0.6); }
.teaser-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; text-align: center; padding: 1rem;
}
.teaser-play {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(4, 21, 14, 0.55);
  position: relative;
  flex: 0 0 auto;
}
.teaser-play::after {
  content: ""; position: absolute; top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--gold);
}
.teaser-soon {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream);
  border: 1.5px solid var(--gold); border-radius: 999px;
  padding: 0.35rem 1.25rem;
  background: rgba(4, 21, 14, 0.55);
}
.teaser-note { color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 560px) {
  .teaser-play { width: 62px; height: 62px; }
  .teaser-play::after { border-width: 11px 0 11px 19px; }
}

/* ---------- Cast cards ---------- */
.team-h {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--cream);
  margin: 2.4rem 0 1.1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold);
}
.team-h span { color: var(--gold); font-size: 1.15rem; letter-spacing: 0.18em; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
}
.card-grid-coaches { grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); }
.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card img { width: 100%; aspect-ratio: 820 / 875; object-fit: cover; }
.card-body { padding: 0.85rem 0.95rem 1.05rem; }
.card-body h4 { font-size: 1.45rem; font-weight: 600; }
.card-meta {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.15rem 0 0;
}
.card-nick {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin: 0.3rem 0 0;
}
.card-note { color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0 0; }
.cast-poster { margin: 3rem auto 0; max-width: 520px; text-align: center; }
.cast-poster img { border-radius: var(--radius); border: 2px solid var(--gold); margin: 0 auto; }
.cast-poster figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.7rem; }

/* ---------- Founding Edition ---------- */
.edition-panel {
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  padding: 1.8rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.edition-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; align-items: center; }
@media (min-width: 820px) { .edition-grid { grid-template-columns: 340px 1fr; } }
@media (min-width: 820px) { .edition-grid-wide { grid-template-columns: 1fr; } }
.edition-grid-wide .edition-figure img { width: 100%; }
.edition-figure { margin: 0; }
.edition-figure img { border-radius: 12px; border: 1px solid var(--gold); margin: 0 auto; }
.edition-body h2 { margin-bottom: 0.7rem; }
.edition-lede { color: var(--muted); font-size: 1.12rem; margin: 0 0 1.2rem; }
.edition-terms { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; }
.edition-terms li { padding-left: 1.4rem; position: relative; }
.edition-terms li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold);
}
.edition-terms strong { color: var(--gold-soft); }
.edition-buy { margin: 0 0 0.5rem; }
.edition-note { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- Teams ---------- */
.team-panels { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 2.4rem; }
@media (min-width: 720px) { .team-panels { grid-template-columns: 1fr 1fr; } }
.team-panel {
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--card-edge);
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
}
.team-panel h3 { font-size: 2rem; color: var(--gold); }
.team-meta {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 0.3rem 0 0.7rem;
}
.team-panel p { margin: 0; }
.rivals-h { font-size: 1.5rem; margin-bottom: 1rem; }
.rivals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.rivals li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 12px; padding: 0.9rem 1.1rem;
}
.rivals .swatch {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 8px;
  background: var(--c); border: 2px solid rgba(247, 243, 230, 0.35);
  margin-top: 0.15rem;
}
.rivals strong { display: block; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.rivals span div, .rivals li div span { color: var(--muted); font-size: 0.97rem; }

/* ---------- Stadiums ---------- */
.stadium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 720px) { .stadium-grid { grid-template-columns: 1fr 1fr; } }
.stadium-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stadium-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.stadium-shot { display: block; }
.stadium-shot img { width: 100%; aspect-ratio: 1600 / 1067; object-fit: cover; }
.stadium-body { padding: 1rem 1.15rem 1.2rem; }
.stadium-body h4 { font-size: 1.6rem; font-weight: 600; }
.stadium-meta {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.2rem 0 0;
}
.stadium-caption { color: var(--muted); font-size: 0.98rem; margin: 0.4rem 0 0; }

/* Show-more for the later stadium groups (phones): the button only appears
   when the script marks a group collapsible on a small screen; on desktop
   and without JS it never shows and nothing is hidden. */
.stadiums-more-row { margin: 1.1rem 0 0; }
.stadiums-more {
  display: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.stadiums-more:hover { background: rgba(227, 168, 43, 0.12); }
@media (max-width: 719px) {
  .stadium-group.collapsible .stadiums-more { display: inline-block; }
  .stadium-group.collapsible:not(.open) .stadium-grid { display: none; }
}

/* ---------- World ladder ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.ladder li {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--card-edge);
  border-left: 5px solid var(--gold);
  border-radius: 12px; padding: 1.05rem 1.25rem;
}
.ladder .rung {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--gold); line-height: 1; min-width: 2.6rem;
}
.ladder h3 { font-size: 1.5rem; }
.ladder p { color: var(--muted); margin: 0.2rem 0 0; }

/* ---------- More from the studio ---------- */
.more-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .more-grid { grid-template-columns: 1fr 1fr; } }
.more-card {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.more-card h3 { font-size: 1.7rem; color: var(--gold); margin-bottom: 0.5rem; }
.more-card p { margin: 0; color: var(--cream); }
.more-card strong { color: var(--gold-soft); }
.more-card .more-note { margin-top: 0.8rem; color: var(--muted); }
.more-card .more-action { margin-top: 1.1rem; }

/* ---------- Follow / notify ---------- */
#follow { text-align: center; }
#follow .section-lede { margin-left: auto; margin-right: auto; }
.notify {
  max-width: 560px; margin: 2.6rem auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.notify-title {
  font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.7rem;
  color: var(--cream);
}
.notify-note { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 2.6rem 1.1rem 2.2rem;
  border-top: 3px solid var(--gold);
  background: var(--green-900);
}
.site-footer img { margin: 0 auto 0.7rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.22em; margin: 0; }
.site-footer p { color: var(--muted); margin: 0.25rem 0; }
.site-footer .fine { font-size: 0.88rem; }

/* ---------- Scroll reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .status-pill .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .section { padding: 3rem 1rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
  /* Slim single-row sticky nav: brand on the left, links in one scrollable
     row — the bar stays ~48px instead of stacking to two rows (~110px). */
  .site-nav { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0.5rem; padding: 0.45rem 0.7rem; }
  .site-nav .brand { font-size: 1.02rem; letter-spacing: 0.1em; flex: 0 0 auto; gap: 0.45rem; }
  .site-nav .brand img { width: 28px; height: 28px; }
  .site-nav nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav nav::-webkit-scrollbar { display: none; }
  .site-nav nav a { white-space: nowrap; padding: 0.28rem 0.5rem; font-size: 0.9rem; }
  .hero { padding-top: 2.2rem; }
}
