/* Shared Community Hub chrome for public, guide, colour-tool and staff pages.
   Discord-launched games keep their own standalone styles. */
@font-face {
    font-family: 'Hub Art Deco';
    src: url('fonts/GTAArtDeco-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Hub Art Deco';
    src: url('fonts/GTAArtDeco-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
:root {
    --hub-pink: #ffafc7;
    --hub-purple: #9f85d1;
    --hub-muted: #b0a9bf;
    --hub-line: #ffffff18;
    --hub-surface: #16121f;
}
html { scroll-padding-top: 1.5rem; }
site-header, site-footer { display: block; }
site-header:empty { min-height: 95px; }
body.hub-theme {
    display: block !important;
    margin: 0;
    padding: 0 !important;
    min-height: 100vh;
    color: #f8f5ff;
    background: radial-gradient(ellipse at 85% 8%, #34224088, transparent 45%), #0c0a14 !important;
    background-attachment: fixed !important;
    font-family: 'Hub Art Deco', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color-scheme: dark;
}
.hub-theme *, .hub-theme *::before, .hub-theme *::after { box-sizing: border-box; }
.hub-theme :where(a, button, input, select, textarea, summary) { outline-offset: 5px; }
.hub-theme :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--hub-pink) !important;
}
.hub-skip {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--hub-pink);
    color: #211323;
}
.hub-skip:focus { transform: translateY(0); }
.hub-header {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 32px;
    border-bottom: 1px solid var(--hub-line);
    font-family: 'Hub Art Deco', Arial, sans-serif;
}
.hub-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
    color: #f8f5ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}
.hub-brand img { display: block; width: 32px; height: 32px; object-fit: contain; }
.hub-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.hub-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    color: var(--hub-muted);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.hub-nav > a[hidden] { display: none; }
.hub-nav a:hover { color: #fff; }
.hub-header a[aria-current="page"], .hub-header a[data-active-section="true"] {
    color: var(--hub-pink);
}
.hub-content {
    width: 100%;
    min-height: 0 !important;
    padding-top: 40px !important;
    padding-bottom: 64px !important;
}
/* The old page background layers must not cover the new shared backdrop. */
.hub-content > .fixed.pointer-events-none[class*="z-[-"] { display: none; }
.hub-theme .font-outfit { font-family: 'Hub Art Deco', Arial, sans-serif; }
.hub-theme .hub-content h1 {
    font-family: 'Hub Art Deco', Arial, sans-serif;
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
    text-transform: none;
    color: #f8f5ff;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.hub-page-heading {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 28px;
    padding: 0;
}
.hub-page-heading p {
    margin: 0 0 10px;
    color: var(--hub-pink);
    font-size: 12px;
    letter-spacing: .18em;
}
.hub-page-heading h1 { margin: 0; }
.hub-page-heading h1::after { content: '.'; color: var(--hub-pink); }
.hub-theme :is(.glass-panel, .glass-card, .module-card) {
    background: linear-gradient(125deg, #231b30, #16121f 65%);
    border: 1px solid #ffffff24;
    border-radius: 18px;
    box-shadow: 0 16px 50px #0002;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.hub-theme .banner {
    background: linear-gradient(125deg, #30213f, #181424 60%, #262038);
    border: 1px solid #ffffff24;
    border-top: 3px solid var(--hub-pink);
    border-radius: 18px;
}
.hub-theme :is(.game-card, .item, .host-card) {
    background: var(--hub-surface);
    border-color: #ffffff24;
    box-shadow: none;
}
.hub-theme :is(.game-card, .item, .host-card):hover {
    border-color: var(--hub-purple);
    box-shadow: 0 10px 30px #0003;
}
.hub-theme :is(.glass-input, .field-input, .cmd-box) {
    background: #110e19;
    border-color: #ffffff29;
    color: #f8f5ff;
    border-radius: 10px;
}
.hub-theme :is(input, select, textarea) { font-family: inherit; }
.hub-theme :is(.bg-rockstar-gradient, .btn-submit, .btn-discord) {
    background: var(--hub-pink);
    color: #211323;
    border-radius: 10px;
    box-shadow: none;
    animation: none;
}
.hub-theme :is(.btn-glow, .btn-discord):hover { box-shadow: 0 0 0 3px #ffafc71a; }
.hub-theme :is(.btn-discord-wrap, .btn-discord)::before,
.hub-theme :is(.btn-discord-wrap, .btn-discord)::after { display: none; }
.hub-theme :is(.rule-desc, .field-label) { font-size: 1rem; }
.hub-theme .rule-title { font-size: 1.1rem; }
.hub-theme .rule-number { color: var(--hub-pink); }
.hub-theme .info-pill { border-color: #ffffff24; color: var(--hub-pink); background: #ffafc709; }
.hub-theme .leader-row { background: #16121f; border-color: #ffffff18; border-radius: 12px; }
.hub-theme .nav-tab { font-size: 14px; letter-spacing: .02em; text-transform: none; }
.hub-theme .nav-tab-active { color: var(--hub-pink); background: #ffafc70c; border-color: #ffafc730; }
.hub-footer {
    width: calc(100% - 48px);
    max-width: 1080px;
    margin: 48px auto 0;
    padding: 24px;
    border-top: 1px solid var(--hub-line);
    color: var(--hub-muted);
    font-size: 13px;
    text-align: center;
}
.hub-footer p { margin: 0; font-size: 13px; letter-spacing: .02em; text-transform: none; }
.hub-footer a { color: var(--hub-pink); }

/* Page adaptations: preserve the space needed by maps, tables and staff tools. */
.hub-page-home .hero {
    min-height: 0;
    width: calc(100% - 48px);
    max-width: 1080px;
    margin: 0 auto 48px;
    padding: 64px 24px;
    border: 1px solid #ffffff24;
    border-top: 3px solid var(--hub-pink);
    border-radius: 18px;
    background: linear-gradient(125deg, #30213f, #181424 60%, #262038);
}
.hub-page-home .hero .logo-wrap { margin-bottom: 32px; }
.hub-page-home .hero .logo-wrap img { max-width: 100%; max-height: 150px; }
.hub-page-home .hero .logo-wrap::before { animation: none; }
.hub-page-home .hero .scroll-cue { display: none; }
.hub-page-home .btn-discord { padding: 15px 26px; font-size: 16px; }
.hub-page-home .member-pill { border-radius: 10px; font-size: 12px; }
.hub-page-home .hosts-section-label h2 { font-size: 12px; }
.hub-page-home .host-card { border-radius: 12px; }
.hub-page-public .hub-content > .max-w-2xl { max-width: 900px; }
.hub-page-public .hub-content > .max-w-7xl { max-width: 1200px; }
.hub-page-profile .hub-content { padding-top: 0 !important; padding-bottom: 0 !important; }
.hub-page-profile .hub-content h1 { font-size: clamp(32px, 5vw, 52px); }
.hub-page-commands .hub-content { max-width: 1200px; margin: auto; padding-inline: 28px; }
.hub-page-commands .module-card p { font-size: 14px; }
.hub-page-commands .module-card h2 { font-size: 16px; letter-spacing: .02em; }
.hub-page-staff .hub-content { padding-top: 0 !important; }
.hub-page-staff .hub-content h1 { font-size: 1.6rem; }
.hub-page-staff #login-screen {
    position: relative !important;
    inset: auto !important;
    min-height: calc(100svh - 170px);
    background: transparent !important;
}
.hub-page-staff .hub-content:has(#login-screen:not(.hidden)) > div:not(#login-screen) { display: none; }
.hub-page-staff #login-screen > .fixed { display: none; }
.hub-page-staff #login-screen > .glass-panel { border-top: 3px solid var(--hub-pink); }
.hub-page-staff #main-sidebar { border-radius: 14px; }
.hub-page-map .hub-content > header { padding-top: 0; flex-wrap: wrap; gap: 18px; }
.hub-page-map .hub-content > header h1 { font-size: 1.5rem; }
.hub-page-article .article-wrap { padding-top: 0; }

@media (max-width: 900px) {
    .hub-header { flex-wrap: wrap; gap: 8px 16px; padding: 20px 24px 12px; }
    .hub-brand { flex: 1; }
    .hub-nav { order: 3; flex: 1 0 100%; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
    .hub-more-panel { top: calc(100% + 8px); }
    .hub-content { padding-top: 28px !important; }
}
@media (max-width: 600px) {
    .hub-header { padding-inline: 18px; }
    .hub-brand { font-size: 15px; }
    .hub-brand img { width: 28px; height: 28px; }
    .hub-nav { gap: 22px; }
    .hub-nav > a { font-size: 14px; }
    .hub-page-home .hero { width: calc(100% - 36px); padding: 40px 20px; }
    .hub-page-commands .hub-content { padding-inline: 18px; }
    .hub-page-staff .hub-content > div:not(#login-screen) { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hub-header *, .hub-theme .hero *, .hub-theme .host-card { animation: none !important; transition: none !important; }
}
