.page-home {
  --home-gap: clamp(16px, 3vw, 32px);
  --home-lime-soft: rgba(198, 245, 60, 0.1);
  --home-lime-line: rgba(198, 245, 60, 0.4);
  --home-cyan-soft: rgba(79, 214, 176, 0.12);
}

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(24px, 5vw, 56px) clamp(32px, 5vw, 68px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -14% -18% auto -18%;
  height: 640px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 62% at 74% 4%, rgba(79, 214, 176, 0.16), transparent 68%),
    radial-gradient(48% 52% at 8% 12%, rgba(198, 245, 60, 0.1), transparent 70%);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  align-items: end;
}

.page-home .home-hero__copy h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.5px;
  color: var(--mist);
}

.page-home .home-hero__lede {
  margin: 20px 0 0;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.9;
  color: var(--mist);
}

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

.page-home .hero-stats {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

.page-home .hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-left: 2px solid var(--home-lime-line);
  background: linear-gradient(90deg, var(--home-lime-soft), transparent 85%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--moss);
}

.page-home .hero-stats .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--lime);
}

.page-home .home-hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .home-hero__media .media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--moss);
}

.page-home .chapter-map {
  margin-top: clamp(30px, 5vw, 56px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, rgba(15, 30, 25, 0.94), rgba(8, 17, 14, 0.96));
  box-shadow: var(--shadow-float);
}

.page-home .chapter-map__head {
  margin-bottom: 18px;
}

.page-home .chapter-map__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.3px;
  color: var(--mist);
}

.page-home .chapter-map__head p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--moss);
  max-width: 62ch;
}

.page-home .chapter-map__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.page-home .league-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .league-card__code {
  grid-row: 1;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--home-lime-line);
  background: var(--home-lime-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-home .league-card__name {
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--mist);
}

.page-home .league-card__note {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.6;
  color: var(--moss);
}

.page-home .league-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page-home .route-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--rail);
  border: 1px solid var(--line);
}

.page-home .route-panel__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .route-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  color: var(--mist);
  transition: color 0.25s var(--ease);
}

.page-home .route-link:first-of-type {
  border-top: 0;
}

.page-home .route-link__arrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  transition: transform 0.25s var(--ease);
}

.page-home .route-link:hover .route-link__arrow,
.page-home .route-link:focus-visible .route-link__arrow {
  transform: translateX(4px);
}

.page-home .route-link:hover,
.page-home .route-link:focus-visible {
  color: var(--lime);
}

.page-home .home-recent__grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  grid-template-columns: 1fr;
  align-items: start;
}

.page-home .home-recent__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .home-recent__body h2,
.page-home .home-rail__body h2,
.page-home .home-help__head h2,
.page-home .home-speed__body h2,
.page-home .save-panel__copy h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--mist);
}

.page-home .home-recent__body > p,
.page-home .home-rail__body > p,
.page-home .home-help__head p,
.page-home .home-speed__body > p,
.page-home .save-panel__copy > p {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--moss);
}

.page-home .home-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.page-home .home-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .home-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--steel);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-home .home-table tbody th {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-home .home-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--moss);
  white-space: nowrap;
}

.page-home .home-table tbody tr:last-child th,
.page-home .home-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .home-table__score {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .home-table__score.is-latest {
  color: var(--lime);
}

.page-home .home-table tbody tr:hover {
  background: rgba(198, 245, 60, 0.07);
}

.page-home .home-recent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-home .home-band {
  height: 8px;
  margin-block: clamp(8px, 2vw, 18px);
  background: linear-gradient(90deg, var(--cyan), rgba(198, 245, 60, 0.7) 45%, rgba(44, 63, 57, 0.2));
}

.page-home .home-rail__grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-home .rail-steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .rail-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 14px;
  line-height: 1.65;
  color: var(--moss);
}

.page-home .rail-steps__code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-home .home-rail__note {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-rail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--rail);
}

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

.page-home .home-help__head {
  max-width: 68ch;
}

.page-home .help-grid {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  grid-template-columns: 1fr;
}

.page-home .help-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, var(--panel), rgba(8, 17, 14, 0.9));
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .help-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .help-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--mist);
}

.page-home .help-card__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--moss);
}

.page-home .help-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page-home .home-help__foot {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--moss);
}

.page-home .home-speed__grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-home .speed-stats {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  grid-template-columns: 1fr;
}

.page-home .speed-stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--rail);
}

.page-home .speed-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.page-home .speed-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--moss);
}

.page-home .home-speed__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .save-panel {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: 1fr;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--home-lime-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(198, 245, 60, 0.12), transparent 70%),
    linear-gradient(160deg, var(--panel), rgba(8, 17, 14, 0.96));
}

.page-home .save-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.page-home .save-panel__btn {
  border-radius: var(--radius-pill);
}

.page-home .save-panel__paths {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(22, 39, 43, 0.7);
  border: 1px solid var(--line);
}

.page-home .save-panel__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .path-link {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  color: var(--mist);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.page-home .path-link:hover,
.page-home .path-link:focus-visible {
  color: var(--lime);
  padding-left: 6px;
}

@media (min-width: 620px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hero-stats li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .page-home .chapter-map__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .route-panel {
    grid-column: 1 / -1;
  }

  .page-home .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .speed-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .home-recent__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .home-rail__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .home-speed__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .save-panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

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

  .page-home .home-hero__media {
    align-self: stretch;
  }
}

@media (min-width: 1100px) {
  .page-home .chapter-map__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .route-panel {
    grid-column: auto;
    grid-row: span 2;
  }

  .page-home .league-card:hover {
    border-color: var(--home-lime-line);
    background: rgba(22, 39, 43, 0.9);
    transform: translateY(-2px);
  }

  .page-home .help-card:hover {
    border-color: var(--home-lime-line);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .league-card,
  .page-home .help-card,
  .page-home .route-link__arrow,
  .page-home .path-link {
    transition: none;
  }

  .page-home .league-card:hover,
  .page-home .help-card:hover {
    transform: none;
  }
}
<<<END>>>
