/* Scoped to the shared navigation; game pages retain their own layout. */
.community-header.hub-header {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    min-height: 82px;
    padding: 12px 0;
}
.hub-header .brand-lockup { flex-shrink: 0; }
.hub-header .hub-nav { flex: 1; flex-wrap: nowrap; gap: 12px; justify-content: flex-end; }
.hub-header .viewer-auth, .hub-header .viewer-auth-signed { flex-wrap: nowrap; width: auto; flex-shrink: 0; }
.hub-header .viewer-auth a, .hub-header .viewer-auth button { white-space: nowrap; }
.hub-explore summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid #716394;
    border-radius: 9px;
    background: #242038;
    color: #f5eddd;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
}
.hub-explore summary::-webkit-details-marker { display: none; }
.hub-header .hub-compass { color: #e5c68b; font-size: 1.3rem; line-height: 1; }
.hub-header .hub-chevron { color: #cec4e2; }
.hub-explore[open] summary, .hub-explore summary:hover { background: #33294c; border-color: #b39ad7; }
.hub-explore[open] .hub-chevron { transform: rotate(180deg); }
.hub-nav :is(a, button, summary):focus-visible { outline: 3px solid #efd59b; outline-offset: 3px; }
.hub-panel {
    position: absolute;
    z-index: 100;
    top: calc(100% - 3px);
    left: 0;
    width: 100%;
    max-height: min(760px, calc(100dvh - 100px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    border: 1px solid #665778;
    border-radius: 14px;
    background: linear-gradient(145deg, #211e33, #10151f 65%);
    box-shadow: 0 24px 70px #000b;
}
.hub-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hub-header .hub-eyebrow { font-size: .65rem; letter-spacing: .19em; color: #d9bb85; }
.hub-panel h2 { margin: 6px 0 0; font-size: 1.4rem; color: #f7f1e6; }
.hub-close { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #665778; border-radius: 8px; background: #ffffff08; color: #eee; cursor: pointer; font-size: 1rem; }
.hub-close[hidden] { display: none; }
.hub-destinations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hub-region { min-width: 0; border: 1px solid #454359; border-radius: 10px; background: #0c111c; overflow: hidden; }
.hub-region-art { display: flex; align-items: flex-end; min-height: 125px; background-position: center; background-size: cover; image-rendering: pixelated; position: relative; isolation: isolate; }
.hub-region-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hub-region-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, #0c111cf2); z-index: -1; }
.hub-region h3 { margin: 0; padding: 17px 14px 8px; color: #f6eddf; font-size: 1rem; text-shadow: 0 2px 2px #000; }
.hub-region p { margin: 0; padding: 4px 14px 12px; min-height: 62px; color: #abb3c8; font-size: .78rem; line-height: 1.5; }
.hub-region ul { margin: 0; padding: 4px 8px 10px; list-style: none; }
.hub-nav .hub-region a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 9px 8px; color: #cdd4e3; border-radius: 5px; font-size: .82rem; }
.hub-nav .hub-region a:hover { background: #28243f; color: #fff; }
.hub-nav .hub-region a[aria-current="page"] { color: #ffe2a9; background: #b1873824; box-shadow: inset 2px 0 #dfbd79; }
.hub-nav .hub-region a span { color: #8e829f; }
@media (max-width: 900px) {
    .hub-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-panel { padding: 18px; }
    .hub-region-art { min-height: 110px; }
    .hub-region p { min-height: 0; }
    .hub-header .viewer-auth-signed { gap: 8px; }
}
@media (max-width: 640px) {
    .community-header.hub-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; width: calc(100% - 24px); }
    .hub-header .brand-lockup { min-width: 0; }
    .hub-header .brand-lockup strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
    .hub-header .brand-lockup span { font-size: .7rem; }
    .hub-header .hub-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; width: 100%; }
    .hub-header .viewer-auth { grid-row: 1; grid-column: 2; justify-content: flex-end; }
    .hub-header .viewer-auth-signed { flex-direction: column; gap: 4px; align-items: flex-end; }
    .hub-header .viewer-auth .community-button { padding: 7px 9px; font-size: .78rem; }
    .hub-panel { max-height: calc(100dvh - 155px); padding: 14px; }
    .hub-panel h2 { font-size: 1.15rem; }
    .hub-destinations { grid-template-columns: 1fr; }
    .hub-region-art { min-height: 105px; }
    .hub-region ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
    .hub-nav .hub-region a { font-size: .78rem; min-height: 44px; }
}
