body.map-wide { overflow-x: hidden; }

body.map-wide .top {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  max-width: none;
  margin: 0;
  padding: 16px min(4vw, 48px);
  border-bottom: 0;
}

body.map-wide .top .brand { font-size: 18px; }
body.map-wide .top nav a {
  margin-left: min(2vw, 20px);
  font-size: 14px;
}

body.map-wide main { max-width: none; padding: 0; }

body.map-wide footer {
  max-width: none;
  padding-left: min(4vw, 48px);
  padding-right: min(4vw, 48px);
}

.map-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 60px;
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

#sky {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: none;
}

.map-overlay {
  position: absolute;
  z-index: 2;
  top: 104px;
  left: min(4vw, 48px);
  max-width: min(620px, 70vw);
  pointer-events: none;
}

.map-kicker {
  font: 12px/1.4 system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 10px #000;
}

.map-overlay h1 {
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.08;
  font-weight: 400;
  margin: 10px 0 10px;
  text-shadow: 0 2px 18px #000;
}

.map-overlay p {
  margin: 0;
  color: #b9b1a5;
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 1px 12px #000;
}

.map-stats {
  position: absolute;
  z-index: 2;
  left: min(4vw, 48px);
  bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.map-stat {
  padding: 8px 14px;
}

.map-stat b {
  display: inline-block;
  margin-right: 7px;
  font: 600 20px/1 system-ui, sans-serif;
  color: var(--accent);
  text-shadow: 0 1px 10px #000;
}

.map-stat span {
  font: 12px/1.4 system-ui, sans-serif;
  color: #9f988d;
  text-shadow: 0 1px 10px #000;
}

.map-data {
  position: absolute;
  z-index: 2;
  left: min(4vw, 48px);
  bottom: 64px;
  font: 11px/1.4 system-ui, sans-serif;
  color: rgba(190, 180, 165, .62);
  letter-spacing: .04em;
  text-shadow: 0 1px 8px #000;
  pointer-events: none;
}

.map-legend {
  position: absolute;
  z-index: 3;
  right: min(4vw, 48px);
  bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
  max-width: min(560px, 60vw);
  font: 11px/1.4 system-ui, sans-serif;
  color: #9f988d;
}

.map-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-shadow: 0 1px 8px #000;
}

.map-legend button:hover,
.map-legend button:focus-visible { color: #f0e5d5; outline: 1px solid var(--accent); }
.map-legend button[aria-pressed="true"] { color: #f3d6b4; }
.map-legend .map-legend-all { border: 1px solid var(--line); }
.map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.map-hint {
  position: absolute;
  z-index: 2;
  left: min(4vw, 48px);
  top: 50%;
  font: 11px/1.5 system-ui, sans-serif;
  color: rgba(190, 180, 165, .5);
  pointer-events: none;
  writing-mode: vertical-rl;
  letter-spacing: .08em;
}

.map-tip {
  position: fixed;
  z-index: 30;
  max-width: 310px;
  padding: 10px 13px;
  border: 1px solid #4b3d2e;
  border-radius: 10px;
  background: rgba(20, 18, 15, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  font: 13px/1.55 system-ui, sans-serif;
  color: var(--text);
  pointer-events: none;
  display: none;
}

.map-tip b { color: var(--accent); font-weight: 600; }
.map-tip small { color: var(--dim); word-break: break-all; }

.map-lines,
.map-growth,
.map-voice {
  margin-left: min(4vw, 48px);
  margin-right: min(4vw, 48px);
}

.map-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.map-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #151310;
  font: 14px/1.65 system-ui, sans-serif;
  color: var(--dim);
}

.map-note b { color: var(--text); font-weight: 600; }

.map-growth { margin-top: 38px; }
.map-growth h2 { font-size: 26px; font-weight: 400; margin: 0 0 6px; }
.map-growth > p { margin: 0 0 18px; color: var(--dim); }

.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.growth-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  background: #151310;
}

.growth-card h3 {
  margin: 0 0 4px;
  font: 600 15px/1.4 system-ui, sans-serif;
  color: var(--text);
}

.growth-card p { margin: 0; font: 13px/1.6 system-ui, sans-serif; color: var(--dim); }

.map-voice {
  margin-top: 34px;
  padding: 24px 26px;
  border-radius: 14px;
  border: 1px solid #40342a;
  background: linear-gradient(135deg, rgba(226, 168, 120, .08), rgba(226, 168, 120, .01));
  font-size: 17px;
}

.map-voice p { margin: 0 0 12px; }
.map-voice p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .map-stage { height: 100svh; min-height: 520px; }
  .map-overlay { top: 96px; left: 18px; right: 18px; max-width: none; }
  .map-overlay h1 { font-size: clamp(28px, 8vw, 40px); }
  .map-stats { left: 18px; bottom: 92px; }
  .map-data { left: 18px; bottom: 128px; }
  .map-legend { left: 18px; right: 18px; bottom: 14px; max-width: none; justify-content: flex-start; }
  .map-hint { display: none; }
  .map-lines, .map-growth, .map-voice { margin-left: 18px; margin-right: 18px; }
  .map-lines { grid-template-columns: 1fr; }
  .map-tip { max-width: calc(100vw - 36px); }
}


@media (prefers-reduced-motion: reduce) {
  #sky { animation: none !important; }

/* presentation polish */
.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(226, 168, 120, .28);
  border-radius: 999px;
  background: rgba(20, 18, 15, .42);
  color: #e2a878;
  font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.map-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2a878;
  box-shadow: 0 0 10px rgba(226,168,120,.8);
}
.map-how {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(226,168,120,.35);
  border-radius: 999px;
  color: #f0d8c0;
  font: 13px/1 system-ui, sans-serif;
  text-decoration: none;
  background: rgba(20,18,15,.28);
  backdrop-filter: blur(4px);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.map-how:hover { color: #fff0cf; border-color: rgba(226,168,120,.65); background: rgba(226,168,120,.08); }

.map-seo {
  margin: 34px min(4vw, 48px) 0;
  scroll-margin-top: 24px;
}
.map-seo-head { max-width: 860px; margin-bottom: 18px; }
.map-seo-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font: 600 12px/1.2 system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.map-seo h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
.map-seo-lead {
  margin: 0;
  color: var(--dim);
  font: 16px/1.75 system-ui, sans-serif;
}
.map-seo .map-lines {
  margin: 22px 0 0;
}

@media (max-width: 760px) {
  .map-seo { margin-left: 18px; margin-right: 18px; }
  .map-seo-lead { font-size: 15px; }
}
