.page-home {
  --home-mint-soft: rgba(38, 242, 184, 0.08);
  --home-mint-line: rgba(38, 242, 184, 0.35);
  --home-blue-soft: rgba(77, 140, 255, 0.08);
}

/* reveal */
.page-home.js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.page-home.js .page-home [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* breadcrumbs spacing */
.page-home .breadcrumbs {
  padding-top: 14px;
  padding-bottom: 4px;
}

/* HERO */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-block: 0 clamp(24px, 4vw, 48px);
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-home .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-home .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.65) contrast(1.05);
}
.page-home .hero-fade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(38, 242, 184, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.35) 0%, rgba(5, 10, 18, 0.9) 72%, var(--bg) 100%);
}
.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  padding-top: clamp(20px, 3.4vw, 40px);
}

.page-home .hero-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--text);
  max-width: 18ch;
}
.page-home .hero-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.78;
}

/* League switcher */
.page-home .league-tabs {
  display: flex;
  gap: 2px;
  padding: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.page-home .league-tabs::-webkit-scrollbar {
  display: none;
}
.page-home .league-tab {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 16px 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.page-home .league-tab::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 2px;
  background: var(--mint);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.page-home .league-tab:hover,
.page-home .league-tab:focus-visible {
  color: var(--text);
  background: var(--home-blue-soft);
  outline: none;
}
.page-home .league-tab:focus-visible {
  box-shadow: 0 0 0 2px var(--blue);
}
.page-home .league-tab.is-active {
  color: var(--text);
  background: var(--home-mint-soft);
  box-shadow: inset 0 -1px 0 var(--mint);
}
.page-home .league-tab.is-active::before {
  opacity: 1;
}

/* Hero stats */
.page-home .hero-stats {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  border-top: 1px solid var(--line-soft);
}
.page-home .hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.page-home .hero-stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
}
.page-home .hero-stat-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* BOARD */
.page-home .board-section {
  padding-block: clamp(28px, 4vw, 56px);
}
.page-home .board-section .section-head {
  margin-bottom: clamp(16px, 2.4vw, 24px);
}
.page-home .board {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .page-home .board {
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 2.4fr) minmax(190px, 0.95fr);
    gap: 14px;
    align-items: start;
  }
}

.page-home .board-side,
.page-home .board-main,
.page-home .board-updates {
  padding: 14px 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.page-home .board-updates.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .board-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* filter list */
.page-home .filter-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 2px;
}
.page-home .filter-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.84rem;
  color: var(--muted);
}
.page-home .filter-list li.is-active {
  color: var(--text);
  background: var(--home-mint-soft);
  border-color: var(--line);
}
.page-home .filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim);
}
.page-home .board-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  background: var(--home-blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.page-home .board-switch::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px var(--home-mint-soft);
}
.page-home .board-switch:hover,
.page-home .board-switch:focus-visible {
  color: var(--text);
  border-color: var(--mint);
  outline: none;
}

/* board main */
.page-home .board-main-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.page-home .board-main-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.page-home .board-main-head p {
  margin: 0;
  color: var(--dim);
  font-size: 0.74rem;
  font-family: var(--font-mono);
}

.page-home .match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .match-card {
  padding: 10px 12px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.page-home .match-card:hover,
.page-home .match-card:focus-within {
  border-color: var(--line-soft);
  box-shadow: 0 0 0 1px var(--home-mint-line);
}
.page-home .match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.page-home .match-clock {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.page-home .match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.page-home .match-team {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-home .match-team--away {
  text-align: right;
}
.page-home .match-score {
  color: var(--text);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding: 0 4px;
}
.page-home .match-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.page-home .match-events {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-home .match-sub {
  color: var(--dim);
  font-size: 0.7rem;
}

/* update panel */
.page-home .update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.page-home .update-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-home .update-item:last-child {
  border-bottom: none;
}
.page-home .update-time {
  color: var(--amber);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  white-space: nowrap;
}
.page-home .update-match {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* SWITCH SECTION */
.page-home .switch-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .page-home .switch-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
.page-home .switch-step {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  clip-path: var(--clip);
}
.page-home .switch-step::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent 70%);
  opacity: 0.35;
}
.page-home .switch-step-num {
  display: block;
  margin-bottom: 10px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.page-home .switch-step h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 600;
}
.page-home .switch-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.72;
}

/* SCORE DEMO */
.page-home .match-demo {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .page-home .match-demo {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 30px;
    align-items: stretch;
  }
}
.page-home .match-demo-visual .media-frame {
  height: 100%;
}
.page-home .match-demo-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.page-home .match-demo-lead {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.78;
}
.page-home .match-demo-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.page-home .match-demo-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.7;
}
.page-home .match-demo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--mint);
}
.page-home .match-demo-key {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--home-mint-soft);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.page-home .match-demo-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--mint);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* MOBILE SECTION */
.page-home .mobile-block {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .page-home .mobile-block {
    grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.7fr);
    gap: 36px;
  }
}
.page-home .mobile-copy h2 {
  margin: 10px 0 12px;
}
.page-home .mobile-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.78;
  max-width: 46ch;
}
.page-home .mobile-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .mobile-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.page-home .mobile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 9px;
  height: 1px;
  background: var(--blue);
}
.page-home .mobile-note {
  margin: 0 0 16px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.page-home .mobile-visual img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 879px) {
  .page-home .mobile-visual img {
    max-height: 360px;
    object-fit: cover;
    object-position: center 35%;
  }
}

/* DATA SECTION */
.page-home .data-block {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .page-home .data-block {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: start;
  }
}
.page-home .data-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .data-facts li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.page-home .data-fact-key {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
}
.page-home .data-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}
.page-home .data-visual .media-frame {
  margin-bottom: 12px;
}
.page-home .data-caption {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.7;
}
.page-home .data-caption a {
  color: var(--blue);
  text-underline-offset: 3px;
}
.page-home .data-caption a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ENTRY GRID */
.page-home .entry-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
.page-home .entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  clip-path: var(--clip);
}
.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  border-color: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}
.page-home .entry-card:focus-visible {
  box-shadow: 0 0 0 2px var(--blue);
}
.page-home .entry-index {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.page-home .entry-title {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.45;
}
.page-home .entry-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}
.page-home .entry-arrow {
  margin-top: auto;
  padding-top: 10px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line-soft);
}

/* final narrow-screen tightening */
@media (max-width: 520px) {
  .page-home .hero-stats {
    gap: 10px 18px;
  }
  .page-home .hero-stat-num {
    font-size: 1.25rem;
  }
  .page-home .board-side,
  .page-home .board-main,
  .page-home .board-updates {
    padding: 12px 12px 14px;
  }
  .page-home .match-team {
    font-size: 0.86rem;
  }
  .page-home .match-score {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
