/* =========================
   THEME TOKENS (Design System)
   ========================= */
:root {
    /* Core palette */
    --clr-bg-0: #05020a;          /* deepest background */
    --clr-bg-1: #0a0015;          /* alt background */
    --clr-bg-2: #120022;          /* panel gradient stop */
    --clr-bg-3: #16062a;          /* elevated surface */
    --clr-surface: #1e0836;       /* component surface base */
    --clr-surface-glow: #2a0f4a;  /* hover / emphasis */

    /* Accent purples */
    --clr-accent-100: #e0aaff;
    --clr-accent-200: #c77dff;
    --clr-accent-300: #b65bff;
    --clr-accent-400: #9d4edd;
    --clr-accent-500: #7b2cbf;
    --clr-accent-600: #5a189a;
    --clr-accent-neon: #b65bff; /* neon-ish primary glow */
    --clr-accent-hot: #ff7bd6;   /* pink crossover highlight */

    /* Semantic */
    --clr-success: #4ade80;
    --clr-warning: #fbbf24;
    --clr-danger: #f87171;

    /* Typography */
    --clr-text-high: #ffffff;
    --clr-text-med: #d4c8e6;
    --clr-text-low: #a292bb;
    --clr-text-faint: rgba(255,255,255,0.55);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm: 0 4px 12px rgba(9,4,20,0.55);
    --shadow-md: 0 10px 30px rgba(9,4,20,0.6);
    --shadow-lg: 0 18px 60px rgba(12,4,30,0.65);
    --shadow-focus: 0 0 0 3px rgba(198,125,255,0.35), 0 0 0 6px rgba(157,78,221,0.18);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 40px;

    /* Transitions */
    --tr-fast: 140ms cubic-bezier(0.4,0,0.2,1);
    --tr-med: 220ms cubic-bezier(0.4,0,0.2,1);

    /* Gradients */
    --grad-bg: linear-gradient(135deg, var(--clr-bg-0), var(--clr-bg-2) 40%, #10021a 100%);
    --grad-card: linear-gradient(180deg, rgba(16,2,30,0.6), rgba(10,2,18,0.4));
    --grad-accent-soft: linear-gradient(135deg, rgba(157,78,221,0.12), rgba(201,125,255,0.06));
    --grad-update-badge: linear-gradient(180deg, var(--clr-accent-hot), var(--clr-accent-400));
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--clr-accent-400), var(--clr-accent-200));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--clr-accent-200), var(--clr-accent-100));
}

/* Enhanced focus states */
:where(a, button, .card, .download-btn, .back-link, .update-details-btn, .inline-download-btn) { outline: none; }
:where(a, button, .card, .download-btn, .back-link, .update-details-btn, .inline-download-btn):focus-visible {
    box-shadow: var(--shadow-focus);
    transform: translateY(-1px);
}

/* Responsive typography with clamp() - smooth scaling */
html { 
    font-size: clamp(15px, 2.5vw, 17px);
    line-height: 1.6;
}

/* Typography hierarchy with better rhythm */
h1 { 
    font-size: clamp(2.2rem, 5vw, 3.5rem); 
    line-height: 1.1; 
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
}
h2 { 
    font-size: clamp(1.5rem, 3.5vw, 2.2rem); 
    line-height: 1.2; 
    margin-bottom: clamp(0.6rem, 1.5vw, 1rem);
}
h3 { 
    font-size: clamp(1.2rem, 2.8vw, 1.6rem); 
    line-height: 1.3; 
    margin-bottom: clamp(0.5rem, 1.2vw, 0.8rem);
}
p { 
    font-size: clamp(0.95rem, 2.2vw, 1.1rem); 
    line-height: 1.65; 
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    max-width: 75ch; /* optimal reading line length */
}

/* Apply global background using token with improved contrast */
body { 
    background: var(--grad-bg); 
    color: var(--clr-text-high);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better content spacing and max-width */
.container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

/* legacy .update-details-page and .back-main-btn removed (replaced by .back-link) */

/* Nowa struktura update.html */
.update-header {
    text-align: center;
    margin-bottom: 18px;
}
.update-header .subtitle {
    color: rgba(224,170,255,0.9);
    margin-top: 8px;
    font-size: 1rem;
}
.update-details-card {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 18px;
    max-width: 900px;
    margin: 0 auto 18px auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 8px 24px rgba(0,0,0,0.4);
}
.update-actions {
    text-align: center;
    margin-bottom: 40px;
}
.update-details-card ul {
    list-style: disc inside;
    padding-left: 10px;
}
.update-details-card li {
    margin-bottom: 12px;
}
/* legacy update-details-page padding removed */

/* Dodatkowe dopracowania banera i podstrony */
.banner-title { font-size: 1.02rem; }
.banner-sub { font-size: 0.92rem; opacity: 0.95; }

/* Upewnij się, że przyciski nie mają podkreśleń i wyglądają spójnie */
.update-details-btn, .back-main-btn {
    text-decoration: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.update-details-card { border: 1px solid rgba(157,78,221,0.08); }
.update-details-card .update-details-content { background: transparent; box-shadow: none; }

/* Małe ekrany - dopracowanie marginesów i układu */
@media (max-width: 480px) {
    .update-banner { padding: 10px 10px; gap: 8px; }
    .banner-title { font-size: 0.98rem; }
    .banner-sub { font-size: 0.88rem; }
    .update-details-btn { padding: 10px; width: 100%; max-width: 100%; }
}

/* refined banner */
.update-banner {
    background: rgba(157,78,221,0.08);
    color: #fff;
    padding: 12px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 0.98rem;
    font-weight: 700;
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    position: relative;
    z-index: 10;
}

.update-details-btn {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(180deg, #0f0226, #1a0033);
    color: #e9ddff;
    border: 1px solid rgba(157,78,221,0.18);
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(8,4,20,0.36);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.update-details-btn:hover, .update-details-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(157,78,221,0.12);
    border-color: rgba(201,125,255,0.6);
}

.update-badge { position: absolute; top: 18px; left: 18px; display: inline-block; margin: 0; z-index: 2; padding: 6px 10px; font-size: 0.85rem; }

/* Gaming / neon style for update page */
.update-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1100px;
    margin: 28px auto 14px auto;
    padding: 18px;
}
/* make update hero visually cohesive with other sections */
.update-hero-inner { max-width: 880px; }
.update-details-card.section { margin: 18px auto 26px auto; padding: 20px; }

/* Update page specific styles */
.update-skip {
    position: absolute;
    right: 18px;
    top: 14px;
    background: rgba(255,255,255,0.06);
    color: #f1e9ff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(157,78,221,0.06);
    z-index: 3;
}

.update-meta { margin: 8px 0 6px 0; color: #e9dcff; max-width: 900px; margin-left: auto; margin-right: auto; padding: 6px 12px; }
.update-section-title { color: #cfd0ff; margin-top: 6px; margin-bottom: 10px; font-size: 1.05rem; }
.update-steps ol { padding-left: 20px; color: #e6ddff; }
.update-steps li { margin-bottom: 10px; line-height: 1.5; }
.update-details-content .note { margin-top: 12px; padding: 10px; background: rgba(157,78,221,0.04); border-radius: 8px; border: 1px solid rgba(157,78,221,0.06); color: #f2eaff; }

@media (max-width: 700px) {
    .update-skip { position: static; display: block; margin: 8px auto 0 auto; }
    .update-meta { padding: 8px 6px; }
}
.update-badge {
    background: linear-gradient(180deg, #ff7bd6, #9d4edd);
    color: #150020;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(157,78,221,0.18);
    text-transform: uppercase;
    font-size: 0.9rem;
}
.update-hero-inner h1 {
    margin: 0 0 6px 0;
    color: #e9dcff;
    font-size: 1.8rem;
    text-shadow: 0 6px 30px rgba(157,78,221,0.12);
}
.update-hero-inner .subtitle {
    margin: 0;
    color: rgba(224,170,255,0.85);
}
.update-details-card {
    max-width: 1100px;
    margin: 0 auto 26px auto;
    padding: 20px;
    background: linear-gradient(180deg, rgba(20,5,40,0.55), rgba(22,6,48,0.45));
    border-radius: 12px;
    border: 1px solid rgba(157,78,221,0.08);
    box-shadow: 0 12px 40px rgba(9,4,20,0.6);
}
.update-list { list-style: none; margin: 0; padding: 0; }
.update-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 10px; border-radius: 8px; margin-bottom: 10px;
        background: linear-gradient(180deg, #0f0226, #1a0033);
        color: #e9ddff;
        border: 1px solid rgba(157,78,221,0.18);
        padding: 8px 16px;
        transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    border-left: 4px solid rgba(157,78,221,0.25);
}
.update-list li .icon { font-size: 1.2rem; width: 28px; text-align: center; }

@media (max-width: 700px) {
    .update-hero { flex-direction: column; text-align: center; }
    .update-hero-inner h1 { font-size: 1.45rem; }
    .update-details-card { padding: 14px; }
    .update-list li { padding: 10px; }
}

/* Alignment helper: content offset will be set by JS to match badge position */
.update-wrapper { --content-offset: 18px; }
.update-hero-inner h1 { margin-left: var(--content-offset); }
.update-hero-inner .subtitle { margin-left: var(--content-offset); }
.update-list { padding-left: var(--content-offset); }

@media (max-width: 700px) {
    .update-hero-inner h1, .update-hero-inner .subtitle { margin-left: 0; }
    .update-list { padding-left: 0; }
}

/* Wrapper with subtle animated background */
.update-wrapper {
    position: relative;
    max-width: 1150px;
    margin: 22px auto 0 auto;
    padding: 24px 18px 18px 18px;
}
.update-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(157,78,221,0.06), rgba(157,78,221,0.02));
    z-index: 0;
    filter: blur(18px);
    opacity: 0.9;
    transform: translateZ(0);
}
.update-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(157,78,221,0.06), transparent 10%), radial-gradient(circle at 90% 80%, rgba(201,125,255,0.04), transparent 12%);
    z-index: 0;
    pointer-events: none;
    animation: subtleMove 12s linear infinite;
}
.update-wrapper > * { position: relative; z-index: 1; }

@keyframes subtleMove {
    0% { transform: translateY(0); }
    50% { transform: translateY(6px); }
    100% { transform: translateY(0); }
}

.update-badge { position: absolute; top: 18px; left: 18px; display: inline-block; margin: 0; z-index: 2; padding: 6px 10px; font-size: 0.85rem; }
.update-badge { animation: badgeIn 700ms cubic-bezier(0.22,1,0.36,1); }

@keyframes badgeIn {
    0% { transform: translateY(-8px) scale(0.98); opacity: 0; }
    60% { transform: translateY(2px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Entry and back buttons visual upgrade */
.enter-update-btn, .back-main-btn {
    display: inline-block;
    background: linear-gradient(180deg, #fff, #f1e8ff);
    color: #6b257e;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(107,37,126,0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.enter-update-btn:hover, .back-main-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(107,37,126,0.16); }

@media (max-width: 700px) {
    .update-wrapper { padding: 8px; }
    .update-badge { top: 12px; left: 12px; }
    .enter-update-btn, .back-main-btn { width: 100%; text-align: center; }
}
/* lazy reveal removed for unified instant rendering across pages */
.update-details-section {
    margin-bottom: 0 !important;
}

footer:last-of-type {
    padding-bottom: 0 !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* (second legacy .update-details-page block removed) */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    line-height: 1.55;
    letter-spacing: 0.2px;
    text-shadow: none;
    background: var(--grad-bg);
    color: var(--clr-text-high);
}

    .update-details-section {
        background: linear-gradient(90deg, #150020 0%, #9d4edd 100%);
        color: #fff;
        padding: 32px 16px 48px 16px;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -4px 24px rgba(157, 78, 221, 0.12);
        margin-top: 48px;
        text-align: center;
    }
    .update-details-section h2 {
        font-size: 1.6em;
        color: #e0aaff;
        margin-bottom: 18px;
    }

    .update-details-content {
        background: rgba(0,0,0,0.25);
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(157, 78, 221, 0.08);
        padding: 18px 12px;
        margin: 0 auto;
        max-width: 700px;
        color: #e0aaff;
        font-size: 1.08em;
        text-align: left;
        animation: detailsGlow 2s infinite alternate;
    }
    .highlighted-details {
        box-shadow: 0 0 0 6px #e0aaff, 0 2px 24px rgba(157, 78, 221, 0.22);
        transition: box-shadow 0.4s;
    }
    .update-details-content ul {
        list-style: disc inside;
        padding-left: 0;
    }
    .update-details-content li {
        margin-bottom: 10px;
        line-height: 1.6;
    }
    @keyframes detailsGlow {
        0% { box-shadow: 0 2px 12px rgba(157, 78, 221, 0.08); }
        100% { box-shadow: 0 2px 24px rgba(157, 78, 221, 0.22); }
    }

    @media (max-width: 600px) {
        .update-details-content {
            font-size: 0.98em;
            padding: 10px 4px;
            max-width: 98vw;
        }
    }
    .update-details-textarea {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        display: block;
        border-radius: 10px;
        border: 1px solid #c77dff;
        padding: 14px;
        font-size: 1em;
        background: #1a0033;
        color: #fff;
        box-shadow: 0 2px 12px rgba(157, 78, 221, 0.08);
        resize: vertical;
        outline: none;
        transition: border 0.2s;
    }
    .update-details-textarea:focus {
        border-color: #e0aaff;
    }

    @media (max-width: 600px) {
        .update-banner {
            /* consolidated .update-badge animation retained in single definition below */
            padding: 18px 4px 32px 4px;
            font-size: 0.95em;
        }
        .update-details-textarea {
            font-size: 0.95em;
            padding: 10px;
            max-width: 98vw;
        }
        .update-details-btn {
            padding: 8px 14px;
            font-size: 0.95em;
        }
    }


    @keyframes bannerPop {
        0% { transform: scale(0.8) translateY(-40px); opacity: 0; }
        60% { transform: scale(1.05) translateY(8px); opacity: 1; }
        100% { transform: scale(1) translateY(0); opacity: 1; }
    }
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--clr-accent-200);
        text-shadow: 0 2px 10px rgba(157, 78, 221, 0.2);
    }

    b, strong { color: var(--clr-accent-100); font-weight: 700; text-shadow: 0 1px 6px rgba(157, 78, 221, 0.15); }

    /* Neutralne linki - bez fikuśnych podkreśleń */
    a { color: var(--clr-accent-400); text-decoration: none; transition: color var(--tr-fast), text-decoration var(--tr-fast); outline: none; }
    a:hover, a:focus { color: var(--clr-accent-100); }

    /* Przyciski/Linki specjalne (wygląd przyciskowy) */
    .update-details-btn, .back-main-btn {
        text-decoration: none !important;
    }

.is-mobile {
    background: linear-gradient(135deg, #0a0015, #1a0033) !important;
}

@media (min-width: 769px) and (hover: hover) {
    body:not(.is-mobile) {
        background-size: 400% 400%;
        animation: subtleGradient 20s ease infinite;
    }
    
    @keyframes subtleGradient {
        0%, 100% { background-position: 0% 50%; }
        25% { background-position: 100% 50%; }
        50% { background-position: 100% 100%; }
        75% { background-position: 0% 100%; }
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    will-change: transform;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #9d4edd, transparent);
    border-radius: 50%;
    transform: translateZ(0);
}

@media (min-width: 769px) and (hover: hover) {
    .particle:not(.is-mobile .particle) {
        animation: float 15s infinite linear;
    }
    
    @keyframes float {
        0% {
            transform: translateY(100vh) rotate(0deg) translateZ(0);
            opacity: 0;
        }
        10% {
            opacity: 1;
        }
        90% {
            opacity: 1;
        }
        100% {
            transform: translateY(-100px) rotate(360deg) translateZ(0);
            opacity: 0;
        }
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translateZ(0);
}

@media (min-width: 769px) and (hover: hover) {
    .star:not(.is-mobile .star) {
        animation: twinkle 4s infinite ease-in-out;
    }
    
    @keyframes twinkle {
        0%, 100% { 
            opacity: 0.2; 
            transform: scale(1) translateZ(0); 
        }
        50% { 
            opacity: 0.8; 
            transform: scale(1.2) translateZ(0); 
        }
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9d4edd, #c77dff);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px) translateZ(0);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    will-change: transform, opacity;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

@media (hover: hover) {
    .back-to-top:hover {
        transform: translateY(-5px) scale(1.1) translateZ(0);
        box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
    }
}

.header {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.12), 
        rgba(157, 78, 221, 0.06),
        rgba(201, 125, 255, 0.08));
    border-radius: var(--radius-xl);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    border: 1px solid rgba(138, 43, 226, 0.25);
    box-shadow: 
        0 12px 48px rgba(138, 43, 226, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) and (hover: hover) {
    .header:not(.is-mobile .header)::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
        animation: headerShimmer 3s infinite;
        will-change: transform;
    }
    
    @keyframes headerShimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }
}

.header h1 {
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 1px;
}

@media (min-width: 769px) and (hover: hover) {
    .header:not(.is-mobile) h1 {
        background-size: 300% 300%;
        animation: gradientText 4s ease infinite;
    }
    
    @keyframes gradientText {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }
}

.header .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--clr-accent-100);
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    opacity: 0.9;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Hub layout styles */
.hub {
    padding-top: 28px;
}
.hub-header {
    padding: 36px 12px;
    margin-bottom: 28px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-bottom: 40px;
}
.card {
    display: block;
    padding: 20px;
    background: linear-gradient(180deg, rgba(16,2,30,0.6), rgba(10,2,18,0.4));
    border: 1px solid rgba(157,78,221,0.08);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    box-shadow: 0 8px 30px rgba(5,3,10,0.6);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 60px rgba(16,6,40,0.6);
    border-color: rgba(201,125,255,0.22);
}
.card h3 { margin-top: 12px; margin-bottom: 8px; color: #e9dcff; }
.card p { color: #cfc3ee; font-size: .98rem; line-height: 1.4; }
.card-icon { font-size: 2.2rem; width: 48px; height: 48px; display:flex; align-items:center; justify-content:center; border-radius: 10px; background: linear-gradient(135deg, rgba(157,78,221,0.12), rgba(201,125,255,0.06)); }

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .card {
        padding: 18px;
    }
    
    .card-icon {
        font-size: 2rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    /* Mobile-optimized cards layout */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .card {
        padding: 14px;
        margin: 0 4px;
        transition: none; /* Remove hover animations on mobile */
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important; /* Disable hover effects on mobile */
    }
    
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .card-icon {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
    }
}

/* small header variant for subpages */
.small-header { padding: 28px 12px; }
.page-wrapper { padding-top: 18px; padding-bottom: 40px; }
.page-nav { margin-bottom: 12px; }

.countdown {
    font-size: 1rem;
    color: #dcd0ff;
    margin: 12px 0 18px;
    padding: 10px 12px;
    background: rgba(138, 43, 226, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.08);
}

.section {
    background: linear-gradient(135deg, #1d012226, rgba(4, 2, 5, 0.08));
    border-radius: var(--radius-xl);
    padding: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 
        0 8px 32px rgba(138, 43, 226, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced section with subtle top accent line */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224, 170, 255, 0.4), transparent);
    opacity: 0.6;
}

/* Improved section content spacing */
.section > *:last-child {
    margin-bottom: 0;
}

/* Eterysium Banner */
.eterysium-banner {
    margin: clamp(0.75rem, 2.25vw, 1.5rem) auto 0;
    padding: clamp(0.75rem, 2.25vw, 1.5rem);
    text-align: center;
    position: relative;
}

.eterysium-banner-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.25), 
                0 0 60px rgba(157, 78, 221, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    transform: translateZ(0);
    will-change: transform;
}

@media (hover: hover) {
    .eterysium-banner-image:hover {
        transform: translateY(-4px) scale(1.02) translateZ(0);
        border-color: rgba(138, 43, 226, 0.6);
        box-shadow: 0 16px 48px rgba(138, 43, 226, 0.35),
                    0 0 80px rgba(157, 78, 221, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 768px) {
    .eterysium-banner {
        margin: clamp(1.125rem, 3vw, 1.5rem) auto 0;
        padding: clamp(0.56rem, 1.5vw, 0.75rem);
    }
    
    .eterysium-banner-image {
        border-radius: var(--radius-lg);
        border-width: 1px;
        box-shadow: 0 6px 24px rgba(138, 43, 226, 0.2),
                    0 0 40px rgba(157, 78, 221, 0.1);
    }
}

@media (max-width: 480px) {
    .eterysium-banner-image {
        border-radius: var(--radius-md);
    }
}

/* Server IP Display - Corner style matching player counter */
.server-ip-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(157, 78, 221, 0.08));
    border: 1px solid rgba(138, 43, 226, 0.35);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.server-ip-display:hover {
    transform: scale(1.05);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 6px 24px rgba(138, 43, 226, 0.25);
}

.server-ip-icon {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c084fc;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

.server-ip-address {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--clr-accent-100);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
    min-width: 120px;
    text-align: center;
}

@media (max-width: 768px) {
    .server-ip-display {
        margin: clamp(0.6rem, 1.5vw, 0.8rem) auto clamp(0.4rem, 1vw, 0.6rem);
        padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 2vw, 1rem);
        border-radius: 20px;
        gap: 0.4rem;
    }
    
    .server-ip-address {
        padding: 0.15rem 0.5rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .server-ip-display {
        margin: clamp(0.5rem, 1.2vw, 0.6rem) auto clamp(0.3rem, 0.8vw, 0.5rem);
        padding: clamp(0.25rem, 0.8vw, 0.4rem) clamp(0.5rem, 1.5vw, 0.8rem);
        border-radius: 18px;
    }
    
    .server-ip-label {
        font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    }
    
    .server-ip-address {
        font-size: clamp(0.8rem, 2vw, 0.85rem);
        padding: 0.1rem 0.4rem;
        border-radius: 10px;
    }
}

/* Hub Description Section - Kompaktowy Badge */
.hub-description {
    display: flex;
    justify-content: center;
    margin: clamp(1rem, 2.5vw, 1.5rem) auto clamp(1.5rem, 3.5vw, 2rem);
}

.hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1.2rem, 3vw, 1.6rem);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hub-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 6px 24px rgba(138, 43, 226, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hub-badge-icon {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.3));
}

.hub-badge-text {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    color: var(--clr-accent-100);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hub-description {
        margin: clamp(0.8rem, 2vw, 1rem) auto clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .hub-badge {
        padding: clamp(0.6rem, 1.5vw, 0.7rem) clamp(1rem, 2.5vw, 1.2rem);
        gap: 0.5rem;
        border-radius: 40px;
    }
    
    .hub-badge-icon {
        font-size: clamp(1rem, 2.2vw, 1.1rem);
    }
    
    .hub-badge-text {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
}

@media (max-width: 480px) {
    /* Mobile-optimized hub description */
    .hub-description {
        margin-bottom: 15px;
    }
    
    .hub-badge {
        padding: 0.5rem 0.8rem;
        border-radius: 20px;
        gap: 0.4rem;
        transition: none; /* Remove hover animations */
    }
    
    .hub-badge:hover {
        transform: none !important; /* Disable hover effects */
    }
    
    .hub-badge-text {
        font-size: 0.75rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* Server IP Display */
.server-ip-display {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    color: #e9dcff;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.server-ip-display:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(157, 78, 221, 0.2));
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.3);
}

.server-ip-address {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    min-width: 100px;
    text-align: center;
}

/* Player Counter */
.player-counter {
    position: fixed;
    top: 75px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.player-counter:hover {
    transform: scale(1.05);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 6px 24px rgba(138, 43, 226, 0.3);
}

.player-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.3));
}

.player-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-accent-100);
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
    min-width: 20px;
    text-align: center;
}

.player-count.online {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.player-count.loading {
    color: var(--clr-accent-300);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .server-ip-display {
        top: 15px;
        right: 15px;
        padding: 0.6rem 0.8rem;
        border-radius: 20px;
    }
    
    .server-ip-icon {
        font-size: 0.8rem;
    }
    
    .server-ip-address {
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .player-counter {
        top: 65px;
        right: 15px;
        padding: 0.6rem 0.8rem;
        border-radius: 20px;
    }
    
    .player-icon {
        font-size: 1rem;
    }
    
    .player-count {
        font-size: 0.9rem;
    }
}

/* Hide mobile info box on desktop */
.mobile-info-box {
    display: none;
}

@media (max-width: 480px) {
    /* MOBILE OPTIMIZATION - Remove all animations for better performance */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Simple mobile info box - centered text */
    .mobile-info-box {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        right: 15px;
        background: rgba(138, 43, 226, 0.9);
        border: 2px solid rgba(157, 78, 221, 0.6);
        border-radius: 12px;
        padding: 10px;
        z-index: 1001;
        text-align: center;
        color: white;
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.4;
        box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    }
    
    /* Hide individual elements on mobile */
    .server-ip-display,
    .player-counter,
    .maintenance-notice {
        display: none !important;
    }
}

/* Maintenance Notice - po lewej stronie */
.maintenance-notice {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
    z-index: 1000;
    animation: maintenancePulse 3s ease-in-out infinite;
    min-width: 300px;
    max-width: 380px;
    width: auto;
}

.maintenance-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
    animation: bounce 2s ease-in-out infinite;
}

.maintenance-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maintenance-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fecaca;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.maintenance-time {
    font-size: 0.7rem;
    color: #fed7d7;
    font-weight: 600;
}

@keyframes maintenancePulse {
    0%, 100% { 
        border-color: rgba(239, 68, 68, 0.5);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
    }
    50% { 
        border-color: rgba(239, 68, 68, 0.8);
        box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Update Card - wyróżnienie */
.update-card {
    position: relative;
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05)) !important;
    animation: updateCardPulse 2s ease-in-out infinite;
}

.update-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(239, 68, 68, 0.8), 
        rgba(220, 38, 38, 0.6), 
        rgba(239, 68, 68, 0.8)
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: updateCardGlow 2s ease-in-out infinite;
}

.update-card .card-icon {
    animation: updateIconBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

@keyframes updateCardPulse {
    0%, 100% { 
        border-color: rgba(239, 68, 68, 0.6);
        box-shadow: 0 6px 24px rgba(138, 43, 226, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    50% { 
        border-color: rgba(239, 68, 68, 0.9);
        box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

@keyframes updateCardGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

@keyframes updateIconBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

@media (max-width: 768px) {
    .maintenance-notice {
        top: 15px;
        left: 15px;
        padding: 0.6rem 0.8rem;
        border-radius: 10px;
        min-width: 260px;
        max-width: 320px;
        width: auto;
    }
    
    .maintenance-icon {
        font-size: 1rem;
    }
    
    .maintenance-title {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .maintenance-time {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {

    
    /* Mobile-optimized main container with proper spacing */
    .container.hub {
        margin-top: 90px;
        padding: 0 10px;
    }
    
    /* General container optimization for all pages */
    .container {
        padding: 20px 10px;
        margin-top: 20px;
    }
    
    /* Section spacing optimization */
    .section {
        padding: 15px 10px;
    }
    
    /* Mobile banner optimization */
    .eterysium-banner {
        margin-bottom: 15px;
    }
    
    .eterysium-banner-image {
        max-height: 120px;
        border-radius: 12px;
    }
}

/* Changelog Section - Elegant Update Display */
.update-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.update-version {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
    letter-spacing: 0.5px;
}

.update-date {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    color: var(--clr-accent-200);
    font-weight: 600;
    opacity: 0.9;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.changelog-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.25rem);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08), rgba(157, 78, 221, 0.05));
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--changelog-accent, rgba(138, 43, 226, 0.6));
    transition: all 0.3s ease;
}

.changelog-item:hover {
    transform: translateX(4px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.15);
}

.changelog-item:hover::before {
    width: 6px;
    background: var(--changelog-accent, rgba(138, 43, 226, 0.8));
}

.changelog-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--changelog-bg, rgba(138, 43, 226, 0.15)), var(--changelog-bg-alt, rgba(157, 78, 221, 0.1)));
    border-radius: 50%;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.changelog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.5rem;
}

.changelog-text {
    font-size: clamp(0.95rem, 2.3vw, 1.1rem);
    color: var(--clr-text-high);
    line-height: 1.5;
    font-weight: 500;
}

/* Changelog Type Colors - Unified Green Theme */
.changelog-item.added {
    --changelog-accent: rgba(74, 222, 128, 0.6);
    --changelog-bg: rgba(74, 222, 128, 0.15);
    --changelog-bg-alt: rgba(74, 222, 128, 0.1);
}

.changelog-item.added:hover::before {
    background: rgba(74, 222, 128, 0.8);
}

.changelog-item.improved {
    --changelog-accent: rgba(74, 222, 128, 0.6);
    --changelog-bg: rgba(74, 222, 128, 0.15);
    --changelog-bg-alt: rgba(74, 222, 128, 0.1);
}

.changelog-item.improved:hover::before {
    background: rgba(74, 222, 128, 0.8);
}

.changelog-item.changed {
    --changelog-accent: rgba(74, 222, 128, 0.6);
    --changelog-bg: rgba(74, 222, 128, 0.15);
    --changelog-bg-alt: rgba(74, 222, 128, 0.1);
}

.changelog-item.changed:hover::before {
    background: rgba(74, 222, 128, 0.8);
}

@media (max-width: 768px) {
    .changelog-item {
        gap: 0.8rem;
        padding: clamp(0.8rem, 2vw, 1rem);
    }
    
    .changelog-icon {
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
    }
    
    .update-banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .changelog-list {
        gap: 0.8rem;
        margin: clamp(1rem, 2.5vw, 1.5rem) 0;
    }
    
    .changelog-item {
        gap: 0.6rem;
        padding: clamp(0.7rem, 1.8vw, 0.9rem);
    }
    
    .changelog-icon {
        font-size: 1rem;
        width: 32px;
        height: 32px;
    }
    
    .changelog-text {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
}

/* Social Links Section - elegant link styling */
.social-links {
    margin-top: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.social-links-container {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.2rem, 3vw, 1.8rem);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(157, 78, 221, 0.08));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--clr-text-high);
    font-weight: 500;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    transition: all var(--tr-med);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 16px rgba(138, 43, 226, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon.discord svg {
    color: #5865F2;
}

.social-icon.website svg {
    color: var(--clr-accent-200);
}

@media (hover: hover) {
    .social-link:hover {
        transform: translateY(-3px) scale(1.02);
        border-color: var(--clr-accent-300);
        box-shadow: 
            0 8px 24px rgba(138, 43, 226, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(157, 78, 221, 0.12));
    }

    .social-link:hover .social-icon.discord svg {
        color: #7289DA;
    }

    .social-link:hover .social-icon.website svg {
        color: var(--clr-accent-100);
    }
}

@media (hover: hover) {
    .section:hover::before {
        opacity: 1;
    }

    .section:hover::before {
        opacity: 1;
    }

    .section:hover {
        transform: translateY(-8px) translateZ(0);
        box-shadow: 
            0 20px 60px rgba(138, 43, 226, 0.15),
            0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(138, 43, 226, 0.5);
    }
}

.section h2 {
    font-size: 2.5rem;
    color: #e0aaff;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #9d4edd, #c77dff, #e0aaff);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.4);
}

.section p {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #e8e3f0;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.step {
    background: rgba(138, 43, 226, 0.12);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #c77dff;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

@media (hover: hover) {
    .step::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.08), transparent);
        transition: left 0.6s ease;
    }

    .step:hover::before {
        left: 100%;
    }

    .step:hover {
        transform: translateX(10px) translateZ(0);
        border-left-color: #e0aaff;
        background: rgba(138, 43, 226, 0.18);
    }
}

.step h3 {
    color: #e0aaff;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.step p {
    text-align: left;
    line-height: 1.7;
    color: #d8d0e0;
}

.rules-list {
    list-style: none;
    margin-top: 30px;
    counter-reset: rule-counter;
}

.rules-list li {
    background: rgba(138, 43, 226, 0.12);
    padding: 20px 20px 20px 60px;
    margin: 15px 0;
    border-radius: 12px;
    border-left: 4px solid #9d4edd;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    transition: all 0.3s ease;
    counter-increment: rule-counter;
    color: #e0d0e8;
    transform: translateZ(0);
    will-change: transform;
}

.rules-list li::before {
    content: "⚡";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #9d4edd, #c77dff);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

/* Back link (unified across subpages) - enhanced visual design */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: clamp(0.8rem, 2vw, 1.2rem) 0 clamp(0.5rem, 1.5vw, 0.8rem);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    letter-spacing: 0.3px;
    color: var(--clr-accent-100);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(157, 78, 221, 0.12));
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(138, 43, 226, 0.35);
    position: relative;
    overflow: hidden;
    transition: all var(--tr-med);
    box-shadow: 
        0 4px 16px rgba(138, 43, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    width: fit-content;
}

@media (hover: hover) {
    .back-link:hover {
        color: #ffffff;
        transform: translateY(-3px) translateZ(0);
        border-color: #e0aaff;
        box-shadow: 0 10px 24px -4px rgba(138, 43, 226, 0.45);
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.35), rgba(157, 78, 221, 0.45));
    }
}

.back-link:focus-visible {
    outline: 2px solid #e0aaff;
    outline-offset: 3px;
}

@media (hover: hover) {
    .rules-list li:hover {
        transform: translateX(8px) translateZ(0);
        background: rgba(138, 43, 226, 0.18);
        border-left-color: #e0aaff;
    }
}

.server-info {
    background: rgba(138, 43, 226, 0.25);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 
        0 8px 32px rgba(138, 43, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.server-ip {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    border: 2px solid #9d4edd;
    box-shadow: 
        0 5px 20px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
}

@media (hover: hover) {
    .server-ip:hover {
        transform: scale(1.05) translateZ(0);
        box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
        border-color: #c77dff;
    }
}

.download-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(138, 43, 226, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.download-section h3 {
    color: #e0aaff;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Make download buttons visually consistent with hub cards (legacy simple variant removed) */
.download-btn {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(157, 78, 221, 0.3));
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.15);
    transform: translateZ(0);
    will-change: transform;
}

@media (hover: hover) {
    .download-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.6s ease;
    }

    .download-btn:hover::before {
        left: 100%;
    }

    .download-btn:hover {
        transform: translateY(-8px) scale(1.02) translateZ(0);
        border-color: rgba(138, 43, 226, 0.8);
        box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.35), rgba(157, 78, 221, 0.45));
    }
}

/* Small inline download button for text */
.inline-download-btn {
    display: inline;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(157, 78, 221, 0.7));
    border: 1px solid rgba(138, 43, 226, 0.8);
    border-radius: 6px;
    text-decoration: none;
    color: #e9ddff;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
}

@media (hover: hover) {
    .inline-download-btn:hover {
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(157, 78, 221, 0.9));
        border-color: rgba(157, 78, 221, 1);
        box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
        transform: translateY(-1px);
    }
}

.btn-icon {
    font-size: 3rem;
    margin-right: 20px;
    min-width: 70px;
    text-align: center;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .download-btn:hover .btn-icon {
        transform: scale(1.2) rotate(10deg) translateZ(0);
    }
}

.btn-content {
    flex: 1;
}

.btn-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.btn-subtitle {
    font-size: 1rem;
    color: #c77dff;
    opacity: 0.9;
}

/* Removed legacy popup / overlay styles (.overlay, .popup) */

@media (max-width: 768px) {
    .header {
        padding: 60px 20px 40px;
        margin-bottom: 30px;
    }
    
    .header h1 {
        font-size: 3rem;
    }
    
    .header .subtitle {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .container {
        padding: 15px;
    }
    
    .section {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .section h2 {
        font-size: 2rem;
    }

    .section p {
        font-size: 1rem;
    }

    .download-buttons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-btn {
        padding: 20px;
    }
    
    .btn-icon {
        font-size: 2.5rem;
        min-width: 60px;
        margin-right: 15px;
    }
    
    .btn-title {
        font-size: 1.2rem;
    }

    .btn-subtitle {
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .step {
        padding: 20px;
    }

    .rules-list li {
        padding: 15px 15px 15px 50px;
    }

    .rules-list li::before {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .section h2::after {
        bottom: -12px;
        width: 60px;
        height: 3px;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .server-ip {
        font-size: 1.4rem;
        padding: 12px 15px;
    }
    
    /* Mobile update banner optimization - center aligned */
    .update-banner {
        margin: 0 5px !important;
        padding: 8px !important;
        max-width: calc(100vw - 20px) !important;
        width: auto !important;
        overflow: hidden;
    }
    
    .update-banner-content {
        flex-direction: column !important;
        gap: 0.3rem !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    
    .update-version {
        font-size: 1rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        white-space: normal !important;
    }
    
    .update-date {
        font-size: 0.75rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }
    
    /* Mobile social links optimization */
    .social-links {
        margin-top: 25px;
        padding: 0 10px;
    }
    
    .social-links-container {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        padding: 10px 14px;
        transition: none; /* Remove hover animations */
    }
    
    .social-link:hover {
        transform: none !important; /* Disable hover effects */
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Mobile footer optimization */
    footer {
        padding: 20px 15px !important;
        margin-top: 30px !important;
        font-size: 0.8rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .header::before,
    .step::before,
    .download-btn::before {
        display: none;
    }
}