.ruins .ruins-map-card {
  background: #18241f;
  border: 1px solid #475547;
  border-radius: 18px;
  overflow: hidden;
}
.ruins-map-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: #21372e var(--ruins-art) center / 100% 100% no-repeat;
}
.ruins-map-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #10171330, transparent 30%, transparent 72%, #111a15b0);
  pointer-events: none;
}
.ruins-map-link {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  border-top: 2px dashed #e7dbb7b8;
  filter: drop-shadow(0 1px 1px #101711);
  transform-origin: left top;
  transform: rotate(var(--angle));
}
.ruins-map-link.is-done {
  border-top: 3px solid #d9be7e;
}
.ruins .ruins-map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f9e6af;
  font-size: 15px;
  font-weight: 800;
}
.outpost.ruins .ruins-map-pin:disabled { opacity: 1 !important; filter: none; }
.ruins-map-pin span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  box-sizing: border-box;
  border: 1px solid #d4bc7ec9;
  border-radius: 50%;
  background: #1d2b23;
  box-shadow: 0 2px 7px #0b100ded;
}
.ruins-map-pin.is-side span { border-style: dashed; }
.ruins-map-pin.is-locked span {
  background: #1e2a25;
  border-color: #9daa9e;
  color: #e0e4db;
}
.ruins-map-pin.is-done span {
  background: #36594a;
  color: #f3efd2;
}
.ruins-map-pin.is-open span,
.ruins-map-pin.is-next span {
  background: #f4d187;
  border-color: #fff3cd;
  color: #302412;
}
.ruins-map-pin.is-next span { box-shadow: 0 0 0 4px #fae3ad65, 0 2px 8px #141a11; }
.ruins-map-pin:focus-visible { outline: 2px solid #fff0b7; }
.ruins-map-key {
  padding: 10px 11px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 13px;
  color: #e1d9c4;
  font-size: 12px;
}

.ruins-map-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  min-width: 0;
  color: #f8efd9;
}
.ruins-map-next small { display: block; color: #c6cdbf; }
.ruins-map-next .outpost-secondary { flex: 0 0 auto; min-height: 44px; }
