* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 204, 1, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 204, 1, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 204, 1, 0.5); }
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

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

body {
    background-color: #0a0a0e;
    color: #fff;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url('https://images.unsplash.com/photo-1600456899121-68eda5705257?ixlib=rb-1.2.1&auto=format&fit=crop&w=2100&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    
    overflow-x: hidden;
}

body::before {
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(255, 100, 50, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(255, 204, 1, 0.1), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.fire-particle {
    position: fixed;
    bottom: -20px;
    background-color: rgba(255, 165, 0, 0.6);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: rise 8s infinite ease-in;
    z-index: -1;
}

@keyframes rise {
    0% {
        bottom: -20px;
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        bottom: 120vh;
        opacity: 0;
    }
}

header {
    background-color: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid #ffcc01;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    position: sticky;
    z-index: 1000;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    width: 100%;
}
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 204, 1, 0.5));
}

.roobet-logo {
    height: 30px;
    margin-right: 10px;
    filter: drop-shadow(0 0 8px rgba(255, 204, 1, 0.7));
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: #ffcc01;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffcc01;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.leaderboard-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffcc01;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 204, 1, 0.5);
    position: relative;
    display: inline-block;
}

.leaderboard-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc01, transparent);
}

.leaderboard-header p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.leaderboard-header p strong {
    color: #ffcc01;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.5);
}

.countdown {
    background-color: rgba(18, 18, 18, 0.8);
    padding: 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1rem;
    border: 1px solid #ffcc01;
    box-shadow: 0 0 15px rgba(255, 204, 1, 0.3);
    backdrop-filter: blur(5px);
    animation: glow 2s infinite;
}

.countdown p {
    margin: 0;
    font-size: 1.1rem;
}

.countdown span {
    font-size: 1.5rem;
    color: #ffcc01;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.5);
}

.countdown-colon {
    color: #ffcc01;
    font-size: 2rem;
    margin: 0 5px;
    animation: blink 2s step-end infinite;
}

@keyframes blink {
    0%, 100% { visibility: visible; }
    50% { visibility: hidden; }
}

.top-three {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    position: relative;
}

.top-three::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 204, 1, 0.1), transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.top-position {
    background-color: rgba(18, 18, 18, 0.8);
    border: 1px solid #ffcc01;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 0 1rem;
    text-align: center;
    width: 280px;
    position: relative;
    transition: all 0.3s;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.top-position::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 1, 0.1), transparent 80%);
    z-index: -1;
}

.top-position:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 204, 1, 0.25);
}

.position-1 {
    order: 2;
    border-color: gold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: glow 3s infinite;
    z-index: 3;
}

.position-2 {
    order: 1;
    margin-top: 2rem;
    border-color: silver;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
    z-index: 2;
}

.position-3 {
    order: 3;
    margin-top: 2rem;
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
    z-index: 1;
}

.position-number {
    position: absolute;
    top: 5px;
    left: 15%;
    transform: translateX(-50%);
    background-color: #ffcc01;
    color: #0a0a0e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 204, 1, 0.5);
    z-index: 2;
}

.position-1 .position-number {
    background-color: gold;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    box-shadow: 0 0 15px gold;
}

.position-2 .position-number {
    background-color: silver;
    box-shadow: 0 0 10px silver;
}

.position-3 .position-number {
    background-color: #cd7f32;
    box-shadow: 0 0 10px #cd7f32;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 2px solid #ffcc01;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffcc01;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 204, 1, 0.3), transparent);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.position-1 .user-avatar {
    width: 100px;
    height: 100px;
    border-color: gold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.position-1 .user-avatar i {
    font-size: 2.5rem;
    color: gold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.position-2 .user-avatar {
    border-color: silver;
}

.position-3 .user-avatar {
    border-color: #cd7f32;
}

.username {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.wagered {
    margin-bottom: 1rem;
}

.wagered-label {
    font-size: 0.9rem;
    color: #ccc;
    display: block;
}

.wagered-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffcc01;
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.3);
}

.reward {
    background-color: rgba(255, 204, 1, 0.1);
    padding: 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    color: #ffcc01;
    border: 1px solid rgba(255, 204, 1, 0.3);
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.3);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.position-1 .reward {
    background-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background-color: rgba(10, 10, 14, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 204, 1, 0.2);
}

.leaderboard-table th {
    text-align: left;
    padding: 1.2rem;
    background-color: rgba(255, 204, 1, 0.15);
    color: #ffcc01;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 204, 1, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.leaderboard-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.leaderboard-table tr:hover td {
    background-color: rgba(255, 204, 1, 0.1);
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.place {
    font-weight: bold;
    color: #ffcc01;
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.3);
}

.rules-section {
    max-width: 800px;
    margin: 4rem auto;
    background-color: rgba(10, 10, 14, 0.8);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #ffcc01;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 1, 0.1), transparent 80%);
    z-index: -1;
}

.rules-section h2 {
    color: #ffcc01;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.3);
    position: relative;
    display: inline-block;
}

.rules-section h2::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ffcc01;
    box-shadow: 0 0 5px rgba(255, 204, 1, 0.5);
}

.rules-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.rules-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.rules-section ul li {
    margin-bottom: 0.8rem;
    color: #ddd;
    position: relative;
    padding-left: 5px;
}

.rules-section ul li::before {
    content: "•";
    color: #ffcc01;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.3);
}

footer {
    background-color: rgba(10, 10, 14, 0.9);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #ffcc01;
    margin-top: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

footer p {
    color: #ddd;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0.5rem auto;
}

footer a {
    color: #ffcc01;
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    text-shadow: 0 0 5px rgba(255, 204, 1, 0.5);
}

.btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ffcc01, #ffaa00);
    color: #0a0a0e;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 204, 1, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 204, 1, 0.7);
}

.btn:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .top-three {
        flex-direction: column;
        align-items: center;
    }

    .position-1 {
        order: 1;
        height: auto;
        width: 100%;
        max-width: 300px;
    }

    .position-2 {
        order: 2;
        height: auto;
        width: 100%;
        max-width: 300px;
    }

    .position-3 {
        order: 3;
        height: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .top-position {
        margin-bottom: 2rem;
        order: unset !important;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

.glowing-text {
    color: #ffcc01;
    font-weight: bold;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 204, 1, 0.7), 
                 0 0 20px rgba(255, 204, 1, 0.5),
                 0 0 30px rgba(255, 204, 1, 0.3);
    animation: textGlow 2s infinite;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0 5px;
}

.glowing-text:hover {
    text-shadow: 0 0 15px rgba(255, 204, 1, 0.9), 
                0 0 25px rgba(255, 204, 1, 0.7),
                0 0 35px rgba(255, 204, 1, 0.5);
    transform: scale(1.05);
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(255, 204, 1, 0.7), 0 0 20px rgba(255, 204, 1, 0.5), 0 0 30px rgba(255, 204, 1, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 204, 1, 0.9), 0 0 25px rgba(255, 204, 1, 0.7), 0 0 35px rgba(255, 204, 1, 0.5); }
    100% { text-shadow: 0 0 10px rgba(255, 204, 1, 0.7), 0 0 20px rgba(255, 204, 1, 0.5), 0 0 30px rgba(255, 204, 1, 0.3); }
}