/* Keep the center of the temple open: destinations on the right, actions along the bottom. */
#bottom{position:fixed;inset:0;left:0;bottom:0;transform:none;width:100%;text-align:center;pointer-events:none;z-index:3}
#templeDestinations{position:fixed;top:132px;right:12px;display:flex;flex-direction:column;gap:5px;width:118px;max-height:calc(100dvh - 270px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px;pointer-events:auto}
#templeDestinations button,#actions button{font:12px/1.25 Arial,sans-serif;min-height:34px;padding:7px 10px;margin:0;border-radius:9px;border:1px solid #bdc4afad;background:#f8f3e5ed;color:#314b40;box-shadow:0 2px 8px #17392b12;white-space:nowrap;flex-shrink:0;touch-action:manipulation}
#templeDestinations button:hover,#actions button:hover{background:#e9e1ca}#templeDestinations button:focus-visible,#actions button:focus-visible{outline:3px solid #b88537;outline-offset:-3px}
#templeDestinations #openMap{background:#365d4ced;color:#fff4da;border-color:#365d4c}
#actions{position:fixed;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;flex-wrap:nowrap;justify-content:safe center;align-items:center;gap:5px;width:max-content;max-width:calc(100% - 20px);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 2px 5px;pointer-events:auto}
#status{position:fixed;bottom:62px;left:50%;transform:translateX(-50%);width:min(640px,calc(100% - 320px));max-height:44px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font:11px/1.45 Arial,sans-serif;margin:0;padding:6px 11px;border-radius:10px;background:#294b40c9;color:#f8f1da;pointer-events:none}
#pad{left:12px;bottom:86px;grid-template-columns:repeat(3,36px);gap:4px;z-index:3}#pad button{font-size:15px;height:36px;min-height:36px;padding:0;border-radius:9px;background:#f6efdfdf}#turn{right:12px;bottom:86px;gap:5px;z-index:3}#turn button{width:36px;height:36px;min-height:36px;font-size:18px;padding:0;border-radius:9px;background:#f6efdfdf}
#member-links{top:73px;gap:4px}#member-links a{font-size:11px;padding:6px 9px;border-radius:11px}#templeSessionClock{padding:6px!important;font-size:11px!important}
@media(max-width:700px){#templeDestinations{top:125px;right:8px;width:109px;max-height:calc(100dvh - 290px);gap:4px}#templeDestinations button,#actions button{font-size:11px;min-height:36px;padding:7px 9px}#status{width:calc(100% - 34px);bottom:60px;max-height:38px;padding:4px 9px;font-size:10px}#pad{left:8px;bottom:113px}#turn{right:8px;bottom:113px}#member-links{top:76px;right:8px;max-width:calc(100% - 16px)}#member-links a{font-size:10px;padding:6px 8px}}
@media(max-height:520px){#templeDestinations{top:104px;max-height:calc(100dvh - 225px)}#templeDestinations button{min-height:30px;font-size:10px;padding:5px 8px}#pad,#turn{bottom:77px}#status{bottom:53px;padding:3px 8px;max-height:30px;font-size:10px}#actions{bottom:5px}#actions button{min-height:30px;font-size:10px;padding:5px 8px}#member-links{top:65px}}

/* The name follows the avatar without an opaque panel over the scene. */
#tag{background:transparent;border:0;box-shadow:none;padding:2px 5px;color:#fffdf0;text-shadow:0 1px 3px #17372d,0 0 5px #17372d;font-size:14px;line-height:1.3;max-width:min(220px,55vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
@media(max-width:700px){
 header{top:7px;left:6px;right:6px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:6px;align-items:start}
 header>div{padding:6px 8px;border-radius:11px;background:#294b40c9;min-width:0}
 header h1{font-size:18px;line-height:1.25;letter-spacing:2px}
 header>div>small{font-size:9px;line-height:1.2;display:block;margin-top:3px}
 header .visitor-tools #ledger{font-size:10px;line-height:1.25;overflow-wrap:anywhere}
 header .visitor-tools small{font-size:9px!important;line-height:1.25;padding:2px 3px!important;margin-top:3px!important;background:#ffffff10!important;color:#fff4dd!important;border-radius:5px!important}
 header .graphics-quality{font-size:9px;line-height:1.2;margin-top:3px;gap:4px}
 header .graphics-quality select{font-size:9px;padding:2px 3px;max-width:80px}
 #member-links{top:90px;left:6px;right:6px;width:auto;max-width:none;display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:4px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 0}
 #member-links::-webkit-scrollbar{display:none}
 #member-links a{flex-shrink:0;white-space:nowrap;font-size:10px;line-height:1.2;padding:6px 7px;border-radius:9px}
 #templeSessionClock{flex-shrink:0;white-space:nowrap;padding:6px!important;font-size:10px!important}
 #templeDestinations{top:128px;right:6px;width:86px;gap:3px;padding:1px;max-height:min(46dvh,calc(100dvh - 285px))}
 #templeDestinations button{font-size:10px;line-height:1.2;min-height:32px;padding:5px 5px;border-radius:7px;white-space:normal;overflow-wrap:break-word;background:#f8f3e5c9;box-shadow:none}
 #templeDestinations #openMap{background:#365d4cbd}
 #tag{font-size:12px;padding:1px 4px;max-width:min(170px,52vw)}
}
@media(max-width:700px) and (max-height:520px){
 header{top:5px}header>div>small{display:none}
 #member-links{top:65px}#templeDestinations{top:103px;max-height:calc(100dvh - 225px)}
}
/* A reconnect notice is informational: it never covers or closes the player. */
#templeConnectionNotice{position:fixed;top:112px;left:12px;z-index:4;max-width:280px;padding:8px 10px;border:1px solid #b6b994;border-radius:11px;background:#f6f1dfeb;color:#365343;font:11px/1.45 Arial,sans-serif;box-shadow:0 3px 14px #17392b16}#templeConnectionNotice p{margin:0 0 6px}#templeConnectionNotice button,#templeConnectionNotice a{font:11px/1.3 Arial,sans-serif;padding:5px 7px;border-radius:7px;display:inline-block}#templeConnectionNotice a{margin-left:6px;text-underline-offset:2px}
@media(max-width:700px){#templeConnectionNotice{top:128px;left:6px;max-width:min(245px,calc(100vw - 106px));font-size:10px;padding:7px 8px}#templeConnectionNotice button,#templeConnectionNotice a{font-size:10px}}
@media(max-height:520px){#templeConnectionNotice{top:104px;max-width:240px}}
