.page-home {
  --home-scan: repeating-linear-gradient(to bottom, rgba(233, 239, 247, .028) 0 1px, transparent 1px 3px);
  --home-grid: linear-gradient(to right, rgba(34, 49, 74, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 49, 74, .55) 1px, transparent 1px);
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- HERO ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 5vw, 54px) 0 clamp(42px, 7vw, 86px);
  background:
    radial-gradient(130% 90% at 88% -12%, rgba(55, 232, 211, .13), transparent 62%),
    radial-gradient(110% 80% at -8% 108%, rgba(169, 123, 255, .13), transparent 60%),
    var(--abyss);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--home-grid);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(120% 95% at 72% 0%, #000 8%, transparent 78%);
  mask-image: radial-gradient(120% 95% at 72% 0%, #000 8%, transparent 78%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--home-scan);
  pointer-events: none;
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-home .hero__aside .eyebrow {
  margin-top: 16px;
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 7.6vw, 58px);
  line-height: .99;
  letter-spacing: -.01em;
  margin: 10px 0 0;
  max-width: 12em;
}

.page-home .hero__lead {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  opacity: .82;
  max-width: 34em;
}

.page-home .hero__clock {
  margin-top: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

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

.page-home .hero__clock-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 5.4vw, 34px);
  letter-spacing: .02em;
  color: var(--cyan);
}

.page-home .hero__clock-note {
  font-size: 12.5px;
  color: var(--muted);
}

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

.page-home .hero__stage {
  display: grid;
  gap: 12px;
}

.page-home .hero__visual {
  margin: 0;
  border-color: rgba(55, 232, 211, .22);
}

.page-home .chapter-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .chapter-card {
  display: block;
  height: 100%;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(11, 18, 36, .92), rgba(4, 6, 13, .62));
  color: var(--ink);
  text-decoration: none;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}

.page-home .chapter-card:hover,
.page-home .chapter-card:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-2px);
  background: linear-gradient(158deg, rgba(12, 42, 42, .9), rgba(4, 6, 13, .7));
}

.page-home .chapter-card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--purple);
}

.page-home .chapter-card__title {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}

.page-home .chapter-card__desc {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- SCHEDULE ---------- */
.page-home .home-schedule__head .eyebrow {
  margin: 0;
}

.page-home .home-schedule__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  margin: 10px 0 0;
}

.page-home .home-schedule__lead {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  opacity: .82;
}

.page-home .home-schedule__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.page-home .chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: rgba(4, 6, 13, .5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-home .chip--on {
  border-color: rgba(55, 232, 211, .55);
  color: var(--cyan);
  background: rgba(55, 232, 211, .08);
}

.page-home .home-schedule__body {
  display: grid;
  gap: clamp(20px, 3.4vw, 34px);
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .home-schedule__map {
  margin: 0;
  border-color: rgba(55, 232, 211, .2);
}

.page-home .match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .match {
  display: grid;
  gap: 10px;
  padding: 15px 16px;
  background: rgba(4, 6, 13, .74);
}

.page-home .match__when {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
}

.page-home .match__day {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--purple);
}

.page-home .match__time {
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--ink);
}

.page-home .match__code {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-left: auto;
}

.page-home .match__pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.page-home .match__side {
  color: var(--ink);
}

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

.page-home .match__state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .match__note {
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .tag--done {
  border-color: rgba(140, 154, 177, .4);
  color: var(--muted);
}

.page-home .home-schedule__note {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-schedule__note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 232, 211, .45);
}

/* ---------- NAV COMPARE ---------- */
.page-home .home-nav__head .eyebrow {
  margin: 0;
}

.page-home .home-nav__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  margin: 10px 0 0;
}

.page-home .home-nav__lead {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  opacity: .82;
}

.page-home .nav-compare {
  display: grid;
  gap: clamp(20px, 3.4vw, 34px);
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .nav-compare__col {
  display: grid;
  gap: 14px;
}

.page-home .entry-card {
  position: relative;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(11, 18, 36, .92), rgba(4, 6, 13, .7));
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.page-home .entry-card--mini::before {
  background: linear-gradient(to bottom, var(--cyan), rgba(55, 232, 211, .1));
}

.page-home .entry-card .eyebrow {
  margin: 0;
  color: var(--muted);
}

.page-home .entry-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  margin: 10px 0 0;
}

.page-home .entry-card p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  opacity: .82;
}

.page-home .entry-card__facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.page-home .entry-card__facts li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .entry-card__facts li::before {
  content: "▸";
  color: var(--purple);
  flex: none;
}

.page-home .entry-card .btn {
  margin-top: 18px;
}

.page-home .nav-compare__device {
  margin: 0 auto;
  max-width: 320px;
  border-color: rgba(55, 232, 211, .24);
}

/* ---------- INVITE ---------- */
.page-home .home-invite {
  position: relative;
  padding-top: clamp(58px, 9vw, 116px);
}

.page-home .home-invite::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 52px;
  background: var(--violet-deep);
  border-top: 1px solid rgba(169, 123, 255, .38);
  transform: skewY(-1.8deg);
  transform-origin: left center;
}

.page-home .home-invite__head {
  position: relative;
}

.page-home .home-invite__head .eyebrow {
  margin: 0;
}

.page-home .home-invite__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  margin: 10px 0 0;
}

.page-home .home-invite__head p {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  opacity: .84;
}

.page-home .invite-steps {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: invite;
}

.page-home .invite-step {
  position: relative;
  padding: 18px 18px 20px;
  border: 1px solid rgba(169, 123, 255, .3);
  background: rgba(21, 15, 51, .66);
  counter-increment: invite;
}

.page-home .invite-step::before {
  content: "0" counter(invite);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--purple);
}

.page-home .invite-step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin: 10px 0 0;
}

.page-home .invite-step p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  opacity: .8;
}

.page-home .invite-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}

.page-home .invite-card {
  max-inline-size: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(55, 232, 211, .36);
  background: linear-gradient(160deg, rgba(55, 232, 211, .13), rgba(21, 15, 51, .82));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--cyan);
}

.page-home .invite-card--sm {
  inline-size: 120px;
  block-size: 76px;
}

.page-home .invite-card--md {
  inline-size: 176px;
  block-size: 104px;
}

.page-home .invite-card--lg {
  inline-size: 238px;
  block-size: 134px;
}

.page-home .invite-stats {
  display: grid;
  gap: 20px;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(169, 123, 255, .28);
}

.page-home .invite-stat__label {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .invite-stat__num {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: .02em;
  color: var(--cyan);
}

/* ---------- ALERTS ---------- */
.page-home .home-alerts__head .eyebrow {
  margin: 0;
}

.page-home .home-alerts__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  margin: 10px 0 0;
}

.page-home .home-alerts__head p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  opacity: .84;
}

.page-home .home-alerts__link {
  margin-top: 16px !important;
}

.page-home .home-alerts__link a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 139, 51, .5);
  padding-bottom: 2px;
}

.page-home .alert-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  position: relative;
  display: grid;
  gap: 20px;
}

.page-home .alert-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 139, 51, .75), rgba(255, 139, 51, .12));
}

.page-home .alert-step {
  position: relative;
}

.page-home .alert-step::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wine);
  border: 1px solid rgba(255, 139, 51, .65);
}

.page-home .alert-step--hot::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 139, 51, .18);
}

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

.page-home .alert-step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  margin: 8px 0 0;
}

.page-home .alert-step p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- STATUS BOARD ---------- */
.page-home .home-board__head .eyebrow {
  margin: 0;
}

.page-home .home-board__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  margin: 10px 0 0;
}

.page-home .home-board__head p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .status-board {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .status-cell {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 18px;
  background: rgba(11, 18, 36, .88);
}

.page-home .status-cell__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.page-home .status-cell--soon .status-cell__dot {
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(169, 123, 255, .18);
}

.page-home .status-cell--live .status-cell__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(55, 232, 211, .2);
  animation: home-pulse 1.8s ease-in-out infinite;
}

.page-home .status-cell--done .status-cell__dot {
  background: var(--muted);
}

.page-home .status-cell--changed .status-cell__dot {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 139, 51, .22);
}

.page-home .status-cell h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.page-home .status-cell p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .status-cell a {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 232, 211, .4);
  padding-bottom: 2px;
}

.page-home .home-board__visual {
  margin: clamp(22px, 3.6vw, 34px) 0 0;
  border-color: rgba(255, 139, 51, .22);
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- BOTTOM BAND ---------- */
.page-home .home-band {
  background:
    linear-gradient(90deg, rgba(255, 139, 51, .16), rgba(255, 139, 51, .03) 62%, transparent),
    var(--abyss);
  border-top: 1px solid rgba(255, 139, 51, .42);
  border-bottom: 1px solid var(--line);
}

.page-home .home-band__inner {
  display: grid;
  gap: 12px;
  padding: 20px 0;
}

.page-home .home-band__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--orange);
  border: 1px solid rgba(255, 139, 51, .5);
  padding: 5px 10px;
  justify-self: start;
  white-space: nowrap;
}

.page-home .home-band__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-band__link {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 139, 51, .5);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- LINK ROW ---------- */
.page-home .home-links {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}

.page-home .home-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.page-home .home-links__list a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .home-links__list a:hover,
.page-home .home-links__list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- BREAKPOINTS ---------- */
@media (min-width: 640px) {
  .page-home .match {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
  }

  .page-home .match__when {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .page-home .match__code {
    margin-left: 0;
    width: 100%;
  }

  .page-home .match__pair {
    flex-wrap: nowrap;
  }

  .page-home .match__state {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .page-home .invite-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .home-band__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
  }

  .page-home .invite-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .status-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  }

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

  .page-home .nav-compare {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }

  .page-home .home-alerts__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-home .status-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .status-cell--live .status-cell__dot {
    animation: none;
  }

  .page-home .chapter-card {
    transition: none;
  }
}
