 @import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;700&display=swap');

        :root {
            --gold: #c89b3c;
            --gold-bright: #f0e6d2;
            --blue: #00cfff;
            --blue-dark: #0ac8b9;
            --bg-dark: #010a13;
            --panel-bg: rgba(1, 10, 19, 0.85);
            --border: rgba(200, 155, 60, 0.3);
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            background: #000 url('https://e0.pxfuel.com/wallpapers/301/399/desktop-wallpaper-cool-space-backgrounds-nebula.jpg') no-repeat center center fixed;
            background-size: cover;
            color: #f0e6d2;
            font-family: 'Oxanium', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            overflow-x: hidden;
        }

        .main-wrapper {
            width: 95%;
            max-width: 1300px;
            padding: 20px;
            background: radial-gradient(circle at center, rgba(10, 20, 40, 0.4) 0%, transparent 80%);
        }

        /* HEADER NAV */
        .header-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid var(--border);
            padding: 10px 30px;
            border-radius: 5px;
            margin-bottom: 50px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }

        .logo { font-weight: 700; letter-spacing: 2px; color: #fff; }
        .logo span { color: var(--blue); }

        nav a {
            color: #cdbe91;
            text-decoration: none;
            margin: 0 15px;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* PODIUM */
        .podium-container {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 20px;
            margin-bottom: 40px;
        }

        .podium-item {
            text-align: center;
            position: relative;
        }

        .rank-card {
            background: linear-gradient(180deg, #1e2328 0%, #010a13 100%);
            border: 2px solid #5b5a56;
            border-radius: 8px;
            padding: 15px;
            width: 160px;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        }

        .rank-1 .rank-card {
            width: 200px;
            border-color: var(--gold);
            box-shadow: 0 0 40px rgba(200, 155, 60, 0.2);
        }

        .rank-badge {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: #010a13;
            border: 2px solid var(--gold);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            z-index: 2;
        }

        .avatar-main {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid var(--blue);
            margin: 0 auto 10px;
            overflow: hidden;
            background: #000;
        }

        .rank-1 .avatar-main { width: 100px; height: 100px; border-color: var(--gold); }

        .player-name { font-weight: bold; font-size: 1.1rem; margin-top: 10px; }
        .player-tag { color: #888; font-size: 0.7rem; }

        /* CONTENT GRID */
        .content-grid {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
            margin-bottom: 30px;
        }

        /* LEADERBOARD TABLE */
        .leaderboard-panel {
            background: var(--panel-bg);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
        }

        .row {
            display: grid;
            grid-template-columns: 60px 2fr 1fr 1fr 1fr 1fr;
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            align-items: center;
        }

        .row:hover { background: rgba(255,255,255,0.02); }

        .mini-avatar { width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--blue); }
        .status-offline { color: #ff4655; font-weight: bold; text-shadow: 0 0 10px rgba(255,70,85,0.4); }
        .rank-info { font-size: 0.8rem; color: #a09b8c; }
        .rank-info span { color: #ff4655; display: block; font-size: 0.7rem; }

        /* RUSH TIMER BOX */
        .rush-timer-container {
            background: rgba(1, 10, 19, 0.9);
            border: 1px solid var(--blue);
            border-radius: 4px;
            padding: 20px;
            text-align: center;
            clip-path: polygon(0 0, 95% 0, 100% 15%, 100% 100%, 5% 100%, 0 85%);
            box-shadow: 0 0 20px rgba(0, 207, 255, 0.1);
        }

        .rush-timer-container h3 {
            font-size: 0.8rem;
            letter-spacing: 3px;
            color: var(--blue);
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(0, 207, 255, 0.2);
            padding-bottom: 10px;
        }

        .timer-flex {
            display: flex;
            justify-content: space-around;
        }

        .timer-unit { font-size: 1.8rem; font-weight: 700; }
        .timer-unit label {
            display: block;
            font-size: 0.6rem;
            color: #888;
            margin-top: 5px;
            text-transform: uppercase;
        }
/* Styles spécifiques pour la page règles afin d'améliorer la lecture */
        .rules-container {
            background: var(--panel-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 40px;
            box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
            max-width: 900px;
            margin: 0 auto;
        }

        .rules-title {
            color: var(--blue);
            text-transform: uppercase;
            letter-spacing: 3px;
            border-bottom: 1px solid rgba(0, 207, 255, 0.2);
            padding-bottom: 15px;
            margin-bottom: 30px;
            text-align: center;
        }

        .rule-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 5px;
            border-left: 3px solid var(--gold);
        }

        .rule-icon {
            color: var(--gold);
            font-size: 1.5rem;
            margin-right: 20px;
            width: 30px;
            text-align: center;
        }

        .rule-content h3 {
            margin: 0 0 5px 0;
            color: var(--gold-bright);
            font-size: 1.1rem;
        }

        .rule-content p {
            margin: 0;
            color: #a09b8c;
            line-height: 1.5;
        }

        .important {
            border-left-color: #ff4655;
        }
        .important .rule-icon {
            color: #ff4655;
        }
 .live-icon {
            display: inline-flex;
            align-items: center;
            background: linear-gradient(135deg, #ff0000, #ff3333);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-family: 'Arial', sans-serif;
            font-weight: bold;
            font-size: 14px;
            text-transform: uppercase;
            box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
            animation: pulse 2s infinite;
        }

        .live-icon::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: white;
            border-radius: 50%;
            margin-right: 8px;
            animation: blink 1.5s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
            }
        }

        @keyframes blink {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.3;
            }
        }
        span.gain {
        color : #00cfff;
        }
        footer {
        border : 1px solid var(--border);
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 30px;
        }
        footer a {
         color: var(--blue);
         text-decoration: none;
         
        }