﻿#map-container {
  --color-player: #4a90d9;
  --color-computer: #e87c3e;
  --color-player-highlight: #6bb0f0;
  --color-computer-highlight: #ff9f5a;
  --color-ocean: #1b4f72;
  --color-border: #2c3e50;

  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: radial-gradient(circle at 50% 38%, #2f6e96 0%, var(--color-ocean) 68%, #12374f 100%);
}

#game-map {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  display: block;
  background: transparent;
}

#game-map .region {
  fill: var(--color-computer);
  stroke: var(--color-border);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: fill 0.5s ease-in-out, filter 0.2s ease, stroke 0.25s ease, stroke-width 0.25s ease;
}

#game-map .region-player,
#game-map .owner-player {
  fill: var(--color-player);
}

#game-map .region-computer,
#game-map .owner-computer {
  fill: var(--color-computer);
}

#game-map .region-capturing {
  filter: brightness(1.5);
}

#game-map .region-player-pulse {
  animation: regionPulse 0.5s ease-in-out;
}

#game-map .region-highlight {
  stroke: #f3f6ff;
  stroke-width: 3;
  animation: region-border-pulse 1.2s ease-in-out infinite;
}

@keyframes region-border-pulse {
  0% {
    stroke-opacity: 0.45;
  }
  50% {
    stroke-opacity: 1;
  }
  100% {
    stroke-opacity: 0.45;
  }
}

@keyframes regionPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}
