.page-home {
  --home-gap: clamp(1rem, 2.4vw, 2.25rem);
  --home-card-bg: rgba(255, 255, 255, 0.07);
  --home-card-line: rgba(255, 255, 255, 0.14);
  --home-grid-line: rgba(0, 212, 170, 0.13);
  --home-orange-line: rgba(255, 107, 53, 0.7);
  --home-corner: 6px;
}

.page-home .home-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem) 0 2rem;
  background:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--home-card-line);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  height: 6px;
  background: var(--c-primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

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

.page-home .home-hero__headline {
  order: 1;
  padding: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
}

.page-home .home-hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--c-primary);
}

.page-home .home-hero__headline h1 {
  position: relative;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--c-white);
  margin: 0 0 1rem;
  padding-left: 0.85rem;
}

.page-home .home-hero__headline h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 6px;
  background: var(--c-primary);
}

.page-home .home-hero__lead {
  max-width: 34rem;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.6rem;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.page-home .home-hero__media {
  order: 5;
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--c-bg-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
}

.page-home .home-hero__media figcaption {
  position: absolute;
  left: 12px;
  bottom: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--c-white);
  background: rgba(10, 31, 68, 0.82);
  padding: 0.35rem 0.6rem;
  border-left: 3px solid var(--c-accent);
}

.page-home .home-hero__score {
  order: 2;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid var(--home-card-line);
  padding: 1.2rem 1.2rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
}

.page-home .home-hero__score::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--c-primary);
}

.page-home .home-hero__score::after,
.page-home .home-hero__quick::after,
.page-home .home-hero__leagues::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--c-primary);
  border-top: 2px solid var(--c-primary);
  opacity: 0.9;
}

.page-home .home-hero__score-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.9rem;
}

.page-home .home-hero__match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.page-home .home-hero__team-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-home .home-hero__team-block--right {
  text-align: right;
}

.page-home .home-hero__team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
}

.page-home .home-hero__team-stat {
  font-size: 0.78rem;
  color: var(--c-muted);
}

.page-home .home-hero__score-line {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.page-home .home-hero__score-main {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
}

.page-home .home-hero__score-tip {
  font-size: 0.7rem;
  color: var(--c-accent);
}

.page-home .home-hero__bar {
  height: 6px;
  margin: 1rem 0 0.6rem;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.page-home .home-hero__bar-highlight {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform-origin: left center;
  animation: home-bar-breathe 2.4s ease-in-out infinite;
}

.page-home .home-hero__score-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--c-muted);
}

.page-home .home-hero__quick {
  order: 3;
  position: relative;
  background: var(--c-bg-soft);
  border: 1px solid var(--home-card-line);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.page-home .home-hero__quick-title {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 0.2rem;
}

.page-home .home-hero__quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--c-text);
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-home .home-hero__quick-link::before {
  content: "01";
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-primary);
  line-height: 1;
}

.page-home .home-hero__quick-link:nth-child(2)::before {
  content: "02";
}

.page-home .home-hero__quick-link:nth-child(3)::before {
  content: "03";
}

.page-home .home-hero__quick-link:nth-child(4)::before {
  content: "04";
}

.page-home .home-hero__quick-link:hover {
  border-color: var(--c-accent);
  background: rgba(0, 212, 170, 0.12);
  color: var(--c-white);
}

.page-home .home-hero__leagues {
  order: 4;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(18, 60, 105, 0.7));
  border: 1px solid rgba(0, 212, 170, 0.4);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.page-home .home-hero__leagues-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-white);
  margin: 0.4rem 0 0;
}

.page-home .home-hero__leagues-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--c-text);
  margin: 0;
}

.page-home .home-hero__leagues-tip {
  font-size: 0.78rem;
  color: var(--c-accent);
  margin: 0.2rem 0 0;
}

.page-home .section--home-live {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .section--home-live::before,
.page-home .section--home-league::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent), transparent);
}

.page-home .section--home-live,
.page-home .section--home-league,
.page-home .section--home-index {
  position: relative;
}

.page-home .section__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: rgba(0, 212, 170, 0.3);
  margin-bottom: 0.5rem;
}

.page-home .section__heading {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--c-white);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.page-home .section__sub {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 46rem;
  margin: 0 0 2rem;
}

.page-home .home-live-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-live-card {
  position: relative;
  overflow: hidden;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-line);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .home-live-card::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 36px;
  width: 6px;
  height: 80px;
  background: var(--c-accent);
  opacity: 0.8;
}

.page-home .home-live-card__top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-home .home-live-card__teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.page-home .home-live-card__team {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
}

.page-home .home-live-card__score {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--c-white);
  white-space: nowrap;
}

.page-home .home-live-card__stats {
  display: grid;
  gap: 0.85rem;
}

.page-home .home-live-card__stat {
  display: grid;
  gap: 0.35rem;
}

.page-home .home-live-card__stat span {
  font-size: 0.84rem;
  color: var(--c-muted);
}

.page-home .home-live-card__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.page-home .home-live-card__bar i {
  display: block;
  height: 100%;
  background: var(--c-accent);
}

.page-home .home-live-card__bar--low i {
  background: var(--c-primary);
}

.page-home .home-live-card__img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .home-live-card__double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.page-home .home-live-card__double > div {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--c-primary);
  padding: 0.8rem;
  font-size: 0.84rem;
  color: var(--c-muted);
  line-height: 1.5;
}

.page-home .home-live-card__double strong {
  display: inline-block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--c-white);
}

.page-home .home-live-callout {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(0, 212, 170, 0.5);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.page-home .home-live-callout p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  margin: 0;
}

.page-home .section--home-quick {
  position: relative;
  background: var(--c-bg-alt);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .section--home-quick::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-primary) 16%, var(--c-accent) 84%, transparent);
}

.page-home .home-quick-grid {
  display: grid;
  gap: 1.1rem;
}

.page-home .home-quick-card {
  position: relative;
  display: block;
  padding: 1.4rem 1.2rem 1.4rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.page-home .home-quick-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--c-accent);
}

.page-home .home-quick-card--accent::before {
  background: var(--c-primary);
}

.page-home .home-quick-card--accent {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 107, 53, 0.42);
}

.page-home .home-quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent);
}

.page-home .home-quick-card__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-accent);
}

.page-home .home-quick-card h3 {
  font-size: 1.3rem;
  color: var(--c-white);
  margin: 0.4rem 0 0.5rem;
}

.page-home .home-quick-card p {
  color: var(--c-muted);
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0;
}

.page-home .section--home-league {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .home-league-wrap {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}

.page-home .home-league-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-league-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-align: left;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 31, 68, 0.5);
}

.page-home .home-league-table td {
  padding: 0.85rem 0.65rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--c-text);
  font-size: 0.9rem;
}

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

.page-home .home-league-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--c-bg-soft);
}

.page-home .home-league-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.page-home .section--home-promise {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .home-promise-grid {
  display: grid;
  gap: 1.2rem;
}

.page-home .home-promise-item {
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-line);
  padding: 1.5rem 1.2rem;
  position: relative;
}

.page-home .home-promise-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  opacity: 0.8;
}

.page-home .home-promise-item__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-primary);
  border: 1px solid rgba(255, 107, 53, 0.5);
  padding: 0.1rem 0.45rem;
}

.page-home .home-promise-item h3 {
  color: var(--c-white);
  font-size: 1.22rem;
  margin: 0.8rem 0 0.55rem;
}

.page-home .home-promise-item p {
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

.page-home .home-promise-more {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.page-home .section--home-sync {
  position: relative;
  background: var(--c-bg-alt);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .section--home-sync::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary), transparent);
}

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

.page-home .home-sync-stat {
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-line);
  padding: 1.4rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.page-home .home-sync-stat__num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}

.page-home .home-sync-stat__label {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.page-home .home-sync-note {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--c-primary);
  background: rgba(255, 107, 53, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.page-home .home-sync-note p {
  color: var(--c-text);
  line-height: 1.8;
  margin: 0;
}

.page-home .section--home-index {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .home-index-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-index-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: home-index-counter;
}

.page-home .home-index-steps li {
  counter-increment: home-index-counter;
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-text);
  line-height: 1.7;
}

.page-home .home-index-steps li::before {
  content: counter(home-index-counter, decimal-leading-zero);
  position: absolute;
  left: 0.95rem;
  top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--c-primary);
}

.page-home .home-index-cta {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 230px;
  text-decoration: none;
  background: var(--c-bg-soft);
  border: 1px solid var(--home-card-line);
}

.page-home .home-index-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.6);
}

.page-home .home-index-cta__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 1.5rem;
  text-align: center;
  color: var(--c-white);
}

.page-home .home-index-cta__text strong {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.page-home .home-index-cta__text span {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.6;
}

.status-dot--live {
  animation: home-pulse 1.6s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes home-bar-breathe {
  0%, 100% {
    opacity: 0.75;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.04);
  }
}

@media (max-width: 640px) {
  .page-home .home-league-table th:nth-child(3),
  .page-home .home-league-table td:nth-child(3) {
    display: none;
  }

  .page-home .home-league-table th,
  .page-home .home-league-table td {
    padding: 0.7rem 0.45rem;
  }

  .page-home .home-sync-stat__num {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;
  }

  .page-home .home-hero__headline {
    grid-column: 1 / 4;
    grid-row: 1;
    order: 0;
    padding-right: 1.5rem;
  }

  .page-home .home-hero__media {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
    order: 0;
    min-height: 420px;
  }

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

  .page-home .home-hero__score {
    grid-column: 1 / 3;
    grid-row: 2;
    order: 0;
  }

  .page-home .home-hero__quick {
    grid-column: 3 / 5;
    grid-row: 2;
    order: 0;
    min-height: 210px;
  }

  .page-home .home-hero__leagues {
    grid-column: 5 / 7;
    grid-row: 2;
    order: 0;
    min-height: 210px;
  }

  .page-home .home-live-grid {
    grid-template-columns: 1.1fr 1fr 0.9fr;
    align-items: stretch;
  }

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

  .page-home .home-league-wrap {
    grid-template-columns: 1.5fr 1fr;
    align-items: stretch;
  }

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

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

  .page-home .home-index-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .page-home .home-index-steps {
    margin-bottom: 0;
  }
}
