.page-home {
  --home-tile-radius: 14px;
  --home-section-pad: clamp(3rem, 6vw, 5rem);
  background: var(--color-primary-bg);
}

.page-home .home-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.6rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

.page-home .home-context__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.page-home .home-context__status .status-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.18);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem) 0 0;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11, 16, 38, 0.97) 0%, rgba(11, 16, 38, 0.86) 48%, rgba(11, 16, 38, 0.72) 100%);
  z-index: 0;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.page-home .home-hero__eyebrow {
  margin-bottom: 0.75rem;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.page-home .home-hero__title-accent {
  color: var(--color-accent);
}

.page-home .home-hero__title-line {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.65em;
  font-weight: 600;
}

.page-home .home-hero__lead {
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0 0 0.75rem;
}

.page-home .home-hero__trust {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.page-home .hero-search {
  margin-bottom: 2rem;
}

.page-home .hero-search__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.page-home .hero-search__box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 720px;
}

.page-home .hero-search__icon {
  position: absolute;
  left: 0.9rem;
  width: 18px;
  height: 18px;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.page-home .hero-search__input {
  width: 100%;
  height: 54px;
  padding: 0 1rem 0 2.9rem;
  background: var(--color-secondary-glass);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
  color: var(--color-text-primary);
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.page-home .hero-search__input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.page-home .hero-search__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.15);
}

.page-home .hero-search__hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
}

.page-home .hero-search__hot-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-right: 0.25rem;
}

.page-home .hero-search__hot a {
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .hero-search__hot a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(0, 229, 168, 0.06);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-home .home-tile {
  position: relative;
  border: 1px solid rgba(30, 43, 69, 0.85);
  border-radius: var(--home-tile-radius);
  background: var(--color-surface-glass);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .home-tile:hover {
  border-color: rgba(0, 229, 168, 0.45);
  box-shadow: var(--shadow-card);
}

.page-home .home-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.page-home .home-tile__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  background: rgba(0, 229, 168, 0.06);
  border: 1px solid rgba(0, 229, 168, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.page-home .home-tile__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-text-primary);
}

.page-home .home-tile__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

.page-home .home-tile__link {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 600;
  transition: color 0.2s ease;
  width: max-content;
}

.page-home .home-tile__link:hover {
  color: var(--color-text-primary);
}

.page-home .home-tile__img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  margin-top: auto;
  filter: saturate(0.9);
}

.page-home .home-tile--teams .btn--primary {
  align-self: flex-start;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.page-home .home-tile--h2h {
  background:
    linear-gradient(135deg, rgba(0, 229, 168, 0.07), transparent 55%),
    var(--color-surface-glass);
}

.page-home .home-tile--h2h .home-tile__link:first-of-type {
  margin-top: auto;
}

.page-home .home-tile__dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  align-items: center;
}

.page-home .home-tile__dashboard svg {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}

.page-home .home-dash__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.page-home .home-dash__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .home-dash__list .status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
}

.page-home .home-live {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--home-section-pad) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--color-divider);
}

.page-home .home-section__header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.page-home .home-section__header .section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-home .home-live__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-home .home-stat {
  min-height: 132px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
}

.page-home .home-stat .data-card__metric {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-accent);
}

.page-home .home-live__tabs {
  padding: 1.25rem;
  border-radius: var(--radius);
}

.page-home .home-live__panel {
  padding-top: 1rem;
}

.page-home .home-live__league-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-live__league-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.15rem;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.9rem;
}

.page-home .home-live__league-list li:last-child {
  border-bottom: 0;
}

.page-home .home-live__league {
  font-weight: 600;
  color: var(--color-text-primary);
}

.page-home .home-live__round {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-success);
}

.page-home .tab-list {
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-home .tab-button {
  white-space: nowrap;
}

.page-home .home-h2h {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--home-section-pad) clamp(1rem, 4vw, 3rem);
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.page-home .home-h2h__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-divider);
  display: block;
}

.page-home .home-h2h__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 1.1rem;
}

.page-home .h2h-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: end;
}

.page-home .h2h-compare__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.page-home .h2h-compare__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

.page-home .h2h-compare input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  background: var(--color-secondary-glass);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
  color: var(--color-text-primary);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.page-home .h2h-compare input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 168, 0.15);
}

.page-home .h2h-compare__vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-accent);
  padding-bottom: 0.8rem;
  letter-spacing: 0.08em;
}

.page-home .h2h-compare__submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.page-home .h2h-compare__hint {
  margin: 0.6rem 0 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.page-home .home-h2h__features {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .home-h2h__features li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.page-home .home-h2h__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  opacity: 0.8;
}

.page-home .home-member {
  background:
    linear-gradient(135deg, rgba(0, 229, 168, 0.055), transparent 42%),
    linear-gradient(315deg, rgba(0, 184, 217, 0.05), transparent 52%),
    var(--color-primary-bg);
  padding: var(--home-section-pad) clamp(1rem, 4vw, 3rem);
  border-block: 1px solid var(--color-divider);
}

.page-home .home-member__header {
  max-width: var(--content-max);
  margin-inline: auto;
}

.page-home .home-member__layout {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.page-home .home-member__content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 1.25rem;
}

.page-home .home-member__tabs {
  padding: 1.25rem;
  border-radius: var(--radius);
}

.page-home .home-member__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-member__option-list li {
  padding: 0.65rem 0.15rem;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.page-home .home-member__option-list li:last-child {
  border-bottom: 0;
}

.page-home .home-member__ps {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.page-home .home-member__visual {
  display: grid;
  gap: 1rem;
}

.page-home .home-member__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-divider);
  display: block;
}

.page-home .home-member__note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

.page-home .home-member__note span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.page-home .home-member__note p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-primary);
}

.page-home .home-compat {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--home-section-pad) clamp(1rem, 4vw, 3rem);
}

.page-home .home-compat__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.page-home .home-compat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-glass);
}

.page-home .home-compat__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.85rem;
}

.page-home .home-compat__item:last-child {
  border-bottom: 0;
}

.page-home .home-compat__item-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
}

.page-home .home-compat__item-value {
  color: var(--color-text-primary);
}

.page-home .home-compat__item-state {
  font-size: 0.72rem;
  color: var(--color-success);
  font-weight: 600;
  border: 1px solid rgba(0, 224, 150, 0.3);
  background: rgba(0, 224, 150, 0.08);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}

.page-home .home-compat__cta {
  display: grid;
  gap: 1rem;
}

.page-home .home-compat__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

.page-home .home-insights {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--home-section-pad) clamp(1rem, 4vw, 3rem);
}

.page-home .home-insights__grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.page-home .home-insight-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-radius: var(--radius);
  border-top: 2px solid var(--color-accent);
}

.page-home .home-insight-card__tag {
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: rgba(0, 229, 168, 0.07);
  border: 1px solid rgba(0, 229, 168, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.page-home .home-insight-card__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0;
  color: var(--color-text-primary);
}

.page-home .home-insight-card__summary {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
  flex: 1;
}

.page-home .home-insight-card__link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .home-insight-card__link:hover {
  color: var(--color-accent);
}

.page-home .home-insights__more {
  width: max-content;
}

@media (min-width: 720px) {
  .page-home .home-live__stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (min-width: 800px) {
  .page-home .home-compat__grid {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    grid-auto-rows: minmax(210px, auto);
  }

  .page-home .home-tile--teams {
    grid-row: span 2;
  }

  .page-home .home-tile__img {
    max-height: none;
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
  }

  .page-home .home-member__layout {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .page-home .home-member__visual {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }
}

@media (min-width: 980px) {
  .page-home .home-h2h {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-h2h__visual {
    order: 2;
  }

  .page-home .home-h2h__body {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
