.page-home {
  --home-stroke: 4px solid var(--ink);
  --home-shadow-sm: 5px 5px 0 rgba(45, 42, 38, .85);
  --home-shadow-md: 8px 8px 0 rgba(45, 42, 38, .85);
  --home-shadow-lg: 12px 12px 0 rgba(45, 42, 38, .9);
  --home-display: clamp(2.8rem, 9vw, 6rem);
  background: var(--deep-green);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-arena {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 72px 0 60px;
  background: var(--ink-green);
  border-bottom: 6px solid var(--yellow);
  overflow: hidden;
}

.page-home .home-arena::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 80px;
  background: var(--kiwi);
  top: 22%;
  left: -12%;
  transform: rotate(-8deg);
  z-index: 0;
  opacity: .22;
}

.page-home .home-arena::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 40px;
  background: var(--yellow);
  top: 60%;
  left: -8%;
  transform: rotate(5deg);
  z-index: 0;
  opacity: .16;
}

.page-home .home-arena__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .32;
  animation: homeArenaShimmer 14s ease-in-out infinite alternate;
}

@keyframes homeArenaShimmer {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.page-home .home-arena__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-kicker {
  display: inline-block;
  width: auto;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: var(--home-stroke);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-home .home-title {
  margin: 0;
  font-family: var(--display);
  font-size: var(--home-display);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--yellow);
  text-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
}

.page-home .home-title__accent {
  display: block;
  color: var(--kiwi);
}

.page-home .home-lead {
  max-width: 58ch;
  margin: 26px 0 0;
  padding-left: 16px;
  border-left: 6px solid var(--kiwi);
  color: rgba(255, 255, 255, .92);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.page-home .home-quick {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-quick .quick-strip {
  flex-wrap: wrap;
}

.page-home .home-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-metric {
  padding: 14px 10px;
  background: var(--deep-green);
  border: 3px solid var(--cream);
  box-shadow: var(--home-shadow-sm);
}

.page-home .home-metric__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-metric__label {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--cream);
}

.page-home .home-sticker {
  position: absolute;
  right: 3%;
  bottom: 38px;
  z-index: 3;
  transform: rotate(5deg);
  padding: 14px 18px;
  background: var(--yellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-lg);
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: .95;
  text-align: center;
}

.page-home .home-speedlines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  z-index: 1;
  pointer-events: none;
}

.page-home .home-speedlines line {
  stroke: var(--kiwi);
  stroke-width: 4;
  stroke-dasharray: 400 80;
  opacity: .45;
}

.page-home .home-divider {
  height: 22px;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--kiwi) 0 16px, var(--yellow) 16px 32px);
}

.page-home .home-section {
  padding: 52px 0;
}

.page-home .section-head {
  margin-bottom: 30px;
}

.page-home .section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--orange);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateX(-6px) rotate(-1deg);
}

.page-home .section-title {
  margin: 0;
  font-family: var(--display);
  font-size: var(--step-h2);
  line-height: 1.08;
}

.page-home .section-note {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.7;
}

.page-home .home-section--focus {
  background: var(--deep-green);
}

.page-home .home-section--focus .section-title,
.page-home .home-section--focus .section-note {
  color: var(--cream);
}

.page-home .home-section--focus .section-kicker {
  background: var(--yellow);
}

.page-home .home-focus-grid {
  display: grid;
  gap: 28px;
}

.page-home .home-focus-list {
  display: grid;
  gap: 18px;
}

.page-home .match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-sm);
  transform: rotate(-.3deg);
}

.page-home .match-card:nth-child(even) {
  background: var(--yellow);
  transform: rotate(.4deg);
}

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

.page-home .match-card__league {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .7;
}

.page-home .match-card__teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--ink);
  line-height: 1.1;
}

.page-home .match-card__score {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
  background: var(--ink);
  padding: 2px 10px;
  border: 2px solid var(--ink);
  color: #fff;
}

.page-home .match-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.page-home .match-card__time {
  margin: 0;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink);
}

.page-home .match-card__live {
  display: inline-block;
  padding: 4px 10px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .page-home .match-card:hover {
    transform: translateY(-4px) rotate(.6deg);
    box-shadow: var(--home-shadow-lg);
  }
}

.page-home .home-focus-visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .home-stadium-card {
  margin: 0;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-md);
}

.page-home .home-stadium-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.page-home .home-stadium-card figcaption,
.page-home .home-rankings-chart figcaption,
.page-home .home-desktop-demo figcaption {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--ink);
}

.page-home .home-focus-note {
  padding: 16px;
  background: var(--orange);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-md);
  color: var(--ink);
  transform: rotate(-.4deg);
}

.page-home .home-focus-note__label {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .8;
}

.page-home .home-focus-note__value {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  margin: 4px 0 8px;
}

.page-home .home-focus-note p:last-child {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
}

.page-home .home-section--revisit {
  background: var(--cream);
}

.page-home .home-section--revisit .section-title,
.page-home .home-section--revisit .section-note {
  color: var(--ink);
}

.page-home .home-revisit-grid {
  display: grid;
  gap: 22px;
}

.page-home .home-revisit-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 22px;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-sm);
}

.page-home .home-revisit-card--alt {
  background: var(--kiwi-soft);
}

.page-home .home-revisit-card--wide {
  background: var(--yellow);
  grid-column: 1 / -1;
}

.page-home .home-revisit-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--step-h3);
  line-height: 1.2;
  color: var(--ink);
}

.page-home .home-revisit-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .home-revisit-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

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

.page-home .home-stat .stat-value {
  font-family: var(--mono);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-stat .stat-caption {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink);
}

.page-home .home-tick-list {
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
}

.page-home .home-tick-list li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  line-height: 1.5;
  color: var(--ink);
}

.page-home .home-tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--orange);
}

.page-home .home-section--local {
  background: var(--kiwi);
  border-top: 6px solid var(--yellow);
  border-bottom: 6px solid var(--ink);
}

.page-home .home-section--local .section-title,
.page-home .home-section--local .section-note {
  color: var(--ink);
}

.page-home .home-section--local .section-kicker {
  background: var(--ink);
  color: var(--yellow);
}

.page-home .home-local-grid {
  display: grid;
  gap: 24px;
}

.page-home .home-local-card {
  padding: 24px;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-md);
}

.page-home .home-local-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--step-h3);
  color: var(--ink);
}

.page-home .home-local-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: start;
  padding: 24px;
  background: var(--yellow);
  color: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: var(--home-shadow-md);
  transform: rotate(1.5deg);
}

.page-home .home-local-badge span {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.page-home .home-local-badge strong {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
}

.page-home .home-local-badge small {
  font-family: var(--mono);
  font-size: .75rem;
}

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

.page-home .home-section--rankings {
  background: var(--pale);
}

.page-home .home-section--rankings .section-title,
.page-home .home-section--rankings .section-note {
  color: var(--ink);
}

.page-home .home-rankings-grid {
  display: grid;
  gap: 24px;
}

.page-home .home-rankings-table {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-md);
  padding: 12px;
}

.page-home .home-rankings-table__head,
.page-home .rank-row {
  display: grid;
  grid-template-columns: 2rem 1fr 4rem 3rem;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
}

.page-home .home-rankings-table__head {
  border-bottom: 3px solid var(--ink);
  font-weight: 800;
  color: var(--ink);
}

.page-home .rank-row {
  border: 2px solid var(--ink);
  margin-top: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: .92rem;
}

.page-home .home-rankings-chart {
  margin: 0;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-md);
}

.page-home .home-rankings-chart img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.page-home .home-rankings-details {
  margin-top: 24px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--home-shadow-sm);
}

.page-home .home-rankings-details summary {
  cursor: pointer;
  padding: 16px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  list-style: none;
}

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

.page-home .home-rankings-details[open] summary {
  border-bottom: 3px solid var(--ink);
}

.page-home .home-rankings-details p {
  margin: 14px 16px 4px;
  color: var(--ink);
  line-height: 1.6;
}

.page-home .home-rankings-details .rank-row {
  grid-template-columns: 1fr 1fr 1fr;
  margin: 10px 16px;
}

.page-home .home-section--desktop {
  background: var(--deep-green);
}

.page-home .home-section--desktop .section-title,
.page-home .home-section--desktop .section-note {
  color: var(--cream);
}

.page-home .home-desktop-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-home .home-desktop-intro {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-md);
  padding: 24px;
  color: var(--ink);
}

.page-home .home-desktop-intro h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--step-h3);
  color: var(--ink);
}

.page-home .home-desktop-intro p {
  margin: 12px 0;
  line-height: 1.7;
}

.page-home .home-desktop-intro .btn {
  margin-top: 8px;
}

.page-home .home-desktop-demo {
  margin: 0;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-md);
  transform: rotate(-.4deg);
}

.page-home .home-desktop-demo img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.page-home .home-section--platform {
  background: var(--ink-green);
  border-top: 6px solid var(--orange);
}

.page-home .home-section--platform .section-title,
.page-home .home-section--platform .section-note {
  color: var(--cream);
}

.page-home .home-platform-grid {
  display: grid;
  gap: 18px;
}

.page-home .home-platform-card {
  padding: 20px;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--home-shadow-sm);
  color: var(--ink);
}

.page-home .home-platform-card p {
  margin: 8px 0;
  line-height: 1.6;
}

.page-home .home-platform-card__num {
  display: block;
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-platform-card--special {
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .home-platform-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-arena__bg {
    animation: none;
  }
}

@media (min-width: 768px) {
  .page-home .home-arena {
    min-height: 88vh;
    padding: 80px 0 72px;
  }

  .page-home .home-metrics {
    width: min(100%, 560px);
  }

  .page-home .home-focus-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: start;
  }

  .page-home .home-focus-list {
    grid-template-columns: 1fr;
  }

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

  .page-home .home-local-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    align-items: start;
  }

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

  .page-home .home-desktop-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }

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

  .page-home .home-platform-card--special {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .page-home .home-section {
    padding: 68px 0;
  }

  .page-home .home-arena__inner {
    padding-left: 2vw;
  }

  .page-home .home-focus-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  }

  .page-home .home-revisit-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .home-platform-card--special {
    grid-column: auto;
  }
}
