/* Homepage only. Mirrors Arcade UI tokens without modifying Rex's shared game CSS. */
.hub {
    --bg: #0b0b1a;
    --bg-2: #13132b;
    --text: #f1f5f9;
    --muted: #a3aec1;
    --gold: #ffd23f;
    --orange: #ff8a3d;
    --stroke: rgba(255, 255, 255, .12);
    --glass: rgba(255, 255, 255, .06);
    font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
}
.hub button, .hub input { font: inherit; }
.hub button, .hub a, .hub input { -webkit-tap-highlight-color: transparent; }
.hub :is(button, a, input):focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.hub-background {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 80% 0, rgba(91, 43, 146, .25), transparent 55%),
                radial-gradient(ellipse at 0 50%, rgba(255, 138, 61, .045), transparent 55%), var(--bg);
}
.hub-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 1440px; margin: auto; padding: 1.2rem 3rem; border-bottom: 1px solid var(--stroke);
}
.hub-brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--text); text-decoration: none; font-weight: 900; font-size: .95rem; letter-spacing: .035em; white-space: nowrap; }
.hub-brand > span:first-child { font-size: 1.5rem; margin-right: .3rem; }
.hub-brand > span:last-child { color: var(--gold); font-weight: 650; }
.hub-topbar-label { color: var(--muted); font-size: .78rem; }
.hub .container { max-width: 1440px; padding: 2rem 3rem 3rem; }
.hub .hub-eyebrow { display: block; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 .75rem; line-height: 1.5; }
.hub .hub-banner {
    position: relative; overflow: hidden; display: block;
    padding: 0; margin-bottom: 1.5rem; min-height: 0;
    background: #02071c;
    border: 1px solid var(--stroke); border-radius: 18px;
}
.hub .hub-banner-image { display: block; width: 100%; height: auto; aspect-ratio: 4.5 / 1; object-fit: cover; object-position: center; }
.hub .hub-banner-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hub .subtitle { color: #b6bfd1; font-size: 1rem; line-height: 1.65; margin-top: 1rem; }
.hub .user-info { background: var(--glass); border: 1px solid var(--stroke); border-radius: 18px; padding: 1.2rem 1.5rem; gap: 1.25rem; margin-bottom: 2.75rem; flex-wrap: wrap; }
.hub .welcome { font-size: 1.3rem; font-weight: 650; line-height: 1.3; }
.hub .welcome .hub-eyebrow { color: var(--muted); font-size: .6rem; font-weight: 700; margin-bottom: .25rem; }
.hub .welcome #displayNameDisplay { color: var(--gold); }
.hub .welcome .username, .hub .welcome #usernameDisplay { color: var(--muted); font-size: .75rem; font-weight: 400; }
.hub .user-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.hub .hub-action {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .65rem .9rem; border: 1px solid var(--stroke); border-radius: 12px;
    background: rgba(255,255,255,.04); color: var(--text); cursor: pointer;
    text-decoration: none; font-size: .8rem; font-weight: 650; line-height: 1.3;
    transition: background .18s, border-color .18s, transform .18s;
}
.hub .hub-action:hover { background: rgba(255,255,255,.09); border-color: rgba(255,210,63,.5); transform: translateY(-1px); }
.hub .hub-action span { color: var(--gold); font-size: 1rem; }
.hub .admin-btn { color: var(--gold); background: rgba(255,210,63,.06); }
.hub .logout-btn { color: #c6cbd7; background: transparent; }
.hub .logout-btn:hover { border-color: #ff7e97; color: #ffb0c0; }
.hub .logout-btn span { color: inherit; }
.hub .library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.hub .section-title { font-size: 2.2rem; letter-spacing: -.045em; margin: 0; padding: 0; border: none; line-height: 1.1; }
.hub .section-title span, .title-dot { color: var(--gold); }
.library-hint { color: var(--muted); font-size: .75rem; }
.hub .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 0; align-items: stretch; }
.hub .game-card { display: block; min-width: 0; color: var(--text); text-decoration: none; background: #16162a; border: 1px solid var(--stroke); border-radius: 18px; box-shadow: none; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hub a.game-card:hover, .hub a.game-card:focus-visible { transform: translateY(-5px); border-color: rgba(255,210,63,.7); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.hub .game-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.hub .game-info { padding: 1.15rem 1rem; text-align: left; }
.hub .game-kicker { font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: #c9b86c; margin-bottom: .55rem; line-height: 1.5; }
.hub .game-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .3rem; font-size: 1.05rem; letter-spacing: -.025em; font-weight: 750; margin-bottom: .4rem; line-height: 1.3; }
.hub .game-title span { color: var(--gold); flex-shrink: 0; }
.hub .game-desc { color: var(--muted); font-size: .75rem; line-height: 1.55; }
.hub .upcoming-heading { margin-top: 3rem; }
.hub .upcoming-heading .section-title { font-size: 1.5rem; }
.hub .upcoming-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub .coming-soon { width: 100%; max-width: none; margin: 0; opacity: .6; }
.hub .coming-soon:hover { transform: none; border-color: var(--stroke); }
.hub .auth-container { max-width: 460px; margin: 2rem auto 3rem; padding: 2rem; border: 1px solid var(--stroke); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-heading { font-size: 1.55rem; letter-spacing: -.035em; }
.auth-hint { color: var(--muted); font-size: .85rem; margin: .65rem 0 1.5rem; line-height: 1.5; }
.hub .tabs { gap: .3rem; padding: .3rem; background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: 14px; margin-bottom: 1.5rem; }
.hub .tab { min-height: 44px; border: 0; font-weight: 650; font-size: .85rem; color: var(--muted); border-radius: 10px; padding: .65rem; }
.hub .tab.active { background: rgba(255,210,63,.14); color: var(--gold); }
.hub label { font-size: .78rem; color: #bdc7d8; }
.hub input { min-height: 46px; background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: 12px; color: var(--text); }
.hub input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,63,.1); }
.hub button[type="submit"], .hub .btn-modern { min-height: 46px; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #211500; border: none; border-radius: 12px; padding: .85rem 1rem; font-weight: 750; box-shadow: 0 6px 20px rgba(255,138,61,.15); cursor: pointer; }
.hub button[type="submit"]:hover, .hub .btn-modern:hover { background: linear-gradient(135deg, #ffdf70, #ffa36a); box-shadow: 0 8px 24px rgba(255,138,61,.2); }
.hub .btn-modern { width: 100%; }
.hub .error { color: #ff9eb1; }
.hub .success { color: #3dffa2; }
.hub .info-text { color: var(--muted); line-height: 1.5; font-size: .75rem; }
.hub .modal { background: rgba(3,3,12,.8); padding: 1rem; backdrop-filter: blur(8px); }
.hub .modal-content { width: 100%; max-width: 470px; max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; background: #17172e; border: 1px solid rgba(255,210,63,.25); border-radius: 20px; padding: 1.75rem; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.hub .modal-header { gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--stroke); }
.hub .modal-header h2 { font-size: 1.5rem; letter-spacing: -.035em; }
.hub .close-btn { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text); line-height: 1; }
.hub .close-btn:hover { border-color: var(--gold); background: rgba(255,210,63,.1); }
.hub .changelog-panel { max-width: 800px; }
.hub .changelog-content { color: #c6d0e1 !important; font-size: .88rem; line-height: 1.75; }
.hub .changelog-content h3 { color: var(--text) !important; border-color: var(--stroke) !important; font-size: 1.3rem; letter-spacing: -.025em; margin-bottom: .75rem; }
.hub .changelog-content h4 { color: var(--gold) !important; font-size: .95rem; margin: 1.2rem 0 .6rem; }
.hub .changelog-content ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.hub .changelog-content li { margin-bottom: .5rem; }
.release { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--stroke); }
.release-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: .85rem; }
.release-meta time { color: var(--muted); font-size: .75rem; }
.release-tag { background: rgba(255,210,63,.1); border: 1px solid rgba(255,210,63,.25); color: var(--gold); border-radius: 999px; padding: .15rem .6rem; font-size: .65rem; font-weight: 700; }
.release-source { color: var(--muted); font-size: .7rem; line-height: 1.6; }
@media (max-width: 1100px) {
    .hub-topbar { padding: 1rem 1.5rem; }
    .hub .container { padding: 1.5rem; }
    .hub .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .hub-topbar-label { display: none; }
}
@media (max-width: 760px) {
    .hub .hub-banner-image { aspect-ratio: 3 / 1; }
    .hub .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
    .hub .user-info { padding: 1rem; margin-bottom: 2rem; }
    .hub .user-actions { width: 100%; }

    .library-hint { display: none; }
    .hub .section-title { font-size: 1.9rem; }
}
@media (max-width: 480px) {
    .hub-topbar { padding: .75rem 1rem; gap: .5rem; flex-wrap: wrap; }
    .hub-brand { font-size: .75rem; gap: .3rem; }
    .hub .hub-topbar-updates { font-size: .7rem; padding: .55rem .65rem; }
    .hub .container { padding: 1rem; }

    .hub .subtitle { font-size: .88rem; }

    .hub .user-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .hub .hub-action { font-size: .75rem; }
    .hub .game-info { padding: .85rem; }
    .hub .game-title { font-size: .9rem; }
    .hub .game-kicker { font-size: .53rem; }
    .hub .game-desc { font-size: .7rem; }
    .hub .auth-container { padding: 1.25rem; margin-top: 1.5rem; }
    .hub .modal { padding: .65rem; }
    .hub .modal-content { padding: 1.25rem; max-height: calc(100dvh - 1.3rem); }
}
@media (prefers-reduced-motion: reduce) {
    .hub *, .hub *::before, .hub *::after { animation: none !important; transition: none !important; }
}
