.page-home {
  --home-grid: rgba(35, 43, 61, 0.55);
}

.page-home h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.22;
  margin: 0.4rem 0 0.7rem;
  color: var(--chalk);
}

.page-home .section__head {
  max-width: 60ch;
  margin-bottom: 2rem;
}

.page-home .section__head p {
  color: var(--steel);
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.page-home .after-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--steel);
}

.page-home .after-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

.page-home .after-note a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* ---------- hero ---------- */

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 2.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.7);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(0, 229, 255, 0.16), transparent 58%),
    radial-gradient(90% 80% at 10% 90%, rgba(255, 199, 44, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(10, 14, 23, 0.5) 0%, rgba(10, 14, 23, 0.86) 58%, var(--ink) 100%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
}

.page-home .hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0.3rem 0 0;
  color: var(--chalk);
}

.page-home .hero__lead {
  margin: 1rem 0 0;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.8;
  max-width: 46ch;
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.page-home .hero__stats .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.page-home .hero__stats .stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- score strip ---------- */

.page-home .hero__board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem 1rem 0.75rem;
}

.page-home .board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.page-home .board__head .label {
  color: var(--chalk);
}

.page-home .score-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.2rem 0.2rem 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .score-strip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.page-home .score-strip::-webkit-scrollbar {
  height: 6px;
}

.page-home .score-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--pill);
}

.page-home .score-card {
  flex: 0 0 224px;
  scroll-snap-align: start;
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem 0.7rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .score-card:hover {
  border-color: rgba(255, 199, 44, 0.75);
  transform: translateY(-2px);
}

.page-home .score-card--live {
  border-left: 3px solid var(--red);
}

.page-home .score-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.page-home .score-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--chalk);
}

.page-home .score-card__row b {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--steel);
  line-height: 1;
}

.page-home .score-card--live .score-card__row b {
  color: var(--gold);
}

.page-home .score-card__foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--steel);
}

.page-home .board__hint {
  margin: 0.35rem 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- leagues ---------- */

.page-home .league-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
}

.page-home .league-chip {
  display: block;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(20, 26, 40, 0.6);
  color: var(--steel);
  font-size: 12.5px;
  text-align: center;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.page-home .league-chip:nth-child(7n + 3) {
  border-color: rgba(0, 229, 255, 0.28);
}

.page-home .league-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- split sections ---------- */

.page-home .split {
  display: grid;
  gap: 1.75rem;
}

.page-home .split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .split__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .split__lead {
  color: var(--steel);
  margin: 0 0 1.25rem;
  font-size: 16px;
  line-height: 1.75;
}

.page-home .panel-fields {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .panel-fields li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--steel);
}

.page-home .panel-fields .label {
  min-width: 5.6em;
  color: var(--cyan);
}

.page-home .timeline {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 1.05rem;
}

.page-home .timeline li {
  position: relative;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .timeline li::before {
  content: "";
  position: absolute;
  left: -1.33rem;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .timeline b {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--chalk);
}

/* ---------- cards matrix ---------- */

.page-home .section--cards {
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.92), rgba(10, 14, 23, 0.45));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.page-home .card-stat {
  padding-left: 0.9rem;
  border-left: 3px solid var(--gold);
}

.page-home .card-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .card-stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .matrix-wrap {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.page-home .matrix {
  display: grid;
  grid-template-columns: 88px repeat(6, minmax(42px, 1fr));
  gap: 5px;
  min-width: 460px;
}

.page-home .matrix__corner,
.page-home .matrix__col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}

.page-home .matrix__corner {
  justify-content: flex-start;
}

.page-home .matrix__row-head {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--chalk);
}

.page-home .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--steel);
  outline: 2px solid transparent;
  transition: transform 0.15s ease, outline-color 0.15s ease;
}

.page-home .cell:hover {
  transform: scale(1.09);
  outline-color: var(--chalk);
}

.page-home .cell--m0 {
  background: #161d2c;
  color: #4e5a72;
}

.page-home .cell--m1 {
  background: rgba(255, 199, 44, 0.18);
  color: var(--gold);
}

.page-home .cell--m2 {
  background: rgba(255, 199, 44, 0.42);
  color: #14100a;
}

.page-home .cell--m3 {
  background: rgba(255, 199, 44, 0.78);
  color: #14100a;
}

.page-home .cell--red {
  background: var(--red);
  color: #fff;
}

/* ---------- column ---------- */

.page-home .column__cover {
  margin: 0 0 2rem;
}

.page-home .column__grid {
  display: grid;
  gap: 2rem;
}

.page-home .column__main p {
  color: var(--steel);
  margin: 0 0 1.25rem;
  font-size: 16px;
  line-height: 1.75;
}

.page-home .column__points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.page-home .column__points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .column__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.page-home .column__points b {
  color: var(--chalk);
  font-weight: 700;
  margin-right: 0.3rem;
}

.page-home .column__aside {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-home .column__big {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .column__aside-text {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--steel);
}

.page-home .column__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .column__aside-list li {
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--chalk);
}

/* ---------- start / subscribe ---------- */

.page-home .section--start {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 229, 255, 0.09), transparent 62%),
    transparent;
}

.page-home .steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.page-home .steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
}

.page-home .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.page-home .steps b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--chalk);
}

.page-home .steps p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--steel);
}

.page-home .ios-note {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(0, 229, 255, 0.06);
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--chalk);
}

.page-home .soft-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--steel);
}

.page-home .soft-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

.page-home .soft-note a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-home .links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-home .links-row a {
  font-size: 0.95rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .links-row a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .page-home .hero {
    padding: 3rem 0 4rem;
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
    gap: 2.75rem;
    align-items: start;
  }

  .page-home .hero__board {
    padding: 1.25rem 1.25rem 1rem;
  }

  .page-home .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: center;
  }

  .page-home .split.split--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .page-home .split--reverse .split__body {
    order: 1;
  }

  .page-home .split--reverse .split__media {
    order: 2;
  }

  .page-home .column__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }

  .page-home .matrix {
    grid-template-columns: 120px repeat(6, minmax(48px, 1fr));
    gap: 6px;
    min-width: 0;
  }

  .page-home .cell {
    font-size: 0.9rem;
  }

  .page-home .league-wall {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }
}

@media (min-width: 1180px) {
  .page-home .score-card {
    flex-basis: 244px;
  }
}
