.page-home {
  --home-panel: linear-gradient(168deg, rgba(14, 31, 69, .94), rgba(6, 15, 38, .96));
  --home-grid-line: rgba(27, 46, 92, .5);
  position: relative;
  overflow-x: clip;
  background: var(--ink-900);
  color: var(--text);
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(28px, 6vw, 68px) 0 clamp(54px, 9vw, 112px);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -34% -16% -12% -16%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 78% 14%, rgba(43, 230, 200, .26), transparent 64%),
    radial-gradient(44% 44% at 6% 4%, rgba(255, 138, 61, .14), transparent 62%),
    linear-gradient(158deg, var(--ink-850) 0%, var(--ink-900) 60%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: -30% -20%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotate(-8deg);
  opacity: .5;
  -webkit-mask-image: radial-gradient(66% 58% at 52% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(66% 58% at 52% 42%, #000 0%, transparent 76%);
}

.page-home .home-hero__beam {
  position: absolute;
  top: -14%;
  left: -22%;
  width: 134%;
  height: 44%;
  z-index: 0;
  pointer-events: none;
  transform: rotate(-14deg);
  filter: blur(30px);
  background: linear-gradient(90deg, transparent, rgba(43, 230, 200, .18) 42%, rgba(255, 138, 61, .12) 68%, transparent);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 4vw, 52px);
  align-items: center;
}

.page-home .home-context {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(14, 31, 69, .7);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-home .home-context .num {
  color: var(--cyan);
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8.2vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--text);
  transform: skewX(-1.5deg);
  transform-origin: left bottom;
  text-wrap: balance;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--cyan);
}

.page-home .home-hero__lede {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .home-hero__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(43, 230, 200, .35);
  background: rgba(6, 15, 38, .84);
  font-size: 13px;
  color: var(--text-soft);
}

.page-home .home-hero__badge .num {
  font-size: 20px;
  color: var(--cyan);
}

/* ---------- section shell ---------- */
.page-home .section {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0;
}

.page-home .home-blockhead {
  max-width: 720px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .home-blockhead h2 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.02em;
}

.page-home .section__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--muted);
}

/* ---------- leagues ---------- */
.page-home .home-leagues::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(14, 31, 69, .55) 45%, transparent);
}

.page-home .home-league-layout {
  position: relative;
  display: grid;
  gap: 22px;
}

.page-home .home-league-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.page-home .home-league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--home-panel);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.page-home .home-league-card::after {
  content: "";
  position: absolute;
  right: -34%;
  bottom: -62%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(43, 230, 200, .16), transparent 70%);
}

.page-home .home-league-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.01em;
}

.page-home .home-league-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-home .home-league-card .card__meta {
  color: var(--muted);
  font-size: 13px;
}

.page-home .home-league-card .card__meta .num {
  color: var(--cyan);
}

.page-home .home-league-card__link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 230, 200, .35);
  transition: color .24s var(--ease), border-color .24s var(--ease);
}

.page-home .home-league-card__link:hover {
  color: var(--orange);
  border-color: rgba(255, 138, 61, .55);
}

.page-home .home-league-aside {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.page-home .home-league-aside img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-home .home-league-aside figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px 18px;
  background: linear-gradient(to top, rgba(6, 15, 38, .96), rgba(6, 15, 38, 0));
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---------- points ---------- */
.page-home .home-points {
  background: linear-gradient(180deg, transparent, rgba(23, 48, 107, .3) 50%, transparent);
}

.page-home .home-points-layout {
  display: grid;
  gap: 24px;
}

.page-home .home-table {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(10, 23, 48, .76);
  overflow: auto;
}

.page-home .home-table table.data {
  min-width: 520px;
}

.page-home .home-table .home-pts {
  color: var(--cyan);
  font-weight: 700;
}

.page-home .home-points-visual {
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--ink-850);
  overflow: hidden;
}

.page-home .home-points-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-points-visual figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.page-home .home-points__more {
  margin: 28px 0 0;
}

/* ---------- arena ---------- */
.page-home .home-arena__layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.page-home .home-arena__figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.page-home .home-arena__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-arena__figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 22px 18px;
  background: linear-gradient(to top, rgba(6, 15, 38, .94), rgba(6, 15, 38, 0));
  font-size: 14px;
  color: var(--text-soft);
}

.page-home .home-arena__stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 24px;
}

.page-home .home-arena__stats > div {
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(23, 48, 107, .34);
}

.page-home .home-arena__stats dt {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-arena__stats dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .home-arena__stats dd .num {
  margin-right: 4px;
  font-size: 22px;
}

.page-home .home-arena__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-arena__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-home .home-arena__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(43, 230, 200, .14);
}

.page-home .home-arena__list strong {
  margin-right: 6px;
  color: var(--text);
  font-weight: 700;
}

/* ---------- archive ---------- */
.page-home .home-archive {
  background:
    linear-gradient(180deg, transparent, rgba(14, 31, 69, .6) 40%, transparent),
    repeating-linear-gradient(90deg, rgba(27, 46, 92, .34) 0 1px, transparent 1px 96px);
}

.page-home .home-archive__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.page-home .home-archive__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--home-panel);
  box-shadow: var(--shadow-1);
}

.page-home .home-archive__card:first-child {
  border-color: rgba(43, 230, 200, .42);
}

.page-home .home-archive__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.01em;
}

.page-home .home-archive__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-soft);
}

.page-home .home-archive__card .num {
  color: var(--cyan);
}

.page-home .home-archive__link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 230, 200, .35);
  transition: color .24s var(--ease), border-color .24s var(--ease);
}

.page-home .home-archive__link:hover {
  color: var(--orange);
  border-color: rgba(255, 138, 61, .55);
}

/* ---------- rhythm ---------- */
.page-home .home-rhythm__layout {
  display: grid;
  gap: 28px;
}

.page-home .home-rhythm__copy h2 {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.02em;
}

.page-home .home-rhythm__copy p {
  max-width: 36em;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-home .home-rhythm__copy .num {
  color: var(--cyan);
}

.page-home .home-rhythm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.page-home .home-rhythm__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-rhythm__facts li {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(23, 48, 107, .44), rgba(14, 31, 69, .5));
}

.page-home .home-rhythm__facts .num {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--cyan);
}

.page-home .home-rhythm__facts li > span + span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .page-home .home-league-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .home-archive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 940px) {
  .page-home .home-rhythm__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }
}

@media (min-width: 980px) {
  .page-home .home-points-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-arena__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .page-home .home-league-layout {
    grid-template-columns: minmax(0, 1fr) 288px;
    align-items: start;
  }

  .page-home .home-league-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .home-league-card:nth-child(1) {
    grid-column: span 6;
  }

  .page-home .home-league-card:nth-child(2),
  .page-home .home-league-card:nth-child(4) {
    grid-column: span 3;
  }

  .page-home .home-league-card:nth-child(3),
  .page-home .home-league-card:nth-child(5) {
    grid-column: span 3;
    margin-top: 22px;
  }

  .page-home .home-league-aside img {
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__title {
    transform: none;
  }

  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
