.page-home {
  --home-card-bg: linear-gradient(135deg, var(--color-blue), #0f1d30);
  --home-highlight: var(--color-red);
  --home-data-color: var(--color-green);
  --home-ticker-bg: rgba(13, 15, 20, 0.85);
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: var(--color-dark);
  line-height: 1.6;
}

/* ----- container ----- */
.page-home .container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.page-home .section-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 2rem;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}
.page-home .section-heading::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background: var(--home-highlight);
  margin-top: 0.5rem;
}

/* ----- hero section ----- */
.page-home .hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.2);
}
.page-home .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}
.page-home .hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0 0 0.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-home .hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

/* live score ticker */
.page-home .live-score-ticker {
  background: var(--home-ticker-bg);
  border: 1px solid var(--color-light-blue);
  border-radius: 4px;
  padding: 0.75rem 0;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 2rem;
  position: relative;
}
.page-home .live-score-ticker::before {
  content: 'LIVE';
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--home-highlight);
  display: inline-block;
  padding: 0 1rem;
  vertical-align: middle;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.page-home .ticker-inner {
  display: inline-flex;
  gap: 2rem;
  padding: 0 1rem;
  animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.page-home .match {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
}
.page-home .team {
  color: var(--color-white);
}
.page-home .score {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--home-highlight);
  background: rgba(230,57,70,0.15);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.page-home .hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----- timeline section ----- */
.page-home .rounds-timeline-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-dark) 0%, #11141c 100%);
}
.page-home .timeline-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.page-home .timeline-illustration-wrap {
  flex: 1 1 300px;
  max-width: 400px;
}
.page-home .timeline-illustration {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--color-light-blue);
}
.page-home .timeline {
  flex: 2 1 400px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
}
.page-home .timeline::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-light-blue);
  opacity: 0.5;
}
.page-home .timeline-node {
  position: relative;
  flex: 0 0 auto;
  width: 90px;
  padding-top: 2.8rem;
  text-align: center;
  cursor: default;
  transition: transform 0.2s;
}
.page-home .timeline-node:hover {
  transform: translateY(-4px);
}
.page-home .timeline-node::before {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-light-blue);
  border-radius: 50%;
  border: 2px solid var(--color-dark);
  z-index: 1;
}
.page-home .timeline-node.highlight::before {
  background: var(--home-highlight);
  box-shadow: 0 0 0 4px rgba(230,57,70,0.3);
}
.page-home .node-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.25rem;
}
.page-home .node-detail {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-blue);
  border: 1px solid var(--color-light-blue);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--color-gray);
  z-index: 2;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.page-home .timeline-node:hover .node-detail,
.page-home .timeline-node:focus .node-detail {
  display: block;
}
.page-home .node-detail p {
  margin: 0;
}

/* ----- recent results section ----- */
.page-home .recent-results-section {
  padding: 4rem 0;
  background: var(--color-dark);
}
.page-home .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.page-home .result-card {
  background: var(--home-card-bg);
  border: 1px solid rgba(69,123,157,0.25);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.page-home .result-card:hover {
  box-shadow: 0 0 20px rgba(230,57,70,0.2);
  transform: translateY(-2px);
}
.page-home .card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.page-home .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.page-home .result-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.page-home .card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .card-content h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0;
  color: var(--color-white);
  line-height: 1.2;
}
.page-home .card-content p {
  font-size: 0.95rem;
  color: var(--color-gray);
  margin: 0;
}
.page-home .btn-link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--home-highlight);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  margin-top: auto;
  transition: border-color 0.2s;
}
.page-home .btn-link:hover {
  border-bottom-color: var(--home-highlight);
}
.page-home .results-more {
  text-align: center;
  margin-top: 2rem;
}

/* ----- guide entry section ----- */
.page-home .guide-entry-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f1a28, var(--color-dark));
}
.page-home .guide-card {
  background: var(--home-card-bg);
  border: 1px solid var(--color-light-blue);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.page-home .guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--home-highlight), var(--color-light-blue));
}
.page-home .guide-card h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}
.page-home .guide-card p {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- dashboard section ----- */
.page-home .dashboard-section {
  padding: 4rem 0;
  background: var(--color-dark);
}
.page-home .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.page-home .dashboard-card {
  background: var(--home-card-bg);
  border: 1px solid rgba(69,123,157,0.2);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-home .dashboard-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--home-highlight), transparent);
  opacity: 0.6;
}
.page-home .dashboard-image-wrap {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-light-blue);
}
.page-home .dashboard-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .dashboard-data {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-home .data-number {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--home-data-color);
  line-height: 1;
}
.page-home .data-label {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-top: 0.25rem;
}
.page-home .dashboard-cta {
  text-align: center;
}

/* ----- buttons (shared with global? we define for home) ----- */
.page-home .btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.page-home .btn-primary {
  background: var(--home-highlight);
  color: var(--color-white);
}
.page-home .btn-primary:hover {
  background: #d32f3a;
  box-shadow: 0 0 12px rgba(230,57,70,0.4);
}
.page-home .btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-light-blue);
}
.page-home .btn-secondary:hover {
  background: rgba(69,123,157,0.2);
  border-color: var(--color-white);
}

/* ----- responsive ----- */
@media (max-width: 768px) {
  .page-home .hero-section {
    min-height: 70vh;
  }
  .page-home .hero-content h1 {
    font-size: 2rem;
  }
  .page-home .hero-subtitle {
    font-size: 1rem;
  }
  .page-home .live-score-ticker {
    padding: 0.5rem 0;
  }
  .page-home .ticker-inner {
    gap: 1.2rem;
    font-size: 0.9rem;
  }
  .page-home .match {
    font-size: 0.9rem;
  }
  .page-home .score {
    font-size: 1rem;
  }
  .page-home .timeline-wrapper {
    flex-direction: column;
  }
  .page-home .timeline-illustration-wrap {
    max-width: 100%;
  }
  .page-home .timeline {
    justify-content: center;
  }
  .page-home .timeline-node {
    width: 70px;
  }
  .page-home .results-grid {
    grid-template-columns: 1fr;
  }
  .page-home .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .page-home .guide-card {
    padding: 1.5rem 1rem;
  }
  .page-home .guide-card h2 {
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) {
  .page-home .hero-section {
    min-height: 60vh;
  }
  .page-home .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .page-home .hero-actions .btn {
    width: 100%;
    max-width: 260px;
  }
}
