.page-home {
  --home-gutter: 20px;
  --home-radius-lg: 20px;
  --home-radius-md: 12px;
  --home-indigo-deep: #3a1b61;
  --home-wine-deep: #571633;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .container {
  width: min(100% - var(--home-gutter) * 2, var(--site-max));
  margin-inline: auto;
}

.page-home .section__head {
  margin-bottom: 22px;
}

.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.page-home .section-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 56ch;
}

.page-home .home-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 11, 16, 0.92) 0%, rgba(10, 11, 16, 0.68) 45%, rgba(15, 59, 70, 0.8) 100%);
}

.page-home .hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-bg-layer::after {
  content: "";
  position: absolute;
  top: -15%;
  right: -10%;
  width: 46%;
  height: 130%;
  background: linear-gradient(160deg, rgba(45, 159, 255, 0.2), rgba(198, 255, 0, 0.06));
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  pointer-events: none;
}

.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.08);
  opacity: 0.5;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.page-home .hero-copy {
  max-width: 700px;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(45, 159, 255, 0.14);
  border: 1px solid rgba(45, 159, 255, 0.4);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-home .hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.7);
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.12;
  margin: 20px 0 18px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-home .hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(242, 244, 248, 0.82);
  max-width: 60ch;
}

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

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.page-home .btn--primary {
  background: var(--accent-orange);
  color: var(--bg-deep);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.28);
}

.page-home .btn--primary:hover,
.page-home .btn--primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 106, 0, 0.4);
  background: #ff7a1f;
}

.page-home .btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(242, 244, 248, 0.3);
}

.page-home .btn--outline:hover,
.page-home .btn--outline:focus {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .hero-stat {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--home-radius-md);
  padding: 18px 16px;
  backdrop-filter: blur(8px);
}

.page-home .hero-stat .stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-green);
  display: block;
  line-height: 1.1;
}

.page-home .hero-stat .data-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}

.page-home .home-league {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.page-home .league-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.page-home .league-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary);
}

.page-home .league-panel {
  position: relative;
  margin-top: 24px;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .league-panel::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 24px;
  width: 140px;
  height: 40px;
  background: rgba(45, 159, 255, 0.18);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

.page-home .league-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

.page-home .league-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 159, 255, 0.6) rgba(255, 255, 255, 0.06);
  scroll-behavior: smooth;
}

.page-home .league-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.page-home .league-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.page-home .league-chip:hover,
.page-home .league-chip:focus {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
  background: rgba(45, 159, 255, 0.14);
  outline: none;
}

.page-home .league-chip--laliga { color: var(--accent-orange); }
.page-home .league-chip--epl { color: var(--accent-blue); }
.page-home .league-chip--bundesliga { color: #f2c94c; }
.page-home .league-chip--seriea { color: #6fcf97; }
.page-home .league-chip--ligue1 { color: #bb6bd9; }
.page-home .league-chip--csl { color: #eb5757; }
.page-home .league-chip--jleague { color: #56ccf2; }
.page-home .league-chip--kleague { color: #f2994a; }
.page-home .league-chip--aleague { color: #27ae60; }
.page-home .league-chip--ucl { color: #5d9cec; }
.page-home .league-chip--uel { color: #f49390; }
.page-home .league-chip--wcq { color: var(--accent-green); }

.page-home .home-match {
  padding: 64px 0 72px;
  background: linear-gradient(135deg, rgba(26, 21, 35, 0.35) 0%, transparent 60%), var(--bg-deep);
}

.page-home .match-layout {
  display: grid;
  gap: 40px;
}

.page-home .match-head h2,
.page-home .stat-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  margin: 0;
  color: var(--text-primary);
}

.page-home .match-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.page-home .match-card:hover,
.page-home .match-card:focus-within {
  border-color: rgba(45, 159, 255, 0.5);
  transform: translateY(-3px);
}

.page-home .match-thumb {
  position: relative;
  overflow: hidden;
}

.page-home .match-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .match-body {
  padding: 22px;
}

.page-home .match-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .match-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  margin: 12px 0 8px;
  color: var(--text-primary);
}

.page-home .match-summary {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.page-home .text-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.page-home .text-link:hover,
.page-home .text-link:focus {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.page-home .match-list {
  margin-top: 20px;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.page-home .match-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-fast);
}

.page-home .match-row:last-child {
  border-bottom: none;
}

.page-home .match-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.page-home .match-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-home .match-more {
  margin-top: 24px;
}

.page-home .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.page-home .tag--blue { background: rgba(45, 159, 255, 0.18); color: var(--accent-blue); }
.page-home .tag--green { background: rgba(198, 255, 0, 0.14); color: var(--accent-green); }
.page-home .tag--wine { background: rgba(122, 30, 61, 0.4); color: #ffa3c1; }
.page-home .tag--indigo { background: rgba(91, 45, 138, 0.42); color: #cab3f0; }
.page-home .tag--orange { background: rgba(255, 106, 0, 0.18); color: var(--accent-orange); }

.page-home .stat-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-wine) 0%, var(--home-wine-deep) 100%);
  border-radius: var(--home-radius-lg);
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .stat-panel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .stat-chart {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
}

.page-home .stat-chart img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.page-home .stat-cell {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 12px;
}

.page-home .stat-cell dt {
  font-size: 12px;
  color: rgba(242, 244, 248, 0.66);
}

.page-home .stat-cell dd {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .stat-cell .stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-green);
}

.page-home .stat-cell .stat-value--dim {
  color: rgba(242, 244, 248, 0.56);
}

.page-home .stat-divider {
  color: rgba(255, 255, 255, 0.35);
}

.page-home .home-favorite {
  padding: 64px 0;
}

.page-home .favorite-panel {
  display: grid;
  gap: 28px;
  border-radius: var(--home-radius-lg);
  background: linear-gradient(135deg, var(--bg-indigo) 0%, var(--home-indigo-deep) 100%);
  padding: 36px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.page-home .favorite-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  margin: 0;
}

.page-home .favorite-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.page-home .favorite-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(242, 244, 248, 0.88);
  font-size: 15px;
}

.page-home .favorite-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  flex: 0 0 auto;
}

.page-home .favorite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .favorite-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-home .qr-sim {
  width: 168px;
  height: 168px;
  display: block;
  border-radius: 16px;
  background-color: var(--text-primary);
  background-image:
    linear-gradient(90deg, transparent 0 48px, var(--bg-deep) 48px 60px, transparent 60px),
    linear-gradient(0deg, var(--bg-deep) 0 24px, transparent 24px 72px, var(--bg-deep) 72px 96px, transparent 96px),
    linear-gradient(135deg, transparent 0 84px, var(--bg-deep) 84px 108px, transparent 108px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.page-home .home-download {
  padding: 64px 0 84px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 59, 70, 0.4) 100%);
}

.page-home .download-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 30px;
  border-radius: var(--home-radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 24px;
}

.page-home .download-panel::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 159, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .download-copy {
  position: relative;
  z-index: 1;
}

.page-home .download-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.22;
  margin: 0;
}

.page-home .download-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 12px;
}

.page-home .download-features li {
  position: relative;
  padding-left: 26px;
  color: rgba(242, 244, 248, 0.88);
  font-size: 15px;
}

.page-home .download-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent-orange);
  transform: translateY(-50%);
}

.page-home .download-code {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  background: rgba(10, 11, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
}

.page-home .qr-sim--green {
  background-color: var(--accent-green);
  box-shadow: 0 18px 40px rgba(198, 255, 0, 0.16);
}

.page-home .download-code .data-label {
  color: rgba(242, 244, 248, 0.72);
}

.page-home .data-label--dim {
  color: rgba(242, 244, 248, 0.55);
}

.page-home a:focus-visible,
.page-home .league-chip:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .page-home .hero-inner {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: end;
    gap: 32px;
  }

  .page-home .match-layout {
    grid-template-columns: 1.5fr 0.8fr;
    align-items: start;
  }

  .page-home .match-card {
    grid-template-columns: 300px 1fr;
  }

  .page-home .match-thumb {
    min-height: 100%;
  }

  .page-home .match-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .page-home .favorite-panel,
  .page-home .download-panel {
    grid-template-columns: 1.2fr 0.75fr;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    min-height: 760px;
  }

  .page-home .hero-title {
    font-size: 68px;
  }

  .page-home .home-league,
  .page-home .home-match,
  .page-home .home-favorite,
  .page-home .home-download {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .page-home .league-visual img {
    aspect-ratio: 24 / 10;
  }

  .page-home .match-main {
    min-width: 0;
  }

  .page-home .hero-copy {
    padding-bottom: 8px;
  }
}
