.plan-view { max-width: 1200px; }
.plan-workbench { margin: 1.4rem 0 0; padding: 1rem; border: 1px solid #8b7950; background: radial-gradient(circle at 50% 45%, #304a43 0, #1b2925 54%, #101a18 100%); box-shadow: inset 0 0 45px #050c0a, 0 12px 36px #0008; color: #d5dec8; }
.plan-workbench-head, .plan-workbench-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font: 11px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .12em; color: #c8b777; }
.plan-workbench-foot { padding-top: .85rem; color: #9cb8a6; }
.plan-sheets { position: relative; margin-top: .85rem; width: 100%; aspect-ratio: 900 / 440; overflow: hidden; border: 1px solid #729788; background: linear-gradient(#aecdb70b 1px, transparent 1px), linear-gradient(90deg,#aecdb70b 1px, transparent 1px), #11231f; background-size: 22px 22px, 22px 22px, auto; }
.plan-current, .plan-old, .plan-targets { position: absolute; inset: 0; }
.plan-current svg, .plan-old svg { display: block; width: 100%; height: 100%; }
.plan-current text, .plan-old text { font: 19px ui-monospace, Consolas, monospace; letter-spacing: .08em; fill: #bad0bd; }
.plan-current .plan-corridor { fill: #deb977; font-size: 21px; }
.plan-wall { fill: none; stroke: #a4c6af; stroke-width: 5; stroke-linecap: square; }
.plan-wall-soft { fill: none; stroke: #658b7d; stroke-width: 2; }
.plan-anchor { fill: #f1db8d; stroke: #16362f; stroke-width: 3; }
.plan-old { opacity: .63; pointer-events: none; transition: transform .12s ease-out; mix-blend-mode: screen; }
.plan-old-wall { fill: none; stroke: #df7857; stroke-width: 4; stroke-dasharray: 11 7; }
.plan-hidden-room { fill: #d96c4540; stroke: #f0a070; stroke-width: 5; stroke-dasharray: 10 5; }
.plan-old-door { fill: none; stroke: #f0a070; stroke-width: 4; }
.plan-old .plan-old-label { fill: #ffd099; font-size: 18px; }
.plan-old-anchor { fill: #f08c5f; stroke: #162b27; stroke-width: 3; }
.plan-target { position: absolute; bottom: 10%; width: 11%; aspect-ratio: 1; border: 2px solid #f3c572; border-radius: 50%; background: #14261bd9; color: #f5d69a; font: 700 clamp(15px, 2.7vw, 29px) ui-monospace, Consolas, monospace; cursor: pointer; box-shadow: 0 0 0 8px #f1b65b1a, 0 0 22px #edaa5e66; }
.plan-target:hover, .plan-target:focus-visible { background: #634226; outline: 3px solid #ffe0a3; outline-offset: 4px; transform: scale(1.08); }
.plan-target-a { left: 13%; } .plan-target-b { left: 39%; } .plan-target-c { left: 72%; }
.plan-found-marker { position: absolute; bottom: 12%; right: 9%; padding: .7rem 1rem; border: 2px solid #f2b064; background: #4b201ce8; color: #ffe2ae; font: 700 clamp(10px, 1.3vw, 16px) ui-monospace, Consolas, monospace; letter-spacing: .06em; transform: rotate(-4deg); box-shadow: 0 0 30px #f3a45575; }
.plan-controls, .plan-reveal { margin: 1rem 0 2rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #716447; background: linear-gradient(135deg,#282a20,#1a211c); }
.plan-controls h2, .plan-reveal h2 { margin: .3rem 0 .5rem; font-family: Georgia, serif; color: #f4e6cb; }
.plan-controls p, .plan-reveal p { max-width: 64ch; }
.plan-slider-label, .plan-slider-ends { display: flex; justify-content: space-between; gap: 1rem; font: 12px ui-monospace, Consolas, monospace; letter-spacing: .1em; color: #d9bd81; }
.plan-slider-label { margin-top: 1.4rem; }
#plan-offset { width: 100%; margin: 1rem 0 .4rem; accent-color: #d8a759; cursor: ew-resize; }
.plan-slider-ends { margin-bottom: 1.25rem; }
.plan-reveal { border-color: #bd9148; background: radial-gradient(circle at 85% 20%,#66502f,#272c23 50%,#1b211c); scroll-margin-top: 110px; animation: plan-discovery .5s ease-out both; }
.plan-reveal > span { font: 12px ui-monospace, Consolas, monospace; color: #f0c16c; letter-spacing: .16em; }
@keyframes plan-discovery { from { opacity: .3; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .plan-reveal { animation: none; } .plan-old { transition: none; } }
.plan-locked { margin-top: 1.5rem; }
.search-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: 1rem; margin-top: 1rem; border: 1px solid #6b745a; background: repeating-linear-gradient(90deg,transparent 0 24px,#78927813 24px 25px), #1d2a25; }
.search-map-hall { grid-column: 1 / -1; padding: .75rem; border: 1px dashed #91a895; text-align: center; font: 12px ui-monospace, Consolas, monospace; letter-spacing: .15em; color: #c3ceb9; }
.search-map-zone { min-height: 90px; padding: .8rem; border: 1px solid #9a8b5f; background: #2d342bc9; color: #f0dab0; font: 600 14px/1.3 ui-monospace, Consolas, monospace; cursor: pointer; }
.search-map-zone:hover, .search-map-zone:focus-visible { background: #66512d; outline: 2px solid #eec276; outline-offset: 2px; }
@media (max-width: 650px) {
  .plan-workbench { padding: .65rem; }
  .plan-workbench-head, .plan-workbench-foot { font-size: 8px; letter-spacing: .03em; }
  .plan-sheets { aspect-ratio: 900 / 540; }
  .plan-target { width: 16%; bottom: 10%; }
  .plan-target-a { left: 12%; } .plan-target-b { left: 38%; } .plan-target-c { left: 70%; }
  .search-map { grid-template-columns: 1fr; }
  .search-map-hall { grid-column: 1; }
  .search-map-zone { min-height: 60px; }
}
