/* Decorative side-on partitions. Load after cave.css; append the renderer inside
   .floor-row, outside room buttons. No geometry/art/actor overrides or animation.
   All coordinates use the WHOLE row width, including its fixed 54px lift. */
.facility-boundaries {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.facility-boundaries *,
.facility-boundaries *::before,
.facility-boundaries *::after {
  pointer-events: none;
}
.facility-boundary {
  position: absolute;
  left: calc(54px + ((100% - 54px) / var(--boundary-zones)) * var(--boundary-index));
  top: 3px;
  /* The lower 28px of the room remains the common foreground walk lane.
     Labels sit 10px above the room floor, safely below this partition base. */
  bottom: calc(var(--cave-rubble, 16px) + 28px);
  width: 18px;
  transform: translateX(-50%);
  filter: drop-shadow(3px 1px 3px #060b0999);
}
.facility-boundary-wall {
  position: absolute;
  /* Keep the textured partition continuous; the foreground lane stays clear. */
  inset: 0;
  background-color: #3b4436;
  background-image:
    linear-gradient(90deg, #111b16cf, #7c7c5c57 19%, #45534529 38%, #17261cad 78%, #080f0bd9),
    repeating-linear-gradient(166deg, transparent 0 21px, #c5b89022 22px, #0b130f88 24px, transparent 27px 51px),
    var(--cave-texture);
  background-size: auto, auto, 210px 280px;
  background-position: center, center, 41% 55%;
  box-shadow: inset 2px 0 2px #a8a17a25, inset -2px 0 3px #08110d9c;
  /* Eroded edges, not a clean UI stripe. */
  clip-path: polygon(9% 0, 88% 0, 100% 5%, 85% 13%, 97% 25%, 87% 40%, 100% 57%, 86% 71%, 94% 86%, 84% 100%, 13% 100%, 3% 91%, 14% 78%, 2% 64%, 11% 47%, 0 29%, 13% 16%, 2% 7%);
}
.facility-boundary-wall::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 0;
  width: 6px;
  background: linear-gradient(90deg, #68735a7a, #263b2dce 30% 72%, #121e17b3);
  box-shadow: -1px 0 1px #0b110a77, 1px 0 1px #a6a07822;
  opacity: .8;
}
.facility-boundary-wall::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 1px;
  top: 3px;
  height: 10px;
  border-radius: 2px 0 3px 1px;
  background: linear-gradient(#6c6d4b88, #2d3b28d9);
  box-shadow: 0 3px 3px #07100966;
}
