:root {
  --ink-green: #06251F;
  --night-blue: #0A1A2F;
  --panel-ink: #0F2E2A;
  --cyan: #4DF0D0;
  --orange: #FF6A2A;
  --mist: #EAF6F2;
  --slate: #8FA6A0;
  --amber: #FFC857;
  --violet: #7C5CFF;
  --paper: #F4FAF7;
  --line: rgba(234, 246, 242, 0.12);
  --line-cyan: rgba(77, 240, 208, 0.28);
  --line-orange: rgba(255, 106, 42, 0.34);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1280px;
  --radius-xl: clamp(1.4rem, 3vw, 2rem);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --pill: 999px;
  --shadow-panel: 0 30px 70px rgba(0, 0, 0, 0.32);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--ink-green);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 240, 208, 0.10), transparent 32rem),
    radial-gradient(circle at 92% 16%, rgba(124, 92, 255, 0.10), transparent 30rem),
    linear-gradient(180deg, #06251F 0%, #0A1A2F 52%, #06251F 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1rem;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--orange);
  color: #190B04;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: var(--pill);
  background: var(--orange);
  color: #190B04;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 106, 42, 0.35);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-main {
  display: block;
  overflow: clip;
}

.page-main:focus {
  outline: none;
}

.page-section {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.35rem;
}

.section-lede {
  max-width: 56ch;
  color: var(--slate);
  font-size: 1rem;
}

.prose {
  max-width: 68ch;
  color: rgba(234, 246, 242, 0.86);
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2,
.prose h3 {
  color: var(--mist);
  margin-top: 2rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.prose a {
  color: var(--cyan);
  text-underline-offset: 0.2em;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button--accent {
  background: var(--orange);
  color: #190B04;
  box-shadow: 0 10px 26px rgba(255, 106, 42, 0.24);
}

.button--accent:hover {
  background: #ff7e47;
}

.button--cyan {
  background: var(--cyan);
  color: #06251F;
  box-shadow: 0 10px 26px rgba(77, 240, 208, 0.18);
}

.button--cyan:hover {
  background: #76f4dc;
}

.button--ghost {
  background: rgba(234, 246, 242, 0.02);
  border-color: rgba(234, 246, 242, 0.20);
  color: var(--mist);
}

.button--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.button--small {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(234, 246, 242, 0.04);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(77, 240, 208, 0.36);
  background: rgba(77, 240, 208, 0.08);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 106, 42, 0.38);
  background: rgba(255, 106, 42, 0.08);
}

.tag--violet {
  color: var(--violet);
  border-color: rgba(124, 92, 255, 0.38);
  background: rgba(124, 92, 255, 0.08);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 200, 87, 0.38);
  background: rgba(255, 200, 87, 0.08);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(15, 46, 42, 0.84), rgba(10, 26, 47, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(77, 240, 208, 0.08), transparent 22rem);
  box-shadow: var(--shadow-panel);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(77, 240, 208, 0.06) 38%, var(--orange));
  opacity: 0.8;
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 46, 42, 0.80), rgba(10, 26, 47, 0.72));
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.card--interactive:hover {
  transform: translateY(-4px);
  border-color: var(--line-cyan);
  background: linear-gradient(160deg, rgba(15, 46, 42, 0.92), rgba(10, 26, 47, 0.84));
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--split {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.data-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.annotation {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.stat {
  display: grid;
  gap: 0.3rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.divider {
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-cyan), rgba(255, 106, 42, 0.24), transparent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(77, 240, 208, 0.13), rgba(10, 26, 47, 0.86) 48%, rgba(255, 106, 42, 0.10)),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(234, 246, 242, 0.03) 58px 59px);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(234, 246, 242, 0.035) 0 1px, transparent 1px 42px),
    linear-gradient(90deg, transparent 49.8%, rgba(77, 240, 208, 0.16) 50%, transparent 50.2%);
  mix-blend-mode: screen;
}

.media-frame::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -48%;
  z-index: 1;
  width: 78%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 240, 208, 0.22), transparent 64%);
  transform: rotate(-12deg);
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--square {
  aspect-ratio: 1;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-caption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

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

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(234, 246, 242, 0.28);
}

.breadcrumb-list a {
  color: var(--mist);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--cyan);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  isolation: isolate;
  color: var(--mist);
  background:
    radial-gradient(circle at 14% 10%, rgba(77, 240, 208, 0.10), transparent 24rem),
    radial-gradient(circle at 88% 0%, rgba(124, 92, 255, 0.10), transparent 26rem),
    linear-gradient(180deg, rgba(6, 37, 31, 0.99), rgba(10, 26, 47, 0.97));
  border-bottom: 1px solid rgba(77, 240, 208, 0.18);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(234, 246, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 246, 242, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 48%, var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand-cluster {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: var(--mist);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(77, 240, 208, 0.45);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(77, 240, 208, 0.18), rgba(255, 106, 42, 0.10));
  box-shadow: inset 0 0 0 1px rgba(234, 246, 242, 0.06);
}

.brand-mark span {
  position: absolute;
  bottom: 8px;
  width: 7px;
  height: 22px;
  border-radius: 3px;
  background: var(--cyan);
  transform: skewX(-18deg);
}

.brand-mark span:nth-child(1) {
  left: 9px;
  height: 14px;
  background: var(--orange);
}

.brand-mark span:nth-child(2) {
  left: 17px;
  height: 22px;
}

.brand-mark span:nth-child(3) {
  left: 25px;
  height: 17px;
  background: rgba(234, 246, 242, 0.72);
}

.brand-word {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-code {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(77, 240, 208, 0.24);
  border-radius: var(--pill);
  background: rgba(77, 240, 208, 0.06);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--cyan);
  white-space: nowrap;
}

.brand-kicker {
  padding-left: 46px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
}

.nav-toggle {
  position: relative;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(15, 46, 42, 0.55);
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-cyan);
  color: var(--cyan);
}

.nav-toggle-icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.site-header[data-open] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header[data-open] .nav-toggle {
  color: var(--orange);
  border-color: rgba(255, 106, 42, 0.45);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
  margin-left: auto;
}

.nav-head {
  display: none;
}

.nav-head-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.nav-head-note {
  font-size: 0.8rem;
  color: var(--slate);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1.4rem);
  padding: 0;
  list-style: none;
  counter-reset: nav;
}

.nav-list li {
  counter-increment: nav;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.55rem 0.25rem;
  color: rgba(234, 246, 242, 0.76);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-list a::before {
  content: "0" counter(nav);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  transform: translateY(-0.08em);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.nav-list a:hover {
  color: var(--mist);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
}

.nav-list a[aria-current="page"]::before {
  color: var(--orange);
}

.nav-list a[aria-current="page"]::after {
  background: var(--cyan);
  transform: scaleX(1);
}

.nav-tail {
  display: flex;
  align-items: center;
  margin-left: 0.35rem;
}

.member-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(234, 246, 242, 0.18);
  border-radius: var(--pill);
  background: rgba(15, 46, 42, 0.42);
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.member-entry:hover {
  color: var(--orange);
  border-color: rgba(255, 106, 42, 0.45);
  background: rgba(255, 106, 42, 0.06);
}

.member-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(77, 240, 208, 0.10);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.member-text {
  font-weight: 700;
  white-space: nowrap;
}

.member-count {
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--slate);
  white-space: nowrap;
}

.league-strip {
  position: relative;
  border-top: 1px solid rgba(234, 246, 242, 0.07);
  background: rgba(10, 26, 47, 0.82);
}

.league-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  max-width: var(--max);
  min-height: 48px;
  margin-inline: auto;
  padding: 0.55rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: thin;
}

.league-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
}

.league-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.league-chip {
  flex: 0 0 auto;
  padding: 0.34rem 0.78rem;
  border: 1px solid rgba(234, 246, 242, 0.12);
  border-radius: var(--pill);
  background: rgba(15, 46, 42, 0.58);
  color: rgba(234, 246, 242, 0.74);
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.league-chip:hover {
  color: var(--mist);
  border-color: rgba(77, 240, 208, 0.45);
}

.league-chip.is-active,
.league-chip[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #06251F;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(77, 240, 208, 0.13);
}

.league-jump {
  flex: 0 0 auto;
  margin-left: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 106, 42, 0.42);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}

.league-jump:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(77, 240, 208, 0.22);
  color: var(--mist);
  background:
    radial-gradient(circle at 12% 20%, rgba(77, 240, 208, 0.08), transparent 24rem),
    radial-gradient(circle at 92% 100%, rgba(255, 106, 42, 0.08), transparent 28rem),
    linear-gradient(180deg, #0A1A2F 0%, #06251F 100%);
}

.site-footer::before {
  content: "BAPP / 06";
  position: absolute;
  right: -0.05em;
  bottom: -0.2em;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(234, 246, 242, 0.025);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1.8fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 2rem;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

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

.brand--footer .brand-word {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.footer-tagline {
  max-width: 18ch;
  color: rgba(234, 246, 242, 0.74);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(77, 240, 208, 0.10);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(234, 246, 242, 0.78);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--slate);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.footer-links a:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77, 240, 208, 0.12);
}

.footer-contact {
  min-width: 0;
}

.footer-contact-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.footer-contact-item {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(234, 246, 242, 0.08);
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

.contact-value {
  color: rgba(234, 246, 242, 0.88);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: 0.72rem;
  line-height: 1.65;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.2rem var(--gutter) 1.6rem;
  border-top: 1px solid rgba(234, 246, 242, 0.08);
  font-size: 0.72rem;
  color: var(--slate);
}

.footer-copyright {
  line-height: 1.6;
}

.footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.footer-bottom-nav a {
  color: rgba(234, 246, 242, 0.68);
  text-decoration: none;
}

.footer-bottom-nav a:hover {
  color: var(--cyan);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-reveal][data-delay="1"] {
  transition-delay: 70ms;
}

.js [data-reveal][data-delay="2"] {
  transition-delay: 140ms;
}

.js [data-reveal][data-delay="3"] {
  transition-delay: 210ms;
}

body.nav-open {
  overflow: hidden;
}

@keyframes signal-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(77, 240, 208, 0.08);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(77, 240, 208, 0.02);
  }
}

@media (max-width: 1024px) {
  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand-kicker {
    display: none;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(5.4rem + env(safe-area-inset-top, 0px)) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background:
      radial-gradient(circle at 18% 0%, rgba(77, 240, 208, 0.15), transparent 26rem),
      radial-gradient(circle at 88% 100%, rgba(255, 106, 42, 0.11), transparent 22rem),
      linear-gradient(160deg, #06251F, #0A1A2F 56%, #0F2E2A);
    border-bottom: 1px solid var(--line-cyan);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-head-note {
    max-width: 30ch;
    line-height: 1.55;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(234, 246, 242, 0.08);
  }

  .nav-list a {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0.2rem;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .nav-list a::before {
    order: 2;
    font-size: 0.78rem;
    color: var(--slate);
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a[aria-current="page"]::before {
    color: var(--orange);
  }

  .nav-tail {
    margin-top: auto;
    padding-top: 2rem;
  }

  .member-entry {
    width: 100%;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .member-count {
    border-left: 0;
    padding-left: 0;
  }

  .league-label {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-code {
    padding: 0.3rem 0.45rem;
    font-size: 0.58rem;
  }

  .brand-word {
    font-size: 1.18rem;
  }

  .league-strip-inner {
    min-height: 44px;
    gap: 0.7rem;
  }

  .league-jump {
    font-size: 0.6rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    justify-content: stretch;
  }

  .footer-bottom-nav {
    order: 2;
  }

  .footer-legal {
    order: 3;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand-mark span {
    bottom: 7px;
  }

  .brand-mark span:nth-child(1) {
    left: 8px;
  }

  .brand-mark span:nth-child(2) {
    left: 15px;
  }

  .brand-mark span:nth-child(3) {
    left: 22px;
  }

  .brand-code {
    display: none;
  }

  .league-jump {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .member-dot,
  .status-dot {
    animation: none;
  }
}
