.modal:has(.map-chart) {
  width: min(100%, 57rem);
  max-width: none;
  border-radius: .8rem;
  padding: clamp(1rem, 2.3vw, 1.8rem);
}
.modal:has(.map-chart) .modal-head { margin-bottom: 1rem; padding-bottom: 1rem; }
.modal:has(.map-chart) .eyebrow { font-size: .78rem; letter-spacing: .12em; }
.map-chart {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(13rem, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  color: #eff1df;
}
.map-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  align-items: stretch;
  gap: .5rem;
}
.map-chart-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid #526c69;
  border-radius: .42rem;
  background: #142e35;
  cursor: pointer;
}
.map-chart-card:hover { border-color: #d8bb82; }
.map-chart-card[aria-pressed="true"] {
  border-color: #f3cb80;
  box-shadow: 0 0 0 1px #f3cb80 inset;
  background: #354236;
}
.map-chart :is(button, progress):focus-visible { outline: 2px solid #ffe4a2; outline-offset: 2px; }
.map-chart-card canvas, .map-chart-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2.24;
  height: auto;
  image-rendering: pixelated;
}
.map-chart-card canvas { background-color: #466264; }
.map-chart-locked canvas { filter: saturate(.6) brightness(.73); }
.map-chart-locked[aria-pressed="true"] canvas, .map-chart-locked:hover canvas { filter: saturate(.85) brightness(.92); }
.map-chart-caption {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: .25rem;
  padding: .46rem .55rem .55rem;
}
.map-chart-caption strong { font: 600 .94rem/1.14 Georgia, serif; color: #fbebc4; }
.map-chart-caption small { color: #c0d3c1; font: .75rem/1.1 system-ui, sans-serif; }
.map-chart-card[aria-current="true"] small { color: #ffda87; font-weight: 650; }
.map-chart-locked small { color: #a3b7b7; }
.map-chart-detail {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: .9rem;
  padding-left: 1.1rem;
  border-left: 1px solid #3b5558;
  min-width: 0;
}
.map-chart-cover { border-radius: .4rem; border: 1px solid #778f7d; }
.map-chart-area { color: #beccbc; font: .86rem/1.3 system-ui, sans-serif; }
.map-chart-info h3 { margin: .26rem 0 .9rem; font: normal clamp(1.55rem, 2.5vw, 2rem)/1.05 Georgia, serif; color: #ffdb95; }
.map-chart-mission { border-top: 1px solid #476264; padding-top: .7rem; }
.map-chart-mission h4 { margin: 0; font: 600 .9rem/1.2 system-ui, sans-serif; color: #e5edda; }
.modal .map-chart-mission p { margin: .3rem 0; font: .95rem/1.45 system-ui, sans-serif; color: #c1d0c7; }
.map-chart-progress { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; }
.map-chart-progress[hidden], .map-chart-back[hidden] { display: none; }
.map-chart-progress progress {
  accent-color: #e2bd72; flex: 1; width: 0;
  height: .34rem; border: 0; border-radius: 8px; background-color: #3d5356;
}
.map-chart-progress progress::-webkit-progress-bar { border-radius: 8px; background-color: #3d5356; }
.map-chart-progress progress::-webkit-progress-value { border-radius: 8px; background-color: #e2bd72; }
.map-chart-progress progress::-moz-progress-bar { border-radius: 8px; background-color: #e2bd72; }
.map-chart-progress span { font: .8rem/1.1 system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #e5dbb4; }
.map-chart-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: .4rem; }
.map-chart-actions .primary { margin: 0; padding: .7rem 1rem; border-radius: .35rem; font: 650 .95rem/1.2 system-ui, sans-serif; letter-spacing: normal; }
.map-chart-actions .primary:disabled { background: #354c50; color: #c3d1ce; border-color: #5a7171; box-shadow: none; cursor: default; }
.map-chart-actions .quiet { margin: 0; padding: .6rem .65rem; font: .9rem/1.2 system-ui, sans-serif; }
@media (max-width: 660px) {
  .modal:has(.map-chart) { max-height: 94dvh; }
  .modal:has(.map-chart) .modal-head { margin-bottom: .7rem; padding-bottom: .7rem; }
  .map-chart { display: flex; flex-direction: column; gap: .8rem; }
  .map-chart-grid { max-height: 44dvh; overflow-y: auto; padding: 3px; gap: .43rem; scrollbar-width: thin; }
  .map-chart-cover, .map-chart-area { display: none; }
  .map-chart-detail { width: 100%; padding: .7rem 0 0; border: 0; border-top: 1px solid #496262; gap: .55rem; }
  .map-chart-info h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
  .map-chart-mission { border: 0; padding: 0; }
  .map-chart-mission p { line-height: 1.32; }
  .map-chart-actions .primary { flex: 1; }
  .map-chart-caption { padding: .35rem .4rem .4rem; gap: .18rem; }
  .map-chart-caption strong { font-size: .88rem; }
}
@media (max-height: 550px) and (min-width: 600px) {
  .map-chart { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(12rem, 1fr); gap: 1rem; }
  .map-chart-grid { max-height: 56dvh; overflow-y: auto; padding: 3px; scrollbar-width: thin; }
  .map-chart-cover { display: none; }
}
