/**
 * Homepage About story. Narrative sections stay unframed while the compact
 * live values and interactive District map use the established BMStats shell.
 */

.home-about {
  display: grid;
  width: 100%;
  margin-top: 0;
  color: var(--bm-ink);
  scroll-margin-top: 28px;
}

.home-about:focus {
  outline: none;
}

.home-about-block,
.home-about-finale {
  padding: 64px 46px;
  border-top: 1px solid rgba(143, 220, 255, 0.2);
  background: rgba(5, 11, 19, 0.74);
}

.home-about-block:nth-child(even) {
  background: rgba(9, 20, 34, 0.8);
}

.home-about-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: 36px 56px;
}

.home-about-copy {
  max-width: 780px;
}

.home-about-copy-wide {
  max-width: 980px;
}

.home-about h2 {
  margin: 14px 0 22px;
  color: var(--bm-aqua);
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-about p {
  margin: 0 0 18px;
  color: var(--bm-ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.home-about p:last-child {
  margin-bottom: 0;
}

.home-about-lede {
  color: var(--bm-ink) !important;
  font-size: 21px !important;
  line-height: 1.68 !important;
}

.home-about strong {
  color: var(--bm-ink);
}

.home-about code {
  padding: 2px 6px;
  border: 1px solid rgba(143, 220, 255, 0.24);
  border-radius: 4px;
  background: rgba(8, 18, 32, 0.78);
  color: var(--bm-aqua);
  font-family: "Minecraft Tooltip", monospace;
  font-size: 0.9em;
}

.home-about a:not(.home-about-actions a) {
  color: var(--bm-aqua);
  text-decoration: underline;
  text-decoration-color: rgba(143, 220, 255, 0.42);
  text-underline-offset: 3px;
}

.home-about-logo {
  display: block;
  width: min(100%, 330px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.34));
}

.home-about-heading {
  max-width: 900px;
  margin-bottom: 30px;
}

.home-about-columns,
.home-about-split-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 54px;
}

.home-about-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(143, 220, 255, 0.2);
}

.home-about-feature-list li {
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(143, 220, 255, 0.14);
  color: var(--bm-ink);
  font-weight: 700;
}

.home-about-feature-list li:nth-child(odd) {
  border-right: 1px solid rgba(143, 220, 255, 0.14);
}

.home-about-stat-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.home-about-stat {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid var(--bm-aqua-border);
  border-radius: 8px;
  background: rgba(8, 18, 32, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.home-about-stat span {
  color: var(--bm-ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.home-about-stat strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--bm-aqua);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
}

.home-about-district-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.home-district-visual {
  width: min(100%, 500px);
  justify-self: end;
  padding: 18px;
  border: 1px solid rgba(143, 220, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 34, 57, 0.88), rgba(9, 21, 38, 0.9));
  box-shadow: inset 0 0 28px rgba(143, 220, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.24);
}

.home-district-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
  border-radius: 7px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.13), transparent 52%),
              rgba(13, 28, 49, 0.6);
}

.home-district-ring,
.home-district-spawn {
  position: absolute;
  margin: 0;
  padding: 0;
  border-style: dashed;
  border-width: 2px;
  border-radius: 28px;
  background: transparent;
  cursor: default;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-district-ring::after {
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.055);
  content: "";
  pointer-events: none;
}

.home-district-ring-outer {
  inset: 5%;
  z-index: 1;
  border-color: rgba(124, 156, 255, 0.72);
}

.home-district-ring-middle {
  inset: 15%;
  z-index: 2;
  border-color: rgba(128, 255, 211, 0.7);
}

.home-district-ring-inner {
  inset: 26%;
  z-index: 3;
  border-color: rgba(143, 220, 255, 0.48);
}

.home-district-ring span,
.home-district-spawn span {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 8;
  width: max-content;
  max-width: 190px;
  padding: 5px 8px 4px;
  transform: translate(-50%, -7px);
  border: 1px solid rgba(143, 220, 255, 0.34);
  border-radius: 4px;
  background: rgba(5, 11, 19, 0.94);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
  color: #ffffff;
  font-family: "Minecraft Tooltip", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.home-district-ring:hover,
.home-district-ring:focus {
  z-index: 6;
  transform: scale(1.025);
  border-style: solid;
  box-shadow: 0 0 24px rgba(143, 220, 255, 0.16);
  outline: none;
}

.home-district-ring:hover span,
.home-district-ring:focus span,
.home-district-spawn:hover span,
.home-district-spawn:focus span {
  transform: translate(-50%, 0);
  opacity: 1;
}

.home-district-spawn {
  top: 50%;
  left: 50%;
  z-index: 7;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: var(--bm-gold);
  box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.36);
}

.home-district-spawn:hover,
.home-district-spawn:focus {
  transform: translate(-50%, -50%) scale(1.25);
  outline: 2px solid #ffffff;
  outline-offset: 5px;
}

.home-district-spawn span {
  top: -38px;
}

.home-about-story {
  min-width: 0;
  padding-right: 26px;
}

.home-about-story + .home-about-story {
  padding-right: 0;
  padding-left: 44px;
  border-left: 1px solid rgba(143, 220, 255, 0.18);
}

.home-about-story h2 {
  font-size: 34px;
}

.home-about-split-stories .home-about-stat-grid {
  grid-column: 1 / -1;
}

.home-about-finale {
  background: rgba(5, 11, 19, 0.82);
  text-align: center;
}

.home-about-finale h2 {
  margin-right: auto;
  margin-left: auto;
}

.home-about-finale p {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.home-about-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.home-about-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 215, 0, 0.68);
  border-radius: 8px;
  color: var(--bm-gold-soft);
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.home-about-actions a:first-child {
  border-color: var(--bm-aqua-border);
  color: var(--bm-aqua);
}

.home-about-actions a:hover,
.home-about-actions a:focus-visible {
  border-color: var(--bm-gold);
  background: rgba(255, 215, 0, 0.08);
  color: var(--bm-gold);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-district-ring,
  .home-district-spawn,
  .home-district-ring span,
  .home-district-spawn span,
  .home-about-actions a {
    transition: none;
  }
}

@media (max-width: 980px) {
  .home-about-welcome,
  .home-about-district-layout {
    grid-template-columns: 1fr;
  }

  .home-about-logo {
    width: min(52vw, 290px);
    grid-row: 1;
  }

  .home-district-visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .home-about-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-about {
    margin-top: 42px;
  }

  .home-about-block,
  .home-about-finale {
    padding: 48px 22px;
  }

  .home-about h2 {
    font-size: 34px;
  }

  .home-about-story h2 {
    font-size: 30px;
  }

  .home-about p,
  .home-about-lede {
    font-size: 16px !important;
    line-height: 1.68 !important;
  }

  .home-about-columns,
  .home-about-split-stories {
    grid-template-columns: 1fr;
  }

  .home-about-story,
  .home-about-story + .home-about-story {
    padding: 0;
    border-left: 0;
  }

  .home-about-story + .home-about-story {
    padding-top: 38px;
    border-top: 1px solid rgba(143, 220, 255, 0.18);
  }

  .home-about-stat-grid {
    margin-top: 26px;
  }

  .home-about-stat {
    min-height: 86px;
    padding: 12px;
  }

  .home-about-stat strong {
    font-size: 22px;
  }

  .home-district-visual {
    padding: 12px;
  }

  .home-district-ring span,
  .home-district-spawn span {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .home-about-feature-list {
    grid-template-columns: 1fr;
  }

  .home-about-feature-list li:nth-child(odd) {
    border-right: 0;
  }

  .home-about-stat span {
    font-size: 12px;
  }

  .home-about-stat strong {
    font-size: 20px;
  }

  .home-about-actions {
    flex-direction: column;
  }

  .home-about-actions a {
    width: 100%;
  }
}
