.page-home {
  --hero-green: rgba(0, 230, 118, 0.14);
  --hero-orange: rgba(255, 109, 0, 0.12);
  --muted-ink: #5A6B7C;
  --panel-dim: rgba(245, 247, 250, 0.06);
  --line-dim: rgba(245, 247, 250, 0.14);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .section-head {
  margin-bottom: 2rem;
}

.page-home .section-kicker {
  font-family: var(--font-data);
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--steel-mist);
  margin-bottom: 0.5rem;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--porcelain);
}

.page-home .section-desc {
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.78);
  max-width: 78em;
}

.page-home .home-hero {
  background: linear-gradient(135deg, #0A1F44 0%, #071330 75%);
  color: var(--porcelain);
  padding: 2.5rem 0 3.5rem;
  position: relative;
}

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

.page-home .hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--field-green);
  margin: 0 0 1rem;
}

.page-home .kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-orange);
  box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.18);
  flex: 0 0 auto;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--porcelain);
}

.page-home .hero-lead {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--steel-mist);
  max-width: 34em;
  margin: 0 0 1.75rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0 0 2.25rem;
}

.page-home .hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  max-width: 560px;
}

.page-home .metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(0, 230, 118, 0.55);
  background: rgba(245, 247, 250, 0.05);
}

.page-home .metric-num {
  font-family: var(--font-data);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--field-green);
}

.page-home .metric-label {
  font-size: 0.82rem;
  color: var(--steel-mist);
}

.page-home .hero-visual {
  position: relative;
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.page-home .hero-img {
  width: 100%;
  min-height: 260px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .hero-flow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48%;
  pointer-events: none;
}

.page-home .rank-section {
  background: var(--ice-white);
  color: var(--ink-blue);
  padding: 3.25rem 0;
}

.page-home .rank-section .section-title {
  color: var(--ink-blue);
}

.page-home .rank-section .section-desc {
  color: var(--muted-ink);
}

.page-home .rank-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .rank-card {
  background: var(--porcelain);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  border-top: 4px solid var(--field-green);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.page-home .rank-card:hover,
.page-home .rank-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 31, 68, 0.14);
}

.page-home .rank-card--member {
  border-top-color: var(--signal-orange);
}

.page-home .rank-card--loyalty {
  border-top-color: var(--deep-teal);
}

.page-home .rank-card h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.35;
  margin: 0.85rem 0 0.55rem;
  color: var(--ink-blue);
}

.page-home .rank-card p {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--muted-ink);
  margin: 0 0 1rem;
}

.page-home .rank-card .arrow-link {
  color: var(--deep-teal);
}

.page-home .card-foot {
  margin-top: auto;
}

.page-home .schedule-section {
  background: var(--night-blue);
  color: var(--porcelain);
  padding: 3.25rem 0;
}

.page-home .schedule-head {
  margin-bottom: 1.5rem;
}

.page-home .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}

.page-home .league-tab {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line-dim);
  border-radius: 3px;
  background: var(--panel-dim);
  color: var(--steel-mist);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.page-home .league-tab:hover {
  color: var(--porcelain);
  border-color: var(--field-green);
}

.page-home .league-tab.is-active {
  background: var(--field-green);
  color: var(--ink-blue);
  border-color: var(--field-green);
  font-weight: 700;
}

.page-home .schedule-layout {
  display: grid;
  gap: 1.25rem;
}

.page-home .schedule-panel {
  display: grid;
  gap: 1rem;
}

.page-home .match-card {
  background: var(--panel-dim);
  border-left: 4px solid var(--deep-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.2rem;
}

.page-home .match-card--live {
  border-left-color: var(--field-green);
}

.page-home .match-card--done {
  border-left-color: var(--steel-mist);
}

.page-home .match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.page-home .match-league {
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--steel-mist);
}

.page-home .match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .match-team {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--porcelain);
}

.page-home .match-team:first-child {
  text-align: left;
}

.page-home .match-team:last-child {
  text-align: right;
}

.page-home .match-score {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-data);
}

.page-home .score-num {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--field-green);
}

.page-home .match-card--done .score-num {
  color: var(--steel-mist);
}

.page-home .score-colon {
  font-size: 1.1rem;
  color: var(--steel-mist);
}

.page-home .match-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin-top: 0.75rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--steel-mist);
}

.page-home .schedule-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-home .schedule-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-home .schedule-note {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--steel-mist);
}

.page-home .schedule-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 4px;
  height: 100%;
  background: var(--signal-orange);
  border-radius: 2px;
}

.page-home .injury-section {
  background: var(--wine);
  color: var(--porcelain);
  padding: 3.25rem 0;
}

.page-home .injury-section .section-desc {
  color: rgba(245, 247, 250, 0.8);
}

.page-home .injury-layout {
  display: grid;
  gap: 1.5rem;
}

.page-home .injury-calendar {
  background: rgba(245, 247, 250, 0.08);
  border-radius: var(--radius);
  padding: 1.3rem;
}

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

.page-home .cal-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--porcelain);
}

.page-home .cal-badge {
  background: var(--signal-orange);
  color: var(--ink-blue);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}

.page-home .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: rgba(245, 247, 250, 0.7);
  margin-bottom: 0.45rem;
}

.page-home .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.page-home .cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  border-radius: 3px;
  background: rgba(245, 247, 250, 0.06);
  color: var(--porcelain);
  font-family: var(--font-data);
  font-size: 0.82rem;
}

.page-home .cal-day--empty {
  background: transparent;
}

.page-home .cal-day--injury {
  background: rgba(255, 109, 0, 0.18);
  color: var(--signal-orange);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 109, 0, 0.52);
}

.page-home .cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: rgba(245, 247, 250, 0.85);
}

.page-home .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.page-home .legend-dot--injury {
  background: var(--signal-orange);
}

.page-home .legend-dot--normal {
  background: rgba(245, 247, 250, 0.3);
}

.page-home .injury-content {
  display: grid;
  gap: 1.1rem;
}

.page-home .injury-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

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

.page-home .injury-extra h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--porcelain);
}

.page-home .injury-extra p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.85);
  margin: 0 0 0.8rem;
}

.page-home .injury-extra .arrow-link {
  color: var(--field-green);
}

.page-home .nightly-section {
  background: var(--ink-blue);
  color: var(--porcelain);
  padding: 3.25rem 0;
}

.page-home .nightly-wrap {
  display: grid;
  gap: 1.5rem;
}

.page-home .nightly-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--steel-mist);
  margin: 0 0 1.4rem;
}

.page-home .countdown-box {
  background: rgba(255, 109, 0, 0.12);
  border-left: 6px solid var(--signal-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.5rem;
  margin: 0 0 1.5rem;
}

.page-home .countdown-label {
  display: block;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--steel-mist);
  margin-bottom: 0.45rem;
}

.page-home .countdown-time {
  display: block;
  font-family: var(--font-data);
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--signal-orange);
  letter-spacing: 0.04em;
}

.page-home .countdown-status {
  display: block;
  font-size: 0.78rem;
  color: var(--steel-mist);
  margin-top: 0.45rem;
}

.page-home .nightly-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.page-home .nightly-links .arrow-link {
  color: var(--field-green);
}

.page-home .nightly-visual {
  border-radius: var(--radius);
  overflow: hidden;
}

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

.page-home .league-section {
  background: var(--deep-teal);
  color: var(--porcelain);
  padding: 3.25rem 0;
}

.page-home .league-section .section-desc {
  color: rgba(245, 247, 250, 0.8);
}

.page-home .league-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.page-home .league-item {
  position: relative;
  background: rgba(245, 247, 250, 0.07);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.page-home .league-item:hover {
  background: rgba(245, 247, 250, 0.12);
  transform: translateY(-3px);
}

.page-home .league-item::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 52px;
  height: 52px;
  background: rgba(0, 230, 118, 0.14);
  transform: rotate(45deg);
}

.page-home .league-abbr {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--field-green);
}

.page-home .league-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--porcelain);
}

.page-home .league-num {
  font-size: 0.78rem;
  color: rgba(245, 247, 250, 0.65);
}

.page-home .venue-entry {
  background: var(--indigo);
  color: var(--porcelain);
  border-radius: 6px;
  padding: 1.8rem;
  display: grid;
  gap: 1.5rem;
}

.page-home .venue-copy h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 0.7rem;
  color: var(--porcelain);
}

.page-home .venue-copy p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.85);
  margin: 0 0 1.2rem;
}

.page-home .venue-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
}

.page-home .venue-fact {
  background: rgba(245, 247, 250, 0.08);
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.page-home .venue-fact dt {
  font-family: var(--font-data);
  font-size: 1.3rem;
  color: var(--field-green);
}

.page-home .venue-fact dd {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: rgba(245, 247, 250, 0.7);
}

.page-home .trust-section {
  background: var(--ice-white);
  padding: 3rem 0;
}

.page-home .trust-card {
  background: var(--porcelain);
  border-left: 6px solid var(--field-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem;
}

.page-home .trust-copy h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink-blue);
  margin: 0 0 0.7rem;
}

.page-home .trust-copy p {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted-ink);
  margin: 0 0 1.3rem;
}

.page-home .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.page-home .trust-links .arrow-link {
  color: var(--deep-teal);
}

@media (min-width: 760px) {
  .page-home .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.6rem;
  }

  .page-home .hero-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .rank-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }

  .page-home .schedule-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .page-home .schedule-panel {
    gap: 1.1rem;
  }

  .page-home .schedule-visual {
    justify-content: center;
  }

  .page-home .injury-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: start;
  }

  .page-home .injury-content {
    grid-template-columns: 1fr;
  }

  .page-home .nightly-wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.4rem;
    align-items: center;
  }

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

  .page-home .venue-entry {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .page-home .venue-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero,
  .page-home .rank-section,
  .page-home .schedule-section,
  .page-home .injury-section,
  .page-home .nightly-section,
  .page-home .league-section {
    padding: 4.5rem 0;
  }

  .page-home .trust-section {
    padding: 3.5rem 0;
  }

  .page-home .hero-title {
    font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  }

  .page-home .hero-metrics {
    gap: 1.2rem;
  }

  .page-home .metric-item {
    padding: 1rem 1.1rem;
  }

  .page-home .league-grid {
    gap: 1.25rem;
    margin-bottom: 2.4rem;
  }

  .page-home .venue-entry {
    padding: 2.2rem;
    gap: 2.4rem;
  }

  .page-home .venue-fact dt {
    font-size: 1.5rem;
  }

  .page-home .trust-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.2rem;
  }

  .page-home .trust-copy p {
    margin-bottom: 0;
  }

  .page-home .trust-links {
    flex-direction: column;
    gap: 0.7rem;
    flex: 0 0 220px;
    text-align: right;
  }
}
