.map-page {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #10130f;
  overflow: hidden;
}

.map-hud {
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: rgba(34, 25, 20, 0.94);
  border-bottom: 1px solid rgba(201, 169, 110, 0.36);
  color: #F5F0EB;
}

.map-hud__button {
  min-width: 68px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 169, 110, 0.42);
  border-radius: 999px;
  background: transparent;
  color: #F1D38B;
  cursor: pointer;
  font-weight: 700;
}

.map-hud__title {
  font-family: var(--font-title);
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.map-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.map-stage__tip {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(34, 25, 20, 0.78);
  color: #F5F0EB;
  font-size: 0.78rem;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.map-legend {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 12px;
  background: rgba(34, 25, 20, 0.94);
  border-top: 1px solid rgba(201, 169, 110, 0.24);
  color: #F5F0EB;
  font-size: 0.72rem;
  overflow-x: auto;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid rgba(245, 240, 235, 0.5);
}

.legend-dot--locked {
  background: #7D7466;
}

.legend-dot--available {
  background: #C41A1A;
  border-color: #F1D38B;
}

.legend-dot--done {
  background: #2E7D4F;
  border-color: #E7D7B7;
}

.legend-dot--book {
  background: #C9A96E;
}

@media (max-width: 768px) {
  .map-hud__title {
    font-size: 0.96rem;
  }

  .map-stage__tip {
    bottom: 10px;
    font-size: 0.7rem;
    white-space: normal;
  }

  .map-legend {
    gap: 10px;
    justify-content: flex-start;
  }
}