/* Secondary actions share the menu. The Street itself keeps the full viewport. */
#stage #streetGuests{display:none!important}
#streetGuestbook,#directoryButton{position:relative}
.has-community-notice::after{content:'';position:absolute;right:5px;top:4px;width:7px;height:7px;border-radius:50%;background:#f99c55;box-shadow:0 0 0 2px #23463d;pointer-events:none}
.compact-menu-panel{width:min(440px,calc(100vw - 24px))}
.compact-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.compact-menu-grid button{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;min-height:70px;padding:12px;border:1px solid #d1d9ce;border-radius:12px;background:#fffdf5;color:#244638;text-align:left}
.compact-menu-grid button:hover{background:#e9f0e3}
.compact-menu-grid strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.compact-menu-grid small{font-size:11px;line-height:1.4;color:#597366}
.compact-menu-grid .community-menu-item{background:#e4eee0;border-color:#a8c3ad}
@media(max-width:760px),(max-height:560px) and (max-width:1024px),(any-pointer:coarse) and (max-width:1024px){
  .bar{position:absolute;inset:0 0 auto;height:calc(48px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));gap:8px;z-index:5;border:0;background:linear-gradient(#102431d9,#102431a8 72%,#10243100);pointer-events:none}
  .bar>*{pointer-events:auto}
  .bar .brand{min-height:44px}
  .bar .brand img{width:56px;height:auto}
  .bar .divide{display:none}
  .bar h1{font-size:12px;white-space:nowrap;letter-spacing:-.04em}
  .bar nav{gap:3px}
  .bar nav>:is(#allFilmsButton,#corporateReelsButton,#officeDirectoryLink){display:none}
  .bar nav>:is(#viewButton,#soundButton,#directoryButton){min-height:44px;min-width:44px;height:44px;margin:0;padding:6px 9px;border:0;border-radius:14px;background:#102a3394;color:#f8f7e8;font-size:13px;white-space:nowrap}
  .bar nav #viewButton{font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
  .bar nav #directoryButton .wide{display:none}
  #stage{height:100vh;height:100dvh;width:100%;margin:0}
  #street .street-entry-tools{inset:calc(56px + env(safe-area-inset-top)) auto auto max(10px,env(safe-area-inset-left));display:block;max-width:calc(100% - 24px);pointer-events:none}
  #street .street-entry-tools>:is(#yearArchive,#fieldVisit,#streetGuestbook,#streetGuests,.guest-chat-ping){display:none!important}
  #street .street-entry-tools>#branchDoor:not([hidden]){position:static;min-height:44px;max-width:min(16rem,62vw);padding:6px 10px;border-radius:20px;font-size:12px;line-height:1.3;pointer-events:auto}
  #street .street-tools,#stage[data-view=street] #greeting,#street #busDoorSign{display:none!important}
  #street #movementHint{display:none}
  #stage #street #movementHint[data-critical]{display:block;bottom:calc(var(--edge-b,12px) + 100px);font-size:12px;background:#17382eed;color:#fff8e7;max-width:calc(100% - 24px)}
  #stage .street-action-dock{display:contents}
  #stage .street-action-dock #quickPlay{display:flex;flex-direction:row;position:absolute;bottom:var(--edge-b,max(12px,env(safe-area-inset-bottom)));width:auto;gap:5px;pointer-events:auto}
  #stage:not([data-hand=left]) #quickPlay{left:var(--edge-x,max(10px,env(safe-area-inset-left)));right:auto}
  #stage[data-hand=left] #quickPlay{right:var(--edge-r,max(10px,env(safe-area-inset-right)));left:auto}
  #stage #quickPlay button{width:56px;min-width:56px;flex:0 0 56px;min-height:44px;height:44px;padding:4px 3px;border-radius:14px;font-size:12px;line-height:1.2;white-space:normal}
  #stage #stick{display:grid;width:78px;height:78px;bottom:var(--edge-b,max(12px,env(safe-area-inset-bottom)))}
  #stage:not([data-hand=left]) #stick{left:auto;right:var(--edge-r,max(10px,env(safe-area-inset-right)))}
  #stage[data-hand=left] #stick{left:var(--edge-x,max(10px,env(safe-area-inset-left)));right:auto}
  #stage #stick .thumb{width:31px;height:31px}
  #stage[data-view=street] .street-action-dock #near{position:absolute;left:12px;right:12px;bottom:calc(var(--edge-b,12px) + 88px);width:max-content;max-width:min(310px,calc(100% - 24px));min-height:48px;margin:0 auto;padding:5px 8px 5px 5px;gap:7px;border-radius:12px;transform:none;pointer-events:auto}
  #stage .street-action-dock #near img{width:40px;height:30px;border-radius:6px}
  #stage .street-action-dock #near>span{min-width:0}
  #stage .street-action-dock #near small{display:block;font-size:10px;line-height:1.2;letter-spacing:0}
  #stage .street-action-dock #near b{font-size:12px;line-height:1.25;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  #stage .street-action-dock #near :is(kbd,.near-preview-line,.near-preview-action){display:none}
  #stage .street-action-dock #near::after{content:'보기';flex:none;padding-left:3px;font-size:11px;font-weight:700;color:#f6c390}
  #stage #flightControls{bottom:calc(var(--edge-b,12px) + 52px)}
  #stage:not([data-hand=left]) #flightControls{left:var(--edge-x,10px);right:auto}
  #stage[data-hand=left] #flightControls{right:var(--edge-r,10px);left:auto}
  #stage:has(#flightControls:not([hidden])) .street-action-dock #near{bottom:calc(var(--edge-b,12px) + 140px)}
}
@media(orientation:landscape) and (max-height:560px) and (max-width:1024px){
  #stage[data-view=street] .street-action-dock #near{bottom:var(--edge-b,12px);left:136px;right:102px;max-width:min(340px,calc(100% - 238px));min-height:44px}
  #stage[data-hand=left] .street-action-dock #near{left:102px;right:136px}
  #stage:has(#flightControls:not([hidden])) .street-action-dock #near{bottom:var(--edge-b,12px);max-width:min(300px,calc(100% - 238px))}
  #stage .street-action-dock #near b{max-width:240px}
}
