.page-home {
  --page-gutter: clamp(16px, 5vw, 40px);
  --page-section-space: clamp(72px, 9vw, 128px);
  --page-chapter-size: clamp(2.8rem, 5vw, 5rem);
  position: relative;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.page-home__container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.page-home__breadcrumbs {
  position: absolute;
  top: 88px;
  left: var(--page-gutter);
  z-index: 30;
}

.page-home__breadcrumbs ol {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home__breadcrumbs .breadcrumbs__item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
}

.page-home__breadcrumbs .breadcrumbs__item a {
  color: var(--muted);
  text-decoration: none;
}

.page-home__breadcrumbs .breadcrumbs__item a:hover {
  color: var(--accent);
}

.page-home__breadcrumbs .breadcrumbs__item + .breadcrumbs__item::before {
  content: "／";
  margin-right: 6px;
  color: var(--border);
}

.page-home__chapters {
  display: none;
}

@media (min-width: 1024px) {
  .page-home__chapters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
  }

  .page-home__chapters a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1rem;
    color: var(--muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }

  .page-home__chapters a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(4px);
  }
}

.page-home__hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 12vh, 120px) 0 64px;
  isolation: isolate;
}

.page-home__hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.55;
  pointer-events: none;
}

.page-home__hero-grid::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 40%;
  background: radial-gradient(ellipse at center right, rgba(255, 93, 44, 0.1), transparent 70%);
}

.page-home__hero-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .page-home__hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 60px;
  }
}

.page-home__hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.page-home__hero-tag {
  margin-bottom: 4px;
}

.page-home__hero-brand {
  font-family: var(--font-accent);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
  margin: 0;
}

.page-home__hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-home__hero-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  max-width: 38ch;
}

.page-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.page-home__hero-stats {
  display: flex;
  gap: clamp(16px, 4vw, 48px);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.page-home__hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home__hero-stat strong {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--accent);
}

.page-home__hero-stat small {
  font-size: 0.8rem;
  color: var(--muted);
}

.page-home__hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.05);
  border: 1px solid var(--border);
}

.page-home__hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 14, 26, 0.4), rgba(10, 14, 26, 0.9));
}

.page-home__hero-number {
  position: absolute;
  right: -4%;
  bottom: -6%;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(14rem, 32vw, 26rem);
  line-height: 0.8;
  color: rgba(255, 93, 44, 0.14);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.page-home__hero-chart {
  position: absolute;
  left: 6%;
  bottom: 12%;
  width: min(88%, 420px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(255, 93, 44, 0.25));
}

.page-home__hero-chart::-webkit-backdrop-filter {
  backdrop-filter: blur(2px);
}

@media (max-width: 959px) {
  .page-home__hero {
    padding-top: 120px;
  }

  .page-home__hero-visual {
    min-height: 260px;
    order: -1;
  }

  .page-home__hero-number {
    font-size: 12rem;
  }

  .page-home__hero-chart {
    bottom: 8%;
  }
}

.page-home__matches {
  background: var(--bg);
  padding: var(--page-section-space) 0;
  border-top: 1px solid var(--border);
}

.page-home__section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 48px;
}

.page-home__section-head .section-number {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: var(--page-chapter-size);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  min-width: 1.6em;
}

.page-home__section-head h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 6px 0 10px;
}

.page-home__section-head .section-overline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
  margin: 0;
}

.page-home__section-head .section-lead {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  max-width: 72ch;
}

.page-home__matches-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .page-home__matches-content {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    gap: 48px;
    align-items: start;
  }
}

.page-home__matches-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 300px;
}

.page-home__matches-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 260px;
}

.page-home__matches-poster .media__label {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.85);
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.page-home__matches-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home__matches-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home__filter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  font-size: 0.85rem;
  cursor: default;
}

.page-home__filter.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.page-home__matches-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
}

.page-home__matches-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.page-home__matches-table th {
  background: var(--bg-card);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.page-home__matches-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(27, 41, 68, 0.4);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
}

.page-home__matches-table tbody tr:nth-child(even) {
  background: rgba(19, 27, 46, 0.65);
}

.page-home__matches-table tbody tr:hover {
  background: rgba(255, 93, 44, 0.08);
}

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

.page-home__matches-table td:first-child {
  color: var(--success);
  font-family: var(--font-accent);
  font-weight: 700;
}

.page-home__matches-table td:nth-child(2) {
  color: var(--muted);
}

.page-home__matches-table td:nth-child(3) {
  font-weight: 700;
}

.page-home__matches-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.page-home__text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.page-home__text-link:hover {
  text-decoration: underline;
}

.page-home__compare {
  padding: var(--page-section-space) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-home__compare-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

@media (min-width: 840px) {
  .page-home__compare-panel {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
  }
}

.page-home__path {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px 24px;
  position: relative;
}

.page-home__path h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.page-home__path--new {
  border-color: rgba(57, 255, 136, 0.5);
}

.page-home__path--new h3 {
  border-left-color: var(--success);
}

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

.page-home__path-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}

.page-home__path-list li:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}

.page-home__path-step {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.page-home__path--old .page-home__path-step {
  background: rgba(255, 93, 44, 0.12);
  border-color: rgba(255, 93, 44, 0.4);
  color: var(--accent);
}

.page-home__path--new .page-home__path-step {
  background: rgba(57, 255, 136, 0.12);
  border-color: rgba(57, 255, 136, 0.45);
  color: var(--success);
}

.page-home__path-list li span:last-child {
  font-size: 0.92rem;
}

.page-home__compare-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

@media (min-width: 840px) {
  .page-home__compare-badge {
    width: 90px;
    padding: 20px 12px;
  }
}

.page-home__compare-badge span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-home__compare-badge strong {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  display: block;
  margin: 4px 0;
}

.page-home__compare-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 840px) {
  .page-home__compare-visual {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

.page-home__compare-visual img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  display: block;
}

.page-home__compare-note {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home__compare-note p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

.page-home__archive {
  padding: var(--page-section-space) 0;
  background: var(--bg);
}

.page-home__archive-visual {
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--border);
}

.page-home__archive-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85) sepia(0.15);
}

.page-home__archive-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(10, 14, 26, 0.85);
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text);
  border: 1px solid var(--border);
}

.page-home__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 760px) {
  .page-home__timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-home__timeline-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 24px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home__timeline-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.page-home__timeline-dot {
  position: absolute;
  top: -1px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(57, 255, 136, 0.5);
}

.page-home__timeline-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 12px;
  color: var(--text);
}

.page-home__timeline-item p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.page-home__archive-link {
  display: flex;
  justify-content: center;
}

.page-home__round {
  padding: var(--page-section-space) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.page-home__round-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .page-home__round-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: start;
  }
}

.page-home__round-status {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.page-home__round-status .section-number {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: var(--page-chapter-size);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--success);
}

.page-home__round-status h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}

.page-home__round-status .section-overline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
  margin: 0;
}

.page-home__round-status .section-lead {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

.page-home__round-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-home__round-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  min-width: 132px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home__round-stat strong {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text);
}

.page-home__round-stat strong span {
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 2px;
}

.page-home__round-stat small {
  font-size: 0.82rem;
  color: var(--muted);
}

.page-home__round-next {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home__round-next h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
}

.page-home__round-next p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.page-home__round-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home__round-help {
  font-size: 0.85rem;
}

.page-home__round-help .page-home__text-link {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 480px) {
  .page-home__hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .page-home__section-head {
    gap: 12px;
  }

  .page-home__matches-table th,
  .page-home__matches-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}
