/* Shared account navigation, independent of homepage-only styles. */
body .site-profile-menu #site-profile-label{display:block;max-width:min(30vw,280px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;letter-spacing:.04em}
body .site-profile-menu{position:relative;z-index:20;margin-left:auto;pointer-events:auto;flex-shrink:0}
body .site-profile-menu .site-profile{display:inline-flex;align-items:center;gap:10px;padding:13px 12px;margin:0;border:0;border-radius:0;background:transparent;color:#eee6d6;text-decoration:none;font:600 12px/1.4 Barlow,system-ui,sans-serif;letter-spacing:.12em;white-space:nowrap;cursor:pointer}
body .site-profile-menu .profile-entry-avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;margin:0;overflow:hidden;border-radius:50%;border:1px solid #cab78f66;background:#101514;color:#cab78f;font:18px/1 sans-serif}
body .site-profile-menu .profile-entry-avatar img{width:100%;height:100%;object-fit:cover}
body .site-profile-menu .site-profile-dropdown{position:absolute;top:100%;right:0;width:190px;padding:8px;box-sizing:border-box;background:#080d0f;border:1px solid #cab78f40;box-shadow:0 12px 30px #0009;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-5px);transition:opacity .25s ease,transform .25s ease,visibility .25s}
body .site-profile-menu:is(:hover,:focus-within) .site-profile-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
body .site-profile-menu .site-profile-dropdown :is(a,button){display:block;width:100%;box-sizing:border-box;min-height:44px;margin:0;padding:12px 14px;border:0;border-radius:0;background:transparent;color:#e6dfd0;text-align:left;text-decoration:none;font:500 14px/1.4 Barlow,system-ui,sans-serif;letter-spacing:.04em;cursor:pointer}
body .site-profile-menu .site-profile-dropdown :is(a,button):is(:hover,:focus-visible){background:#cab78f19;color:#f4d59a}
body .site-profile-menu [hidden]{display:none!important}
body .site-profile-menu button:disabled{opacity:.6;cursor:not-allowed}
body .site-profile-menu :is(a,button):focus-visible{outline:2px solid #e4c78f;outline-offset:2px}
body .site-profile-menu #profile-menu-status{margin:6px 14px;color:#e6c190;font:12px/1.5 Barlow,system-ui,sans-serif}
body .topbar:has(.site-profile-menu:focus-within),body .topbar:has(.site-profile-menu:hover){z-index:25}
body .masthead.has-profile-menu{gap:18px;flex-wrap:wrap;overflow:visible}
body .has-profile-menu:not(.masthead){z-index:10}
body.nightmaze-site-page>main>header.has-profile-menu{position:relative}
body .has-profile-menu:not(.masthead) .standalone-profile-menu{position:absolute;right:0;top:0}
body .profile-menu-floating{position:fixed;top:14px;right:20px}
@media(max-width:600px){body .site-profile-menu .site-profile{font-size:11px;padding:10px 6px}body .masthead.has-profile-menu{gap:8px}body .has-profile-menu:not(.masthead){padding-top:55px}}
@media(prefers-reduced-motion:reduce){body .site-profile-menu .site-profile-dropdown{transition:none}}

/* One shared site header across the home, setup, profile and utility pages. */
body .shared-site-header{position:relative;inset:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:100px;height:auto;box-sizing:border-box;border-bottom:1px solid #d7c6a029;pointer-events:auto;z-index:25;overflow:visible;flex-wrap:wrap}
body .shared-site-header[hidden],body .shared-site-header [hidden],#mode-site-header[hidden]{display:none!important}
body .shared-site-header .site-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;border:0;background:none;padding:0;margin:0;text-decoration:none;color:#eee6d6;font:600 17px/1.2 Barlow,system-ui,sans-serif;letter-spacing:.16em}
body .shared-site-header .site-brand svg{width:30px;height:38px;fill:none;stroke:#cab78f;stroke-width:1.5}
body .shared-site-header .site-nav{display:flex;align-items:center;gap:24px;margin:0 0 0 auto;flex-wrap:wrap}
body .shared-site-header .site-nav a,body .shared-site-header .site-nav-locked{font:600 10px/1.5 Barlow,system-ui,sans-serif;letter-spacing:.12em;color:#c9c7bc;white-space:nowrap;text-decoration:none;border:0;border-radius:0;background:none;margin:0;padding:14px 0}
body .shared-site-header .site-nav a:hover{color:#f4d59a}
body .shared-site-header .site-nav a:focus-visible{outline:2px solid #cab78f;outline-offset:5px}
body .shared-site-header .site-nav-locked{color:#837e73;cursor:not-allowed}
body .shared-site-header.has-profile-menu .standalone-profile-menu{position:relative;inset:auto;margin-left:0}
body .shared-site-header.has-profile-menu{padding-top:12px}
body .standalone-site-header{padding:12px 32px;margin:0 auto 28px;background:#060a0c}
body:has(>canvas)>.standalone-site-header{position:absolute;top:0;left:25px;right:25px;margin:0}
body:has(>canvas)>header:not(.shared-site-header){top:145px}
#mode-site-header{position:absolute;top:0;left:5.5%;right:5.5%;z-index:25}
#game-shell[data-state=intro]>.topbar{display:none}
#game-shell[data-state=intro]:not([data-menu=home]) #intro{padding-top:145px}
#game-shell[data-state=intro] :is(#server-menu,#prize-menu){padding-top:145px}
@media(max-width:760px){#game-shell[data-state=intro]:not([data-menu=home]) #intro,#game-shell[data-state=intro] :is(#server-menu,#prize-menu){padding-top:175px}}
@media(max-width:1000px){body .shared-site-header{gap:12px}body .shared-site-header .site-nav{gap:16px}body .shared-site-header .site-brand{font-size:14px}}
@media(max-width:760px){body .shared-site-header{min-height:120px;padding-block:14px;row-gap:8px}body .shared-site-header .site-nav{order:3;width:100%;margin:0;gap:18px;justify-content:flex-start}body .shared-site-header .site-nav a,body .shared-site-header .site-nav-locked{font-size:9px;padding:8px 0}body .shared-site-header .site-profile-menu{margin-left:auto}body:has(>canvas)>header:not(.shared-site-header){top:165px}#game-shell[data-state=intro]:not([data-menu=home]) .intro-overlay{padding-top:175px}}
