.page-home {
  --home-gap: clamp(22px, 4vw, 48px);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 106, 0, 0.1), transparent 28%),
    linear-gradient(180deg, var(--blue-deep), var(--blue-mid) 42%, var(--blue-deep));
  color: var(--white);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(640px, calc(100vh - var(--header-h)));
  padding: 44px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg, rgba(6, 18, 43, 0.96), rgba(8, 22, 48, 0.82) 46%, rgba(10, 30, 60, 0.36));
}

.page-home .home-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 30px;
}

.page-home .home-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .home-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font-size: 0.85rem;
  font-weight: 600;
}

.page-home .home-hero__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: homePulse 2.4s ease-out infinite;
}

.page-home .home-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.page-home .home-hero__lede {
  max-width: 56ch;
  margin: 0 0 26px;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

.page-home .home-hero__index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-index__item {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(6, 18, 43, 0.32);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-home .home-index__item:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--blue-deep);
}

.page-home .home-index__item:focus-visible {
  outline: 3px solid var(--orange-light);
  outline-offset: 3px;
}

.page-home .home-hero__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(6, 18, 43, 0.55);
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--green);
}

.page-home .home-hero__note {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--mist);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  opacity: 0.72;
}

.page-home .home-hero__ornament {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 46%;
  height: 42px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

@keyframes homePulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__pulse,
  .page-home .home-hero__content > * {
    animation: none !important;
  }
}

.page-home .home-today,
.page-home .home-trend,
.page-home .home-review,
.page-home .home-recall {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-home .section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 22px;
}

.page-home .home-section-index {
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .section-kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-home .section-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.12;
}

.page-home .section-head .index-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  max-width: 78ch;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.65;
}

.page-home .home-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.page-home .home-filter__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home .home-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-filter__label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.page-home .home-filter__input:checked + .home-filter__label {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--blue-deep);
}

.page-home .home-filter__input:focus-visible + .home-filter__label {
  outline: 3px solid var(--orange-light);
  outline-offset: 3px;
}

.page-home .home-filter__hint {
  color: var(--mist);
  font-size: 0.82rem;
}

.page-home .home-filter__hint-on {
  display: none;
}

.page-home .home-filter__input:checked ~ .home-filter__hint .home-filter__hint-on {
  display: inline;
  color: var(--green);
}

.page-home .home-filter__input:checked ~ .home-filter__hint .home-filter__hint-off {
  display: none;
}

.page-home .home-filter__input:checked ~ .match-list .match-card[data-focus="normal"] {
  display: none;
}

.page-home .match-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .match-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02) 58%);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .match-card[data-focus="essential"] {
  border-color: rgba(255, 106, 0, 0.5);
}

.page-home .match-card[data-focus="essential"]::before {
  content: '';
  position: absolute;
  right: 18px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.14);
}

.page-home .match-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: var(--surface-strong);
}

.page-home .match-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-home .match-card__order {
  margin-right: auto;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .match-card__match {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.page-home .match-card__score {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0;
  font-family: var(--font-data);
}

.page-home .match-card__score span {
  color: var(--mist);
  font-size: 0.95rem;
}

.page-home .match-card__score strong {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--green);
}

.page-home .match-card__summary {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .match-card__data {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
  color: var(--mist);
  font-size: 0.82rem;
}

.page-home .match-card__data b {
  margin-left: 2px;
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--white);
}

.page-home .badge--live {
  border-color: rgba(57, 255, 20, 0.4);
  color: var(--green);
}

.page-home .badge--off {
  color: var(--mist);
}

.page-home .home-trend {
  position: relative;
  background: linear-gradient(116deg, rgba(10, 30, 60, 0), rgba(255, 106, 0, 0.12) 46%, rgba(10, 30, 60, 0)), var(--blue-mid);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-trend::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.page-home .trend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .trend-chart {
  margin: 0;
  padding: 18px 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.page-home .trend-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.page-home .trend-chart figcaption {
  margin-top: 10px;
  color: var(--mist);
  font-size: 0.8rem;
}

.page-home .trend-chart__grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 3 6;
}

.page-home .trend-chart__axis text {
  fill: rgba(255, 255, 255, 0.32);
  font-family: var(--font-data);
  font-size: 10px;
  text-anchor: end;
}

.page-home .trend-chart__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .trend-chart__line--goals {
  stroke: var(--green);
}

.page-home .trend-chart__line--conceded {
  stroke: var(--orange);
}

.page-home .trend-chart__series g {
  transition: transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.page-home .trend-chart__series g:hover {
  transform: scale(1.8);
}

.page-home .trend-chart__series circle {
  stroke: var(--blue-deep);
  stroke-width: 2;
}

.page-home .trend-chart__series--goals circle {
  fill: var(--green);
}

.page-home .trend-chart__series--conceded circle {
  fill: var(--orange);
}

.page-home .trend-chart__series text {
  fill: var(--mist);
  font-family: var(--font-data);
  font-size: 11px;
  text-anchor: middle;
}

.page-home .trend-chart__labels text {
  fill: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 10px;
  text-anchor: middle;
}

.page-home .trend-chart__legend text {
  fill: var(--mist);
  font-family: var(--font-body);
  font-size: 12px;
}

.page-home .trend-chart__legend-dot--goals {
  fill: var(--green);
}

.page-home .trend-chart__legend-dot--conceded {
  fill: var(--orange);
}

.page-home .trend-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.page-home .trend-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.page-home .review-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .review-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.page-home .review-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .review-media .image-frame__note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(6, 18, 43, 0.78);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 0.78rem;
}

.page-home .review-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .review-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.page-home .review-panel__score {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--mist);
  font-size: 0.9rem;
}

.page-home .review-panel__score b {
  margin-inline: 6px;
  font-family: var(--font-data);
  font-size: 2rem;
  color: var(--white);
}

.page-home .review-stats {
  margin: 0;
  display: grid;
}

.page-home .review-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .review-stat dt {
  color: var(--mist);
  font-size: 0.88rem;
}

.page-home .review-stat dd {
  margin: 0;
  font-family: var(--font-data);
  color: var(--white);
}

.page-home .review-stat dd b:last-child {
  color: var(--green);
}

.page-home .review-stat__vs {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
}

.page-home .review-toggle {
  margin-top: 18px;
}

.page-home .review-toggle summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.page-home .review-toggle summary::-webkit-details-marker {
  display: none;
}

.page-home .review-toggle summary::after {
  content: '+';
  font-family: var(--font-data);
  color: var(--orange);
  font-size: 1rem;
}

.page-home .review-toggle[open] summary::after {
  content: '-';
}

.page-home .review-toggle__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--mist);
  font-size: 0.85rem;
}

.page-home .review-toggle__list b {
  margin-left: 6px;
  font-family: var(--font-data);
  font-weight: 500;
  color: var(--white);
}

.page-home .recall-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--blue-deep);
}

.page-home .recall-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .recall-banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue-deep), rgba(10, 30, 60, 0.76) 46%, rgba(10, 30, 60, 0.3));
}

.page-home .recall-banner__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 32px 24px;
}

.page-home .recall-banner__title {
  margin: 6px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
}

.page-home .recall-banner__text {
  max-width: 46ch;
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.page-home .recall-banner__round {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: 50%;
  background: rgba(6, 18, 43, 0.7);
  color: var(--white);
  text-align: center;
  font-family: var(--font-data);
}

.page-home .recall-banner__round small {
  font-size: 0.7rem;
  color: var(--mist);
}

.page-home .recall-banner__round strong {
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--green);
}

.page-home .home-guide {
  padding-top: 16px;
}

.page-home .guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page-home .guide-card__index {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 50%;
  background: rgba(6, 18, 43, 0.5);
  color: var(--green);
  font-family: var(--font-data);
  font-size: 0.8rem;
}

.page-home .guide-card__title {
  font-size: 1rem;
  font-weight: 800;
}

.page-home .guide-card__desc {
  color: var(--mist);
  font-size: 0.82rem;
}

.page-home .guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
}

.page-home .guide-card:focus-visible {
  outline: 3px solid var(--orange-light);
  outline-offset: 3px;
}

.page-home .home-version {
  padding: 36px 0;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.16), transparent 60%);
  border-top: 1px solid var(--line);
}

.page-home .home-version__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.page-home .home-version__label {
  margin: 0;
  color: var(--mist);
  font-size: 0.82rem;
}

.page-home .home-version__number {
  margin: 0;
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}

.page-home .home-version__desc {
  flex: 1 1 220px;
  min-width: 220px;
  margin: 0;
  color: var(--mist);
  font-size: 0.82rem;
}

.page-home .home-version .button--ghost {
  margin-left: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .home-hero__content > * {
    animation: homeRiseIn 0.6s ease both;
  }
  .page-home .home-hero__content > *:nth-child(2) { animation-delay: 0.08s; }
  .page-home .home-hero__content > *:nth-child(3) { animation-delay: 0.16s; }
  .page-home .home-hero__content > *:nth-child(4) { animation-delay: 0.24s; }

  .page-home .match-card,
  .page-home .trend-chart,
  .page-home .trend-visual,
  .page-home .review-media,
  .page-home .review-panel {
    animation: homeCardIn 0.55s ease both;
  }
  .page-home .match-card:nth-child(2) { animation-delay: 0.06s; }
  .page-home .match-card:nth-child(3) { animation-delay: 0.12s; }
  .page-home .match-card:nth-child(4) { animation-delay: 0.18s; }
  .page-home .trend-visual { animation-delay: 0.1s; }
  .page-home .review-panel { animation-delay: 0.1s; }
}

@keyframes homeRiseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes homeCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 720px) {
  .page-home .home-hero__note {
    right: 26px;
  }

  .page-home .match-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .trend-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    align-items: stretch;
  }

  .page-home .trend-visual img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 380px;
  }

  .page-home .review-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .review-media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 420px;
  }

  .page-home .recall-banner__content {
    padding: 40px 48px;
  }

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

@media (min-width: 1100px) {
  .page-home .home-hero__note {
    right: 34px;
  }

  .page-home .home-hero__badge {
    right: 34px;
  }

  .page-home .guide-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-version {
    padding: 42px 0;
  }
}
