.season-map-wrap {
  display: grid;
  gap: 12px;
}

.season-map-stage {
  position: relative;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 1 / 1;
  background: #e8eef5;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.season-map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  z-index: 1;
}

.season-map-stage[data-map-state="ready"] .season-map-placeholder,
.season-map-placeholder[hidden] {
  display: none;
}

.season-map-overlay[hidden],
.season-map-legend[hidden] {
  display: none;
}

.season-map-overlay {
  width: 100%;
  height: 100%;
  display: block;
}

.season-map-overlay .section-poly {
  stroke: #0f172a;
  stroke-width: 0.002;
  cursor: help;
  transition: fill 0.12s ease, stroke-width 0.12s ease;
}

.season-map-overlay .section-poly.is-hovered {
  stroke-width: 0.004;
  stroke: #111827;
  filter: brightness(1.06);
}

.season-map-overlay .section-label {
  fill: #0f172a;
  font-size: 0.032px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  user-select: none;
}

.season-map-overlay .section-label.is-light {
  fill: #334155;
}

.season-map-modal {
  position: absolute;
  z-index: 5;
  min-width: 180px;
  max-width: min(280px, 70%);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.season-map-modal[hidden] {
  display: none;
}

.season-map-modal-level {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}

.season-map-modal-name {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.25;
}

.season-map-modal-buff {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.season-map-modal-buff:empty {
  display: none;
}

.season-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.season-map-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-map-legend .swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 720px) {
  .season-map-stage {
    max-width: none;
  }
}
