.page-home {
  --home-gap: clamp(1.5rem, 4vw, 3rem);
  --home-surface: rgba(21, 44, 84, .72);
  position: relative;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 48%, var(--color-bg) 100%);
  color: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}

.page-home * {
  box-sizing: border-box;
}

.page-home a {
  color: inherit;
  transition: color .3s ease;
}

.home-hero {
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 80% at 15% 10%, rgba(44, 154, 110, .18), transparent 60%),
    radial-gradient(50% 60% at 80% 20%, rgba(212, 164, 42, .14), transparent 55%);
  clip-path: polygon(0 0, 70% 0, 55% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.home-rail {
  display: none;
}

.home-hero__tag {
  margin: 0 0 .5rem;
  font-family: var(--font-data);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.home-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: .02em;
}

.home-hero__title span {
  display: block;
  margin-top: .75rem;
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  font-weight: 700;
  color: var(--color-gold);
}

.home-hero__lead {
  margin: 0;
  max-width: 46em;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
}

.toc-panel {
  position: relative;
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 660px;
  border: 1px solid rgba(212, 164, 42, .38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--home-surface), rgba(21, 44, 84, .5));
  backdrop-filter: blur(10px);
}

.toc-panel::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 26px;
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  transform: rotate(45deg);
  border-radius: 1px;
}

.toc-panel__label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  font-family: var(--font-data);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.toc-panel__label i {
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, .55);
}

.toc-panel__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 164, 42, .45), transparent);
}

.toc-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-panel__list li + li {
  border-top: 1px dashed rgba(255, 255, 255, .12);
}

.toc-panel__list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .75rem;
  padding: .8rem .25rem;
  text-decoration: none;
  color: #fff;
}

.toc-panel__list a:hover {
  color: var(--color-gold-light);
}

.toc-panel__list i {
  width: 2.2rem;
  font-family: var(--font-data);
  font-style: normal;
  font-weight: 600;
  color: var(--color-gold);
}

.toc-panel__list small {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: .78rem;
  color: rgba(255, 255, 255, .58);
}

.toc-panel__foot {
  margin: .75rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
}

.toc-panel__foot a {
  color: var(--color-gold-light);
  text-decoration: none;
}

.home-hero__media {
  margin: 0;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 18px 100%);
}

.home-hero__notice {
  position: relative;
  margin-top: .25rem;
  padding: .85rem 1.1rem;
  border-left: 3px solid var(--color-gold);
  background: linear-gradient(90deg, rgba(212, 164, 42, .16), rgba(212, 164, 42, .02));
  font-family: var(--font-data);
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
}

.home-metrics,
.home-calendar,
.home-help {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(1.5rem, 5vw, 4rem);
}

.home-metrics::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4rem;
  right: -10rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(closest-side, rgba(212, 164, 42, .16), transparent 70%);
  pointer-events: none;
}

.home-metrics .container {
  position: relative;
  z-index: 1;
}

.home-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.home-section__index {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: .8;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 164, 42, .75);
}

.home-section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: .01em;
}

.home-section__head p {
  margin: .4rem 0 0;
  max-width: 52em;
  font-size: .98rem;
  color: rgba(255, 255, 255, .7);
}

.metrics-board {
  display: grid;
  gap: var(--home-gap);
  align-items: center;
}

.metrics-board__media {
  margin: 0;
}

.metrics-board__media img {
  display: block;
  width: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

.metrics-board__grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, 1fr);
}

.metric-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  min-height: 122px;
  padding: 1.1rem .95rem;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(150deg, rgba(21, 44, 84, .6), rgba(13, 29, 56, .92));
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: border-color .3s ease, background .3s ease;
}

.metric-cell::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-gold);
}

.metric-cell--green::after {
  background: var(--color-green);
}

.metric-cell:hover {
  border-color: rgba(212, 164, 42, .55);
  background: linear-gradient(150deg, rgba(21, 44, 84, .8), rgba(13, 29, 56, .96));
}

.metric-cell__val {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1;
}

.metric-cell__val small {
  font-family: var(--font-data);
  font-size: .55em;
  font-weight: 600;
  color: var(--color-gold-light);
}

.metric-cell__label {
  font-size: .88rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, .7);
}

.metrics-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem .75rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.metrics-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(212, 164, 42, .25) 45%, rgba(44, 154, 110, .7) 100%);
}

.metrics-timeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  text-align: center;
}

.metrics-timeline__node::before {
  content: "";
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-bottom: .5rem;
  border: 2px solid var(--color-gold);
  background: var(--color-bg);
  transform: rotate(45deg);
}

.metrics-timeline__node--green::before {
  border-color: var(--color-green);
}

.metrics-timeline b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
}

.metrics-timeline small {
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
}

.home-calendar::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 18%;
  width: 70%;
  height: 80%;
  background: linear-gradient(215deg, transparent 30%, rgba(44, 154, 110, .09) 70%);
  transform: skewX(-8deg);
  pointer-events: none;
}

.home-calendar > .container {
  position: relative;
  z-index: 1;
}

.calendar-layout {
  display: grid;
  gap: var(--home-gap);
  align-items: center;
}

.calendar-layout__img {
  margin: 0;
}

.calendar-layout__img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.match-stack {
  display: flex;
  flex-direction: column;
  gap: .95rem;
}

.match-card {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 4px solid var(--color-gold);
  background: rgba(232, 240, 254, .055);
  clip-path: polygon(18px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
  cursor: pointer;
}

.match-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(232, 197, 90, .3), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  transition: left .5s ease, opacity .5s ease;
  pointer-events: none;
}

.match-card:nth-child(even) {
  margin-left: clamp(.75rem, 3vw, 1.75rem);
  border-left-color: var(--color-green);
  background: rgba(212, 164, 42, .045);
}

.match-card:focus {
  outline: 2px dashed var(--color-gold);
  outline-offset: 4px;
}

.match-card:hover,
.match-card:focus-within {
  background: rgba(21, 44, 84, .85);
  border-left-color: var(--color-gold-light);
  transform: translateX(4px);
}

.match-card:hover::after,
.match-card:focus-within::after {
  left: 120%;
  opacity: 1;
}

.match-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .85rem;
  font-family: var(--font-data);
}

.match-card__league {
  font-family: var(--font-data);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--color-gold-light);
}

.match-card__round {
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}

.match-card__teams {
  margin-left: auto;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
}

.match-card__teams strong {
  color: var(--color-gold);
  font-size: 1.05rem;
}

.match-card__teams em {
  font-style: normal;
  color: rgba(255, 255, 255, .45);
}

.match-card__detail {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, padding .35s ease, opacity .3s ease;
}

.match-card:hover .match-card__detail,
.match-card:focus-within .match-card__detail {
  max-height: 120px;
  padding-top: .75rem;
  opacity: 1;
}

.match-card__detail-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .66);
}

.match-card__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.match-card__bar i {
  display: block;
  width: 100%;
  height: 100%;
}

.match-card__bar i::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--home);
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.match-card__bar i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--home);
  width: var(--away);
  background: linear-gradient(90deg, var(--color-green), #7fd8ab);
}

.home-help::before {
  content: "";
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 60%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(44, 154, 110, .12), transparent 70%);
  transform: skewY(-3deg);
  pointer-events: none;
}

.home-help > .container {
  position: relative;
  z-index: 1;
}

.help-layout {
  display: grid;
  gap: var(--home-gap);
  align-items: center;
}

.help-layout__img {
  margin: 0;
}

.help-layout__img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 6% 100%);
}

.help-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(212, 164, 42, .35);
  border-radius: 6px 24px 6px 6px;
  background: linear-gradient(145deg, rgba(21, 44, 84, .9), rgba(10, 26, 59, .88));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
}

.help-panel__lead {
  margin: 0 0 1rem;
  font-family: var(--font-data);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.help-panel__steps {
  counter-reset: help-step;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.help-panel__steps li {
  counter-increment: help-step;
  position: relative;
  padding: .7rem 0 .7rem 2.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .13);
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

.help-panel__steps li::before {
  content: "0" counter(help-step);
  position: absolute;
  left: 0;
  top: .65rem;
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--color-gold);
}

.help-glossary {
  display: grid;
  gap: .5rem;
  margin: 0 0 1.5rem;
}

.help-glossary div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .55rem .85rem;
  border-left: 2px solid rgba(212, 164, 42, .5);
  background: rgba(255, 255, 255, .03);
}

.help-glossary dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  color: #fff;
}

.help-glossary dd {
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
}

.help-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

@media (min-width: 560px) {
  .metrics-board__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics-timeline {
    grid-template-columns: repeat(5, 1fr);
    padding-top: 2rem;
  }
}

@media (min-width: 860px) {
  .home-hero__media img {
    height: 320px;
  }

  .metrics-board {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
}

@media (min-width: 920px) {
  .calendar-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  .help-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
}

@media (min-width: 1080px) {
  .hero-shell {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) minmax(280px, 420px);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: 1.5rem;
  }

  .hero-shell .home-rail {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .hero-shell .home-hero__copy {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-shell .home-hero__media {
    grid-column: 3;
    grid-row: 1;
    min-height: 320px;
  }

  .hero-shell .home-hero__media img {
    height: 100%;
    min-height: 340px;
    max-height: 660px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  }

  .hero-shell .home-hero__notice {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: .5rem;
  }
}

.page-home {
  --away: 1rem;
  --home: transparent;
}
