/* ═══════════════════════════════════════════════════════════════
   ECEL Homepage Polish v2 — SPECTACULAR / CINEMATIC layer
   Loaded AFTER homepage-polish.css. Adds dramatic premium FX.
   =============================================================== */

/* ─────────── Extra tokens ─────────── */
:root {
    --fx-red:        #ff1f3a;
    --fx-red-hot:   #ff4d65;
    --fx-red-deep:   #b81229;
    --fx-amber:      #ffb547;
    --fx-cyan:       #25e0ff;
    --fx-violet:     #8b5cf6;
    --fx-gold:       #ffd166;
    --fx-glow-red:   0 0 32px rgba(255, 31, 58, 0.45);
    --fx-glow-amber: 0 0 28px rgba(255, 181, 71, 0.4);
}

/* ════════════════════════════════════════════════════════════════
   1) HERO — cinematic premiere treatment
   ════════════════════════════════════════════════════════════════ */

/* Vignette + lens flare layer */
.hero {
    background: #050507;
}
.hero-video-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 80, 100, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.10) 0%, transparent 40%),
        radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    animation: fxFlareDrift 18s ease-in-out infinite alternate;
}
@keyframes fxFlareDrift {
    0%   { transform: translate(-2%, -1%) scale(1.02); opacity: 0.85; }
    100% { transform: translate(2%, 1%)  scale(1.06); opacity: 1; }
}

/* Floating particle field (pure CSS, no JS) */
.hero-container::before,
.hero-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 1px at 18% 22%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(circle 1.5px at 72% 38%, rgba(255, 31, 58, 0.75), transparent),
        radial-gradient(circle 1px at 44% 78%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(circle 1.2px at 88% 62%, rgba(37, 224, 255, 0.55), transparent),
        radial-gradient(circle 1px at 12% 88%, rgba(255, 181, 71, 0.6), transparent),
        radial-gradient(circle 1.5px at 60% 12%, rgba(255, 255, 255, 0.65), transparent);
    z-index: 2;
    animation: fxParticleFloat 22s ease-in-out infinite;
}
.hero-container::after {
    background-image:
        radial-gradient(circle 1px at 32% 52%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(circle 1.4px at 78% 18%, rgba(255, 31, 58, 0.6), transparent),
        radial-gradient(circle 1px at 52% 92%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(circle 1.2px at 8% 42%, rgba(255, 209, 102, 0.55), transparent);
    animation: fxParticleFloat 28s ease-in-out -6s infinite reverse;
    opacity: 0.7;
}
@keyframes fxParticleFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25%      { transform: translate3d(-14px, -8px, 0); }
    50%      { transform: translate3d(10px, -18px, 0); }
    75%      { transform: translate3d(-6px, 12px, 0); }
}

/* Brand title — 3D layered + chromatic shimmer */
.title-main {
    position: relative;
    text-shadow:
        0 0 1px rgba(255, 31, 58, 0.6),
        0 2px 0 rgba(180, 8, 30, 0.45),
        0 4px 0 rgba(120, 4, 20, 0.35),
        0 6px 24px rgba(255, 31, 58, 0.55),
        0 12px 48px rgba(255, 31, 58, 0.35) !important;
    animation: fxTitleBreathe 5s ease-in-out infinite;
}
@keyframes fxTitleBreathe {
    0%, 100% { filter: drop-shadow(0 4px 18px rgba(255, 31, 58, 0.45)) brightness(1); }
    50%      { filter: drop-shadow(0 6px 26px rgba(255, 31, 58, 0.65)) brightness(1.08); }
}

/* Chromatic aberration ghost behind title */
.title-main::before,
.title-main::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    z-index: -1;
}
.title-main::before { transform: translate(-2px, 0); opacity: 0.5; mix-blend-mode: screen; filter: hue-rotate(-20deg); }
.title-main::after  { transform: translate(2px, 0);  opacity: 0.5; mix-blend-mode: screen; filter: hue-rotate(20deg); }

/* Brand line tag above title */
.hero-content::after {
    content: "EST. 2024  ·  EUROPEAN CIRCUIT  ·  ELITE TIER";
    display: block;
    margin: 18px auto 0;
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.42em;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 480px;
}

/* Hero subtitle — refined chip with corner ticks */
.hero-subtitle {
    background-color: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 31, 58, 0.28) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(255, 31, 58, 0.08);
    position: relative;
}
.hero-subtitle::before,
.hero-subtitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fx-red), transparent);
    transform: translateY(-50%);
}
.hero-subtitle::before { left: -24px; }
.hero-subtitle::after  { right: -24px; }

/* CTA buttons — premium tier */
.hero-buttons .btn {
    font-family: 'Rajdhani', 'Exo 2', sans-serif !important;
    font-size: 1rem;
    padding: 14px 28px;
    min-width: 200px;
    border-radius: 6px !important;
}
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--fx-red-hot) 0%, var(--fx-red) 50%, var(--fx-red-deep) 100%) !important;
    box-shadow:
        0 14px 32px rgba(255, 31, 58, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 -8px 18px rgba(120, 4, 20, 0.6) inset !important;
}
.hero-buttons .btn-primary::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--fx-red-hot), transparent 40%, transparent 60%, var(--fx-red-hot));
    border-radius: inherit;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════════
   2) STATS — championship podium feel
   ════════════════════════════════════════════════════════════════ */
.stats-section {
    position: relative;
    margin-top: -2rem;
}
.stats-section::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: min(80vw, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fx-red), transparent);
    box-shadow: 0 0 18px var(--fx-red);
    z-index: 1;
}

.stat-card {
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: linear-gradient(160deg, rgba(22, 24, 32, 0.72), rgba(6, 7, 12, 0.88)) !important;
    border-radius: 14px !important;
}
.stat-card .stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1;
    position: relative;
    display: inline-block;
}
.stat-card .stat-number::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fx-red), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity .35s ease, transform .35s ease;
}
.stat-card:hover .stat-number::after { opacity: 1; transform: scaleX(1); }

/* ════════════════════════════════════════════════════════════════
   3) PLAYER HUB — magazine-cover quality
   ════════════════════════════════════════════════════════════════ */

/* Welcome bar — dramatic upgrade with diagonal stripes */
.hq-welcome {
    background:
        linear-gradient(115deg, rgba(255, 31, 58, 0.18) 0%, transparent 28%),
        linear-gradient(135deg, rgba(20, 22, 28, 0.88), rgba(8, 10, 16, 0.95)) !important;
    border: 1px solid rgba(255, 31, 58, 0.28) !important;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 31, 58, 0.08);
    overflow: hidden;
    position: relative;
}
.hq-welcome::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fx-red) 30%, var(--fx-red-hot) 50%, var(--fx-red) 70%, transparent);
    box-shadow: 0 0 18px var(--fx-red);
    animation: fxScanLine 4s ease-in-out infinite;
}
@keyframes fxScanLine {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* Greeting — stadium banner feel */
.hq-greeting {
    font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    color: #ffffff !important;
}
.hq-ign {
    font-family: 'Exo 2', 'Rajdhani', sans-serif !important;
    font-weight: 900 !important;
    font-style: italic;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #fff 0%, var(--fx-red-hot) 60%, var(--fx-red) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 4px 14px rgba(255, 31, 58, 0.5));
    position: relative;
    padding-right: 6px;
}

/* Avatar ring — multi-layered halo */
.hq-avatar-ring {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--fx-red), var(--fx-red-hot), var(--fx-amber), var(--fx-red), var(--fx-red));
    box-shadow: 0 0 30px rgba(255, 31, 58, 0.35);
}
.hq-avatar-ring::before {
    filter: blur(6px) !important;
    opacity: 0.75 !important;
    animation-duration: 4s !important;
}
.hq-avatar-ring::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 31, 58, 0.35);
    animation: fxRingCounterSpin 16s linear infinite;
    pointer-events: none;
}
@keyframes fxRingCounterSpin {
    to { transform: rotate(-360deg); }
}

/* Tags around avatar — chip premium look */
.hq-tag {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all .25s ease;
}
.hq-tag:hover {
    background: rgba(255, 31, 58, 0.1) !important;
    border-color: var(--fx-red) !important;
    transform: translateY(-1px);
}
.hq-tag--accent {
    background: linear-gradient(135deg, rgba(255, 31, 58, 0.18), rgba(255, 31, 58, 0.06)) !important;
    border-color: rgba(255, 31, 58, 0.45) !important;
    color: var(--fx-red-hot) !important;
    text-shadow: 0 0 8px rgba(255, 31, 58, 0.3);
}

/* HUD tiles — trophy cabinet polish */
.hq-hud {
    gap: 1rem !important;
}
.hq-hud-item {
    background: linear-gradient(160deg, rgba(22, 24, 32, 0.92), rgba(8, 10, 16, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.hq-hud-item::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.6;
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.hq-hud-item:hover::after { transform: translateX(100%); }

.hq-hud-icon {
    width: 48px !important; height: 48px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(255, 31, 58, 0.2), rgba(255, 31, 58, 0.05)) !important;
    border: 1px solid rgba(255, 31, 58, 0.35) !important;
    color: var(--fx-red-hot) !important;
    box-shadow:
        0 8px 18px rgba(255, 31, 58, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.hq-hud-icon--amber {
    background: linear-gradient(135deg, rgba(255, 181, 71, 0.22), rgba(255, 181, 71, 0.06)) !important;
    border-color: rgba(255, 181, 71, 0.45) !important;
    color: var(--fx-amber) !important;
    box-shadow: 0 8px 18px rgba(255, 181, 71, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.hq-hud-icon--green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.06)) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
    color: #4ade80 !important;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.hq-hud-icon--purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.06)) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #a78bfa !important;
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.hq-hud-val {
    font-size: 1.6rem !important;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Quick nav — broadcast bar */
.hq-nav {
    padding: 4px !important;
    background: linear-gradient(135deg, rgba(20, 22, 28, 0.92), rgba(8, 10, 16, 0.95)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(10px);
    position: relative;
}
.hq-nav::before {
    content: "";
    position: absolute;
    top: 50%; left: 0;
    width: 3px; height: 24px;
    background: var(--fx-red);
    box-shadow: 0 0 14px var(--fx-red);
    border-radius: 0 3px 3px 0;
    transform: translateY(-50%);
}
.hq-nav-link {
    border-radius: 10px !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem !important;
}
.hq-nav-link i {
    font-size: 1.1rem !important;
}

/* HQ cards — sharper edges, gradient borders */
.hq-card {
    background:
        linear-gradient(160deg, rgba(22, 24, 32, 0.94), rgba(8, 10, 16, 0.97)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(12px);
    overflow: hidden;
}
.hq-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 31, 58, 0.4), transparent 30%, transparent 70%, rgba(255, 31, 58, 0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.hq-card:hover::after { opacity: 1; }
.hq-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 31, 58, 0.18) !important;
}

/* Card titles — broadcast typography */
.hq-card-title {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 12px rgba(255, 31, 58, 0.18);
}
.hq-card-title i {
    background: linear-gradient(135deg, var(--fx-red-hot), var(--fx-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(255, 31, 58, 0.5));
}

/* My Stats — premium numbers */
.hq-stats {
    gap: 0 !important;
}
.hq-stat-row {
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background .2s ease;
}
.hq-stat-row:last-child { border-bottom: none; }
.hq-stat-row:hover {
    background: linear-gradient(90deg, rgba(255, 31, 58, 0.06), transparent);
}
.hq-stat-val {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 1rem !important;
}

/* Tournament cards — championship feel */
.hq-tourney-card {
    background: linear-gradient(160deg, rgba(28, 30, 38, 0.95), rgba(12, 14, 20, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    position: relative;
    overflow: hidden;
}
.hq-tourney-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--fx-red), var(--fx-red-deep));
    box-shadow: 4px 0 14px rgba(255, 31, 58, 0.35);
}
.hq-tourney-card:hover {
    border-color: rgba(255, 31, 58, 0.32) !important;
}
.hq-tourney-status {
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.65rem !important;
    backdrop-filter: blur(8px);
}
.hq-tourney-progress .hq-tourney-fill {
    background: linear-gradient(90deg, var(--fx-red), var(--fx-amber)) !important;
    box-shadow: 0 0 12px rgba(255, 31, 58, 0.45);
}

/* News rows — clean magazine */
.hq-news-row {
    padding: 14px !important;
    border-radius: 10px !important;
    transition: all .25s ease;
    border: 1px solid transparent;
}
.hq-news-row:hover {
    background: linear-gradient(90deg, rgba(255, 31, 58, 0.06), transparent) !important;
    border-color: rgba(255, 31, 58, 0.15);
    transform: translateX(4px);
}
.hq-news-icon {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Calendar — esports schedule board */
.hq-card--calendar {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 31, 58, 0.08), transparent 40%),
        linear-gradient(160deg, rgba(22, 24, 32, 0.95), rgba(8, 10, 16, 0.97)) !important;
}
.hq-cal-month {
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
}
.hq-cal-btn {
    background: rgba(255, 31, 58, 0.1) !important;
    border: 1px solid rgba(255, 31, 58, 0.25) !important;
    color: var(--fx-red-hot) !important;
    transition: all .2s ease;
}
.hq-cal-btn:hover {
    background: var(--fx-red) !important;
    color: #fff !important;
    box-shadow: 0 0 16px var(--fx-glow-red);
}

/* Engagement card — trophy showcase */
.hq-engage-item {
    background: linear-gradient(160deg, rgba(28, 30, 38, 0.85), rgba(12, 14, 20, 0.95)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: all .25s ease;
}
.hq-engage-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 31, 58, 0.3) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
.hq-engage-item i {
    background: linear-gradient(135deg, var(--fx-red-hot), var(--fx-amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 31, 58, 0.4));
}
.hq-engage-item span {
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pending invites — alert tier */
.hq-card--invites {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 31, 58, 0.18), transparent 50%),
        linear-gradient(160deg, rgba(40, 14, 22, 0.95), rgba(20, 6, 12, 0.98)) !important;
    border-color: rgba(255, 31, 58, 0.4) !important;
    animation: fxInvitePulse 2.6s ease-in-out infinite;
}
@keyframes fxInvitePulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 31, 58, 0.2); }
    50%      { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 31, 58, 0.55), 0 0 24px rgba(255, 31, 58, 0.35); }
}

/* Buttons — uniform premium look */
.hq-btn, .hq-btn-sm {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hq-btn::after, .hq-btn-sm::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .6s ease;
}
.hq-btn:hover::after, .hq-btn-sm:hover::after { transform: translateX(120%); }
.hq-btn:hover, .hq-btn-sm:hover { transform: translateY(-2px); }

.hq-btn--accent {
    background: linear-gradient(135deg, var(--fx-red-hot), var(--fx-red-deep)) !important;
    box-shadow: 0 10px 24px rgba(255, 31, 58, 0.35) !important;
}

/* ════════════════════════════════════════════════════════════════
   4) FEATURE / SHOWCASE / FLOW CARDS — premium tier
   ════════════════════════════════════════════════════════════════ */
.feature-card, .flow-card, .showcase-card {
    border-radius: 14px !important;
    backdrop-filter: blur(12px);
    background:
        linear-gradient(160deg, rgba(22, 24, 32, 0.92), rgba(8, 10, 16, 0.97)) !important;
}
.feature-card:hover, .flow-card:hover, .showcase-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 31, 58, 0.25);
}

/* Section heading — massive presence */
.section-header h2 {
    font-family: 'Exo 2', 'Rajdhani', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(2rem, 4vw, 3.4rem) !important;
    letter-spacing: -0.01em;
    line-height: 1.05;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   5) Mobile guards
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-content::after { font-size: 0.62rem; letter-spacing: 0.28em; }
    .hero-container::before, .hero-container::after { display: none; }
    .title-main::before, .title-main::after { display: none; }
    .hq-avatar-ring::after { display: none; }
    .stats-section::before { width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-container::after,
    .hero-container::before,
    .hero-container::after,
    .title-main,
    .hq-welcome::before,
    .hq-avatar-ring::after,
    .hq-card--invites {
        animation: none !important;
    }
}


/* Quick Nav — desktop/laptop only (Tournaments, My Team, Leaderboards, Scouting, Contracts) */
.hq-nav { display: none !important; }
@media (min-width: 1100px) {
  .hq-nav { display: flex !important; }
}


/* Engagement promoted full-width above grid */
.hq-card--engage-top { margin: 0 0 24px 0; }
.hq-card--engage-top .hq-engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 600px) { .hq-card--engage-top .hq-engage { grid-template-columns: repeat(3, 1fr); gap: 8px; } }


/* ═══════════════════════════════════════════════════════
   PC LAYOUT — original full-width main column
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1100px) {
  .hq-wrap { max-width: 1260px !important; }
  .hq-grid { grid-template-columns: minmax(0, 1fr) 340px !important; gap: 1rem !important; }
}

/* Mobile fix — ensure long IGN wraps and fits inside welcome card */
@media (max-width: 768px) {
  .hq-welcome-left { min-width: 0 !important; flex: 1 1 auto !important; }
  .hq-welcome-left > div:last-child { min-width: 0 !important; flex: 1 1 auto !important; }
  .hq-greeting {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }
  .hq-ign { display: inline; word-break: break-word; overflow-wrap: anywhere; }
}

/* ─── Global search bar (home, under welcome) ─── */
.hq-search {
    position: relative;
    margin: 1rem 0 1.25rem;
}
.hq-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 18, 30, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 14px;
    padding: 0.65rem 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(8px);
}
.hq-search__input-wrap:focus-within {
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.hq-search__icon {
    color: #a78bfa;
    font-size: 0.95rem;
    margin-right: 0.65rem;
    flex-shrink: 0;
}
.hq-search__input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-family: inherit;
}
.hq-search__input::placeholder { color: rgba(229, 231, 235, 0.45); }
.hq-search__clear {
    background: transparent;
    border: 0;
    color: rgba(229, 231, 235, 0.55);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.hq-search__clear:hover { color: #f87171; background: rgba(248, 113, 113, 0.08); }

.hq-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: rgba(12, 14, 24, 0.97);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-height: 420px;
    overflow-y: auto;
    z-index: 50;
    padding: 0.4rem;
}
.hq-search__group-label {
    padding: 0.45rem 0.65rem 0.3rem;
    color: rgba(167, 139, 250, 0.85);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hq-search__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: #f3f4f6;
    transition: background 0.15s;
}
.hq-search__row:hover, .hq-search__row.is-active {
    background: rgba(99, 102, 241, 0.12);
}
.hq-search__row-img {
    width: 32px; height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.hq-search__row-img.is-team { border-radius: 8px; }
.hq-search__row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.hq-search__row-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hq-search__row-meta {
    font-size: 0.72rem;
    color: rgba(229, 231, 235, 0.55);
    margin-top: 0.1rem;
}
.hq-search__row-flag {
    width: 14px; height: 10px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    display: inline-block;
    margin-right: 0.3rem;
    vertical-align: middle;
}
.hq-search__empty {
    padding: 1rem;
    text-align: center;
    color: rgba(229, 231, 235, 0.5);
    font-size: 0.85rem;
}
.hq-search__vip {
    color: #facc15;
    font-size: 0.7rem;
}

@media (max-width: 720px) {
    .hq-search__input { font-size: 0.88rem; }
    .hq-search__results { max-height: 60vh; }
}
