.page-home {
  scroll-behavior: smooth;
  overflow-x: clip;
}

.page-home .container-wide {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}

.page-home .home-context {
  padding-top: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.page-home .breadcrumb-current {
  color: var(--accent-green);
  font-weight: 700;
}

.page-home .home-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}

.page-home .league-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 4px 0;
}

.page-home .league-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-cut);
  background: var(--glass-bg);
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.page-home .league-tab.is-active {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: var(--shadow-green);
}

.page-home .league-name {
  font-weight: 700;
}

.page-home .league-num {
  color: var(--text-dim);
  font-size: 12px;
}

.page-home .home-sync-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  font-family: var(--font-mono);
}

.page-home .home-sync-note .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pageHomePulse 1.8s infinite;
}

.page-home .hero-split {
  display: grid;
  gap: 32px;
  padding-block: 40px 56px;
  align-items: center;
}

.page-home .hero-eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: var(--accent-green);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.page-home .hero-copy h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 16px 0 18px;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.page-home .hero-copy .hero-lead {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 50ch;
  margin-bottom: 28px;
}

.page-home .hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

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

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--accent-green);
  line-height: 1;
}

.page-home .stat-unit {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-left: 2px;
}

.page-home .stat-label {
  font-size: 13px;
  color: var(--text-dim);
}

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

.page-home .hero-visual {
  position: relative;
}

.page-home .pitch-frame {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-panel);
}

.page-home .pitch-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.15) 0%, rgba(11, 15, 25, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.page-home .pitch-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.page-home .hero-ticker {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-light);
  border-radius: 10px;
}

.page-home .hero-ticker .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pageHomePulse 1.8s infinite;
}

.page-home .hero-ticker .data-value {
  color: var(--accent-green);
  font-weight: 700;
}

.page-home .section {
  padding-block: 40px;
  position: relative;
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 28px;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 16px;
}

.page-home .section-head .section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.page-home .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin: 0;
  color: var(--text-light);
  font-style: italic;
}

.page-home .section-desc {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 72ch;
}

.page-home .dashboard-section {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(0, 255, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(57, 255, 20, 0.06), transparent 55%);
}

.page-home .dashboard-grid {
  display: grid;
  gap: 20px;
}

.page-home .dash-column {
  min-width: 0;
}

.page-home .dash-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}

.page-home .round-card {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 12px;
}

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

.page-home .league-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 10px;
  background: var(--bg-deep);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: var(--text-light);
  border-radius: 4px;
}

.page-home .round-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.page-home .round-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  border-radius: 99px;
}

.page-home .fill-full {
  width: 100%;
}

.page-home .fill-71 {
  width: 71%;
}

.page-home .fill-76 {
  width: 76%;
}

.page-home .round-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 10px 0 0;
}

.page-home .scorer-row {
  display: grid;
  grid-template-columns: 32px 1fr auto 36px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42, 59, 76, 0.6);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s var(--ease-out);
}

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

.page-home .scorer-row.top {
  border-left: 3px solid var(--accent-gold);
}

.page-home .scorer-rank {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
}

.page-home .scorer-rank.gold {
  color: var(--accent-gold);
  font-weight: 700;
}

.page-home .scorer-name {
  font-weight: 700;
  color: var(--text-light);
}

.page-home .scorer-team {
  color: var(--text-dim);
  font-size: 13px;
}

.page-home .scorer-goals {
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 18px;
  font-weight: 700;
}

.page-home .scorer-note {
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.page-home .scorer-chart {
  margin-top: 16px;
}

.page-home .scorer-chart img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  object-fit: cover;
}

.page-home .home-away-key {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-home .key-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.page-home .key-block {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.page-home .key-block.key-home {
  background: var(--accent-green);
  box-shadow: var(--shadow-green);
}

.page-home .key-block.key-away {
  background: var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}

.page-home .home-away-block-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .team-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 59, 76, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.page-home .block-team {
  font-size: 14px;
  color: var(--text-light);
  flex: 0 0 76px;
  white-space: nowrap;
}

.page-home .block-group {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
}

.page-home .block {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.page-home .block.home.win {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.page-home .block.away.win {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.35);
}

.page-home .block-divider {
  display: inline-block;
  flex: 0 0 1px;
  width: 1px;
  height: 18px;
  background: var(--line-dark);
  margin-inline: 3px;
}

.page-home .form-note {
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.page-home .league-switch-section {
  background: linear-gradient(180deg, rgba(74, 26, 26, 0.18) 0%, transparent 60%);
}

.page-home .filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
}

.page-home .filter-tag {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ease-out);
}

.page-home .filter-tag.is-active {
  color: var(--bg-void);
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: var(--shadow-green);
  font-weight: 700;
}

.page-home .league-panel {
  padding: 22px;
  margin-bottom: 14px;
  border-radius: 14px;
}

.page-home .league-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(42, 59, 76, 0.7);
}

.page-home .league-panel-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-light);
}

.page-home .league-panel-head .data-value {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-home .league-panel-grid {
  display: grid;
  gap: 20px;
}

.page-home .panel-block h4 {
  font-size: 13px;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin: 0 0 10px;
}

.page-home .panel-block p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.page-home .fixture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .fixture-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.page-home .fixture-round {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(0, 255, 255, 0.12);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 3px;
  color: var(--accent-cyan);
}

.page-home .rounds-section {
  position: relative;
  overflow: hidden;
}

.page-home .rounds-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  max-width: 1600px;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}

.page-home .rounds-head,
.page-home .rounds-grid {
  position: relative;
  z-index: 1;
}

.page-home .rounds-grid {
  display: grid;
  gap: 20px;
}

.page-home .round-explain-card {
  padding: 22px;
  border-radius: 14px;
}

.page-home .round-badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--accent-gold);
  border-radius: 14px 4px 14px 4px;
  margin-bottom: 16px;
}

.page-home .round-explain-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text-light);
}

.page-home .round-explain-card p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .favorites-section {
  background: linear-gradient(180deg, transparent, rgba(10, 61, 76, 0.18));
}

.page-home .fav-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .fav-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-panel);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .fav-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .step-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.page-home .step-num {
  flex: 0 0 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  border-radius: 10px 2px 10px 2px;
  background: rgba(57, 255, 20, 0.08);
  box-shadow: var(--shadow-green);
}

.page-home .step-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-light);
}

.page-home .step-body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .updates-section {
  background: linear-gradient(180deg, transparent, rgba(10, 61, 76, 0.22));
}

.page-home .news-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.page-home .news-card {
  text-decoration: none;
  padding: 22px;
  display: block;
  border-radius: 14px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.page-home .news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-home .news-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 99px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.page-home .news-card h3 {
  margin: 0 0 10px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.4;
}

.page-home .news-card p {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .news-more {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-home .updates-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-home .trust-section {
  border-top: 1px solid var(--line-dark);
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 215, 0, 0.05), transparent 70%);
}

.page-home .trust-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.page-home .trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.page-home .trust-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--accent-gold);
  line-height: 1.2;
}

.page-home .trust-num span {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.page-home .trust-label {
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .trust-statement {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 70ch;
  margin-inline: auto;
}

@keyframes pageHomePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (min-width: 600px) {
  .page-home .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .dash-column:nth-child(3) {
    grid-column: 1 / -1;
  }

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

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

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

@media (min-width: 900px) {
  .page-home .hero-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .page-home .hero-copy {
    padding-right: 20px;
  }

  .page-home .fav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

  .page-home .updates-cta {
    justify-content: flex-start;
  }
}

@media (min-width: 1000px) {
  .page-home .dashboard-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 24px;
  }

  .page-home .dash-column:nth-child(3) {
    grid-column: auto;
  }

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

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