/* ============================================================
   Hub — Harman Gaming home (game picker)
   Unusual fonts, clean motion, no generic AI look
   ============================================================ */

:root {
    --hub-bg: #1a0f2e;
    --hub-bg-soft: #251a38;
    --hub-surface: rgba(35, 25, 55, 0.75);
    --hub-border: rgba(255, 255, 255, 0.08);
    --hub-text: #f2f2f5;
    --hub-text-muted: #b8b0c8;
    --hub-accent: #e879f9;
    --hub-accent-soft: rgba(232, 121, 249, 0.2);
    --hub-sports: #67e8a6;
    --hub-sports-soft: rgba(103, 232, 166, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #1a0f2e;
    color: var(--hub-text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.hub {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 6vw, 48px) 20px 32px;
    position: relative;
}

/* Animated purplish gradient — floating, constantly moving */
.hub-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        135deg,
        #1e1025 0%,
        #2d1b4e 25%,
        #1a0f2e 50%,
        #3b2463 75%,
        #1e1025 100%
    );
    background-size: 400% 400%;
    animation: hub-bg-gradient 12s ease-in-out infinite;
}

@keyframes hub-bg-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hub-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 20% 20%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 80% 100% at 80% 80%, rgba(232, 121, 249, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    animation: hub-bg-orbs 16s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes hub-bg-orbs {
    0% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.15) translate(2%, 1%) rotate(2deg); }
}

.hub-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: clamp(32px, 8vw, 56px);
    padding: 0 0.1em;
}

.hub-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 0.35em;
    overflow: visible;
    padding-bottom: 0.2em;
}

.hub-title-line {
    display: block;
    overflow: visible;
    padding: 0.08em 0;
    line-height: 1.3;
}

.hub-title-accent {
    color: var(--hub-accent);
    font-weight: 700;
    padding-bottom: 0.15em;
    display: block;
}

.hub-tagline {
    font-size: 1rem;
    color: var(--hub-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Game cards grid */
.hub-games {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hub-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s ease,
        box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(20px);
}

.hub-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hub-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hub-card-glow {
    position: absolute;
    inset: -50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hub-card-trackzy:hover .hub-card-glow {
    opacity: 1;
    background: radial-gradient(circle at 50% 50%, var(--hub-accent-soft) 0%, transparent 60%);
}

.hub-card-sports:hover .hub-card-glow {
    opacity: 1;
    background: radial-gradient(circle at 50% 50%, var(--hub-sports-soft) 0%, transparent 60%);
}

/* Background drawing — half the card, behind text (CSS only; no inline icons). Glows on hover. */
.hub-card-trackzy::before,
.hub-card-sports::before,
.hub-card-disabled::before {
    content: '';
    position: absolute;
    right: -5%;
    top: 50%;
    width: 60%;
    height: 140%;
    min-height: 140px;
    max-height: 220px;
    pointer-events: none;
    opacity: 0.13;
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    transform-origin: right center;
}

.hub-card-trackzy::before {
    left: -60%;
    right: auto;
    width: 60%;
    background-image: url('../img/hub-mic.png');
    background-position: left center;
    transform: translateY(-50%) scale(3);
    transform-origin: left center;
}

.hub-card-sports::before,
.hub-card-disabled::before {
    background-image: url('../img/hub-basketball.png');
    transform: translateY(-50%) scale(4);
    filter: brightness(0);
}

.hub-card-trackzy:hover::before {
    opacity: 0.3;
    filter: drop-shadow(0 0 24px rgba(232, 121, 249, 0.5));
}

.hub-card-sports:hover::before {
    opacity: 0.3;
    filter: brightness(0) drop-shadow(0 0 24px rgba(103, 232, 166, 0.5));
}

.hub-card-body {
    position: relative;
    z-index: 1;
}

/* Force-hide any logos/icons (no emoji, no small icon next to title) */
.hub-card .hub-card-title::before,
.hub-card .hub-card-title::after,
.hub-card .hub-card-body::before,
.hub-card .home-mode-icon,
.hub-card .hub-card-art,
.hub-card [class*="icon"] {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
/* Arrow must stay visible */
.hub-card .hub-card-arrow {
    display: inline !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.hub-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.hub-card-desc {
    font-size: 0.9rem;
    color: var(--hub-text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
}

.hub-card-arrow {
    font-size: 1.25rem;
    color: var(--hub-text-muted);
    transition: transform 0.25s ease;
}

.hub-card:hover .hub-card-arrow {
    transform: translateX(4px);
    color: var(--hub-accent);
}

.hub-card-sports:hover .hub-card-arrow {
    color: var(--hub-sports);
}

/* Disabled / coming soon card */
.hub-card-disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

.hub-card-disabled .hub-card-desc {
    margin-bottom: 0;
}

.hub-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hub-text-muted);
    margin-top: 8px;
}

/* Footer */
.hub-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 32px;
    text-align: center;
}

.hub-footer p {
    font-size: 0.8rem;
    color: var(--hub-text-muted);
}

.hub-footer-tagline {
    margin-bottom: 12px;
}

.hub-footer-disclaimer {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-size: 0.72rem !important;
    opacity: 0.95;
}

.hub-footer-meta {
    margin-top: 14px;
    font-size: 0.78rem !important;
}

.hub-footer-meta a {
    color: var(--hub-accent);
    text-decoration: none;
    font-weight: 600;
}

.hub-footer-meta a:hover {
    text-decoration: underline;
}

.hub-footer-dot {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.hub-footer-domain {
    color: var(--hub-text-muted);
}

/* Privacy / legal page */
.legal-page {
    align-items: stretch;
    max-width: 42rem;
    margin: 0 auto;
}

.legal-header {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 8px;
}

.legal-back {
    display: inline-block;
    color: var(--hub-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.legal-back:hover {
    text-decoration: underline;
}

.legal-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.legal-site {
    color: var(--hub-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.legal-updated {
    font-size: 0.8rem;
    color: var(--hub-text-muted);
}

.legal-body {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
    padding: 1.25rem 0 2rem;
}

.legal-body section {
    margin-bottom: 1.35rem;
}

.legal-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--hub-text);
}

.legal-body p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--hub-text-muted);
    margin-bottom: 0.65rem;
}

.legal-body a {
    color: var(--hub-accent);
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

.legal-footer {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
    text-align: center;
}

.legal-footer a {
    color: var(--hub-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-footer a:hover {
    text-decoration: underline;
}
