.map-screen {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.map-side-panel {
  background: linear-gradient(180deg, rgba(33, 36, 52, 0.8), rgba(18, 20, 31, 0.85));
  padding: 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.map-canvas {
  position: relative;
  background: radial-gradient(circle at top, rgba(60, 72, 115, 0.65), rgba(23, 26, 43, 0.85));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  padding: 24px;
  max-height: 720px;
}

.map-inner {
  position: relative;
  width: 100%;
  min-height: 640px;
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mix-blend-mode: screen;
  opacity: 0.25;
  pointer-events: none;
}

.map-line-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-line {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

.map-line[data-active="true"] {
  stroke: rgba(247, 194, 89, 0.75);
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(247, 194, 89, 0.35));
}

.map-node-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.map-node {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), rgba(47, 50, 73, 0.92));
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  transform: translate(-50%, -50%);
  transition: transform 140ms ease, border 140ms ease, box-shadow 140ms ease;
  cursor: default;
  padding: 0;
  outline: none;
}

.map-node::after {
  content: attr(data-label);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.map-node[data-available="true"] {
  cursor: pointer;
  border-color: rgba(247, 194, 89, 0.8);
  box-shadow: 0 0 18px rgba(247, 194, 89, 0.35);
}

.map-node[data-available="true"]:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.map-node[data-active="true"] {
  border-color: rgba(247, 194, 89, 1);
  box-shadow: 0 0 22px rgba(247, 194, 89, 0.55);
  transform: translate(-50%, -50%) scale(1.05);
}

.map-node[data-visited="true"] {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(65, 68, 92, 0.9));
  border-color: rgba(255, 255, 255, 0.12);
}

.map-node-icon {
  font-size: 1.7rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.map-legend {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.map-legend-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
}

.map-progress {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}

.map-actions {
  margin-top: 16px;
}

.map-stats {
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
  border-radius: 12px;
  gap: 6px;
}

.map-relics {
  margin-top: 8px;
  gap: 4px;
  font-size: 0.9rem;
}
