        :root {
            --bg-deep: #08060e;
            --bg: #0e0b16;
            --bg-card: rgba(18, 14, 28, 0.85);
            --border: rgba(212, 168, 83, 0.15);
            --border-hover: rgba(212, 168, 83, 0.4);
            --text: #e0d6c8;
            --text-muted: #8a7f72;
            --gold: #d4a853;
            --gold-light: #f5d98a;
            --gold-dark: #a07830;
            --crimson: #8b2252;
            --crimson-light: #c44570;
            --accent-blue: #5b8dd9;
            --success: #5dba5f;
            --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            --glow-gold: 0 0 30px rgba(212, 168, 83, 0.2);
            --font-display: 'Cinzel', serif;
            --font-body: 'Inter', Arial, sans-serif;
        }

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

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            font-family: var(--font-body);
            color: var(--text);
            background: var(--bg-deep);
            overflow-x: hidden;
        }

        /* ─── Scrollbar ─── */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-deep); }
        ::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

        /* ─── Particle Canvas ─── */
        #particles {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
        }

        /* ─── Navigation ─── */
        .nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 0 32px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(8, 6, 14, 0.7);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(212, 168, 83, 0.08);
            transition: background 0.3s;
        }

        .nav.scrolled {
            background: rgba(8, 6, 14, 0.95);
            border-bottom-color: rgba(212, 168, 83, 0.15);
        }

        .nav-logo {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            color: var(--gold);
            text-decoration: none;
            letter-spacing: 0.04em;
        }

        .nav-logo span { color: var(--crimson-light); }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.02em;
            transition: color 0.2s;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gold);
            transition: width 0.3s;
        }

        .nav-links a:hover { color: var(--gold-light); }
        .nav-links a:hover::after { width: 100%; }

        .nav-cta {
            padding: 8px 20px;
            background: linear-gradient(135deg, var(--gold-dark), var(--gold));
            color: #1a1008 !important;
            border-radius: 8px;
            font-weight: 700 !important;
            font-size: 13px !important;
        }

        .nav-cta::after { display: none !important; }
        .nav-cta:hover { opacity: 0.9; color: #1a1008 !important; }

        /* ─── Live online badge (in header) ─── */
        .nav-online {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 12px;
            background: rgba(93, 186, 95, 0.07);
            border: 1px solid rgba(93, 186, 95, 0.28);
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            line-height: 1;
            color: var(--text-muted);
            white-space: nowrap;
            transition: border-color 0.2s, background 0.2s;
        }
        .nav-online:hover {
            border-color: rgba(93, 186, 95, 0.5);
            background: rgba(93, 186, 95, 0.12);
        }
        .nav-online-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--success);
            box-shadow: 0 0 8px var(--success);
            animation: pulse-dot 2s ease-in-out infinite;
            flex-shrink: 0;
        }
        .nav-online-num {
            color: #e8f5d8;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }
        .nav-online-label {
            text-transform: lowercase;
            letter-spacing: 0.02em;
        }
        .nav-online--offline {
            background: rgba(139, 34, 82, 0.07);
            border-color: rgba(139, 34, 82, 0.28);
        }
        .nav-online--offline .nav-online-dot {
            background: var(--crimson-light);
            box-shadow: 0 0 8px var(--crimson-light);
            animation: none;
        }
        .nav-online--offline .nav-online-num {
            color: var(--crimson-light);
        }

        /* ─── Language switcher (dropdown) ─── */
        .lang-switcher {
            position: relative;
        }

        .lang-current {
            padding: 6px 10px;
            background: rgba(212, 168, 83, 0.06);
            border: 1px solid rgba(212, 168, 83, 0.2);
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.04em;
            color: var(--gold-light);
            transition: border-color 0.2s, background 0.2s;
        }

        .lang-current:hover {
            border-color: rgba(212, 168, 83, 0.5);
            background: rgba(212, 168, 83, 0.12);
        }

        .lang-current .flag {
            width: 22px;
            height: 14px;
            display: block;
            border-radius: 2px;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            flex-shrink: 0;
        }

        .lang-arrow {
            width: 10px;
            height: 10px;
            transition: transform 0.2s;
            opacity: 0.8;
        }

        .lang-switcher.open .lang-arrow {
            transform: rotate(180deg);
        }

        .lang-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 180px;
            list-style: none;
            padding: 6px;
            margin: 0;
            background: rgba(14, 11, 22, 0.97);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(212, 168, 83, 0.25);
            border-radius: 12px;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px);
            transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
            z-index: 110;
        }

        .lang-switcher.open .lang-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 500;
            transition: background 0.15s, color 0.15s;
        }

        .lang-option:hover {
            background: rgba(212, 168, 83, 0.1);
            color: var(--gold-light);
        }

        .lang-option.active {
            background: rgba(212, 168, 83, 0.14);
            color: var(--gold-light);
            font-weight: 700;
        }

        .lang-option .flag {
            width: 22px;
            height: 14px;
            display: block;
            border-radius: 2px;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            flex-shrink: 0;
        }

        /* Mobile menu */
        .nav-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
        }

        .nav-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--gold);
            margin: 6px 0;
            transition: 0.3s;
        }

        /* ─── Hero ─── */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 120px 24px 80px;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            z-index: -1;
            background:
                radial-gradient(ellipse at 30% 20%, rgba(139, 34, 82, 0.25), transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(212, 168, 83, 0.15), transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(14, 11, 22, 0.3), transparent 70%),
                linear-gradient(180deg, var(--bg-deep) 0%, #15101f 50%, var(--bg-deep) 100%);
        }

        /* Двухколоночный hero: слева текст, справа картинка персонажей */
        .hero-inner {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.05fr 1fr;
            gap: 56px;
            align-items: center;
        }

        .hero-content {
            text-align: left;
        }

        /* ─── Hero artwork ─── */
        .hero-art {
            position: relative;
            width: 100%;
        }

        /* Тёплое золотое свечение позади картинки */
        .hero-art::before {
            content: '';
            position: absolute;
            inset: -12%;
            background:
                radial-gradient(ellipse at 50% 55%, rgba(212, 168, 83, 0.22) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 30%, rgba(139, 34, 82, 0.18) 0%, transparent 55%);
            filter: blur(48px);
            z-index: -1;
            pointer-events: none;
        }

        .hero-art img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 18px;
            border: 1px solid rgba(212, 168, 83, 0.28);
            box-shadow:
                0 30px 70px rgba(0, 0, 0, 0.55),
                0 0 60px rgba(212, 168, 83, 0.12),
                inset 0 0 0 1px rgba(255, 255, 255, 0.04);
            animation: float-hero 7s ease-in-out infinite;
        }

        @keyframes float-hero {
            0%, 100% { transform: translateY(0); }
            50%      { transform: translateY(-10px); }
        }

        /* Тонкая виньетка снизу — мягко вплавляет картинку в фон */
        .hero-art::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 18px;
            pointer-events: none;
            background:
                linear-gradient(180deg, transparent 65%, rgba(8, 6, 14, 0.35) 100%);
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 18px;
            border-radius: 999px;
            background: rgba(212, 168, 83, 0.1);
            border: 1px solid rgba(212, 168, 83, 0.25);
            color: var(--gold-light);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-bottom: 24px;
        }

        .hero-badge::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--success);
            box-shadow: 0 0 8px var(--success);
            animation: pulse-dot 2s ease-in-out infinite;
        }

        @keyframes pulse-dot {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(36px, 6vw, 72px);
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 20px;
            background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--crimson-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-sub {
            font-size: 18px;
            color: var(--text-muted);
            line-height: 1.7;
            margin-bottom: 36px;
            max-width: 540px;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            justify-content: flex-start;
        }

        .hero-socials {
            margin-top: 24px;
            display: flex;
            gap: 12px;
            justify-content: flex-start;
        }

        /* ─── Buttons ─── */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            border-radius: 12px;
            padding: 14px 28px;
            font-weight: 700;
            font-size: 15px;
            transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
            cursor: pointer;
            border: none;
        }

        .btn:hover { transform: translateY(-2px); }

        .btn-gold {
            background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
            color: #1a1008;
            box-shadow: 0 8px 30px rgba(212, 168, 83, 0.25);
        }

        .btn-gold:hover { box-shadow: 0 12px 40px rgba(212, 168, 83, 0.4); }

        .btn-outline {
            background: transparent;
            color: var(--gold-light);
            border: 1px solid rgba(212, 168, 83, 0.3);
        }

        .btn-outline:hover {
            background: rgba(212, 168, 83, 0.08);
            border-color: rgba(212, 168, 83, 0.5);
        }

        .btn-crimson {
            background: linear-gradient(135deg, var(--crimson), var(--crimson-light));
            color: #fff;
            box-shadow: 0 8px 30px rgba(139, 34, 82, 0.25);
        }

        .btn-sm {
            padding: 10px 20px;
            font-size: 13px;
            border-radius: 10px;
        }

        /* ─── Sections ─── */
        .section {
            position: relative;
            z-index: 1;
            padding: 100px 24px;
        }

        .container {
            max-width: 1140px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 56px;
        }

        .section-label {
            display: inline-block;
            font-family: var(--font-display);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 12px;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: clamp(28px, 4vw, 42px);
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--text);
        }

        .section-desc {
            color: var(--text-muted);
            font-size: 16px;
            line-height: 1.7;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Divider */
        .divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border), transparent);
            margin: 0 auto;
            max-width: 800px;
        }

        /* ─── Stats / Server Info ─── */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .stat-card {
            text-align: center;
            padding: 32px 20px;
            border-radius: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            backdrop-filter: blur(8px);
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .stat-card:hover {
            border-color: var(--border-hover);
            box-shadow: var(--glow-gold);
        }

        .stat-icon {
            font-size: 32px;
            margin-bottom: 12px;
            display: block;
        }

        .stat-value {
            font-family: var(--font-display);
            font-size: 28px;
            font-weight: 700;
            color: var(--gold-light);
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 13px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* ─── Features ─── */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .feature-card {
            padding: 28px;
            border-radius: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            backdrop-filter: blur(8px);
            transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
        }

        .feature-card:hover {
            border-color: var(--border-hover);
            box-shadow: var(--glow-gold);
            transform: translateY(-4px);
        }

        .feature-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            margin-bottom: 16px;
        }

        .feature-icon-gold { background: rgba(212, 168, 83, 0.12); }
        .feature-icon-crimson { background: rgba(139, 34, 82, 0.15); }
        .feature-icon-blue { background: rgba(91, 141, 217, 0.12); }

        .feature-card h3 {
            font-family: var(--font-display);
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--text);
        }

        .feature-card p {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.7;
        }

        .feature-card code {
            background: rgba(212, 168, 83, 0.1);
            color: var(--gold-light);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 13px;
        }

        /* ─── Downloads ─── */
        .downloads-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .download-card {
            position: relative;
            padding: 32px 28px;
            border-radius: 24px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            backdrop-filter: blur(8px);
            transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
            overflow: hidden;
        }

        .download-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            border-radius: 3px 3px 0 0;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .download-card:hover::before { opacity: 1; }

        .download-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-6px);
        }

        .download-card-client::before { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }
        .download-card-client:hover { box-shadow: 0 12px 40px rgba(212, 168, 83, 0.15); }

        .download-card-nvidia::before { background: linear-gradient(90deg, #4ade80, #86efac); }
        .download-card-nvidia:hover { box-shadow: 0 12px 40px rgba(74, 222, 128, 0.1); }

        .download-card-amd::before { background: linear-gradient(90deg, var(--accent-blue), #93bbf5); }
        .download-card-amd:hover { box-shadow: 0 12px 40px rgba(91, 141, 217, 0.1); }

        .dl-label {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .dl-label-client {
            color: var(--gold-light);
            background: rgba(212, 168, 83, 0.12);
            border: 1px solid rgba(212, 168, 83, 0.25);
        }

        .dl-label-nvidia {
            color: #86efac;
            background: rgba(74, 222, 128, 0.1);
            border: 1px solid rgba(74, 222, 128, 0.2);
        }

        .dl-label-amd {
            color: #93bbf5;
            background: rgba(91, 141, 217, 0.1);
            border: 1px solid rgba(91, 141, 217, 0.2);
        }

        .download-card h3 {
            font-family: var(--font-display);
            font-size: 22px;
            margin-bottom: 10px;
        }

        .download-card p {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 18px;
        }

        .download-card ul {
            list-style: none;
            margin-bottom: 24px;
        }

        .download-card li {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.8;
            padding-left: 18px;
            position: relative;
        }

        .download-card li::before {
            content: '›';
            position: absolute;
            left: 0;
            color: var(--gold);
            font-weight: 700;
        }

        .download-card .btn {
            width: 100%;
            justify-content: center;
        }

        /* ─── News ─── */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .news-card {
            border-radius: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            overflow: hidden;
            transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
        }

        .news-card:hover {
            border-color: var(--border-hover);
            box-shadow: var(--glow-gold);
            transform: translateY(-4px);
        }

        .news-thumb {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
            background: linear-gradient(135deg, #1a1028, #201530);
        }

        .news-body {
            padding: 24px;
        }

        .news-date {
            font-size: 12px;
            color: var(--gold);
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .news-card h3 {
            font-family: var(--font-display);
            font-size: 17px;
            margin-bottom: 8px;
            color: var(--text);
            line-height: 1.4;
        }

        .news-card p {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.6;
        }

        /* ─── Guides / Steps ─── */
        .guides-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        .guide-card {
            display: flex;
            gap: 20px;
            padding: 28px;
            border-radius: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .guide-card:hover {
            border-color: var(--border-hover);
            box-shadow: var(--glow-gold);
        }

        .guide-num {
            flex-shrink: 0;
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: rgba(212, 168, 83, 0.1);
            border: 1px solid rgba(212, 168, 83, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            color: var(--gold);
        }

        .guide-card h3 {
            font-family: var(--font-display);
            font-size: 17px;
            margin-bottom: 6px;
        }

        .guide-card p {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.6;
        }

        /* ─── Fix Info (short instructions) ─── */
        .fix-info {
            margin-top: 48px;
            padding: 28px 32px;
            border-radius: 20px;
            background: rgba(139, 34, 82, 0.06);
            border: 1px solid rgba(139, 34, 82, 0.15);
        }

        .fix-info h3 {
            font-family: var(--font-display);
            font-size: 18px;
            color: var(--crimson-light);
            margin-bottom: 10px;
        }

        .fix-info p {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.8;
        }

        .fix-info code {
            background: rgba(212, 168, 83, 0.1);
            color: var(--gold-light);
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 13px;
        }

        /* ─── Footer ─── */
        .footer {
            position: relative;
            z-index: 1;
            padding: 48px 24px;
            border-top: 1px solid var(--border);
            text-align: center;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 14px 28px;
            margin-bottom: 20px;
            list-style: none;
        }

        .footer-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s;
        }

        .footer-links a:hover { color: var(--gold-light); }

        .footer-copy {
            font-size: 13px;
            color: var(--text-muted);
            opacity: 0.6;
        }

        /* ─── External rating badge ─── */
        .footer-rating {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 24px;
        }

        .footer-rating-label {
            font-family: var(--font-display);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .rms-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            border-radius: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
        }

        .rms-badge:hover {
            border-color: var(--border-hover);
            box-shadow: var(--glow-gold);
            transform: translateY(-2px);
        }

        .rms-badge img {
            display: block;
            border: 0;
            border-radius: 6px;
            opacity: 0.9;
            transition: opacity 0.3s;
        }

        .rms-badge:hover img {
            opacity: 1;
        }

        /* ─── Scroll Reveal ─── */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Stagger children */
        .reveal-stagger > * {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
        .reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
        .reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
        .reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
        .reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
        .reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

        .reveal-stagger.visible > * {
            opacity: 1;
            transform: translateY(0);
        }

        /* ─── Tabs / Top Players ─── */
        .tabs {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            overflow: hidden;
            backdrop-filter: blur(8px);
        }

        .tab-buttons {
            display: flex;
            border-bottom: 1px solid var(--border);
            background: rgba(8, 6, 14, 0.4);
        }

        .tab-btn {
            flex: 1;
            padding: 16px 20px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-family: var(--font-display);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
            border-bottom: 2px solid transparent;
        }

        .tab-btn:hover {
            color: var(--gold-light);
            background: rgba(212, 168, 83, 0.05);
        }

        .tab-btn.active {
            color: var(--gold-light);
            border-bottom-color: var(--gold);
            background: rgba(212, 168, 83, 0.1);
        }

        .tab-pane { display: none; padding: 8px 0; }
        .tab-pane.active { display: block; }

        .rank-table {
            width: 100%;
            border-collapse: collapse;
        }

        .rank-table th,
        .rank-table td {
            padding: 14px 24px;
            text-align: left;
            border-bottom: 1px solid rgba(212, 168, 83, 0.06);
            font-size: 14px;
        }

        .rank-table th {
            color: var(--gold-light);
            font-family: var(--font-display);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            background: rgba(8, 6, 14, 0.3);
        }

        .rank-table tbody tr {
            transition: background 0.15s;
        }
        .rank-table tbody tr:hover {
            background: rgba(212, 168, 83, 0.04);
        }
        .rank-table tbody tr:last-child td { border-bottom: none; }

        .rank-table .rank-pos {
            color: var(--gold);
            font-family: var(--font-display);
            font-weight: 700;
            width: 56px;
            text-align: center;
        }
        .rank-table .rank-pos.top1 { color: #f5d98a; text-shadow: 0 0 8px rgba(245, 217, 138, 0.5); }
        .rank-table .rank-pos.top2 { color: #d6d6d6; }
        .rank-table .rank-pos.top3 { color: #c87b3a; }

        .rank-table .rank-name {
            color: var(--text);
            font-weight: 600;
        }

        .rank-table .rank-value {
            color: var(--gold-light);
            font-variant-numeric: tabular-nums;
            text-align: right;
        }

        .rank-empty {
            padding: 32px 24px;
            text-align: center;
            color: var(--text-muted);
            font-size: 14px;
        }

        @media (max-width: 600px) {
            .rank-table th,
            .rank-table td { padding: 12px 14px; font-size: 13px; }
            .rank-table .rank-pos { width: 40px; }
        }

        /* ─── Responsive ─── */
        @media (max-width: 900px) {
            .nav { padding: 0 16px; }
            .nav-links { display: none; }
            .nav-links.open {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 64px;
                left: 0;
                right: 0;
                background: rgba(8, 6, 14, 0.97);
                padding: 20px 24px;
                gap: 16px;
                border-bottom: 1px solid var(--border);
            }
            .nav-toggle { display: block; }
            .nav-right { gap: 10px; }
            .nav-online { padding: 5px 9px; font-size: 11px; gap: 5px; }
            .nav-online-label { display: none; }
            .lang-current { padding: 5px 8px; font-size: 11px; }
            .lang-current .flag { width: 20px; height: 12px; }
            .stats-grid { grid-template-columns: repeat(3, 1fr); }
            .features-grid,
            .downloads-grid,
            .news-grid { grid-template-columns: 1fr; }
            .guides-grid { grid-template-columns: 1fr; }
            .hero { padding-top: 100px; }
            .hero-inner {
                grid-template-columns: 1fr;
                gap: 36px;
            }
            .hero-content { text-align: center; }
            .hero-sub {
                margin-left: auto;
                margin-right: auto;
            }
            .hero-actions { justify-content: center; }
            .hero-socials { justify-content: center; }
            .hero-art {
                max-width: 520px;
                margin: 0 auto;
            }
        }

        @media (max-width: 480px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .hero-actions { flex-direction: column; }
            .hero-actions .btn { width: 100%; justify-content: center; }
            .lang-current .lang-code { display: none; }
        }

/* Nav: account link / logout button (player dashboard) */
.nav-logout-form { margin: 0; display: inline; }
.nav-logout-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
    padding: 0; transition: color 0.2s;
}
.nav-logout-btn:hover { color: var(--gold-light); }

/* ============================================================
   App bottom tab bar (mobile only, logged-in users)
   Lives in base.css because partials/bottom-nav.php is included
   on every page via the footer — hiding it must always apply.
   ============================================================ */
.bottom-nav { display: none; }
@media (max-width: 600px) {
    .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        height: 58px; background: rgba(14, 11, 22, 0.97); backdrop-filter: blur(14px);
        border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
    }
    .bnav-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: var(--text-muted); text-decoration: none; font-size: 10px; font-weight: 600; transition: color 0.15s;
    }
    .bnav-item svg { width: 23px; height: 23px; }
    .bnav-item.active { color: var(--gold-light); }
    .bnav-item.active svg { filter: drop-shadow(0 0 6px rgba(212,168,83,0.5)); }
}
