#nightWatchLayer[hidden],#nightWatchRecall[hidden],#nightWatchMaple[hidden],#nightWatchStay[hidden],#nightWatchListen[hidden]{display:none!important}
#nightWatchLayer{position:absolute;inset:0;z-index:13;overflow:hidden;color:#fff1cf;pointer-events:none;border-radius:inherit}
#nightWatchDark{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle var(--beam-radius,62px) at var(--beam-x,50%) var(--beam-y,45%),transparent 0%,#04132388 92%,#041323d1 100%);transition:background .1s}
#nightWatchLantern{position:absolute;left:12%;bottom:12%;width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(#fff4b3aa,#f6a74b66 32%,transparent 75%);filter:drop-shadow(0 0 18px #ffb95e);pointer-events:none}
#nightWatchLantern img{width:44px;height:44px;object-fit:contain}
#nightWatchSearch{position:absolute;inset:0;pointer-events:auto;touch-action:none;cursor:crosshair}
#nightWatchSearch .night-watch-wildlife{position:absolute;transform:translate(-50%,-50%);width:clamp(50px,18%,90px);height:clamp(50px,18%,90px);object-fit:contain;opacity:0;filter:brightness(.7);pointer-events:none;transition:opacity .25s,filter .25s}
#nightWatchSearch .night-watch-wildlife.revealed{opacity:1;filter:drop-shadow(0 0 7px #f7d398)}
#nightWatchControls{position:absolute;z-index:3;right:8px;bottom:8px;max-width:min(69%,300px);display:grid;gap:4px;padding:7px;border:1px solid #e8c991;border-radius:13px;background:#19362ae9;box-shadow:0 4px 16px #06120ecc;pointer-events:auto}
#nightWatchMessage{font-size:11px;line-height:1.3;min-height:26px;color:#fff1d0}
#nightWatchControls>div{display:flex;flex-wrap:wrap;gap:4px}
#nightWatchControls button{min-height:30px;padding:4px 7px;border:1px solid #e8c991;border-radius:8px;background:#31543b;color:#fff3d9;font-weight:700;font-size:10px}
#world.night-watch-gaze #petwrap{transform:rotate(var(--night-gaze,3deg));transform-origin:50% 80%;transition:transform .7s}
@media(max-width:650px){#nightWatchControls{max-width:70%;bottom:5px;right:5px;padding:5px}#nightWatchMessage{font-size:9px;min-height:23px}#nightWatchControls button{min-height:26px;font-size:9px}}

#nightWatchBoo[hidden]{display:none!important}#nightWatchBoo{position:absolute;z-index:2;left:59%;bottom:7%;width:min(17%,110px);height:auto;filter:drop-shadow(0 3px 6px #030d13);pointer-events:none;animation:nightBooCurl 2.8s ease-out both}@keyframes nightBooCurl{from{transform:translateX(24px) rotate(8deg);opacity:0}to{transform:translateX(0) rotate(-8deg);opacity:1}}

#nightWatchSearch .night-watch-wildlife.heard:not(.revealed) {
  transform: translate(-50%,-50%) scale(.5);
  opacity: .2;
  filter: brightness(.13) saturate(.25) drop-shadow(0 0 2px #5d6c6d);
}
#nightWatchSearch .night-watch-wildlife.revealed {
  opacity: 1;
  filter: drop-shadow(0 0 7px #f7d398);
}
#nightWatchSearch:focus-visible { outline: 2px solid #f1d794; outline-offset: -3px; }
#nightWatchSearch .night-watch-wildlife.night-watch-flee {
  left: var(--night-exit) !important;
  transition: left .9s ease-in, opacity .25s, filter .25s;
}
#world.night-watch-maple-away :is(#pet, #gearActor, #pose, #trickLoop, #trickSprite, #cuddleSprite, #cuddleGear) {
  visibility: hidden !important;
}
#nightWatchMaple {
  position: absolute; z-index: 2; left: var(--night-maple-start); top: 69%;
  width: clamp(62px, 23%, 126px); transform: translate(-50%,-50%);
  filter: drop-shadow(0 3px 6px #030d13);
}
#nightWatchMaple.night-watch-chase { animation: nightWatchChase 1.05s ease-in both; }
#nightWatchMaple.night-watch-return { animation: nightWatchReturn .85s ease-out both; }
@keyframes nightWatchChase {
  from { left: var(--night-maple-start); top: 69%; }
  to { left: var(--night-exit); top: 48%; }
}
@keyframes nightWatchReturn {
  from { left: var(--night-exit); top: 48%; }
  to { left: var(--night-maple-start); top: 69%; }
}
#nightWatchControls button:disabled { opacity: .6; }
#nightWatchControls #nightWatchRecall { min-height: 40px; background: #775131; }
@media (prefers-reduced-motion: reduce) {
  #nightWatchSearch .night-watch-wildlife.night-watch-flee { transition: none; }
  #nightWatchMaple.night-watch-chase { animation-duration: .01s; }
  #nightWatchMaple.night-watch-return { animation-duration: .01s; }
}

#nightWatchControls[hidden],#nightWatchLight[hidden]{display:none!important}
#nightWatchLayer.light-off #nightWatchDark{background:#041323d1}
#activityControlsDock > #nightWatchControls,body.cover-screen-active > #nightWatchControls{position:relative;inset:auto;width:100%;max-width:none;box-sizing:border-box;padding:9px 12px}
#nightWatchControls #nightWatchMessage{font-size:13px;min-height:0}
#nightWatchControls button{min-height:36px;font-size:12px}
body.cover-screen-active > #nightWatchControls{position:fixed;inset:auto 0 0;z-index:150;padding:3px 5px}
body.cover-screen-active > #nightWatchControls button{min-height:26px}
