.page-home {
  background: var(--surface-100);
  color: var(--ink-900);
  font-family: var(--font-body);
}

.page-home .page-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-700);
}

.page-home .section-label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--energy-500);
}

.page-home .section-label--green::before {
  background: var(--pitch-500);
}

.page-home .section-label--orange::before {
  background: var(--energy-500);
}

.page-home .section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-home .section-head {
  max-width: 68ch;
  margin-bottom: 2rem;
}

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

.page-home .live-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-500);
  box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.2);
  flex: none;
}

.page-home .hero-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-data);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--energy-500);
  text-transform: uppercase;
}

.page-home .home-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.page-home .hero-grid {
  display: grid;
  gap: var(--gutter);
}

.page-home .hero-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.page-home .hero-title {
  max-width: 12ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-home .hero-lede {
  max-width: 48ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.page-home .chapter-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(10, 92, 54, 0.2);
}

.page-home .chapter-list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(10, 92, 54, 0.15);
  transition: padding-left 0.2s, color 0.2s;
}

.page-home .chapter-list a:hover,
.page-home .chapter-list a:focus-visible {
  color: var(--energy-500);
  padding-left: 0.5rem;
}

.page-home .chapter-num {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--pitch-500);
}

.page-home .hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--ink-700);
}

.page-home .hero-data-wrap {
  min-width: 0;
}

.page-home .hero-data {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pitch-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.page-home .hero-data-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-home .live-panel {
  position: relative;
  z-index: 1;
  padding: var(--gutter);
}

.page-home .live-panel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.page-home .live-title {
  color: #fff;
  font-weight: 600;
}

.page-home .live-time {
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
}

.page-home .score-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-data);
  font-size: 0.9rem;
}

.page-home .score-row:last-child {
  border-bottom: 0;
}

.page-home .score-league {
  width: 2.9em;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.68rem;
  color: var(--energy-500);
  background: rgba(255, 122, 26, 0.12);
}

.page-home .score-team {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.page-home .score-num {
  min-width: 0.8rem;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.page-home .score-sep {
  color: rgba(255, 255, 255, 0.4);
}

.page-home .score-minute {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}

.page-home .hero-caption {
  margin-top: 0.75rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.page-home .home-track {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--surface-200);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), 0 100%);
  margin-bottom: 1rem;
}

.page-home .track-grid {
  display: grid;
  gap: var(--gutter);
}

.page-home .track-copy {
  min-width: 0;
}

.page-home .track-intro {
  max-width: 52ch;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.page-home .feature-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.page-home .feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
}

.page-home .feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--tech-500);
  font-family: var(--font-data);
}

.page-home .track-actions,
.page-home .switch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home .track-tip,
.page-home .switch-note {
  display: inline-flex;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-data);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--pitch-900);
  background: var(--pitch-100);
}

.page-home .track-visual {
  display: grid;
  order: -1;
}

.page-home .track-table-wrap {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.page-home .sub-heading {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.page-home .track-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-100);
  box-shadow: var(--shadow-sm);
}

.page-home .track-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem;
  border-top: 1px solid rgba(10, 31, 23, 0.08);
}

.page-home .track-row:first-child {
  border-top: 0;
}

.page-home .track-rank {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--tech-500);
}

.page-home .track-team {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .track-team strong {
  font-size: 1rem;
  font-weight: 700;
}

.page-home .track-league {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--ink-700);
}

.page-home .track-record {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--ink-700);
  white-space: nowrap;
}

.page-home .track-form {
  display: inline-flex;
  gap: 0.2rem;
}

.page-home .form-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-700);
}

.page-home .form-win {
  background: var(--pitch-500);
}

.page-home .form-draw {
  background: var(--energy-500);
}

.page-home .form-loss {
  background: var(--tech-500);
}

.page-home .track-mini-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  height: 14px;
}

.page-home .mini-cell {
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
  height: 100%;
  border-radius: 1px;
  background: var(--pitch-500);
}

.page-home .mini-cell:nth-last-child(1) {
  background: var(--tech-500);
}

@media (hover: hover) {
  .page-home .track-mini-bar {
    opacity: 0.35;
    filter: blur(1px);
    transition: opacity 0.2s, filter 0.2s;
  }

  .page-home .track-row:hover .track-mini-bar {
    opacity: 1;
    filter: none;
  }
}

.page-home .home-calendar {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--pitch-900);
  color: rgba(255, 255, 255, 0.9);
}

.page-home .calendar-bg {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

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

.page-home .home-calendar .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.page-home .home-calendar .section-label--green::before {
  background: var(--live-500);
}

.page-home .home-calendar .section-title {
  color: #fff;
}

.page-home .home-calendar .section-head p:last-child {
  margin-bottom: 0;
}

.page-home .calendar-wrap {
  margin-top: 2rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--pitch-500) transparent;
}

.page-home .calendar-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
}

.page-home .cal-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 0 240px;
  min-height: 150px;
  padding: 1rem;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.page-home .cal-item--all {
  border-color: rgba(255, 122, 26, 0.35);
  background: rgba(255, 122, 26, 0.14);
}

.page-home .cal-date {
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--live-500);
}

.page-home .cal-league {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.page-home .cal-match {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.page-home .cal-time {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-home .cal-note {
  margin-top: 1rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.page-home .home-switch {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.page-home .switch-grid {
  display: grid;
  gap: var(--gutter);
}

.page-home .switch-copy {
  min-width: 0;
}

.page-home .steps-track {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.page-home .steps-track li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-200);
}

.page-home .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--energy-500);
  color: #fff;
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 600;
}

.page-home .switch-note {
  color: var(--ink-900);
  background: var(--surface-200);
}

.page-home .switch-figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.page-home .switch-figure figcaption {
  font-family: var(--font-data);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.page-home .home-data-notes {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--pitch-100);
}

.page-home .stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(10, 92, 54, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 92, 54, 0.15);
}

.page-home .stat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1rem;
  background: var(--pitch-100);
}

.page-home .stat-cell:nth-child(5) {
  grid-column: 1 / -1;
}

.page-home .stat-num {
  font-family: var(--font-data);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--pitch-900);
}

.page-home .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-700);
}

.page-home .sync-note {
  display: grid;
  gap: 1rem;
  max-width: 78ch;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.page-home .sync-note p {
  margin: 0;
}

.page-home .sync-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.page-home .text-link {
  color: var(--tech-500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .trust-line {
  max-width: 78ch;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--pitch-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-100);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.page-home .track-visual img,
.page-home .switch-figure img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 700px) {
  .page-home .home-track {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
    margin-bottom: 1.5rem;
  }

  .page-home .stat-strip {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-home .stat-cell:nth-child(5) {
    grid-column: auto;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: 2fr 3fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
  }

  .page-home .hero-index {
    position: sticky;
    top: 7rem;
    align-self: start;
  }

  .page-home .hero-data {
    min-height: 520px;
  }

  .page-home .track-grid {
    grid-template-columns: 3fr 2fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .page-home .track-visual {
    order: 1;
  }

  .page-home .switch-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
}
