#campus{background:#0c1116;border:1px solid #37444c;color:#f4f6f7;overflow:hidden}
main:has(#campus){max-width:1600px}
.view{height:clamp(330px,68svh,840px);position:relative;isolation:isolate;overflow:hidden;background:#101820}
#pan{position:absolute;inset:0;z-index:-1;background-position:center;background-repeat:repeat-x;transition:background-position .32s ease}
#pan.travel{animation:arrive .38s ease-out}
@keyframes arrive{from{opacity:.28;scale:1.04}to{opacity:1;scale:1}}
.heading{position:absolute;inset:0 0 auto;padding:clamp(14px,3vw,42px);background:linear-gradient(#05090dc9,transparent);pointer-events:none;text-shadow:0 2px 8px #000}
.heading span,.heading p{font-size:.93rem;letter-spacing:.08em}.heading h1{font-size:clamp(1.75rem,4vw,3.5rem);line-height:1.04;margin:.35rem 0}.heading p{margin:0}
.cues{position:absolute;top:60%;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;width:min(90%,380px)}
#campus button,#inspection button{min-height:44px;border-radius:3px;background:#111c26;color:white}
.cues button{box-shadow:0 2px 12px #000b;border-left:3px solid #e0bd88;font-weight:650}
.controls,.utilities{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:8px 12px}.controls{background:#18232d}.utilities button,.utilities a{font-size:.92rem}.utilities a{padding:8px}
#world-status{margin:0;padding:0 14px 8px;color:#cad5dd}
#inspection{width:min(94vw,560px);max-height:85svh;overflow:auto;padding:0;border:1px solid #708291;color:#edf4f5;background:#111a21}
#inspection::backdrop{background:#03070bc9}
#inspection header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:#1a2731}
#inspection h2{margin:0;font-size:1.35rem}
#details{padding:16px}#details p{margin:0 0 14px}#details button{margin:3px}#details label{display:grid;margin:8px 0;gap:4px}
#details input,#details select{font:inherit;color:inherit;background:#091017;border:1px solid #738390;padding:8px;min-height:44px;width:100%}
#details .identity{border:1px solid #7e939e;border-left:5px solid #cf4348;padding:18px;margin:0 0 15px;background:#25333f}
#campus.low-motion *,#campus.low-motion *::after{transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){#campus *{transition:none!important;animation:none!important}}
@media(max-width:560px){main:has(#campus){padding:4px}.controls{display:grid;grid-template-columns:repeat(3,1fr)}#campus button{padding:6px 8px}.utilities{gap:4px;padding:5px}.view{height:clamp(320px,58svh,640px)}}
@media(orientation:landscape) and (max-height:500px){.view{height:66svh;min-height:205px}.cues{top:43%}.heading{padding:8px}.heading h1{font-size:1.45rem}}
@media print{#campus,#inspection{display:none!important}}
.object-art{display:block;width:100%;height:clamp(110px,25svh,240px);object-fit:cover;margin-bottom:12px;border:1px solid #495664}
.map-grid{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:12px 0;padding:0}.map-grid li{padding:6px 10px;border:1px dashed #536774;color:#b4c0cb}.map-grid .known{border-style:solid;color:#fff}.map-grid [aria-current]{background:#384a59;border-left:4px solid #dfb172}


/* Place every label on the instrument panel, outside the camera frame. */
#campus .heading{position:static;display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem 1rem;padding:10px 16px;background:#101820;text-shadow:none}
#campus .heading h1{font-size:clamp(1.25rem,2.3vw,2rem);margin:0}
#campus .heading span{font-size:.8rem;color:#a8b7c5}
#campus .heading p{margin-left:auto;color:#c9d6de}
#campus .view{height:clamp(260px,62svh,540px);display:grid;place-items:center;background:#080c10;touch-action:pinch-zoom;cursor:grab}
#campus .view:active{cursor:grabbing}
#campus #pan{position:static;z-index:auto;width:100%;height:100%;min-height:0;object-fit:contain;background:none;pointer-events:none}
.flight-deck{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#16212b;border-top:1px solid #485460}
#campus .controls{display:flex;flex-wrap:nowrap;background:transparent;padding:6px 12px}
#campus .controls button{font-size:1.35rem;line-height:1;min-width:44px;padding:4px 8px}
#campus .cues{position:static;transform:none;display:flex;flex-flow:row wrap;width:auto;padding:4px 10px;gap:5px}
#campus .cues button{box-shadow:none}
#movement-help{font-size:.88rem;color:#b9c7d3;margin:4px 12px}
#inspection .object-art{height:auto;max-height:38svh;object-fit:contain;background:#090e13}
@media(max-width:560px){#campus .view{height:auto;aspect-ratio:3/2}#campus .heading{gap:3px 8px;padding:8px}#campus .heading span{display:none}#campus .heading p{font-size:.8rem}.flight-deck{gap:0}}
@media(orientation:landscape) and (max-height:500px){#campus .view{height:64svh;min-height:0}}

#campus{max-width:1152px;margin-inline:auto}

#pan.turn-left{animation:look-left .21s ease-out}
#pan.turn-right{animation:look-right .21s ease-out}
@keyframes look-left{from{opacity:.65;transform:translateX(-1.5%)}to{opacity:1;transform:none}}
@keyframes look-right{from{opacity:.65;transform:translateX(1.5%)}to{opacity:1;transform:none}}
#campus .controls{flex-wrap:wrap}

#campus .scene-target{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none}
.scene-target::after{content:'';display:block;width:8px;height:8px;border:1.5px solid white;border-radius:50%;background:#20282c80;opacity:0}
.scene-target.door::after{border-width:2px 2px 0 0;transform:rotate(-45deg);border-radius:0;background:transparent}
.scene-target.guided::after,.scene-target:focus-visible::after,.scene-target:hover::after{opacity:1;filter:drop-shadow(0 1px 2px #000)}

.map-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.map-grid li{overflow-wrap:anywhere}
