.game-map-frame {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.game-map-region {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 28px;
  color: var(--ink);
  text-align: center;
}

.game-map-region strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.game-map-shell {
  width: min(420px, 100%);
  display: grid;
  justify-self: center;
}

.game-map-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  justify-self: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.game-map-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #dedfe3;
  border-radius: 6px;
  background: #f4f4f5;
  color: var(--muted);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: clamp(14px, 2.1vw, 22px);
  font-weight: 900;
  line-height: 1;
}

button.game-map-cell {
  cursor: pointer;
}

.game-map-arrow {
  position: absolute;
  z-index: 2;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.game-map-arrow:hover {
  border-color: var(--ink);
  background: #eeeeef;
}

.game-map-arrow-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.game-map-arrow-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.game-map-arrow-top {
  top: 0;
}

.game-map-arrow-bottom {
  bottom: 0;
}

.game-map-shell.is-map-slide-left {
  animation: game-map-slide-left 240ms ease both;
}

.game-map-shell.is-map-slide-right {
  animation: game-map-slide-right 240ms ease both;
}

.game-map-shell.is-map-slide-up {
  animation: game-map-slide-up 240ms ease both;
}

.game-map-shell.is-map-slide-down {
  animation: game-map-slide-down 240ms ease both;
}

@keyframes game-map-slide-left {
  from {
    transform: translateX(-22px);
    opacity: 0.35;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes game-map-slide-right {
  from {
    transform: translateX(22px);
    opacity: 0.35;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes game-map-slide-up {
  from {
    transform: translateY(-22px);
    opacity: 0.35;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes game-map-slide-down {
  from {
    transform: translateY(22px);
    opacity: 0.35;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
