/* A charcoal folding board: geography, names, and leaders are printed ink.
   Small brass pins are attached to the board and travel with it. */
.card-slot[data-kind='map'], .card-wrapper.kind-map {
  --map-width: min(1240px, calc(100vw - 96px));

  width: var(--map-width);
  height: calc(var(--map-width) / 2 + 47px);
  aspect-ratio: auto;
}
.kind-map .card-layout { width: 100%; height: 100%; transform: none; }
.places-board {
  padding: 22px 26px;
  gap: 15px;
  color: #bcbcb7;
  border: 1px solid #aaa79a55;
  border-radius: 4px;
  background-color: #2a2c2e;
  background-image: var(--grain), linear-gradient(90deg, transparent 49.8%, #08090a49 50%, #bbb8ab18 50.2%, transparent 50.6%);
  box-shadow: 0 1px 0 #92918a, 0 3px 0 #555657, 0 5px 0 #303234, 0 7px 0 #1a1c1e, 0 13px 8px -6px #000b, 0 25px 35px -14px #000d;
}
.places-board::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid #aaa79a30;
  border-radius: 2px;
  pointer-events: none;
}
.map-board-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #c2b58f;
  font: 500 11px/1.3 var(--font-sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.map-board-heading span:last-child { color: #94948f; font-size: 9px; }
.map-field {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 2;
  border: 1px solid #b2afa030;
  background-color: #202224;
  background-image: var(--grain), repeating-linear-gradient(0deg, transparent 0, transparent calc(16.666% - 1px), #c2beb010 calc(16.666% - 1px), #c2beb010 16.666%), repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), #c2beb010 calc(8.333% - 1px), #c2beb010 8.333%);
  box-shadow: inset 0 0 35px #080a0c50, 0 1px 0 #b4ab8c1f;
  pointer-events: none;
}
.map-land, .map-print { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-land { opacity: .88; }
.map-place-leader { stroke: #bba673aa; stroke-width: .8; fill: none; }
.map-place-name {
  fill: #d2c39d;
  stroke: #252729;
  stroke-width: 2.5;
  paint-order: stroke fill;
  font: 11px var(--font-sans);
  letter-spacing: .2px;
}
.map-ocean { position: absolute; color: #b2b0a450; font: italic clamp(5px, .8vw, 10px)/1.3 Georgia, serif; letter-spacing: .15em; }
.map-ocean-pacific { left: 8%; top: 54%; }
.map-ocean-atlantic { left: 43%; top: 49%; }
.map-ocean-indian { left: 69%; top: 66%; }
.map-compass { position: absolute; bottom: 11%; right: 5%; color: #aaa38d80; font: clamp(6px, .9vw, 11px)/1.5 Georgia, serif; text-align: center; }
.map-piece {
  position: absolute;
  z-index: 1;
  width: 1%;
  aspect-ratio: 1;
  border: 1px solid #b49c63;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--grain), radial-gradient(ellipse at 35% 20%, #d2bb7e, #9f7f43 65%, #715c35);
  box-shadow: 0 1px 0 #846b3d, 0 2px 0 #59492f, 1px 3px 2px #080a0caa;
}

@media (max-width: 760px) {
  .card-slot[data-kind='map'], .card-wrapper.kind-map {
    --map-width: calc(100vw - 56px);

    height: calc(var(--map-width) / 2 + 40px);
  }
  .places-board { padding: 16px 13px; gap: 10px; }
  .places-board::before { inset: 6px; }
  .map-board-heading { font-size: 8px; letter-spacing: .1em; }
  .map-board-heading span:last-child { font-size: 7px; }
  .map-ocean { letter-spacing: .08em; }
  .map-piece { border-width: .5px; box-shadow: 0 1px 0 #59492f, .5px 2px 1px #080a0caa; }
}
