.page-home {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--bg-primary);
  color: var(--text-main);
}

.page-home .hm-breadcrumb {
  padding-block: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
}

.page-home .hm-breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.page-home .hm-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.page-home .hm-breadcrumb .breadcrumb-sep {
  margin-inline: 8px;
  color: var(--border-color);
}

.page-home .hm-breadcrumb span[aria-current="page"] {
  color: var(--accent-cyan);
}

.page-home .hm-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.page-home .hm-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-cyan);
  transform: skewX(-35deg);
}

.page-home .hm-hero {
  position: relative;
  padding-bottom: 56px;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan) 16%, var(--accent-orange) 38%, var(--accent-cyan) 55%, var(--accent-green) 72%, transparent);
  opacity: 0.65;
}

.page-home .hm-hero::after {
  content: "";
  display: block;
  width: 76%;
  max-width: 720px;
  height: 2px;
  margin: 64px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-cyan) 25%, var(--accent-orange) 50%, var(--accent-green) 75%, transparent 100%);
}

.page-home .hm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-block: 40px 0;
  align-items: start;
}

.page-home .hm-hero-copy h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.95rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.page-home .hm-hero-lead {
  margin: 20px 0 0;
  max-width: 34em;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-home .hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .hm-sheen-btn {
  position: relative;
  overflow: hidden;
}

.page-home .hm-sheen-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease);
}

.page-home .hm-sheen-btn:hover::after {
  left: 120%;
}

.page-home .hm-mast-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  max-width: 560px;
}

.page-home .hm-mast-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .hm-mast-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange);
}

.page-home .hm-mast-list a {
  font-size: 0.9rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.page-home .hm-mast-list a:hover {
  color: var(--accent-cyan);
}

.page-home .hm-hero-figure {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home .hm-hero-figure::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -22px;
  width: 120px;
  height: 64px;
  border: 2px solid var(--accent-cyan);
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 0 60px;
  transform: rotate(-14deg);
  opacity: 0.45;
  pointer-events: none;
}

.page-home .hm-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .hm-login {
  padding-block: 64px 0;
}

.page-home .hm-login-card {
  position: relative;
  border: 1px solid var(--border-color);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.09) 0%, transparent 42%),
    var(--bg-secondary);
  padding: 28px 24px;
}

.page-home .hm-login-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .hm-login-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.page-home .hm-login-grid {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.page-home .hm-login-main h2 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-home .hm-login-main p {
  max-width: 58em;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-home .hm-login-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-color);
}

.page-home .hm-login-facts div {
  padding-left: 12px;
  border-left: 2px solid var(--accent-cyan);
}

.page-home .hm-login-facts dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.page-home .hm-login-facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-main);
}

.page-home .hm-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-home .hm-schedule {
  padding-block: 72px 0;
}

.page-home .hm-schedule-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.page-home .hm-sec-head h2,
.page-home .hm-sec-head-row h2,
.page-home .hm-maintenance-top h2,
.page-home .hm-compare > .container > h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-home .hm-schedule-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-sub);
}

.page-home .hm-schedule-layout {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.page-home .hm-schedule-figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.page-home .hm-schedule-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.page-home .hm-schedule-figure figcaption {
  padding: 10px 4px 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.page-home .hm-league-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.page-home .hm-league-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-sub);
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .hm-league-tab:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.page-home .hm-league-more {
  color: var(--accent-orange);
  border-style: dashed;
}

.page-home .hm-league-panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.page-home .hm-league-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.page-home .hm-league-badge {
  padding: 4px 12px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.page-home .hm-league-round {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-sub);
}

.page-home .hm-match-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}

.page-home .hm-match-list li {
  position: relative;
  padding: 12px 0 12px 16px;
  border-bottom: 1px dashed var(--border-color);
}

.page-home .hm-match-list li:last-child {
  border-bottom: 0;
}

.page-home .hm-match-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 14px;
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-cyan));
  transform: skewX(-20deg);
}

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

.page-home .hm-match-state {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-green);
}

.page-home .hm-match-score {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-main);
}

.page-home .hm-match-note {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-sub);
}

.page-home .hm-reports {
  padding-block: 72px 0;
}

.page-home .hm-sec-head-row {
  display: grid;
  gap: 20px;
  align-items: end;
}

.page-home .hm-sec-head-copy h2 {
  max-width: 18em;
}

.page-home .hm-reports-more {
  justify-self: start;
}

.page-home .hm-report-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.page-home .hm-report-card {
  position: relative;
  padding: 26px 22px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  overflow: hidden;
}

.page-home .hm-report-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
}

.page-home .hm-report-card--orange::before {
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
}

.page-home .hm-report-card--green::before {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
}

.page-home .hm-report-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 40px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-orange) 0%, transparent 72%);
  transform: skewX(-18deg);
  opacity: 0.28;
  pointer-events: none;
}

.page-home .hm-report-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .hm-report-league {
  padding: 3px 10px;
  background: rgba(0, 209, 255, 0.12);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.page-home .hm-report-round {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
}

.page-home .hm-report-card h3 {
  margin: 16px 0 12px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 900;
}

.page-home .hm-report-body {
  margin: 0;
}

.page-home .hm-report-seg {
  padding: 10px 0;
  border-top: 1px dashed var(--border-color);
}

.page-home .hm-report-seg dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.page-home .hm-report-seg dd {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-main);
}

.page-home .hm-report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.page-home .hm-report-link:hover {
  border-color: var(--accent-cyan);
}

.page-home .hm-report-stats {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-sub);
}

.page-home .hm-report-viz {
  margin: 24px 0 0;
  padding: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.page-home .hm-report-viz img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.page-home .hm-report-viz figcaption {
  padding: 10px 4px 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.page-home .hm-compare {
  padding-block: 72px 0;
}

.page-home .hm-compare-desc {
  max-width: 46em;
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-sub);
}

.page-home .hm-compare-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.page-home .hm-compare-metric {
  padding: 20px 18px 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.page-home .hm-compare-metric h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

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

.page-home .hm-metric-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
}

.page-home .hm-metric-league {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-main);
}

.page-home .hm-metric-track {
  height: 18px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .hm-metric-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-inline: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-main);
  background: linear-gradient(90deg, var(--accent-cyan), rgba(255, 255, 255, 0.5));
}

.page-home .hm-fill-pl { width: 78%; }
.page-home .hm-fill-ll { width: 72%; }
.page-home .hm-fill-csl { width: 64%; }
.page-home .hm-fill-pos-pl { width: 62%; }
.page-home .hm-fill-pos-ll { width: 67%; }
.page-home .hm-fill-pos-csl { width: 60%; }
.page-home .hm-fill-st-pl { width: 70%; }
.page-home .hm-fill-st-ll { width: 63%; }
.page-home .hm-fill-st-csl { width: 55%; }

.page-home .hm-compare-source {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.page-home .hm-maintenance {
  padding-block: 72px 0 96px;
}

.page-home .hm-maintenance-top {
  display: grid;
  gap: 24px;
}

.page-home .hm-maintenance-figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.page-home .hm-maintenance-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 4;
  object-fit: cover;
}

.page-home .hm-maintenance-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 2px solid var(--border-color);
}

.page-home .hm-maintenance-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0 16px 22px;
  border-bottom: 1px dashed var(--border-color);
}

.page-home .hm-maintenance-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  transform: rotate(45deg);
}

.page-home .hm-maint-period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.page-home .hm-maint-name {
  font-size: 0.94rem;
  color: var(--text-main);
}

.page-home .hm-maint-state {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--accent-green);
}

@media (min-width: 860px) {
  .page-home .hm-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 56px;
    padding-top: 64px;
  }

  .page-home .hm-hero-figure {
    position: sticky;
    top: 24px;
  }

  .page-home .hm-login-card {
    padding: 36px 40px;
  }

  .page-home .hm-login-grid {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: center;
  }

  .page-home .hm-login-actions {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
  }

  .page-home .hm-login-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hm-schedule-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 32px;
    max-width: none;
  }

  .page-home .hm-schedule-layout {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
    gap: 36px;
    align-items: start;
  }

  .page-home .hm-schedule-figure {
    position: sticky;
    top: 24px;
  }

  .page-home .hm-sec-head-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .page-home .hm-reports-more {
    justify-self: end;
  }

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

  .page-home .hm-report-card:first-child {
    grid-column: span 2;
  }

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

  .page-home .hm-maintenance-top {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: center;
  }

  .page-home .hm-maintenance-figure {
    margin: 0;
  }

  .page-home .hm-maintenance-item {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .page-home .hm-maint-state {
    margin-left: auto;
    align-self: center;
  }
}

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

  .page-home .hm-report-card:first-child {
    grid-column: auto;
  }

  .page-home .hm-schedule-layout {
    grid-template-columns: minmax(240px, 0.66fr) minmax(0, 1.6fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-sheen-btn::after {
    display: none;
  }

  .page-home .hm-hero-figure::after,
  .page-home .hm-report-card::after {
    transition: none;
  }
}
