/**
 * Homepage-specific layout for the full-viewport landing stage and embedded
 * Server Stats hub. Shared metric and leaderboard styling stays in BMStats CSS.
 */

html.home-long-html,
body.home-long-body {
  display: block;
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
}

body.home-long-body {
  padding: 0;
}

.home-landing-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--bm-ink);
}

.home-landing-stage .container {
  margin-top: clamp(80px, 12vh, 140px);
  margin-bottom: clamp(48px, 8vh, 120px);
}

.home-stats-trigger {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 38px;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(223, 231, 245, 0.34);
  border-radius: 8px;
  background: rgba(20, 26, 35, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-stats-trigger span {
  padding: 8px 18px 7px;
  color: #ffffff;
  font-family: "Minecraft Tooltip", monospace;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.home-stats-trigger:hover,
.home-stats-trigger:focus-visible {
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(143, 220, 255, 0.68);
  background: rgba(10, 20, 34, 0.97);
  outline: none;
}

.home-stats-trigger:focus-visible span {
  outline: 3px solid rgba(143, 220, 255, 0.78);
  outline-offset: 3px;
}

.home-stats-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 0 clamp(64px, 9vw, 120px);
  border-top: 1px solid rgba(143, 220, 255, 0.16);
  background: rgba(5, 11, 19, 0.22);
}

.home-stats-page {
  margin: 0 auto;
  outline: none;
}

.home-server-stats-hero h2 {
  margin: 10px 0 12px;
  color: var(--bm-ink);
  font-size: clamp(46px, 8vw, 82px);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-stats-trigger {
    transition: none;
  }
}

@media (max-width: 600px) {
  .home-landing-stage {
    display: block;
    padding: 22px 16px 94px;
  }

  .home-landing-stage .site-top-links {
    position: static;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .home-landing-stage .site-top-links .site-link {
    max-width: 31%;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
  }

  .home-landing-stage .site-top-links .site-link:first-child {
    text-align: left;
  }

  .home-landing-stage .site-top-links .site-link:last-child {
    text-align: right;
  }

  .home-landing-stage .container {
    margin-top: clamp(42px, 7vh, 72px);
    margin-bottom: 20px;
  }

  .home-stats-trigger {
    bottom: 14px;
    min-height: 36px;
  }

  .home-stats-trigger span {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }

  .home-stats-stage {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .home-server-stats-hero h2 {
    font-size: clamp(38px, 13vw, 54px);
  }
}
