.page-home {
  --home-line: rgba(255, 255, 255, 0.07);
  --home-green-glow: rgba(0, 196, 90, 0.18);
  display: block;
  background: var(--c-dark);
  color: var(--c-gray);
  overflow-x: hidden;
}
.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4 {
  font-family: var(--font-head);
  color: var(--c-pale);
  line-height: 1.12;
  margin: 0 0 0.35em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.page-home h1 {
  font-size: clamp(34px, 6vw, 58px);
}
.page-home h2 {
  font-size: clamp(24px, 3.4vw, 34px);
}
.page-home h3 {
  font-size: 18px;
}
.page-home p {
  line-height: 1.6;
  margin: 0 0 12px;
}
.page-home img {
  max-width: 100%;
  height: auto;
}
.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--c-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-home .c-btn {
  border-radius: 0;
  font-weight: 700;
  display: inline-block;
}
.page-home .c-btn--primary {
  background: var(--c-green);
  color: var(--c-dark);
  border: 2px solid var(--c-green);
}
.page-home .c-btn--primary:hover {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}
.page-home .c-btn--ghost {
  border: 2px solid var(--c-green);
  color: var(--c-light-green);
  background: transparent;
}
.page-home .c-btn--ghost:hover {
  background: var(--c-green);
  color: var(--c-dark);
}

/* ===== Hero ===== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
  background: var(--c-dark);
  isolation: isolate;
}
.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}
.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(11, 15, 11, 0.96) 0%, rgba(11, 15, 11, 0.86) 40%, rgba(0, 90, 46, 0.55) 76%, rgba(0, 196, 90, 0.2) 100%);
}
.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding-top: 56px;
  padding-bottom: 64px;
}
.page-home .home-hero__copy {
  max-width: 720px;
}
.page-home .home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin: 18px 0 10px;
}
.page-home .home-hero__lede {
  font-size: 16px;
  color: var(--c-gray);
  max-width: 620px;
  margin: 16px 0 28px;
}
.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .home-hero__panel {
  position: relative;
  padding: 22px 20px 26px;
  background: linear-gradient(135deg, rgba(0, 196, 90, 0.16), rgba(0, 90, 46, 0.22)), var(--c-dark-gray);
  border: 1px solid var(--c-deep-green);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
}
.page-home .hero-panel__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.page-home .live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-yellow);
  animation: nglivepulse 1.6s ease-in-out infinite;
}
@keyframes nglivepulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.page-home .hero-stat {
  padding: 14px 8px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 2px solid var(--c-green);
  text-align: center;
}
.page-home .hero-stat__num {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: var(--c-yellow);
  font-family: var(--font-mono);
}
.page-home .hero-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-gray);
}
.page-home .hero-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 14px;
  border-left: 3px solid var(--c-green);
  margin-bottom: 14px;
}
.page-home .hero-ticker__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-green);
}
.page-home .hero-ticker__text {
  display: inline-block;
  font-size: 16px;
  color: var(--c-pale);
  animation: ngtickerflicker 3.2s ease-in-out infinite;
}
@keyframes ngtickerflicker {
  0%, 86%, 100% {
    opacity: 1;
  }
  92% {
    opacity: 0.35;
  }
}
.page-home .hero-panel__note {
  font-size: 12px;
  color: var(--c-light-green);
}
@media (min-width: 940px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    padding-top: 72px;
    padding-bottom: 92px;
  }
  .page-home .home-hero__panel {
    margin-bottom: 8px;
  }
}

/* ===== Console ===== */
.page-home .home-console {
  margin-top: 56px;
}
.page-home .console-heading {
  font-size: 28px;
  margin-bottom: 0;
}
.page-home .console-note {
  font-size: 13px;
  color: var(--c-green);
  margin: 0 0 20px;
  letter-spacing: 0.08em;
}
.page-home .console-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 20px;
}
.page-home .console-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.page-home .console-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-green);
  margin-bottom: 16px;
}
@media (min-width: 960px) {
  .page-home .console-grid {
    grid-template-columns: 210px minmax(0, 1fr) 240px;
    align-items: start;
    gap: 20px;
  }
}

/* ===== Console: leagues ===== */
.page-home .console-leagues {
  background: var(--c-dark-gray);
  border-top: 3px solid var(--c-green);
  border-left: 1px solid var(--c-deep-green);
  border-right: 1px solid var(--c-deep-green);
  padding: 18px 0 6px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 0 100%);
  height: fit-content;
}
.page-home .console-leagues .console-title,
.page-home .console-leagues .console-sub {
  margin-left: 16px;
  margin-right: 16px;
}
.page-home .console-leagues__note {
  padding: 14px 16px 18px;
  margin: 0;
  font-size: 12px;
  color: var(--c-gray);
}
.page-home .league-nav {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.page-home .league-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  color: var(--c-gray);
  border-bottom: 1px solid var(--home-line);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.page-home .league-link:hover {
  background: var(--c-green);
  color: var(--c-dark);
  padding-left: 22px;
}
.page-home .league-link--all {
  margin-top: 8px;
  border-top: 2px solid var(--c-deep-green);
  color: var(--c-light-green);
}
.page-home .league-link--all:hover {
  background: var(--c-yellow);
  color: var(--c-dark);
}

/* ===== Console: matches ===== */
.page-home .console-matches {
  min-width: 0;
}
.page-home .match-tabs {
  display: flex;
  width: fit-content;
  border: 1px solid var(--c-deep-green);
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}
.page-home .match-tab {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-gray);
  border-right: 1px solid var(--c-deep-green);
  transition: background 0.18s ease, color 0.18s ease;
}
.page-home .match-tab:last-child {
  border-right: 0;
}
.page-home .match-tab:hover {
  background: var(--c-green);
  color: var(--c-dark);
}
.page-home .match-panel {
  background: linear-gradient(180deg, rgba(0, 90, 46, 0.12), transparent 120px), var(--c-dark-gray);
  border: 1px solid var(--c-deep-green);
  padding: var(--gap);
  scroll-margin-top: 24px;
}
.page-home .match-panel--focus {
  display: none;
}
.page-home .match-panel--focus:target {
  display: block;
}
.page-home .match-panel--focus:target + .match-panel--all {
  display: none;
}
.page-home .match-panel--all {
  display: block;
  border-top: 3px solid var(--c-green);
}
.page-home .match-panel--all:target {
  display: block;
}
.page-home .match-panel__head {
  margin-bottom: 8px;
}
.page-home .match-panel__intro {
  font-size: 13px;
  color: var(--c-gray);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-home .match-table {
  display: flex;
  flex-direction: column;
}
.page-home .match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "home score away"
    "meta meta badge";
  row-gap: 4px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--home-line);
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.page-home .match-row:hover {
  background: rgba(0, 196, 90, 0.12);
  box-shadow: inset 3px 0 0 var(--c-green);
}
.page-home .match-row--focus {
  border-left: 3px solid var(--c-yellow);
  background: linear-gradient(90deg, rgba(223, 255, 0, 0.06), transparent 55%);
}
.page-home .match-row--focus:hover {
  background: linear-gradient(90deg, rgba(223, 255, 0, 0.16), transparent 75%);
}
.page-home .match-team {
  font-size: 14px;
  color: var(--c-pale);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.page-home .match-team--home {
  grid-area: home;
}
.page-home .match-team--away {
  grid-area: away;
  text-align: right;
}
.page-home .match-score {
  grid-area: score;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-light-green);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 196, 90, 0.3);
  padding: 5px 8px;
  min-width: 52px;
  text-align: center;
}
.page-home .match-row--focus .match-score {
  color: var(--c-yellow);
  border-color: rgba(223, 255, 0, 0.35);
}
.page-home .match-meta {
  grid-area: meta;
  font-size: 11px;
  color: var(--c-gray);
}
.page-home .focus-badge {
  grid-area: badge;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-dark);
  background: var(--c-yellow);
  padding: 3px 8px;
  text-transform: uppercase;
  width: fit-content;
  justify-self: end;
}
.page-home .focus-badge--inert {
  background: transparent;
  color: var(--c-deep-green);
  border: 0;
  padding: 0;
}
@media (min-width: 700px) {
  .page-home .match-row {
    grid-template-columns: 1fr auto 1fr auto auto;
    grid-template-areas: "home score away meta badge";
    column-gap: 10px;
  }
  .page-home .match-meta {
    font-size: 12px;
  }
  .page-home .focus-badge {
    justify-self: start;
  }
}

/* ===== Console: league-blocks ===== */
.page-home .league-block {
  margin-top: 20px;
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--home-line);
  scroll-margin-top: 96px;
}
.page-home .league-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--c-green);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-deep-green);
}
.page-home .league-block__title::before {
  content: "●";
  color: var(--c-green);
  font-size: 10px;
}

/* ===== Console: tools ===== */
.page-home .console-tools {
  background: linear-gradient(165deg, rgba(0, 196, 90, 0.16), rgba(0, 0, 0, 0.2)), var(--c-dark-gray);
  border: 1px solid var(--c-deep-green);
  padding: 18px 14px 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 0 100%);
  height: fit-content;
}
.page-home .tool-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.page-home .tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  color: var(--c-gray);
  border-bottom: 1px solid var(--home-line);
  font-size: 14px;
  transition: color 0.18s ease, background 0.18s ease;
}
.page-home .tool-link .mono {
  margin-left: auto;
  font-size: 12px;
  color: var(--c-green);
}
.page-home .tool-link:hover {
  color: var(--c-yellow);
  background: rgba(223, 255, 0, 0.06);
}
.page-home .console-tools__banner {
  margin-top: 18px;
  padding: 16px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--c-yellow);
}
.page-home .console-tools__banner p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--c-pale);
}
.page-home .console-tools__banner .mono {
  font-size: 12px;
  color: var(--c-yellow);
  letter-spacing: 0.14em;
  margin: 0;
}

/* ===== Focus section ===== */
.page-home .home-focus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 64px;
  align-items: center;
}
.page-home .home-focus__desc {
  max-width: 540px;
}
.page-home .home-focus__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.page-home .home-focus__media {
  margin: 0;
  position: relative;
}
.page-home .home-focus__media img {
  display: block;
  width: 100%;
  background: var(--c-dark-gray);
  border: 1px solid var(--c-deep-green);
  padding: 6px;
  object-fit: cover;
}
.page-home .home-focus__media figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 10px;
  letter-spacing: 0.12em;
}
@media (min-width: 900px) {
  .page-home .home-focus {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

/* ===== Data section ===== */
.page-home .home-data {
  margin-top: 64px;
}
.page-home .home-data__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: linear-gradient(135deg, rgba(0, 196, 90, 0.1), rgba(0, 0, 0, 0.25) 60%);
  border: 1px solid var(--c-deep-green);
  padding: 24px;
}
.page-home .home-data__media {
  margin: 0;
}
.page-home .home-data__media img {
  display: block;
  width: 100%;
  background: #000;
  object-fit: cover;
}
.page-home .home-data__media figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 10px;
  letter-spacing: 0.1em;
}
.page-home .data-cluster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}
.page-home .data-cluster__item {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px 16px;
  border-left: 3px solid var(--c-green);
}
.page-home .data-cluster__item dt {
  font-size: 12px;
  color: var(--c-gray);
  margin: 0;
}
.page-home .data-cluster__item dd {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--c-yellow);
  margin: 6px 0 0;
}
@media (min-width: 900px) {
  .page-home .home-data__panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    padding: 36px;
  }
}

/* ===== Tools / browser section ===== */
.page-home .home-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 64px;
  align-items: center;
}
.page-home .home-tools__content {
  max-width: 600px;
}
.page-home .tool-feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.page-home .tool-feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--c-gray);
}
.page-home .tool-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--c-green);
  transform: rotate(45deg);
}
.page-home .home-tools__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .home-tools__media {
  margin: 0;
}
.page-home .home-tools__media img {
  display: block;
  width: 100%;
  background: var(--c-dark-gray);
  border: 1px solid var(--c-deep-green);
  padding: 6px;
  object-fit: cover;
}
.page-home .home-tools__media figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 10px;
  letter-spacing: 0.1em;
}
@media (min-width: 900px) {
  .page-home .home-tools {
    grid-template-columns: 1fr 400px;
    gap: 48px;
  }
}
