﻿:root {
            --bg-main: #00040f;
            --bg-sub: #000714;
            --panel: rgba(0, 11, 36, 0.7);
            --border: rgba(0, 160, 255, 0.18);
            --border-glow: rgba(0, 220, 255, 0.55);
            --text-main: #FFFFFF;
            --text-muted: rgba(200, 235, 255, 0.55);
            --accent-light: #00e5ff;
            --accent-cyan: #0088ff;
            --accent: #0044ff;
            --neon-purple: #a050ff;
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-main);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            background-image:
                radial-gradient(circle at 15% 50%, rgba(0, 136, 255, 0.08), transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(160, 80, 255, 0.08), transparent 40%);
            min-height: 100vh;
        }

        /* Particles */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        /* Navbar */
        nav {
            height: 80px;
            background: rgba(0, 4, 15, 0.85);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 5%;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 100;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            font-family: 'Orbitron', sans-serif;
            font-weight: 800;
            font-size: 20px;
            color: #fff;
        }

        .nav-logo {
            height: 32px;
        }

        /* Main Content */
        main {
            padding: 120px 5% 50px;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

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

        .gradient-text {
            background: linear-gradient(135deg, var(--accent-light) 0%, var(--neon-purple) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 900;
            filter: drop-shadow(0 0 15px rgba(0, 220, 255, 0.3));
        }

        .subtitle {
            color: var(--text-muted);
            margin-top: 10px;
            font-size: 1.1rem;
        }

        /* Browser Container */
        .browser-card {
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 30px;
            backdrop-filter: blur(15px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .controls {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }

        .search-wrapper {
            flex: 1;
            position: relative;
        }

        input {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px 20px;
            color: #fff;
            font-family: 'Inter', sans-serif;
            outline: none;
            transition: all 0.3s;
        }

        input:focus {
            border-color: var(--accent-light);
            box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
        }

        .refresh-btn {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
            border: none;
            color: white;
            padding: 0 25px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .refresh-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 20px rgba(0, 68, 255, 0.4);
        }

        /* Filter Controls */
        .filter-toggle-btn {
            background: rgba(0, 160, 255, 0.05);
            border: 1px solid var(--border);
            color: var(--accent-light);
            padding: 0 20px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            user-select: none;
            touch-action: manipulation;
        }

        @media (hover: hover) {
            .filter-toggle-btn:hover {
                background: rgba(0, 229, 255, 0.1);
                border-color: var(--accent-light);
                box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
                transform: translateY(-2px);
            }
        }

        .filter-toggle-btn.active {
            background: rgba(0, 229, 255, 0.15);
            border-color: var(--accent-light);
            box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
        }

        .filter-panel {
            background: rgba(0, 11, 36, 0.6);
            border: 1px solid var(--border);
            border-radius: 16px;
            margin-bottom: 25px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 0;
            opacity: 0;
            padding: 0 24px;
            will-change: max-height, opacity;
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
        }

        .filter-panel.show {
            max-height: 600px;
            opacity: 1;
            padding: 20px 24px;
            border-color: rgba(0, 229, 255, 0.3);
            box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
        }

        .filter-tags-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
            max-height: 200px;
            overflow-y: auto;
            padding-right: 8px;
            -webkit-overflow-scrolling: touch;
        }

        /* Custom Scrollbar for filter tags grid */
        .filter-tags-grid::-webkit-scrollbar {
            width: 6px;
        }

        .filter-tags-grid::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
        }

        .filter-tags-grid::-webkit-scrollbar-thumb {
            background: rgba(0, 229, 255, 0.2);
            border-radius: 4px;
        }

        .filter-tags-grid::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 229, 255, 0.4);
        }

        .filter-tag-pill {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            font-family: 'Inter', sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            user-select: none;
            touch-action: manipulation;
        }

        @media (hover: hover) {
            .filter-tag-pill:hover {
                background: rgba(0, 229, 255, 0.08);
                color: var(--accent-light);
                border-color: rgba(0, 229, 255, 0.3);
                transform: translateY(-1px);
            }
        }

        .filter-tag-pill.active {
            background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 136, 255, 0.2) 100%);
            color: #fff;
            border-color: var(--accent-light);
            box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
            font-weight: 700;
        }

        /* Server List */
        .server-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        @media (min-width: 900px) {
            .server-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .server-item {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 24px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 240px;
        }

        .server-item:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: var(--accent-light);
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 40px -10px rgba(0, 229, 255, 0.15);
        }

        .event-name {
            font-family: 'Orbitron', sans-serif;
            color: var(--accent-light);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 8px;
            display: block;
        }

        .server-meta {
            display: flex;
            justify-content: space-between;
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .join-btn {
            width: 100%;
            background: rgba(0, 160, 255, 0.1);
            border: 1px solid var(--accent-cyan);
            color: var(--accent-light);
            padding: 10px;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem;
        }

        .join-btn:hover {
            background: var(--accent-cyan);
            color: white;
        }

        .status-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 8px;
            height: 8px;
            background: #22c55e;
            border-radius: 50%;
            box-shadow: 0 0 10px #22c55e;
        }

        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 50px;
            color: var(--text-muted);
        }

        .loader {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(0, 229, 255, 0.1);
            border-top-color: var(--accent-light);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 50px auto;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 768px) {
            .controls {
                flex-direction: column;
            }

            .refresh-btn {
                height: 45px;
            }

            .filter-toggle-btn {
                height: 45px;
                justify-content: center;
            }

            .nav-status {
                display: none;
            }
        }

        .nav-status {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        #timer-text {
            color: var(--accent-light);
            font-family: 'Orbitron', sans-serif;
            font-size: 10px;
            background: rgba(0, 229, 255, 0.05);
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid rgba(0, 229, 255, 0.1);
        }

        .pulse-dot {
            width: 6px;
            height: 6px;
            background: #22c55e;
            border-radius: 50%;
            position: relative;
        }

        .pulse-dot::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: inherit;
            border-radius: inherit;
            animation: pulse 2s ease-out infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            100% {
                transform: scale(3);
                opacity: 0;
            }
        }

        @media (max-width: 600px) {
            .gradient-text {
                font-size: 1.5rem;
            }

            .subtitle {
                font-size: 0.85rem;
            }

            .header-section {
                margin-bottom: 20px;
            }

            main {
                padding: 80px 3% 20px;
            }

            .browser-card {
                padding: 15px;
                border-radius: 12px;
            }

            .server-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .server-item {
                padding: 15px;
                min-height: auto;
            }

            .pagination-container {
                flex-wrap: wrap;
                padding: 10px;
                gap: 10px;
                margin-top: 20px;
            }

            .controls {
                flex-direction: column;
                margin-bottom: 15px;
                gap: 10px;
            }

            .nav-brand {
                font-size: 16px;
            }

            .nav-logo {
                height: 24px;
            }

            input {
                padding: 10px 15px;
                font-size: 0.9rem;
            }

            .refresh-btn {
                height: 40px;
                font-size: 0.75rem;
            }

            .filter-toggle-btn {
                height: 40px;
                font-size: 0.75rem;
                justify-content: center;
            }

            .back-btn {
                padding: 8px 15px;
                font-size: 0.75rem;
            }

            .join-btn {
                padding: 8px;
                font-size: 0.75rem;
            }

            .relic-box {
                padding: 10px;
                margin: 12px 0;
            }

            .info-box {
                padding: 8px;
                margin-bottom: 12px;
                font-size: 0.75rem;
            }
        }

        /* Pagination */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 40px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .page-info {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.9rem;
            color: var(--text-muted);
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .page-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.8rem;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .page-btn:hover:not(:disabled) {
            background: var(--accent);
            border-color: var(--accent-light);
            box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
        }

        .page-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .total-players-badge {
            background: rgba(0, 229, 255, 0.1);
            color: var(--accent-light);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            border: 1px solid rgba(0, 229, 255, 0.2);
        }

        /* Event Tags */
        .event-tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 15px;
        }

        .event-tag {
            background: rgba(0, 229, 255, 0.08);
            color: var(--accent-light);
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            border: 1px solid rgba(0, 229, 255, 0.2);
            font-family: 'Inter', sans-serif;
        }

        .back-btn {
            color: var(--accent-light);
            text-decoration: none;
            font-weight: 600;
            font-family: 'Orbitron', sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: rgba(0, 229, 255, 0.05);
            border: 1px solid rgba(0, 229, 255, 0.2);
            border-radius: 8px;
            transition: all 0.3s;
            font-size: 0.85rem;
        }

        .back-btn:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent-light);
            box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
        }

        .relic-box {
            margin: 15px 0;
            padding: 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .info-box {
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 6px;
            background: rgba(0, 229, 255, 0.05);
            border: 1px solid rgba(0, 229, 255, 0.1);
            font-size: 0.8rem;
            color: var(--text-muted);
            font-family: 'Inter', sans-serif;
        }

/* =====================
   APPLE MINIMAL REFRESH
===================== */
:root {
    --bg-main: #f5f5f7;
    --panel: rgba(255, 255, 255, 0.78);
    --border: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(0, 113, 227, 0.26);
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --accent-light: #0071e3;
    --accent-cyan: #0071e3;
    --accent: #0071e3;
    --neon-purple: #0071e3;
}

* {
    letter-spacing: 0 !important;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 44%, #ececf0 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.stars {
    display: none;
}

button,
a,
input {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

nav {
    height: 58px;
    padding: 0 max(22px, env(safe-area-inset-left));
    background: rgba(245, 245, 247, 0.74);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-brand {
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
}

.nav-logo {
    height: 30px;
    border-radius: 8px;
}

.nav-status {
    color: var(--text-muted);
}

#timer-text {
    color: var(--accent);
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.18);
    font-family: inherit;
}

main {
    width: min(1180px, calc(100% - 44px));
    padding: max(104px, calc(82px + env(safe-area-inset-top))) 0 56px;
}

.header-section {
    margin-bottom: 44px;
}

.gradient-text {
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-family: inherit;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    filter: none;
}

.subtitle {
    color: var(--text-muted);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
}

.browser-card,
.filter-panel,
.pagination-container,
.server-item,
.relic-box,
.info-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.browser-card {
    padding: 28px;
}

.controls {
    align-items: stretch;
}

input {
    min-height: 48px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 16px;
    box-shadow: none;
}

input:focus {
    border-color: rgba(0, 113, 227, 0.38);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.refresh-btn,
.filter-toggle-btn,
.join-btn,
.page-btn,
.back-btn,
.filter-tag-pill {
    min-height: 44px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    box-shadow: none;
    transform: none;
}

.refresh-btn,
.join-btn {
    background: var(--accent);
    color: #ffffff;
    border: 0;
}

.filter-toggle-btn,
.page-btn,
.back-btn,
.filter-tag-pill {
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
    color: var(--accent);
}

.filter-toggle-btn.active,
.filter-tag-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.filter-panel {
    box-shadow: none;
}

.filter-panel.show {
    padding: 20px;
    box-shadow: none;
}

.filter-tags-grid {
    max-height: 240px;
    -webkit-overflow-scrolling: touch;
}

.server-grid {
    gap: 18px;
}

.server-item {
    min-height: 248px;
    padding: 24px;
    overflow: visible;
}

.server-item:hover {
    border-color: rgba(0, 113, 227, 0.28);
    box-shadow: 0 22px 66px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.event-name,
.event-tag,
.total-players-badge {
    color: var(--accent);
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.16);
    border-radius: 999px;
    font-family: inherit;
}

.event-tags-container {
    gap: 8px;
}

.server-meta,
.page-info,
.empty-state,
.info-box {
    color: var(--text-muted);
}

.relic-box {
    box-shadow: none;
}

.server-index {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin-bottom: 22px;
    padding: 0 12px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.server-meta {
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.server-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.server-meta-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.relic-box {
    min-height: 68px;
    padding: 14px 16px;
    gap: 12px;
    border-color: var(--border);
}

.relic-box.ready {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.24);
}

.relic-box.empty {
    background: rgba(0, 0, 0, 0.035);
}

.relic-orb {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 18%),
        linear-gradient(135deg, #8b5cf6, #4f46e5);
}

.relic-box.ready .relic-orb {
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 18%),
        linear-gradient(135deg, #67e8f9, #34c759);
}

.relic-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.relic-copy span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 850;
}

.relic-copy strong {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 900;
}

.relic-box.empty .relic-copy strong {
    color: var(--text-muted);
}

.join-btn {
    margin-top: 20px;
}

.loader {
    border-color: rgba(0, 113, 227, 0.12);
    border-top-color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.4;
}

@media (hover: hover) {
    .refresh-btn:hover,
    .join-btn:hover {
        background: #005bbd;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: none;
    }

    .filter-toggle-btn:hover,
    .page-btn:hover:not(:disabled),
    .back-btn:hover,
    .filter-tag-pill:hover {
        background: rgba(0, 113, 227, 0.12);
        color: #005bbd;
        border-color: rgba(0, 113, 227, 0.28);
        transform: translateY(-1px);
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    nav {
        height: 56px;
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }

    main {
        width: min(100% - 28px, 1180px);
        padding-top: max(86px, calc(68px + env(safe-area-inset-top)));
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }

    .header-section {
        margin-bottom: 24px;
    }

    .browser-card {
        padding: 16px;
        border-radius: 24px;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    input,
    .refresh-btn,
    .filter-toggle-btn {
        width: 100%;
        min-height: 50px;
        justify-content: center;
    }

    .filter-panel.show {
        padding: 16px;
    }

    .filter-tags-grid {
        max-height: 44vh;
        padding-right: 2px;
    }

    .filter-tag-pill {
        min-height: 40px;
        padding: 8px 13px;
    }

    .server-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .server-item {
        min-height: auto;
        padding: 18px;
        border-radius: 22px;
    }

    .server-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .server-index {
        margin-bottom: 18px;
    }

    .join-btn {
        min-height: 48px;
    }

    .pagination-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        border-radius: 22px;
    }

    .page-info {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        font-family: inherit;
        font-size: 13px;
    }

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

@media (max-width: 420px) {
    .gradient-text {
        font-size: 36px;
    }

    .nav-brand {
        font-size: 14px;
    }

    #timer-text {
        font-size: 9px;
        padding: 4px 8px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #000000;
        --panel: rgba(28, 28, 30, 0.74);
        --border: rgba(255, 255, 255, 0.1);
        --text-main: #f5f5f7;
        --text-muted: #a1a1a6;
    }

    body {
        background:
            radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
            linear-gradient(180deg, #050505 0%, #101012 48%, #000 100%);
    }

    nav {
        background: rgba(0, 0, 0, 0.72);
    }

    input {
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-main);
    }

    .browser-card,
    .filter-panel,
    .pagination-container,
    .server-item,
    .relic-box,
    .info-box {
        box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
