:root {
  --bg: #06080c;
  --bg-alt: #090d13;
  --surface: rgba(12, 16, 23, 0.9);
  --surface-strong: rgba(16, 21, 29, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --text-soft: #b6c0ce;
  --text-muted: #7f8a98;
  --accent: #ff4655;
  --accent-strong: #ff3043;
  --accent-glow: rgba(255, 70, 85, 0.28);
  --new: #ffb369;
  --buff: #7ee2af;
  --nerf: #ff6f7c;
  --update: #8fc2ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --container: min(1180px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 70, 85, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(112, 149, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #07090d 0%, #05070a 100%);
  overflow-x: clip;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 92%);
}

body::after {
  opacity: 0.08;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  background-size: 100% 5px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section-tight {
  padding-top: 2.5rem;
}

.section-compact {
  padding-block: 3.75rem 5rem;
}

.section:not(.hero)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--container);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 18%,
    rgba(255, 70, 85, 0.25) 50%,
    rgba(255, 255, 255, 0.07) 82%,
    transparent 100%
  );
}

.eyebrow {
  margin-bottom: 0.85rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0 0 0.7rem;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-copy {
  color: var(--text-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  background: linear-gradient(135deg, var(--accent), #ff7d86);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  box-shadow: 0 0 28px var(--accent-glow);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong,
.brand-copy small {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a {
  padding: 0.7rem 0.9rem;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  border-color: rgba(255, 70, 85, 0.2);
  background: rgba(255, 70, 85, 0.08);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  padding-top: clamp(5rem, 10vw, 8rem);
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 2.2rem);
  align-items: stretch;
}

.hero-title {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.86;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 36px rgba(255, 70, 85, 0.2);
}

.hero-lead {
  max-width: 46rem;
  margin-top: 1.2rem;
  font-size: 1.03rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.9rem 0 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 0.9rem, 100% 100%, 0.9rem 100%, 0 100%);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.96), rgba(255, 48, 67, 0.92));
  border-color: rgba(255, 70, 85, 0.45);
  box-shadow: 0 12px 30px rgba(255, 70, 85, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics,
.highlights-grid,
.media-grid,
.timeline-grid,
.feature-panels,
.detail-grid,
.agents-grid,
.maps-grid,
.competitive-grid,
.sources-grid {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-panel,
.metric-card,
.highlight-card,
.media-card,
.timeline-card,
.feature-panel,
.detail-card,
.agent-card,
.rotation-panel,
.map-card,
.competitive-card,
.source-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 19, 26, 0.98), rgba(9, 12, 18, 0.96)),
    linear-gradient(135deg, rgba(255, 70, 85, 0.04), transparent 42%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.metric-card::before,
.highlight-card::before,
.media-card::before,
.timeline-card::before,
.feature-panel::before,
.detail-card::before,
.agent-card::before,
.rotation-panel::before,
.map-card::before,
.competitive-card::before,
.source-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 70, 85, 0.09), transparent 26%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 35%, transparent 100%);
  pointer-events: none;
}

.hero-panel::after,
.metric-card::after,
.highlight-card::after,
.media-card::after,
.timeline-card::after,
.feature-panel::after,
.detail-card::after,
.agent-card::after,
.rotation-panel::after,
.map-card::after,
.competitive-card::after,
.source-card::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.55), transparent);
  pointer-events: none;
}

.hero-panel,
.feature-panel,
.rotation-panel {
  padding: 1.45rem;
}

.metric-card,
.highlight-card,
.media-card,
.timeline-card,
.detail-card,
.agent-card,
.map-card,
.competitive-card,
.source-card {
  padding: 1.25rem;
}

.metric-card {
  min-height: 8rem;
}

.metric-label,
.card-kicker,
.panel-kicker,
.card-meta,
.source-patch {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.metric-label,
.card-meta,
.source-patch {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.metric-value {
  margin-top: 0.35rem;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.metric-value--compact {
  font-size: clamp(1.05rem, 2.25vw, 1.55rem);
  letter-spacing: 0.01em;
}

.metric-note {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.panel-kicker,
.card-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-head,
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-title,
.highlight-card h3,
.media-card h3,
.timeline-card h3,
.feature-panel h3,
.detail-card h3,
.agent-card h3,
.rotation-panel h3,
.map-card h3,
.competitive-card h3,
.source-card h3,
.rotation-column h3 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.panel-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.hero-panel p,
.highlight-card p,
.media-card p,
.timeline-card p,
.feature-panel p,
.detail-card p,
.agent-card p,
.map-card p,
.competitive-card p,
.source-card p,
.rotation-note {
  color: var(--text-soft);
}

.panel-list,
.card-list,
.rotation-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.panel-list li,
.card-list li,
.rotation-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-soft);
}

.panel-list li::before,
.card-list li::before,
.rotation-list li::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 0.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.chip-row,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip,
.tag,
.filter-button,
.timeline-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.chip,
.filter-button {
  color: var(--text-soft);
}

.timeline-version {
  margin-bottom: 0.8rem;
  border-color: rgba(255, 70, 85, 0.24);
  background: rgba(255, 70, 85, 0.1);
  color: var(--accent);
}

.tag--new {
  color: var(--new);
  border-color: rgba(255, 179, 105, 0.28);
  background: rgba(255, 179, 105, 0.1);
}

.tag--buff {
  color: var(--buff);
  border-color: rgba(126, 226, 175, 0.26);
  background: rgba(126, 226, 175, 0.08);
}

.tag--nerf {
  color: var(--nerf);
  border-color: rgba(255, 111, 124, 0.26);
  background: rgba(255, 111, 124, 0.1);
}

.tag--update {
  color: var(--update);
  border-color: rgba(143, 194, 255, 0.25);
  background: rgba(143, 194, 255, 0.08);
}

.hero-panel .chip-row {
  margin-top: 1.2rem;
}

.hero-visual,
.media-frame {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.hero-visual {
  aspect-ratio: 16 / 9;
  margin: -1.45rem -1.45rem 1.2rem;
}

.media-frame {
  aspect-ratio: 16 / 10;
  margin: -1.25rem -1.25rem 1rem;
}

.hero-visual::after,
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.05), rgba(6, 8, 12, 0.62)),
    linear-gradient(135deg, rgba(255, 70, 85, 0.22), transparent 46%);
  pointer-events: none;
}

.hero-visual img,
.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04);
  transform: scale(1.01);
  transition: transform 320ms ease;
}

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

.media-card {
  display: flex;
  flex-direction: column;
}

.media-card .card-head {
  margin-bottom: 0.7rem;
}

.hero-metrics .metric-card:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(14, 18, 26, 0.98), rgba(8, 11, 16, 0.96)),
    linear-gradient(135deg, rgba(111, 150, 255, 0.05), transparent 42%);
}

.highlights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card h3,
.media-card h3,
.timeline-card h3,
.detail-card h3,
.agent-card h3,
.map-card h3,
.competitive-card h3,
.source-card h3,
.rotation-column h3 {
  font-size: 1.5rem;
}

.highlight-card p,
.media-card p,
.timeline-card p,
.detail-card p,
.agent-card p,
.map-card p,
.competitive-card p,
.source-card p {
  margin-top: 0.75rem;
}

.card-index {
  color: rgba(255, 255, 255, 0.2);
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.feature-panel .chip-row {
  margin-top: 1rem;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-bar {
  margin-bottom: 1rem;
}

.filter-button {
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.filter-button.is-active {
  color: var(--text);
  border-color: rgba(255, 70, 85, 0.26);
  background: rgba(255, 70, 85, 0.1);
}

.agents-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-card.is-hidden {
  display: none;
}

.maps-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.35fr);
  gap: 1rem;
}

.rotation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.rotation-column {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.rotation-column.is-in h3 {
  color: var(--buff);
}

.rotation-column.is-out h3 {
  color: var(--nerf);
}

.rotation-note {
  margin-top: 1rem;
}

.maps-grid,
.competitive-grid,
.sources-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--accent);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.click-card {
  cursor: pointer;
}

.click-card:focus-visible,
.callout-dot:focus-visible,
.callout-entry:focus-visible {
  outline: none;
  border-color: rgba(255, 70, 85, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 70, 85, 0.16),
    0 0 0 8px rgba(255, 70, 85, 0.08);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 13, 0.92);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}

.footer-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-copy,
.footer-meta {
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid rgba(255, 70, 85, 0.22);
  background: rgba(11, 14, 20, 0.92);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    border-color 180ms ease;
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .button:hover,
  .highlight-card:hover,
  .media-card:hover,
  .timeline-card:hover,
  .feature-panel:hover,
  .detail-card:hover,
  .agent-card:hover,
  .rotation-panel:hover,
  .map-card:hover,
  .competitive-card:hover,
  .source-card:hover,
  .metric-card:hover,
  .back-to-top:hover,
  .filter-button:hover {
    transform: translateY(-4px);
  }

  .button:hover,
  .back-to-top:hover {
    border-color: rgba(255, 70, 85, 0.36);
  }

  .highlight-card:hover,
  .media-card:hover,
  .timeline-card:hover,
  .feature-panel:hover,
  .detail-card:hover,
  .agent-card:hover,
  .rotation-panel:hover,
  .map-card:hover,
  .competitive-card:hover,
  .source-card:hover,
  .metric-card:hover {
    border-color: rgba(255, 70, 85, 0.18);
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.4),
      0 0 32px rgba(255, 70, 85, 0.08);
  }

  .hero-panel:hover .hero-visual img,
  .media-card:hover .media-frame img {
    transform: scale(1.06);
  }
}

@media (max-width: 1080px) {
  .hero-metrics,
  .highlights-grid,
  .media-grid,
  .detail-grid,
  .agents-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maps-layout,
  .feature-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.4rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(8, 10, 15, 0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-grid,
  .media-grid,
  .competitive-grid,
  .maps-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 1.2rem, 100%);
  }

  .section {
    padding: 3.8rem 0;
  }

  .hero-title {
    font-size: clamp(2.9rem, 16vw, 4.6rem);
  }

  .hero-metrics,
  .highlights-grid,
  .media-grid,
  .timeline-grid,
  .detail-grid,
  .agents-grid,
  .rotation-columns {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .metric-card,
  .highlight-card,
  .media-card,
  .timeline-card,
  .feature-panel,
  .detail-card,
  .agent-card,
  .rotation-panel,
  .map-card,
  .competitive-card,
  .source-card {
    padding: 1.05rem;
  }

  .hero-visual {
    margin: -1.05rem -1.05rem 1rem;
  }

  .media-frame {
    margin: -1.05rem -1.05rem 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.site-nav-pages {
  gap: 0.55rem;
}

.hero-home .hero-grid {
  align-items: center;
}

.hero-actions-inline {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.page-hero {
  padding-top: 6rem;
}

.page-hero-grid,
.detail-hero-grid,
.detail-split-grid,
.map-detail-layout {
  display: grid;
  gap: 1rem;
}

.page-hero-grid,
.detail-split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-hero-panel,
.empty-state {
  align-self: stretch;
}

.page-hero-copy {
  margin-bottom: 0;
}

.agent-tile-visual,
.map-browser-visual,
.detail-art,
.detail-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.agent-tile-visual,
.map-browser-visual {
  margin: -1.25rem -1.25rem 1rem;
  aspect-ratio: 16 / 10;
}

.detail-art,
.detail-banner {
  min-height: 22rem;
  background:
    linear-gradient(180deg, rgba(15, 19, 26, 0.9), rgba(9, 12, 18, 0.92)),
    linear-gradient(135deg, rgba(255, 70, 85, 0.08), transparent 40%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.agent-tile-visual img,
.map-browser-visual img,
.detail-art img,
.detail-banner img,
.agent-browser-icon img,
.ability-icon img,
.map-canvas img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.agent-browser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.agent-browser-icon {
  width: 4rem;
  height: 4rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.agent-browser-card,
.agent-tile,
.map-browser-card {
  display: flex;
  flex-direction: column;
}

.agent-browser-card .source-link,
.agent-tile .source-link,
.map-browser-card .source-link,
.map-summary-card .source-link {
  margin-top: auto;
}

.detail-hero {
  padding-top: 5rem;
}

.detail-hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.95fr);
  align-items: center;
}

.detail-hero-grid-map {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr);
}

.detail-hero-copy .section-title {
  margin-bottom: 1rem;
}

.detail-chip-row {
  margin-top: 1.25rem;
}

.detail-note {
  margin-top: 1rem;
  color: var(--text-muted);
}

.detail-art img {
  object-fit: contain;
  object-position: center top;
}

.detail-banner img {
  object-fit: cover;
}

.ability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ability-card {
  min-height: 100%;
}

.ability-icon {
  width: 3.4rem;
  height: 3.4rem;
  padding: 0.65rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.maps-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agents-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-summary-card,
.map-browser-card {
  min-height: 100%;
}

.map-detail-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.map-canvas-panel {
  padding-bottom: 1.2rem;
}

.callout-focus {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.callout-focus.is-idle {
  opacity: 0.88;
}

.callout-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.callout-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.callout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  padding: 0.4rem 0.2rem;
  color: var(--text-soft);
  user-select: none;
}

.callout-toggle-copy,
.callout-toggle-state {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.callout-toggle-state {
  min-width: 1.9rem;
  color: var(--text-muted);
  text-align: right;
}

.callout-toggle-input {
  appearance: none;
  position: relative;
  width: 3.2rem;
  height: 1.75rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.callout-toggle-input::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.24rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(244, 247, 251, 0.88);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.callout-toggle-input:checked {
  border-color: rgba(255, 70, 85, 0.26);
  background: rgba(255, 70, 85, 0.16);
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.08);
}

.callout-toggle-input:checked::before {
  transform: translate(1.35rem, -50%);
}

.map-canvas {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at center, rgba(255, 70, 85, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.02);
}

.map-canvas img {
  object-fit: contain;
  padding: 0;
}

.callout-dot {
  position: absolute;
  width: 0.95rem;
  height: 0.95rem;
  padding: 0;
  border: 1px solid rgba(255, 70, 85, 0.45);
  border-radius: 50%;
  background: rgba(255, 70, 85, 0.9);
  box-shadow: 0 0 0 6px rgba(255, 70, 85, 0.12);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.callout-dot::before,
.callout-dot::after {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.callout-dot::before {
  width: 1.8rem;
  height: 1.8rem;
  background: radial-gradient(circle, rgba(255, 70, 85, 0.26), rgba(255, 70, 85, 0));
  opacity: 0;
}

.callout-dot::after {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 190, 196, 0.7);
  opacity: 0;
}

.callout-dot.is-muted {
  opacity: 0.18;
  box-shadow: none;
}

.callout-dot.is-suppressed {
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  transform: translate(-50%, -50%) scale(0.72);
}

.callout-dot.is-active {
  border-color: rgba(255, 190, 196, 0.9);
  box-shadow:
    0 0 0 8px rgba(255, 70, 85, 0.16),
    0 0 22px rgba(255, 70, 85, 0.28);
  transform: translate(-50%, -50%) scale(1.18);
}

.callout-dot.is-active::before {
  opacity: 1;
}

.callout-dot.is-triggered::after {
  animation: callout-pulse 520ms ease-out;
}

.callout-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 6.75rem;
  max-width: min(10.5rem, calc(100% - 1rem));
  padding: 0.45rem 0.65rem 0.5rem;
  border: 1px solid rgba(255, 70, 85, 0.25);
  background: rgba(7, 10, 15, 0.96);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 70, 85, 0.1);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 0.9rem));
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
}

.callout-tooltip.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.callout-tooltip.is-below {
  transform: translate(-50%, 0.9rem);
}

.callout-tooltip.is-near-left {
  transform: translate(-16%, calc(-100% - 0.9rem));
}

.callout-tooltip.is-near-right {
  transform: translate(-84%, calc(-100% - 0.9rem));
}

.callout-tooltip.is-near-left.is-below {
  transform: translate(-16%, 0.9rem);
}

.callout-tooltip.is-near-right.is-below {
  transform: translate(-84%, 0.9rem);
}

.callout-tooltip-group {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--accent);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.callout-tooltip-name {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes callout-pulse {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.9);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.1);
  }
}

.callout-groups {
  display: grid;
  gap: 1rem;
}

.callout-group.is-active {
  border-color: rgba(255, 70, 85, 0.18);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(255, 70, 85, 0.08);
}

.callout-entry-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.callout-entry {
  width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.callout-entry.is-active {
  color: var(--text);
  border-color: rgba(255, 70, 85, 0.26);
  background: rgba(255, 70, 85, 0.08);
}

.callout-group.is-hidden,
.agent-browser-card.is-hidden,
.map-browser-card.is-hidden {
  display: none;
}

.empty-state {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

@media (hover: hover) {
  .callout-dot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 70, 85, 0.16);
  }

  .callout-entry:hover {
    transform: translateX(4px);
    border-color: rgba(255, 70, 85, 0.22);
    color: var(--text);
  }
}

@media (max-width: 1080px) {
  .page-hero-grid,
  .detail-split-grid,
  .detail-hero-grid,
  .detail-hero-grid-map,
  .map-detail-layout {
    grid-template-columns: 1fr;
  }

  .ability-grid,
  .maps-grid-large,
  .agents-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .detail-art,
  .detail-banner {
    min-height: 18rem;
  }
}

@media (max-width: 640px) {
  .callout-toggle {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .agent-tile-visual,
  .map-browser-visual {
    margin: -1.05rem -1.05rem 1rem;
  }

  .ability-grid,
  .maps-grid-large,
  .agents-grid-large,
  .detail-split-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
}
