/* ============ page: home ============ */

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 21, 42, .58) 0%, rgba(8, 21, 42, .86) 58%, var(--night-800) 100%);
}

/* --- hero grid --- */
.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: clamp(14px, 3vw, 34px);
}

.page-home .hero-stack,
.page-home .hero-aside {
  display: grid;
  gap: 16px;
}

/* --- hero lead --- */
.page-home .hero-lead h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
}

.page-home .hero-lead h1 .hl {
  background: linear-gradient(96deg, var(--gold-2), var(--gold) 46%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-sub {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-dim);
}

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

.page-home .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text-mute);
}

.page-home .hero-facts .num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-right: 5px;
}

/* --- data cards --- */
.page-home .dcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .028));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.page-home .dcard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}

.page-home .dcard--snap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(8, 21, 42, .34), rgba(8, 21, 42, .93) 80%);
}

.page-home .dcard__body {
  position: relative;
  z-index: 1;
  padding: 16px 18px 18px;
}

.page-home .dcard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.page-home .dcard__src {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-mute);
}

.page-home .dcard__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-mute);
}

.page-home .duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 10px;
}

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

.page-home .duo__side--r {
  align-items: flex-end;
  text-align: right;
}

.page-home .duo__team {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-mute);
}

.page-home .duo__side .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.page-home .duo__side .stat-num--green {
  color: var(--green);
}

.page-home .minibars {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
}

.page-home .minibars rect {
  fill: var(--green);
  opacity: .4;
}

.page-home .minibars rect:last-child {
  opacity: .95;
}

.page-home .metric + .metric {
  margin-top: 14px;
}

.page-home .metric__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.page-home .metric__name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-mute);
}

.page-home .metric__val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.page-home .metric__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(147, 178, 220, .16);
  overflow: hidden;
}

.page-home .metric__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.page-home .metric__fill--gold {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
}

.page-home .metric__fill--blue {
  background: linear-gradient(90deg, #2C6AD6, #4C8DFF);
}

/* --- countdown --- */
.page-home .countdown {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 158px;
  margin: 0 auto;
}

.page-home .countdown svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .countdown__track {
  fill: none;
  stroke: rgba(147, 178, 220, .16);
  stroke-width: 6;
}

.page-home .countdown__bar {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: ph-home-count 90s linear infinite;
}

@keyframes ph-home-count {
  from { stroke-dashoffset: 264; }
  to { stroke-dashoffset: 0; }
}

.page-home .countdown__txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
}

.page-home .countdown__txt .num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-2);
}

.page-home .countdown__txt small {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-mute);
}

/* --- offside --- */
.page-home .offside {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass);
}

.page-home .offside__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-mute);
}

.page-home .offside__val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 6px;
}

.page-home .offside__val .stat-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.page-home .offside__unit {
  font-size: 13px;
  color: var(--text-mute);
}

.page-home .offside__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--text-mute);
}

.page-home .aside-note {
  padding: 14px 16px;
  border-left: 2px solid var(--gold-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(242, 196, 85, .1), transparent);
}

.page-home .aside-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .aside-note__k {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
}

/* --- wire --- */
.page-home .wire {
  padding: clamp(26px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.page-home .wire__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-home .wire__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.01em;
  color: var(--text);
}

.page-home .wire__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-mute);
}

.page-home .wire__track {
  margin-top: 18px;
  padding: 2px var(--pad) 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.page-home .wire__list {
  display: flex;
  gap: 14px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .wire__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 274px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.page-home .wire__item:hover,
.page-home .wire__item:focus-visible {
  border-color: var(--line-strong);
  background: var(--glass-2);
  transform: translateY(-2px);
}

.page-home .wire__league {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .wire__text {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-dim);
}

/* --- feed --- */
.page-home .feed__figure {
  margin: clamp(22px, 3vw, 34px) 0 clamp(26px, 3vw, 40px);
}

.page-home .feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .feed-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  transition: border-color .22s ease, transform .22s ease;
}

.page-home .feed-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.page-home .feed-card__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .feed-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.24;
  color: var(--text);
}

.page-home .feed-card__sum {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .feed-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--text-mute);
}

.page-home .feed-card__meta .num {
  font-family: var(--font-mono);
  color: var(--gold);
}

/* --- follow --- */
.page-home .follow__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-home .follow__panel {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--night-700);
  box-shadow: var(--shadow);
}

.page-home .follow__panelTitle {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold);
}

.page-home .follow__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .follow__chips li {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease;
}

.page-home .follow__chips li:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.page-home .follow__note {
  margin: 18px 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mute);
}

/* --- history --- */
.page-home .history__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(242, 196, 85, .13), transparent 58%),
    var(--night-700);
}

.page-home .history__text p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-dim);
  max-width: 56ch;
}

.page-home .history__text .btn {
  margin-top: 24px;
}

.page-home .history__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .history__stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
}

.page-home .history__stats .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.page-home .history__stats .stat-num--gold {
  color: var(--gold);
}

.page-home .history__stats .stat-label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-mute);
}

/* --- local --- */
.page-home .local__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-home .local__lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-dim);
  max-width: 56ch;
}

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

.page-home .local__foot {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text-mute);
}

.page-home .local__figure {
  margin: 0;
}

/* ============ responsive ============ */
@media (min-width: 560px) {
  .page-home .history__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .page-home .hero-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .hero-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .page-home .countdown {
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .page-home .hero-media {
    inset: 0 0 0 42%;
  }

  .page-home .hero-media::after {
    background:
      linear-gradient(90deg, var(--night-800) 0%, rgba(8, 21, 42, .48) 44%, rgba(8, 21, 42, .84) 100%),
      linear-gradient(180deg, rgba(8, 21, 42, .5), rgba(8, 21, 42, .9));
  }

  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(18px, 2vw, 28px);
    align-items: start;
  }

  .page-home .hero-lead {
    grid-column: 1 / 6;
  }

  .page-home .hero-stack {
    grid-column: 6 / 10;
  }

  .page-home .hero-aside {
    grid-column: 10 / -1;
    gap: 14px;
  }

  .page-home .hero-sub {
    font-size: 17px;
  }

  .page-home .feed-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(18px, 2vw, 26px);
  }

  .page-home .feed-card--a {
    grid-column: 1 / 8;
  }

  .page-home .feed-card--b {
    grid-column: 8 / -1;
  }

  .page-home .feed-card--c {
    grid-column: 1 / -1;
  }

  .page-home .feed-card--wide {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }

  .page-home .feed-card--wide .feed-card__wideText {
    max-width: 72ch;
  }

  .page-home .follow__inner {
    grid-template-columns: 5fr 7fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }

  .page-home .history__card {
    grid-template-columns: 7fr 5fr;
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
  }

  .page-home .local__inner {
    grid-template-columns: 7fr 5fr;
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .countdown__bar {
    animation: none;
    stroke-dashoffset: 110;
  }
  .page-home .wire__item,
  .page-home .feed-card,
  .page-home .follow__chips li {
    transition: none;
  }
}
