/* KnockSpace visitor clean view — Oct 15. Staging only. */
/* The world and its existing baked-in art remain intact. */
#current-room-badge { display: none !important; }
/* Editing tools appear only in explicit localhost ?builder=1 mode. */
body:not(.hotspot-inspect) #pin-panel,
body:not(.hotspot-inspect) #pin-layer { pointer-events: none; }
/* Player is a subtle bottom-edge tab; hover/focus reveals it. */
body[data-stitched="true"] #deck-reveal:not([hidden]) {
  transform: translateY(calc(100% - 12px));
  opacity: .55;
  transition: transform .2s ease, opacity .2s ease;
}
body[data-stitched="true"] #deck-reveal:not([hidden]):hover,
body[data-stitched="true"] #deck-reveal:not([hidden]):focus-visible {
  transform: translateY(0);
  opacity: 1;
}
@media (hover: none) {
  body[data-stitched="true"] #deck-reveal:not([hidden]) {
    transform: none;
    opacity: .7;
  }
}
/* One visitor-requested return to the actual Play screen from any interior.
   The existing house icon still goes to the Great Room. */
#knockspace-start-over {
  display: none;
  position: fixed;
  z-index: 98;
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff5df;
  background: #07120b99;
  border: 1px solid #e9d59f55;
  border-radius: 50%;
  font: 20px system-ui, sans-serif;
  opacity: .22;
  cursor: pointer;
  transition: opacity .2s ease;
}
body[data-stitched="true"] #knockspace-start-over,
body[data-stage="mother"] #knockspace-start-over,
body[data-stage="replacement-path"] #knockspace-start-over,
body[data-stage="awaiting-replacement-path"] #knockspace-start-over { display: block; }
#knockspace-start-over::after {
  content: 'START OVER';
  position: absolute;
  left: 41px;
  top: 3px;
  white-space: nowrap;
  font: 12px system-ui, sans-serif;
  background: #07120be8;
  padding: 7px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
#knockspace-start-over:hover,
#knockspace-start-over:focus-visible { opacity: 1; outline: 2px solid #ffe0a2; }
#knockspace-start-over:hover::after,
#knockspace-start-over:focus-visible::after { opacity: 1; }
@media (hover: none) { #knockspace-start-over { opacity: .55; } }
@media(max-width:650px) { #knockspace-start-over { left: 8px; bottom: 8px; width: 32px; height: 32px; } }
/* Keep navigation architectural and invisible. */
#worlds, #world-toggle, #current-room-badge { display:none!important; }
@media (hover:none) and (pointer:coarse){html,body,#scene{height:100dvh;min-height:100dvh}#transport{bottom:env(safe-area-inset-bottom,0px);height:auto;min-height:48px;padding:4px 8px;gap:5px;opacity:.12}#transport:focus-within,#transport:active{opacity:.9}#transport button{min-width:44px;min-height:44px;font-size:22px;border-color:#ffffff44}#auth{max-height:calc(100dvh - 24px);overflow-y:auto;padding:16px;width:min(380px,calc(100% - 24px))}#start span{width:96px;height:96px;font-size:42px}#start small{font-size:12px}#mother-title{font-size:clamp(17px,5vw,36px);white-space:normal;padding:0 12px}#knockspace-start-over{opacity:.24;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:44px;height:44px}input,button{touch-action:manipulation}}
