@keyframes pageHomePanelFade {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pageHomeNumberBreathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.page-home {
  --home-line: 1px solid rgba(138, 155, 171, 0.28);
  --home-card-bg: #ffffff;
  overflow-x: clip;
  background: var(--cream);
}

.page-home .container {
  position: relative;
  z-index: 1;
}

.page-home .section {
  margin-block: 24px;
}

.page-home .home-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.66);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.page-home .home-context__sep {
  color: rgba(245, 240, 232, 0.4);
}

.page-home .home-context [aria-current="page"] {
  color: var(--kiwi);
}

.page-home .hero-zone {
  position: relative;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--mist-blue) 68%, #24385e 100%);
  color: var(--white);
  padding-block: clamp(48px, 8vh, 88px) 48px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-home .hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-backdrop svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .hero-grid {
  display: grid;
  gap: 24px;
  align-items: end;
}

.page-home .hero-brand-panel .brand {
  margin-bottom: 6px;
}

.page-home .hero-brand-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.12;
  margin: 16px 0 14px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.page-home .h1-divider {
  color: var(--kiwi);
  margin-inline: 4px;
}

.page-home .hero-lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 56ch;
  color: rgba(245, 240, 232, 0.78);
  margin: 0;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero-stat-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-home .stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 16px 14px;
  backdrop-filter: blur(6px);
}

.page-home .stat-card__label {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.7);
}

.page-home .stat-card__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--kiwi);
  animation: pageHomeNumberBreathe 3.2s ease-in-out infinite;
}

.page-home .stat-card__unit {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.58);
}

.page-home .hero-media {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.page-home .board-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.24;
  color: var(--ink);
  margin: 8px 0 0;
}

.page-home .board-note {
  max-width: 42ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  background: rgba(122, 199, 79, 0.1);
  border-left: 3px solid var(--kiwi);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  color: var(--ink-soft);
}

.page-home .leagues-block {
  position: relative;
  margin-top: 26px;
}

.page-home .league-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .league-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(138, 155, 171, 0.45);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
}

.page-home .league-tab:hover {
  border-color: var(--kiwi);
  color: var(--kiwi-deep);
}

.page-home .league-radio--1:checked ~ .league-tabs label[for="league-1"],
.page-home .league-radio--2:checked ~ .league-tabs label[for="league-2"],
.page-home .league-radio--3:checked ~ .league-tabs label[for="league-3"],
.page-home .league-radio--4:checked ~ .league-tabs label[for="league-4"],
.page-home .league-radio--5:checked ~ .league-tabs label[for="league-5"],
.page-home .league-radio--6:checked ~ .league-tabs label[for="league-6"] {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(27, 42, 74, 0.22);
}

.page-home .league-radio:focus-visible ~ .league-tabs label[for] {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-home .league-panel {
  display: none;
  animation: pageHomePanelFade 0.32s ease;
}

.page-home .league-radio--1:checked ~ .league-panels .league-panel--1,
.page-home .league-radio--2:checked ~ .league-panels .league-panel--2,
.page-home .league-radio--3:checked ~ .league-panels .league-panel--3,
.page-home .league-radio--4:checked ~ .league-panels .league-panel--4,
.page-home .league-radio--5:checked ~ .league-panels .league-panel--5,
.page-home .league-radio--6:checked ~ .league-panels .league-panel--6 {
  display: block;
}

.page-home .match-grid {
  display: grid;
  gap: 14px;
}

.page-home .match-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--cream);
  border: var(--home-line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.page-home .match-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.page-home .match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .match-card__time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .match-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.page-home .match-card__meta {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.page-home .board-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--kiwi-deep);
  text-decoration: none;
}

.page-home .board-more:hover {
  color: var(--orange);
}

.page-home .board-trust {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(138, 155, 171, 0.1);
  border: var(--home-line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-home .quick-grid {
  display: grid;
  gap: 20px;
}

.page-home .route-card {
  position: relative;
  display: block;
  background: var(--home-card-bg);
  border: var(--home-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .route-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-float);
}

.page-home .route-card--schedule::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(122, 199, 79, 0.18), rgba(255, 140, 66, 0.1));
}

.page-home .route-card__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.page-home .route-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  margin: 10px 0 10px;
  color: var(--ink);
}

.page-home .route-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}

.page-home .route-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
  color: var(--kiwi);
  transition: transform 0.22s ease;
}

.page-home .route-card:hover .route-card__arrow {
  transform: translateX(4px);
}

.page-home .route-card figure {
  margin: 18px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--home-line);
}

.page-home .route-card figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .trend-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-home .trend-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.page-home .trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.page-home .trend-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.page-home .legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.page-home .legend-dot--kiwi {
  background: var(--kiwi);
}

.page-home .legend-dot--terracotta {
  background: var(--terracotta);
}

.page-home .trend-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--home-line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.page-home .updates-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.page-home .text-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--kiwi-deep);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .text-link:hover {
  color: var(--orange);
}

.page-home .updates-list {
  display: grid;
  gap: 12px;
}

.page-home .update-item {
  background: var(--white);
  border: 1px solid rgba(138, 155, 171, 0.28);
  border-left: 4px solid var(--kiwi);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .update-item:hover {
  transform: translateX(4px);
  border-left-color: var(--orange);
}

.page-home .update-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 10px 0 6px;
}

.page-home .update-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.page-home .manifesto-zone {
  background: linear-gradient(135deg, var(--deep-blue), var(--mist-blue));
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.page-home .manifesto-inner {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
}

.page-home .manifesto-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.page-home .manifesto-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  margin: 12px 0 16px;
  color: var(--white);
}

.page-home .manifesto-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.76);
  max-width: 50ch;
  margin: 0;
}

.page-home .manifesto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .page-home .hero-stat-stack {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (min-width: 992px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .hero-brand-panel {
    grid-column: 1 / 8;
  }

  .page-home .hero-stat-stack {
    grid-column: 9 / 13;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-home .hero-media {
    grid-column: 1 / 13;
    margin-top: 28px;
  }

  .page-home .manifesto-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    padding: 12px 0;
  }

  .page-home .manifesto-copy h2 {
    font-size: 44px;
  }

  .page-home .trend-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .page-home .route-card {
    padding: 32px;
  }

  .page-home .home-context {
    margin-bottom: 28px;
  }
}
