.mapTile {
  position: absolute;
  pointer-events: none;
}

.tileContainer {
  position: relative;
}

.tile {
  position: absolute;
  pointer-events: auto;
}

.anomalyOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-anomaly-overlay);
  pointer-events: none;
}

/* Interactive states */
.mapTile.hovered .tile {
  filter: brightness(1.1);
  transition: filter 0.2s ease-in-out;
}

.mapTile.selected .tile {
  filter: brightness(1.2) saturate(1.1);
  outline: 3px solid var(--mantine-color-blue-6);
  outline-offset: 2px;
  border-radius: var(--mantine-radius-sm);
  transition: all 0.2s ease-in-out;
}

.mapTile.selected.hovered .tile {
  filter: brightness(1.3) saturate(1.2);
}

/* Export standalone classes so TS can reference classes.selected, classes.hovered, etc. */
.selected {}
.hovered {}
.distanceSelected {}
.distanceHoverable {}
.movingMode {}

/* Focus styles for accessibility */
.tile:focus {
  outline: 2px solid var(--mantine-color-blue-6);
  outline-offset: 2px;
}

/* Movement mode makes tiles clearly interactive */
.movingMode .tile {
  cursor: pointer;
}

.ringPosition {
  position: absolute;
  top: 270px;
  left: 215px;
  color: white;
  font-family: 'Slider', system-ui, -apple-system, sans-serif;
  font-weight: bold;
  font-size: 26px;
  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black,
    -2px 0 0 black,
    2px 0 0 black,
    0 -2px 0 black,
    0 2px 0 black;
  pointer-events: none;
  z-index: var(--z-ring-position);
}

.ringPositionBlue {
  color: var(--mantine-color-blue-5);
}

.ringPositionOrange {
  color: var(--mantine-color-orange-5);
}

.planetCircle {
  position: absolute;
  border-radius: 50%;
  background-color: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: var(--z-planet-circle);
}

/* Overlay that sits above all tile content when in movement mode */
.interactiveOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-interactive-overlay);
  pointer-events: auto;
  cursor: pointer;
}