/* Shared header, matched to ng257.at lobby (2026-09-14). */
header.portal-header{box-sizing:border-box;width:100%;max-width:none;min-height:74px;margin:0;padding:12px clamp(18px,4vw,56px);display:flex;align-items:center;flex-wrap:wrap;gap:22px;justify-content:space-between;border:0;border-bottom:1px solid rgba(255,248,223,.18);border-radius:0;background:linear-gradient(90deg,rgba(4,21,16,.96),rgba(9,46,35,.88) 50%,rgba(4,21,16,.96));box-shadow:0 8px 24px rgba(0,0,0,.18);backdrop-filter:blur(16px);color:#fff8df;font:16px Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
header.portal-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 0 auto;padding:0}
header.portal-header a,header.portal-header button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:0;margin:0;padding:9px 13px;border:1px solid rgba(255,248,223,.18);border-radius:9px;background:transparent;box-shadow:none;color:inherit;text-decoration:none;font:700 13px/normal Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:normal;cursor:pointer}
header.portal-header>a:first-child,header.portal-header h1{min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;color:inherit;font:700 16px/normal Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.01em;text-decoration:none}
header.portal-header h1::after,header.portal-header a::after,header.portal-header button::after,header.portal-header small{display:none;content:none}
header.portal-header a:hover,header.portal-header button:hover{border-color:#f0c85a;color:#f0c85a;background:transparent}
header.portal-header a:focus-visible,header.portal-header button:focus-visible{outline:2px solid #ffd700;outline-offset:3px}
header.portal-header .server-status{margin-left:auto}
@media(max-width:1024px){header.portal-header{gap:10px 16px}header.portal-header .server-status{order:3;width:100%;margin-left:0}}
@media(max-width:700px){header.portal-header>a:first-child,header.portal-header h1,header.portal-header strong{font-size:14px}header.portal-header nav{width:100%;margin-left:0}header.portal-header nav a,header.portal-header nav button{flex:1;font-size:11px;padding-inline:7px}}

/* One consistent NG257 signature beneath every page brand. */
header.portal-header>a:first-child{display:block}
header.portal-header>a:first-child::after,header.portal-header h1::after{content:"NG257";display:block;margin-top:2px;color:#f0c85a;font:800 9px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}

/* Game navigation uses the same button group as the other pages. */
header.portal-header.mehrspieler-topbar nav{margin-left:0}
@media(min-width:1025px){.app:has(>header.portal-header.mehrspieler-topbar){grid-template-rows:74px auto}.app:has(>header.portal-header.mehrspieler-topbar)>.table-layout{height:auto}}
@media(max-width:700px){header.portal-header.mehrspieler-topbar .raum-anzeige{margin-left:0}header.portal-header.mehrspieler-topbar nav{width:100%}}

/* Canonical responsive brand: older page styles must not hide the title. */
header.portal-header>h1,header.portal-header>a:first-child,header.portal-header>.preisjass-marke{display:block!important;visibility:visible;flex:0 1 auto;max-width:100%;white-space:normal;font-size:16px!important;font-weight:700;line-height:1.3;color:#fff8df;letter-spacing:.01em}
header.portal-header>.preisjass-marke strong{font:inherit}
header.portal-header>.preisjass-marke small{display:block!important;font:800 9px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.16em;color:#f0c85a;margin-top:2px}
header.portal-header{height:auto;flex-shrink:0}
@media(max-width:700px){header.portal-header{padding:12px 18px;gap:12px;min-height:74px}header.portal-header>h1,header.portal-header>a:first-child,header.portal-header>.preisjass-marke{font-size:14px!important}header.portal-header nav{display:flex;width:100%;margin-left:0}header.portal-header nav a,header.portal-header nav button{min-height:36px}header.portal-header.mehrspieler-topbar>h1{display:block!important}}
