/* Modern preview theme for oldgames.games homepage. Loaded after the current theme. */

body.modern-ui-theme {
    --red: #ff315a;
    --orange: #ff8a3d;
    --yellow: #ffd166;
    --green: #46e69b;
    --cyan: #26e7ff;
    --blue: #4c7dff;
    --purple: #a66bff;
    --modern-bg: #060812;
    --modern-bg-2: #0b1020;
    --modern-panel: rgba(12, 18, 34, 0.72);
    --modern-panel-strong: rgba(12, 18, 34, 0.9);
    --modern-line: rgba(255, 255, 255, 0.12);
    --modern-line-hot: rgba(38, 231, 255, 0.38);
    --modern-text: #f5f7fb;
    --modern-muted: rgba(245, 247, 251, 0.68);
    background:
        linear-gradient(180deg, #050710 0%, #0a1020 45%, #070712 100%) !important;
    color: var(--modern-text);
}

body.modern-ui-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(115deg, rgba(38, 231, 255, 0.08), transparent 28%, rgba(255, 209, 102, 0.05) 58%, transparent 76%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.7) 42%, transparent 100%);
    opacity: 0.75;
}

body.modern-ui-theme::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(560px circle at var(--modern-pointer-x, 50%) var(--modern-pointer-y, 20%), rgba(38, 231, 255, 0.12), transparent 58%);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

body.modern-ui-theme .modern-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 100006;
    pointer-events: none;
    background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--red));
    box-shadow: 0 0 18px rgba(38, 231, 255, 0.55);
}

body.modern-ui-theme .loading-screen {
    background:
        linear-gradient(180deg, rgba(4, 7, 18, 0.98), rgba(4, 9, 19, 0.96)),
        linear-gradient(90deg, rgba(38,231,255,0.08), rgba(255,49,90,0.08)) !important;
}

body.modern-ui-theme .loading-orbs,
body.modern-ui-theme .hero-orbs,
body.modern-ui-theme .hero-animated-bg,
body.modern-ui-theme .pixel-bg,
body.modern-ui-theme .gradient-overlay,
body.modern-ui-theme .scanline {
    display: none !important;
}

/* Aurora ambient blobs */
body.modern-ui-theme .modern-aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

body.modern-ui-theme .modern-aurora-blob {
    position: absolute;
    border-radius: 50%;
    /* 110px blur is GPU-heavy on integrated graphics; 70px looks the same. */
    filter: blur(70px);
    opacity: 0.5;
    /* mix-blend-mode forces the browser into a slow compositing path. The
       additive look is approximated cheaply with opacity + radial gradients. */
    will-change: transform;
    animation: modernAuroraDrift 22s ease-in-out infinite;
}

body.modern-ui-theme .modern-aurora-blob.b1 {
    width: 540px; height: 540px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(38,231,255,0.55), transparent 65%);
    animation-delay: -3s;
}
body.modern-ui-theme .modern-aurora-blob.b2 {
    width: 600px; height: 600px;
    top: 30vh; right: -180px;
    background: radial-gradient(circle, rgba(255,49,90,0.45), transparent 65%);
    animation-delay: -8s;
}
body.modern-ui-theme .modern-aurora-blob.b3 {
    width: 480px; height: 480px;
    bottom: -160px; left: 30%;
    background: radial-gradient(circle, rgba(166,107,255,0.42), transparent 65%);
    animation-delay: -14s;
}

@keyframes modernAuroraDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(40px, -30px, 0) scale(1.08); }
    66% { transform: translate3d(-30px, 40px, 0) scale(0.94); }
}

body.modern-ui-theme .mobile-games-modal:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.modern-ui-theme .mobile-games-modal.active {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 99000 !important;
}

body.modern-ui-theme #navbar {
    height: 74px !important;
    padding: 0.8rem clamp(18px, 3.2vw, 48px) !important;
    background: rgba(5, 8, 18, 0.72) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(18px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
}

body.modern-ui-theme #navbar.scrolled,
body.modern-ui-theme nav.scrolled {
    background: rgba(5, 8, 18, 0.9) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48) !important;
}

body.modern-ui-theme .logo {
    color: #fff !important;
    font-family: 'Orbitron', 'Space Grotesk', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-shadow: none !important;
}

body.modern-ui-theme .logo-icon {
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--red)) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 10px 26px rgba(38,231,255,0.26) !important;
}

body.modern-ui-theme .nav-menu li a,
body.modern-ui-theme .language-btn,
body.modern-ui-theme .auth-btn,
body.modern-ui-theme .nav-favorites-btn,
body.modern-ui-theme .nav-subscribe-btn,
body.modern-ui-theme .discord-nav-btn,
body.modern-ui-theme .coffee-nav-btn,
body.modern-ui-theme .user-btn {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.055) !important;
    color: rgba(245,247,251,0.86) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.modern-ui-theme .nav-menu li a:hover,
body.modern-ui-theme .nav-menu li a.active,
body.modern-ui-theme .language-btn:hover,
body.modern-ui-theme .auth-btn:hover,
body.modern-ui-theme .nav-favorites-btn:hover,
body.modern-ui-theme .nav-subscribe-btn:hover,
body.modern-ui-theme .discord-nav-btn:hover,
body.modern-ui-theme .coffee-nav-btn:hover {
    color: #fff !important;
    border-color: rgba(38,231,255,0.42) !important;
    background: linear-gradient(135deg, rgba(38,231,255,0.16), rgba(255,49,90,0.1)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.24) !important;
}

body.modern-ui-theme .search-box {
    min-width: clamp(220px, 18vw, 360px);
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}

body.modern-ui-theme .search-input {
    color: #fff !important;
}

body.modern-ui-theme .hero {
    min-height: 100svh !important;
    padding-top: 92px !important;
    margin-top: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background:
        linear-gradient(180deg, rgba(4,7,18,0.58) 0%, rgba(6,8,18,0.88) 72%, #070912 100%),
        linear-gradient(120deg, rgba(38,231,255,0.16), transparent 36%, rgba(255,209,102,0.08) 70%, rgba(255,49,90,0.12)) !important;
    overflow: hidden !important;
}

body.modern-ui-theme .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 96px 96px;
    transform: perspective(900px) rotateX(62deg) translateY(25%);
    transform-origin: bottom;
    opacity: 0.38;
}

body.modern-ui-theme .hero-scanlines {
    opacity: 0.12 !important;
    mix-blend-mode: soft-light;
}

body.modern-ui-theme .hero-vignette {
    background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(0,0,0,0.34) 64%, rgba(0,0,0,0.76) 100%) !important;
}

body.modern-ui-theme .modern-cover-wall {
    position: absolute;
    inset: 74px 0 0 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.74;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 18%, #000 44%, #000 100%);
}

body.modern-ui-theme .modern-cover-track {
    position: absolute;
    right: -18vw;
    display: flex;
    gap: 18px;
    transform: rotate(-8deg);
    animation: modernCoverDrift 22s linear infinite;
}

body.modern-ui-theme .modern-cover-track.track-a { top: 7vh; }
body.modern-ui-theme .modern-cover-track.track-b { top: 31vh; animation-duration: 28s; animation-direction: reverse; opacity: 0.78; }
body.modern-ui-theme .modern-cover-track.track-c { top: 55vh; animation-duration: 34s; opacity: 0.58; }

body.modern-ui-theme .modern-cover-tile {
    width: clamp(76px, 8vw, 132px);
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
    transform: translateZ(0);
}

body.modern-ui-theme .modern-cover-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.06);
}

@keyframes modernCoverDrift {
    from { transform: translateX(0) rotate(-8deg); }
    to { transform: translateX(-36vw) rotate(-8deg); }
}

body.modern-ui-theme .hero-layout-vertical {
    position: relative;
    z-index: 2;
    max-width: 1560px !important;
    margin: 0 auto !important;
    padding-inline: clamp(18px, 4vw, 56px) !important;
}

body.modern-ui-theme .hero-top-row {
    display: grid !important;
    grid-template-columns: minmax(230px, 0.78fr) minmax(420px, 1.45fr) minmax(230px, 0.78fr) !important;
    gap: clamp(18px, 2vw, 32px) !important;
    align-items: center !important;
}

body.modern-ui-theme .hero-content-centered {
    width: min(900px, 100%) !important;
    max-width: min(900px, 100%) !important;
    padding: clamp(28px, 4vw, 64px) 0 !important;
    text-align: center !important;
}

body.modern-ui-theme .hero-badge,
body.modern-ui-theme .section-label,
body.modern-ui-theme .mp-label {
    width: fit-content;
    margin-inline: auto;
    border-radius: 999px !important;
    border: 1px solid rgba(38,231,255,0.28) !important;
    background: rgba(38,231,255,0.08) !important;
    color: rgba(255,255,255,0.86) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04) !important;
    text-shadow: none !important;
}

body.modern-ui-theme .hero-title {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif !important;
    font-size: clamp(3rem, 7.6vw, 8.4rem) !important;
    line-height: 0.92 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

body.modern-ui-theme .hero-title .title-word {
    display: block !important;
    white-space: nowrap !important;
    background: linear-gradient(110deg, #fff 0%, #bcefff 28%, #ffd166 58%, #ff6686 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 22px 42px rgba(0,0,0,0.45));
}

body.modern-ui-theme .hero-subtitle {
    max-width: 720px;
    margin: 20px auto 0 !important;
    color: rgba(245,247,251,0.72) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    letter-spacing: 0.16em !important;
    text-shadow: none !important;
}

body.modern-ui-theme .hero-stats-row {
    margin: 28px auto 0 !important;
    width: fit-content;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    background: rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

body.modern-ui-theme .hero-stat-number {
    color: #fff !important;
    text-shadow: 0 0 22px rgba(38,231,255,0.38) !important;
}

body.modern-ui-theme .game-btn,
body.modern-ui-theme .hero-multiplayer-btn,
body.modern-ui-theme .hero-live-start-btn,
body.modern-ui-theme .hero-launcher-download-cta,
body.modern-ui-theme .console-launch-btn,
body.modern-ui-theme .mp-bottom-play,
body.modern-ui-theme .feature-card-btn {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    background: linear-gradient(135deg, rgba(38,231,255,0.95), rgba(76,125,255,0.9) 48%, rgba(255,49,90,0.9)) !important;
    color: #fff !important;
    box-shadow: 0 16px 38px rgba(38,231,255,0.18), inset 0 1px 0 rgba(255,255,255,0.34) !important;
    text-shadow: none !important;
}

body.modern-ui-theme .game-btn:hover,
body.modern-ui-theme .hero-multiplayer-btn:hover,
body.modern-ui-theme .hero-live-start-btn:hover,
body.modern-ui-theme .hero-launcher-download-cta:hover,
body.modern-ui-theme .console-launch-btn:hover,
body.modern-ui-theme .mp-bottom-play:hover,
body.modern-ui-theme .feature-card-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 22px 52px rgba(38,231,255,0.24), 0 0 0 1px rgba(255,255,255,0.18) !important;
}

body.modern-ui-theme .hero-support-btn {
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: linear-gradient(135deg, rgba(255,209,102,0.96), rgba(255,138,76,0.94) 48%, rgba(255,49,90,0.9)) !important;
    box-shadow: 0 14px 36px rgba(255,126,77,0.22), inset 0 1px 0 rgba(255,255,255,0.42) !important;
}

body.modern-ui-theme .hero-support-btn:hover {
    box-shadow: 0 22px 48px rgba(255,126,77,0.34), 0 0 0 1px rgba(255,255,255,0.2) !important;
}

body.modern-ui-theme .hero-side-panel,
body.modern-ui-theme .hero-multiplayer-panel,
body.modern-ui-theme .hero-live-panel,
body.modern-ui-theme .hero-launcher-panel,
body.modern-ui-theme .feature-card,
body.modern-ui-theme .console-item,
body.modern-ui-theme .most-played-card,
body.modern-ui-theme .rp-card,
body.modern-ui-theme .store-item,
body.modern-ui-theme .modal-content,
body.modern-ui-theme .profile-modal-content,
body.modern-ui-theme .user-profile-content {
    border: 1px solid rgba(255,255,255,0.12) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.11) !important;
    backdrop-filter: blur(18px) saturate(1.18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

body.modern-ui-theme .hero-side-panel,
body.modern-ui-theme .hero-multiplayer-panel,
body.modern-ui-theme .hero-live-panel,
body.modern-ui-theme .hero-launcher-panel {
    border-radius: 18px !important;
    overflow: hidden !important;
}

/* Dim the colorful animated canvases inside hero panels so the modern glass shows */
body.modern-ui-theme .hero-canvas-mp,
body.modern-ui-theme .hero-canvas-live,
body.modern-ui-theme .hero-canvas-launcher {
    opacity: 0.18 !important;
    mix-blend-mode: screen !important;
    filter: blur(1px) saturate(0.85) !important;
}

/* Soften the rgb-glow border around hero panels (main.css ::before) */
body.modern-ui-theme .hero-multiplayer-panel::before,
body.modern-ui-theme .hero-live-panel::before,
body.modern-ui-theme .hero-launcher-panel::before {
    opacity: 0.32 !important;
    filter: blur(1px) !important;
}

/* Replace dark ::after fill with translucent gradient so glass effect remains */
body.modern-ui-theme .hero-multiplayer-panel::after,
body.modern-ui-theme .hero-live-panel::after,
body.modern-ui-theme .hero-launcher-panel::after {
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.78), rgba(4, 7, 16, 0.92)) !important;
}

body.modern-ui-theme .hero-panels-row {
    position: relative;
    z-index: 2;
    gap: clamp(16px, 2vw, 28px) !important;
    margin-top: clamp(20px, 3vw, 40px) !important;
}

body.modern-ui-theme .last-games-header,
body.modern-ui-theme .top-players-header,
body.modern-ui-theme .hero-panel-header,
body.modern-ui-theme .hero-live-header,
body.modern-ui-theme .hero-launcher-header {
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    background: linear-gradient(90deg, rgba(38,231,255,0.09), rgba(255,49,90,0.06)) !important;
}

body.modern-ui-theme .sections-order-wrapper,
body.modern-ui-theme .features-section,
body.modern-ui-theme .recently-played-section,
body.modern-ui-theme .most-played-section,
body.modern-ui-theme .consoles-section,
body.modern-ui-theme .seo-content-section {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

body.modern-ui-theme .features-section,
body.modern-ui-theme .most-played-section,
body.modern-ui-theme .consoles-section {
    padding-block: clamp(58px, 7vw, 110px) !important;
}

body.modern-ui-theme .section-heading,
body.modern-ui-theme .mp-main-title {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif !important;
    letter-spacing: 0 !important;
    color: #fff !important;
    text-shadow: none !important;
}

body.modern-ui-theme .section-subtext,
body.modern-ui-theme .mp-subtitle,
body.modern-ui-theme .console-subtitle,
body.modern-ui-theme .feature-card-desc,
body.modern-ui-theme .most-played-card-plays {
    color: var(--modern-muted) !important;
}

body.modern-ui-theme .consoles-grid,
body.modern-ui-theme .features-grid,
body.modern-ui-theme .most-played-grid {
    gap: clamp(16px, 2vw, 26px) !important;
}

body.modern-ui-theme .console-item,
body.modern-ui-theme .feature-card,
body.modern-ui-theme .most-played-card {
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease !important;
}

body.modern-ui-theme .console-item::before,
body.modern-ui-theme .feature-card::before,
body.modern-ui-theme .most-played-card::before,
body.modern-ui-theme .hero-side-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.13), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

body.modern-ui-theme .console-item:hover::before,
body.modern-ui-theme .feature-card:hover::before,
body.modern-ui-theme .most-played-card:hover::before,
body.modern-ui-theme .hero-side-panel:hover::before {
    opacity: 1;
}

body.modern-ui-theme .console-item:hover,
body.modern-ui-theme .feature-card:hover,
body.modern-ui-theme .most-played-card:hover,
body.modern-ui-theme .store-item:hover {
    /* No translateY: lifting the card moves it out from under the cursor and
       triggers a hover/leave flicker loop near the card edges. Keep the
       visual lift via shadow + border glow only. */
    border-color: rgba(38,231,255,0.44) !important;
    box-shadow: 0 30px 88px rgba(0,0,0,0.52), 0 0 0 1px rgba(38,231,255,0.18) !important;
}

body.modern-ui-theme .console-icon-box,
body.modern-ui-theme .feature-card-image,
body.modern-ui-theme .most-played-card-image {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: rgba(0,0,0,0.32) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

body.modern-ui-theme .console-title,
body.modern-ui-theme .feature-card-title,
body.modern-ui-theme .most-played-card-title {
    color: #fff !important;
    text-shadow: none !important;
}

body.modern-ui-theme .console-year-tag,
body.modern-ui-theme .panel-badge,
body.modern-ui-theme .game-count-badge,
body.modern-ui-theme .most-played-rank,
body.modern-ui-theme .feature-card-console,
body.modern-ui-theme .most-played-card-console {
    border-radius: 999px !important;
    background: rgba(38,231,255,0.12) !important;
    color: #dffbff !important;
    border: 1px solid rgba(38,231,255,0.28) !important;
    box-shadow: none !important;
}

body.modern-ui-theme .most-played-card.top-1 {
    border-color: rgba(255,209,102,0.42) !important;
}

body.modern-ui-theme #storeModal {
    background:
        linear-gradient(180deg, rgba(3,6,16,0.95), rgba(4,8,18,0.98)),
        linear-gradient(120deg, rgba(38,231,255,0.08), rgba(255,49,90,0.08)) !important;
}

body.modern-ui-theme .store-header-redesign,
body.modern-ui-theme .store-tab-bar-wrapper {
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,0.28) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

body.modern-ui-theme .store-title-neon {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif !important;
    background: linear-gradient(110deg, #fff, var(--cyan), var(--yellow), var(--red)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

body.modern-ui-theme .store-tab {
    border-radius: 999px !important;
}

body.modern-ui-theme .modern-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

body.modern-ui-theme .modern-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Section headings & dividers ===== */
body.modern-ui-theme .section-header {
    margin-bottom: clamp(28px, 4vw, 56px) !important;
}

body.modern-ui-theme .section-heading {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif !important;
    font-size: clamp(2rem, 4.4vw, 3.6rem) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    background: linear-gradient(110deg, #ffffff 0%, #bcefff 32%, #ffd166 62%, #ff7a9a 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    filter: drop-shadow(0 12px 32px rgba(38, 231, 255, 0.18)) !important;
}

body.modern-ui-theme .section-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(38, 231, 255, 0.3) !important;
    background: rgba(38, 231, 255, 0.08) !important;
    color: #d8faff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.32em !important;
    margin-bottom: 14px !important;
    text-shadow: none !important;
}

body.modern-ui-theme .section-subtext {
    color: var(--modern-muted) !important;
    letter-spacing: 0.12em !important;
}

/* ===== Achievements bar ===== */
body.modern-ui-theme .achievements-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(7, 11, 24, 0.7), rgba(5, 8, 18, 0.85)) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

body.modern-ui-theme .achievements-title {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif !important;
    color: #fff !important;
    background: linear-gradient(110deg, #fff, var(--cyan), var(--yellow)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    letter-spacing: 0.18em !important;
}

body.modern-ui-theme .badge-icon {
    filter: drop-shadow(0 6px 22px rgba(38, 231, 255, 0.35)) !important;
}

body.modern-ui-theme .badge-name {
    color: rgba(245, 247, 251, 0.85) !important;
    letter-spacing: 0.16em !important;
}

/* ===== Consoles section background blob ===== */
body.modern-ui-theme .consoles-section::before {
    background: radial-gradient(circle, rgba(38, 231, 255, 0.08) 0%, transparent 70%) !important;
}

body.modern-ui-theme .consoles-section::after {
    content: '';
    position: absolute;
    bottom: -240px;
    right: 8%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(255, 49, 90, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Console card image polish ===== */
body.modern-ui-theme .console-item {
    padding: 18px !important;
}

body.modern-ui-theme .console-icon-box img,
body.modern-ui-theme .feature-card-image img,
body.modern-ui-theme .most-played-card-image img {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease !important;
}

body.modern-ui-theme .console-item:hover .console-icon-box img,
body.modern-ui-theme .feature-card:hover .feature-card-image img,
body.modern-ui-theme .most-played-card:hover .most-played-card-image img {
    transform: scale(1.06) !important;
    filter: saturate(1.18) contrast(1.05) !important;
}

/* ===== Newsletter & SEO sections darker glass ===== */
body.modern-ui-theme .newsletter-section,
body.modern-ui-theme #faq,
body.modern-ui-theme #about-platform,
body.modern-ui-theme #game-catalog {
    background: transparent !important;
}

body.modern-ui-theme .newsletter-section *[class*="newsletter"],
body.modern-ui-theme #faq .faq-item {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ===== Footer subtle modernization ===== */
body.modern-ui-theme footer {
    background:
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0.85)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -10px 60px rgba(38, 231, 255, 0.05) !important;
}

body.modern-ui-theme .footer-brand h3 {
    background: linear-gradient(110deg, #fff, var(--cyan), var(--yellow), var(--red)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    letter-spacing: 0.06em !important;
    filter: drop-shadow(0 8px 28px rgba(38, 231, 255, 0.18)) !important;
}

body.modern-ui-theme .footer-col h4 {
    background: linear-gradient(110deg, #fff, var(--cyan)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    letter-spacing: 0.18em !important;
}

body.modern-ui-theme .social-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
}

body.modern-ui-theme .social-icon:hover {
    background: linear-gradient(135deg, var(--cyan), var(--red)) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ===== Chat toggle floating button ===== */
body.modern-ui-theme .chat-toggle-btn {
    background: linear-gradient(135deg, rgba(38, 231, 255, 0.95), rgba(166, 107, 255, 0.92), rgba(255, 49, 90, 0.92)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 18px 44px rgba(38, 231, 255, 0.28) !important;
}

/* ===== Live streams toggle floating button ===== */
body.modern-ui-theme .live-streams-toggle {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(135deg, rgba(255, 49, 90, 0.92), rgba(255, 138, 61, 0.92)) !important;
    box-shadow: 0 18px 38px rgba(255, 49, 90, 0.32) !important;
}

@media (max-width: 1180px) {
    body.modern-ui-theme #navbar {
        gap: 10px !important;
    }

    body.modern-ui-theme #navbar .nav-menu,
    body.modern-ui-theme nav#navbar .nav-menu,
    body.modern-ui-theme #navbar .discord-nav-btn,
    body.modern-ui-theme #navbar .coffee-nav-btn {
        display: none !important;
    }

    body.modern-ui-theme #navbar .mobile-menu-btn,
    body.modern-ui-theme nav#navbar .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,0.16) !important;
        background: linear-gradient(135deg, rgba(38,231,255,0.9), rgba(255,49,90,0.86)) !important;
        color: #fff !important;
        box-shadow: 0 14px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.34) !important;
    }

    body.modern-ui-theme .search-container {
        margin-left: auto !important;
    }

    body.modern-ui-theme .search-box {
        min-width: 210px !important;
        max-width: 250px !important;
    }

    body.modern-ui-theme .navbar-right-area {
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    body.modern-ui-theme .nav-subscribe-btn,
    body.modern-ui-theme .nav-favorites-btn,
    body.modern-ui-theme .language-btn,
    body.modern-ui-theme .auth-btn,
    body.modern-ui-theme .user-btn {
        min-width: 46px !important;
        height: 46px !important;
        padding: 0 13px !important;
    }

    body.modern-ui-theme .subscribe-text,
    body.modern-ui-theme .subscribe-badge,
    body.modern-ui-theme .nav-fav-text,
    body.modern-ui-theme #currentLang,
    body.modern-ui-theme .auth-btn-text span:not(.auth-btn-icon),
    body.modern-ui-theme #userName {
        display: none !important;
    }

    body.modern-ui-theme .new-mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        width: min(420px, 100vw) !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 90000 !important;
        display: flex !important;
        flex-direction: column !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
        background:
            linear-gradient(180deg, rgba(5,8,18,0.98), rgba(7,11,24,0.99)),
            linear-gradient(135deg, rgba(38,231,255,0.12), rgba(255,49,90,0.1)) !important;
        border-right: 1px solid rgba(38,231,255,0.24) !important;
        box-shadow: 28px 0 80px rgba(0,0,0,0.55) !important;
        overflow: hidden !important;
        transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease !important;
    }

    body.modern-ui-theme .new-mobile-menu.active {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    body.modern-ui-theme .new-mobile-menu-header,
    body.modern-ui-theme .new-mobile-menu-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;
        padding: 18px 20px !important;
        border-color: rgba(255,255,255,0.12) !important;
        background: rgba(255,255,255,0.05) !important;
    }

    body.modern-ui-theme .new-mobile-menu-header {
        border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    }

    body.modern-ui-theme .new-mobile-logo {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        color: #fff !important;
        font-family: 'Orbitron', 'Space Grotesk', sans-serif !important;
        font-weight: 900 !important;
        letter-spacing: 0.08em !important;
        text-decoration: none !important;
    }

    body.modern-ui-theme .new-mobile-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,0.14) !important;
        background: rgba(255,255,255,0.08) !important;
        color: #fff !important;
        font-size: 1.25rem !important;
        box-shadow: none !important;
        cursor: pointer !important;
    }

    body.modern-ui-theme .new-mobile-menu-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        flex: 1 1 auto !important;
        padding: 18px !important;
        overflow-y: auto !important;
    }

    body.modern-ui-theme .new-mobile-link,
    body.modern-ui-theme .new-mobile-social {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        min-height: 54px !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        background: rgba(255,255,255,0.055) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        color: rgba(245,247,251,0.92) !important;
        text-decoration: none !important;
        font-family: 'Space Grotesk', sans-serif !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.02em !important;
        text-transform: none !important;
    }

    body.modern-ui-theme .new-mobile-link:hover,
    body.modern-ui-theme .new-mobile-social:hover {
        border-color: rgba(38,231,255,0.34) !important;
        background: linear-gradient(135deg, rgba(38,231,255,0.14), rgba(255,49,90,0.1)) !important;
        color: #fff !important;
    }

    body.modern-ui-theme .new-mobile-icon {
        width: 28px !important;
        min-width: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.modern-ui-theme .new-mobile-text {
        flex: 1 1 auto !important;
        color: inherit !important;
    }

    body.modern-ui-theme .new-mobile-badge {
        margin-left: auto !important;
        border-radius: 999px !important;
        padding: 4px 9px !important;
        background: rgba(38,231,255,0.14) !important;
        color: #dffbff !important;
        border: 1px solid rgba(38,231,255,0.24) !important;
        font-size: 0.68rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.06em !important;
    }

    body.modern-ui-theme .new-mobile-menu-footer {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        padding: 16px 18px 20px !important;
        border-top: 1px solid rgba(255,255,255,0.12) !important;
    }

    body.modern-ui-theme .new-mobile-social {
        justify-content: center !important;
        min-height: 48px !important;
        padding: 12px !important;
    }

    body.modern-ui-theme .hero-top-row {
        grid-template-columns: 1fr !important;
    }

    body.modern-ui-theme .hero-content-centered {
        order: -2 !important;
        padding-top: clamp(22px, 3.5vw, 42px) !important;
        padding-bottom: 26px !important;
    }

    body.modern-ui-theme .hero-title {
        font-size: clamp(3rem, 7.6vw, 5.7rem) !important;
        line-height: 0.9 !important;
    }

    body.modern-ui-theme .last-games-panel.hero-side-panel {
        order: -1 !important;
    }

    body.modern-ui-theme .top-players-panel.hero-side-panel {
        order: 0 !important;
    }

    body.modern-ui-theme .hero-side-panel {
        max-width: 760px;
        margin-inline: auto;
        width: 100%;
    }

    body.modern-ui-theme .modern-cover-wall {
        opacity: 0.32;
        mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 88%);
    }
}

@media (max-width: 860px) {
    body.modern-ui-theme #navbar {
        height: 66px !important;
        padding-inline: 14px !important;
    }

    body.modern-ui-theme .logo {
        font-size: 0.96rem !important;
        letter-spacing: 0.08em !important;
    }

    body.modern-ui-theme .logo-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    body.modern-ui-theme .search-container {
        display: none !important;
    }

    body.modern-ui-theme .nav-subscribe-btn,
    body.modern-ui-theme .auth-btn,
    body.modern-ui-theme .user-btn {
        display: none !important;
    }

    body.modern-ui-theme .nav-favorites-btn,
    body.modern-ui-theme .language-btn,
    body.modern-ui-theme .mobile-menu-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        flex-basis: 42px !important;
        padding: 0 !important;
    }

    body.modern-ui-theme .hero {
        padding-top: 74px !important;
    }

    body.modern-ui-theme .hero-title {
        font-size: clamp(2.35rem, 10.5vw, 4.1rem) !important;
    }

    body.modern-ui-theme .hero-title .title-word {
        white-space: normal !important;
    }

    body.modern-ui-theme .hero-subtitle {
        letter-spacing: 0.08em !important;
        font-size: 0.86rem !important;
    }

    body.modern-ui-theme .hero-stats-row {
        border-radius: 18px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    body.modern-ui-theme .hero-panels-row {
        grid-template-columns: 1fr !important;
    }

    body.modern-ui-theme .modern-cover-track.track-b,
    body.modern-ui-theme .modern-cover-track.track-c {
        display: none;
    }
}

@media (max-width: 520px) {
    body.modern-ui-theme .nav-favorites-btn,
    body.modern-ui-theme .language-selector {
        display: none !important;
    }

    body.modern-ui-theme .logo {
        font-size: 0.84rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.modern-ui-theme .modern-cover-track,
    body.modern-ui-theme .modern-reveal {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Containment helps the browser skip layout/paint of off-screen sections */
body.modern-ui-theme .consoles-section,
body.modern-ui-theme .most-played-section,
body.modern-ui-theme .features-section,
body.modern-ui-theme .recently-played-section,
body.modern-ui-theme .achievements-bar,
body.modern-ui-theme .seo-content-section,
body.modern-ui-theme #faq,
body.modern-ui-theme #about-platform,
body.modern-ui-theme #game-catalog,
body.modern-ui-theme footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

body.modern-ui-theme .console-item,
body.modern-ui-theme .feature-card,
body.modern-ui-theme .most-played-card,
body.modern-ui-theme .top-player-item,
body.modern-ui-theme .last-game-item {
    contain: layout paint style;
}

/* Cover wall confined so it doesn't trigger layout outside hero */
body.modern-ui-theme .modern-cover-wall {
    contain: layout paint;
    will-change: auto;
}

/* GPU promotion only on tracks that animate */
body.modern-ui-theme .modern-cover-track {
    will-change: transform;
}

/* Drop expensive backdrop-filter from cards/panels (keep on navbar/drawer only).
   Backdrop blur is one of the heaviest paints. We keep glass look via solid alpha. */
body.modern-ui-theme .hero-side-panel,
body.modern-ui-theme .hero-multiplayer-panel,
body.modern-ui-theme .hero-live-panel,
body.modern-ui-theme .hero-launcher-panel,
body.modern-ui-theme .feature-card,
body.modern-ui-theme .console-item,
body.modern-ui-theme .most-played-card,
body.modern-ui-theme .rp-card,
body.modern-ui-theme .store-item,
body.modern-ui-theme .modal-content,
body.modern-ui-theme .profile-modal-content,
body.modern-ui-theme .user-profile-content,
body.modern-ui-theme .achievements-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hide expensive legacy hero canvases entirely (they were already opacity 0.18
   but still cost paint). The aurora + cover wall replace them. */
body.modern-ui-theme .hero-canvas,
body.modern-ui-theme .hero-canvas-mp,
body.modern-ui-theme .hero-canvas-live,
body.modern-ui-theme .hero-canvas-launcher,
body.modern-ui-theme .hero-scanlines,
body.modern-ui-theme .hero-vignette {
    display: none !important;
}

/* Soften filter blur (cheaper) on aurora */
body.modern-ui-theme .modern-aurora-blob {
    filter: blur(80px) !important;
    opacity: 0.45 !important;
}

/* ========================================
   LOW-END / MOBILE PERFORMANCE MODE
   Disables decorative animations and heavy blurs
   ======================================== */
body.modern-ui-theme.modern-low-end::before,
body.modern-ui-theme.modern-low-end::after,
html.og-lite-mode body.modern-ui-theme::before,
html.og-lite-mode body.modern-ui-theme::after {
    display: none !important;
}

body.modern-ui-theme.modern-low-end .modern-aurora,
body.modern-ui-theme.modern-low-end .modern-cover-wall,
body.modern-ui-theme.modern-low-end .modern-space-canvas,
html.og-lite-mode body.modern-ui-theme .modern-aurora,
html.og-lite-mode body.modern-ui-theme .modern-cover-wall,
html.og-lite-mode body.modern-ui-theme .modern-space-canvas {
    display: none !important;
}

body.modern-ui-theme.modern-low-end #navbar,
body.modern-ui-theme.modern-low-end .new-mobile-menu,
html.og-lite-mode body.modern-ui-theme #navbar,
html.og-lite-mode body.modern-ui-theme .new-mobile-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.modern-ui-theme.modern-low-end .modern-reveal {
    transition-duration: 0.35s !important;
}

body.modern-ui-theme.modern-low-end .console-item:hover,
body.modern-ui-theme.modern-low-end .feature-card:hover,
body.modern-ui-theme.modern-low-end .most-played-card:hover {
    transform: none !important;
}

body.modern-ui-theme.modern-low-end .console-item::before,
body.modern-ui-theme.modern-low-end .feature-card::before,
body.modern-ui-theme.modern-low-end .most-played-card::before,
body.modern-ui-theme.modern-low-end .hero-side-panel::before {
    display: none !important;
}

body.modern-ui-theme.modern-low-end .hero-title .title-word,
body.modern-ui-theme.modern-low-end .section-heading,
body.modern-ui-theme.modern-low-end .store-title-neon,
body.modern-ui-theme.modern-low-end .footer-brand h3,
html.og-lite-mode body.modern-ui-theme .hero-title .title-word,
html.og-lite-mode body.modern-ui-theme .section-heading,
html.og-lite-mode body.modern-ui-theme .store-title-neon,
html.og-lite-mode body.modern-ui-theme .footer-brand h3 {
    filter: none !important;
}

body.modern-ui-theme.modern-low-end .hero-side-panel,
body.modern-ui-theme.modern-low-end .hero-multiplayer-panel,
body.modern-ui-theme.modern-low-end .hero-live-panel,
body.modern-ui-theme.modern-low-end .hero-launcher-panel,
body.modern-ui-theme.modern-low-end .feature-card,
body.modern-ui-theme.modern-low-end .console-item,
body.modern-ui-theme.modern-low-end .most-played-card,
body.modern-ui-theme.modern-low-end .rp-card,
body.modern-ui-theme.modern-low-end .store-item,
html.og-lite-mode body.modern-ui-theme .hero-side-panel,
html.og-lite-mode body.modern-ui-theme .hero-multiplayer-panel,
html.og-lite-mode body.modern-ui-theme .hero-live-panel,
html.og-lite-mode body.modern-ui-theme .hero-launcher-panel,
html.og-lite-mode body.modern-ui-theme .feature-card,
html.og-lite-mode body.modern-ui-theme .console-item,
html.og-lite-mode body.modern-ui-theme .most-played-card,
html.og-lite-mode body.modern-ui-theme .rp-card,
html.og-lite-mode body.modern-ui-theme .store-item {
    box-shadow: 0 10px 28px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* Reduced-motion override (also mirrored via CSS @media) */
body.modern-ui-theme.modern-reduced-motion .modern-cover-wall,
body.modern-ui-theme.modern-reduced-motion .modern-aurora {
    display: none !important;
}

/* ========================================
   DRAWER (always-on, viewport-independent)
   Re-applies the modern drawer styles even when the @media
   query block above is bypassed (some real devices report
   widths bigger than the layout viewport). Specificity bumped
   via :where() workaround using #navbar~ context.
   ======================================== */
body.modern-ui-theme #newMobileMenu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(420px, 100vw);
    height: 100vh;
    height: 100dvh;
    z-index: 90000;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    background:
        linear-gradient(180deg, rgba(5,8,18,0.98), rgba(7,11,24,0.99)),
        linear-gradient(135deg, rgba(38,231,255,0.12), rgba(255,49,90,0.1));
    border-right: 1px solid rgba(38,231,255,0.24);
    box-shadow: 28px 0 80px rgba(0,0,0,0.55);
    overflow: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

body.modern-ui-theme #newMobileMenu.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

body.modern-ui-theme #newMobileMenu .new-mobile-menu-header,
body.modern-ui-theme #newMobileMenu .new-mobile-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
}

body.modern-ui-theme #newMobileMenu .new-mobile-menu-header {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

body.modern-ui-theme #newMobileMenu .new-mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
}

body.modern-ui-theme #newMobileMenu .new-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: none;
    cursor: pointer;
}

body.modern-ui-theme #newMobileMenu .new-mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    padding: 18px;
    overflow-y: auto;
}

body.modern-ui-theme #newMobileMenu .new-mobile-link,
body.modern-ui-theme #newMobileMenu .new-mobile-social {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(245,247,251,0.92);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
}

body.modern-ui-theme #newMobileMenu .new-mobile-link:hover,
body.modern-ui-theme #newMobileMenu .new-mobile-social:hover,
body.modern-ui-theme #newMobileMenu .new-mobile-link:active {
    border-color: rgba(38,231,255,0.34);
    background: linear-gradient(135deg, rgba(38,231,255,0.14), rgba(255,49,90,0.1));
    color: #fff;
}

body.modern-ui-theme #newMobileMenu .new-mobile-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    background: rgba(38,231,255,0.1);
    border: 1px solid rgba(38,231,255,0.2);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
body.modern-ui-theme #newMobileMenu .new-mobile-icon img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

body.modern-ui-theme #newMobileMenu .new-mobile-text {
    flex: 1 1 auto;
    color: inherit;
    text-transform: none;
    letter-spacing: 0.02em;
}

body.modern-ui-theme #newMobileMenu .new-mobile-badge {
    margin-left: auto;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(38,231,255,0.14);
    color: #dffbff;
    border: 1px solid rgba(38,231,255,0.24);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

body.modern-ui-theme #newMobileMenu .new-mobile-badge.live {
    background: linear-gradient(135deg, #46e69b, #26e7ff);
    color: #04121a;
    border-color: transparent;
}

body.modern-ui-theme #newMobileMenu .new-mobile-menu-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

body.modern-ui-theme #newMobileMenu .new-mobile-social {
    justify-content: center;
    min-height: 48px;
    padding: 12px;
}

/* ========================================
   RADIO PLAYER — modern restyle
   ======================================== */
body.modern-ui-theme .radio-player {
    bottom: 24px !important;
    left: 24px !important;
}

body.modern-ui-theme .radio-bar {
    height: 48px !important;
    padding: 0 14px 0 12px !important;
    min-width: 250px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(38,231,255,0.28) !important;
    background:
        linear-gradient(135deg, rgba(8,12,24,0.92) 0%, rgba(14,18,38,0.92) 100%) !important;
    box-shadow:
        0 14px 40px rgba(0,0,0,0.45),
        0 0 0 1px rgba(38,231,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

body.modern-ui-theme .radio-bar:hover {
    border-color: rgba(38,231,255,0.55) !important;
    box-shadow:
        0 18px 50px rgba(0,0,0,0.55),
        0 0 28px rgba(38,231,255,0.22),
        inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

body.modern-ui-theme .radio-player.playing .radio-bar {
    border-color: rgba(38,231,255,0.6) !important;
}

body.modern-ui-theme .radio-glow-ring {
    border-radius: 15px !important;
    box-shadow:
        0 0 0 1px rgba(38,231,255,0.45),
        0 0 18px rgba(38,231,255,0.28),
        0 0 32px rgba(255,49,90,0.16) !important;
}

body.modern-ui-theme .radio-player.playing .radio-glow-ring {
    box-shadow:
        0 0 0 1px rgba(38,231,255,0.7),
        0 0 24px rgba(38,231,255,0.45),
        0 0 48px rgba(255,49,90,0.25) !important;
}

body.modern-ui-theme .radio-equalizer span {
    background: linear-gradient(to top, #26e7ff 0%, #4cf6ff 60%, rgba(38,231,255,0.6) 100%) !important;
}

body.modern-ui-theme .radio-marquee {
    color: #dffbff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.04em !important;
}

body.modern-ui-theme .radio-chevron {
    color: rgba(38,231,255,0.55) !important;
}

body.modern-ui-theme .radio-player.panel-open .radio-chevron {
    color: #26e7ff !important;
}

body.modern-ui-theme .radio-panel {
    width: 280px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(38,231,255,0.28) !important;
    background:
        linear-gradient(160deg, rgba(8,12,24,0.96) 0%, rgba(14,18,38,0.96) 100%) !important;
    background-image:
        linear-gradient(160deg, rgba(8,12,24,0.96) 0%, rgba(14,18,38,0.96) 100%) !important;
    box-shadow: 0 -4px 50px rgba(38,231,255,0.18), 0 12px 50px rgba(0,0,0,0.7) !important;
}

body.modern-ui-theme .radio-panel::before {
    background: linear-gradient(90deg, transparent, #26e7ff, #ffd166, #ff315a, #ffd166, #26e7ff, transparent) !important;
}

body.modern-ui-theme .radio-panel-header {
    border-bottom: 1px solid rgba(38,231,255,0.14) !important;
    padding: 12px 16px 10px !important;
}

body.modern-ui-theme .radio-panel-logo {
    color: rgba(255,255,255,0.7) !important;
}

body.modern-ui-theme .radio-panel-status {
    color: #46e69b !important;
}

body.modern-ui-theme .radio-track-artist,
body.modern-ui-theme #radioArtist {
    color: rgba(38,231,255,0.85) !important;
}

/* Hide on small screens to free room (kept on desktop) */
@media (max-width: 720px) {
    body.modern-ui-theme .radio-player {
        bottom: 86px !important;
        left: 12px !important;
    }
    body.modern-ui-theme .radio-bar {
        min-width: 200px !important;
        height: 42px !important;
    }
}

/* ========================================
   CHAT TOGGLE BUTTON — modern restyle
   ======================================== */
body.modern-ui-theme .chat-toggle-btn {
    width: 62px !important;
    height: 62px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #26e7ff 0%, #4c7dff 50%, #ff315a 100%) !important;
    background-size: 200% 200% !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    box-shadow:
        0 18px 44px rgba(38,231,255,0.32),
        0 0 0 1px rgba(38,231,255,0.18) !important;
    animation: modernChatGradient 6s ease infinite, modernChatFloat 5s ease-in-out infinite !important;
}

@keyframes modernChatGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes modernChatFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

body.modern-ui-theme .chat-toggle-btn:hover {
    transform: scale(1.08) translateY(-3px) !important;
    box-shadow:
        0 22px 60px rgba(38,231,255,0.45),
        0 0 60px rgba(255,49,90,0.28) !important;
    border-color: rgba(255,255,255,0.4) !important;
    animation: modernChatGradient 3s ease infinite !important;
}

body.modern-ui-theme .chat-toggle-btn:active {
    transform: scale(0.94) !important;
}

body.modern-ui-theme .chat-toggle-icon {
    font-size: 1.7rem !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

body.modern-ui-theme .chat-toggle-ring {
    border-radius: 22px !important;
    border-color: rgba(38,231,255,0.45) !important;
    inset: -8px !important;
}

body.modern-ui-theme .chat-toggle-ring-2 {
    border-color: rgba(255,49,90,0.28) !important;
    inset: -16px !important;
}

body.modern-ui-theme .chat-badge {
    background: linear-gradient(135deg, #ffd166, #ff315a) !important;
    color: #170306 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(255,49,90,0.4) !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Low-end: simplify chat button */
body.modern-ui-theme.modern-low-end .chat-toggle-btn {
    animation: none !important;
}

body.modern-ui-theme.modern-low-end .chat-toggle-ring,
body.modern-ui-theme.modern-low-end .chat-toggle-ring-2 {
    display: none !important;
}

body.modern-ui-theme.modern-low-end .radio-player.playing .radio-bar::after {
    animation: none !important;
}

/* ========================================
   LIVE STREAMS TOGGLE — modern restyle
   ======================================== */
body.modern-ui-theme .live-streams-toggle {
    border-radius: 0 18px 18px 0 !important;
    padding: 14px 11px !important;
    background: linear-gradient(135deg, #ff315a 0%, #ff8a3d 60%, #ffd166 100%) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    box-shadow: 0 14px 36px rgba(255,49,90,0.32), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

body.modern-ui-theme .live-streams-toggle:hover {
    box-shadow: 0 18px 50px rgba(255,49,90,0.5), 0 0 30px rgba(255,138,61,0.35) !important;
    border-color: rgba(255,255,255,0.35) !important;
}

body.modern-ui-theme .live-streams-toggle.has-streams {
    animation: modernLivePulse 2.4s ease-in-out infinite !important;
}

@keyframes modernLivePulse {
    0%, 100% { box-shadow: 0 14px 36px rgba(255,49,90,0.32), inset 0 1px 0 rgba(255,255,255,0.18); }
    50% { box-shadow: 0 14px 50px rgba(255,49,90,0.6), 0 0 30px rgba(255,209,102,0.35), inset 0 1px 0 rgba(255,255,255,0.22); }
}

body.modern-ui-theme .live-toggle-dot {
    background: #fff !important;
    box-shadow: 0 0 8px rgba(255,255,255,0.7) !important;
}

body.modern-ui-theme.modern-low-end .live-streams-toggle.has-streams {
    animation: none !important;
}

/* ========================================
   SPACE SHOOTER BACKGROUND CANVAS
   ======================================== */
body.modern-ui-theme .modern-cover-wall { display: none !important; }

body.modern-ui-theme .modern-space-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    /* mix-blend-mode triggers a costly compositing path; opacity is enough. */
    will-change: transform;
}

/* Avoid trapping the negative-z canvas: html keeps the dark backdrop,
   body becomes transparent so the canvas can show through. */
html:has(body.modern-ui-theme),
html.modern-ui-root {
    background: #0d0d0d !important;
}

body.modern-ui-theme {
    background: transparent !important;
}

/* Modals lose their natural opaque page background once <body> goes
   transparent. Strengthen overlays so the page (and the canvas) don't
   bleed through. */
body.modern-ui-theme .profile-modal,
body.modern-ui-theme .user-profile-modal,
body.modern-ui-theme .user-profile-modal-overlay,
body.modern-ui-theme #subscriptionModal,
body.modern-ui-theme #favoritesModal,
body.modern-ui-theme #storeModal,
body.modern-ui-theme #authModal,
body.modern-ui-theme #searchModal,
body.modern-ui-theme #settingsModal,
body.modern-ui-theme #achievementsModal,
body.modern-ui-theme .modal-overlay {
    background: rgba(8, 9, 14, 0.96) !important;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
body.modern-ui-theme .profile-modal-content,
body.modern-ui-theme .user-profile-content,
body.modern-ui-theme .modal-content {
    background-color: rgba(18, 20, 28, 0.99) !important;
}

/* Viewed user profile should feel like a floating card over the live site,
   not a full blackout/blur overlay. */
body.modern-ui-theme .user-profile-modal#userProfileModal {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.modern-ui-theme .user-profile-modal#userProfileModal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(14px, 3vw, 32px) !important;
}

body.modern-ui-theme .user-profile-modal#userProfileModal .user-profile-content {
    width: min(94vw, 460px) !important;
    max-height: min(88vh, 760px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 45, 85, 0.18) !important;
}

/* Low-end & reduced motion: hide decorative canvas entirely */
body.modern-ui-theme.modern-low-end .modern-space-canvas,
html.og-lite-mode body.modern-ui-theme .modern-space-canvas { display: none !important; }
body.modern-ui-theme.modern-reduced-motion .modern-space-canvas { display: none !important; }

/* ========================================
   NAVBAR — cross-browser robustness
   Ensures all navbar items remain visible regardless of browser
   chrome/zoom/font-size. Works on Chrome, Firefox, Safari, Edge.
   ======================================== */

/* Base: prevent overflow clipping and enforce no-wrap with shrinkable children */
body.modern-ui-theme #navbar,
body.modern-ui-theme nav#navbar {
    flex-wrap: nowrap !important;
    overflow: visible !important;
    column-gap: 0.6rem !important;
    row-gap: 0 !important;
    padding-left: max(12px, 2vw) !important;
    padding-right: max(12px, 2vw) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Logo never shrinks */
body.modern-ui-theme #navbar .logo {
    flex: 0 0 auto !important;
    min-width: 0 !important;
}

/* Nav menu (the <ul>) can shrink in width but its items shouldn't break apart */
body.modern-ui-theme #navbar .nav-menu {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    column-gap: 2px !important;
}

body.modern-ui-theme #navbar .nav-menu li {
    flex: 0 0 auto !important;
}

body.modern-ui-theme #navbar .nav-menu li a {
    padding: 0.45rem 0.6rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
}

/* Search shrinks first, gets pushed by margin-left:auto */
body.modern-ui-theme #navbar .search-container {
    flex: 0 1 220px !important;
    min-width: 0 !important;
    margin-left: auto !important;
}

body.modern-ui-theme #navbar .search-box {
    width: 100% !important;
    min-width: 140px !important;
    max-width: 220px !important;
}

/* Discord / Coffee / right-area items — never shrink, hidden via media */
body.modern-ui-theme #navbar .discord-nav-btn,
body.modern-ui-theme #navbar .coffee-nav-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

body.modern-ui-theme #navbar .navbar-right-area {
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
}

body.modern-ui-theme #navbar .navbar-right-area > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* Safari/iOS: ensure -webkit prefixes for backdrop-filter on navbar */
body.modern-ui-theme #navbar {
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
}

/* Firefox fallback when backdrop-filter not supported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    body.modern-ui-theme #navbar {
        background: rgba(8, 11, 22, 0.97) !important;
    }
}

/* ========================================
   PROGRESSIVE COLLAPSE — never let items hide off-screen
   1500-1300: hide Discord + Coffee + Subscribe text, keep icons
   1300-1180: also hide Favorites text + collapse search
   ≤1180: full hamburger collapse (existing block)
   ======================================== */

@media (max-width: 1500px) {
    body.modern-ui-theme #navbar .discord-text,
    body.modern-ui-theme #navbar .coffee-text,
    body.modern-ui-theme #navbar .subscribe-text,
    body.modern-ui-theme #navbar .subscribe-badge {
        display: none !important;
    }
    body.modern-ui-theme #navbar .discord-nav-btn,
    body.modern-ui-theme #navbar .coffee-nav-btn,
    body.modern-ui-theme #navbar .nav-subscribe-btn {
        padding: 0.45rem 0.7rem !important;
        min-width: auto !important;
    }
}

@media (max-width: 1340px) {
    body.modern-ui-theme #navbar .nav-fav-text,
    body.modern-ui-theme #navbar #userName,
    body.modern-ui-theme #navbar .auth-btn-text span:not(.auth-btn-icon) {
        display: none !important;
    }
    body.modern-ui-theme #navbar .search-container {
        flex: 0 1 180px !important;
    }
    body.modern-ui-theme #navbar .nav-menu li a {
        font-size: 0.68rem !important;
        padding: 0.4rem 0.5rem !important;
    }
}

@media (max-width: 1240px) {
    /* Hide Pokemon Trade text but keep pokeball icon */
    body.modern-ui-theme #navbar .nav-menu li a[href*="pokemon-trade"] {
        font-size: 0 !important;
        padding: 0.4rem 0.45rem !important;
    }
    body.modern-ui-theme #navbar .nav-menu li a[href*="pokemon-trade"] img {
        margin-right: 0 !important;
    }
    body.modern-ui-theme #navbar .search-container {
        flex: 0 1 150px !important;
    }
}

/* The hamburger collapse at 1180 already exists above. Make sure mobile-menu-btn
   is visible from the very moment nav-menu hides, even if the media block above
   is overridden by stylesheet order. */
@media (min-width: 1181px) {
    body.modern-ui-theme #navbar .mobile-menu-btn {
        display: none !important;
    }
}

/* Below 1180 — hide right-area completely; the hamburger drawer holds everything */
@media (max-width: 1180px) {
    body.modern-ui-theme #navbar .search-container,
    body.modern-ui-theme #navbar .navbar-right-area {
        display: none !important;
    }
}

/* ========================================
   NAVBAR — TIGHTER BREAKPOINTS (fix overlap)
   The previous 1180 threshold was too low for typical desktop
   widths (~1280-1440). Move hamburger collapse up to 1400 and
   add tighter compaction tiers so items NEVER overlap.
   ======================================== */

/* Reset the previous min-width:1181 rule */
@media (min-width: 1181px) and (max-width: 1400px) {
    body.modern-ui-theme #navbar .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,0.16) !important;
        background: linear-gradient(135deg, rgba(38,231,255,0.9), rgba(255,49,90,0.86)) !important;
        color: #fff !important;
        font-size: 1.4rem !important;
        cursor: pointer !important;
        box-shadow: 0 14px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.34) !important;
    }
}

/* New hamburger collapse threshold: ≤1400 instead of ≤1180 */
@media (max-width: 1400px) {
    body.modern-ui-theme #navbar .nav-menu,
    body.modern-ui-theme nav#navbar .nav-menu,
    body.modern-ui-theme #navbar .discord-nav-btn,
    body.modern-ui-theme #navbar .coffee-nav-btn,
    body.modern-ui-theme #navbar .search-container,
    body.modern-ui-theme #navbar .navbar-right-area {
        display: none !important;
    }
}

@media (min-width: 1401px) {
    body.modern-ui-theme #navbar .mobile-menu-btn,
    body.modern-ui-theme nav#navbar .mobile-menu-btn {
        display: none !important;
    }
}

/* Above 1400: keep everything visible but compact */
@media (min-width: 1401px) and (max-width: 1600px) {
    body.modern-ui-theme #navbar .discord-text,
    body.modern-ui-theme #navbar .coffee-text,
    body.modern-ui-theme #navbar .subscribe-text,
    body.modern-ui-theme #navbar .subscribe-badge,
    body.modern-ui-theme #navbar .nav-fav-text,
    body.modern-ui-theme #navbar #userName,
    body.modern-ui-theme #navbar .auth-btn-text span:not(.auth-btn-icon) {
        display: none !important;
    }
    body.modern-ui-theme #navbar .nav-menu li a {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.55rem !important;
    }
    body.modern-ui-theme #navbar .search-input {
        width: 160px !important;
    }
    body.modern-ui-theme #navbar .search-input:focus {
        width: 220px !important;
    }
}

/* ========================================
   NAVBAR — runtime compact mode
   JS adds .modern-nav-compact after measuring actual rendered width.
   This catches browser zoom/font differences that media queries miss.
   ======================================== */
body.modern-ui-theme.modern-nav-compact #navbar,
body.modern-ui-theme.modern-nav-compact nav#navbar {
    justify-content: flex-start !important;
    gap: 12px !important;
}

body.modern-ui-theme.modern-nav-compact #navbar .nav-menu,
body.modern-ui-theme.modern-nav-compact nav#navbar .nav-menu,
body.modern-ui-theme.modern-nav-compact #navbar .discord-nav-btn,
body.modern-ui-theme.modern-nav-compact #navbar .coffee-nav-btn,
body.modern-ui-theme.modern-nav-compact #navbar .search-container,
body.modern-ui-theme.modern-nav-compact #navbar .navbar-right-area {
    display: none !important;
}

body.modern-ui-theme.modern-nav-compact #navbar .mobile-menu-btn,
body.modern-ui-theme.modern-nav-compact nav#navbar .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    margin-left: auto !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    background: linear-gradient(135deg, rgba(38,231,255,0.9), rgba(255,49,90,0.86)) !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.34) !important;
}

/* Drawer extras for compact navbar parity */
body.modern-ui-theme #newMobileMenu button.new-mobile-link {
    appearance: none !important;
    -webkit-appearance: none !important;
    text-align: left !important;
    cursor: pointer !important;
}

body.modern-ui-theme #newMobileMenu .new-mobile-language-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

body.modern-ui-theme #newMobileMenu .new-mobile-lang-btn {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
    color: rgba(245,247,251,0.92);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    cursor: pointer;
}

body.modern-ui-theme #newMobileMenu .new-mobile-lang-btn:hover,
body.modern-ui-theme #newMobileMenu .new-mobile-lang-btn:active {
    border-color: rgba(38,231,255,0.34);
    background: linear-gradient(135deg, rgba(38,231,255,0.14), rgba(255,49,90,0.1));
    color: #fff;
}

/* Hide floating hamburger while drawer is open; drawer has its own close button */
body.modern-ui-theme:has(#newMobileMenu.active) #navbar .mobile-menu-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.modern-ui-theme.modern-menu-open #navbar .mobile-menu-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ========================================
   HERO TITLE — keep inside center column
   Prevents the big "Play Retro Games Online" headline from spilling
   over the Top Played / Top Players side panels at narrow desktop widths.
   ======================================== */
body.modern-ui-theme .hero-content,
body.modern-ui-theme .hero-content-centered {
    min-width: 0;
}
body.modern-ui-theme .hero-title {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
@media (max-width: 1500px) {
    body.modern-ui-theme .hero-title {
        font-size: clamp(2.2rem, 4.4vw, 4.2rem) !important;
        line-height: 1.05 !important;
    }
}
@media (max-width: 1280px) {
    body.modern-ui-theme .hero-title {
        font-size: clamp(2rem, 4vw, 3.4rem) !important;
    }
}

/* ========================================
   AVATAR BORDERS — kill the spin
   Store-bought chat avatar borders were rotating the whole container,
   which also rotated the user's profile picture inside. Keep the glow
   and color animations, drop the rotation.
   ======================================== */
.chat-avatar-border,
.chat-avatar-border.avatar-border-rainbow,
.chat-avatar-border.avatar-border-fire,
.chat-avatar-border.avatar-border-frost,
.chat-avatar-border.avatar-border-gold,
.chat-avatar-border.avatar-border-electric,
.chat-avatar-border.avatar-border-plasma,
.chat-avatar-border.avatar-border-diamond,
.chat-avatar-border.avatar-border-nebula {
    transform: none !important;
}
.avatar-border-rainbow { animation: none !important; }
.avatar-border-fire { animation: avatarFireFlicker 0.6s ease-in-out infinite !important; }
.avatar-border-frost { animation: none !important; }
.avatar-border-gold { animation: avatarGoldShine 2s ease-in-out infinite !important; }
.avatar-border-electric { animation: none !important; }
.avatar-border-plasma { animation: none !important; }
.avatar-border-diamond { animation: avatarDiamondSparkle 1.5s ease-in-out infinite !important; }
.avatar-border-nebula { animation: none !important; }
/* Neon already only pulses/shifts gradient — leave it, but block any rotate */
.avatar-border-neon { transform: none !important; }
/* Electric keyframes mutate transform; reapply a non-rotating brightness pulse */
@keyframes avatarElectricPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.6); }
}
.avatar-border-electric {
    animation: avatarElectricPulse 0.4s ease-in-out infinite !important;
}
