/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', sans-serif;
    background: linear-gradient(135deg, #4A90D9, #6B5B95);
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6D00, #FFAB00);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 109, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 109, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #1B263B, #2D1B4E);
    color: #fff;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #4A90D9 0%, #6B5B95 50%, #7B68EE 100%);
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,215,0,0.6), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(156,39,176,0.6), transparent),
        radial-gradient(1px 1px at 400px 60px, #fff, transparent),
        radial-gradient(2px 2px at 500px 200px, rgba(255,109,0,0.5), transparent);
    background-size: 550px 200px;
    animation: stars 20s linear infinite;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.hero-content {
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-emoji {
    font-size: 80px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.logo-text {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FF6D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin: 10px 0;
}

.tagline {
    font-size: 24px;
    color: #aaa;
    margin-top: 10px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #FFD700;
}

.stat-label {
    font-size: 14px;
    color: #888;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #666;
    animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-indicator .arrow {
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, #5A7DB5 0%, #4A6FA5 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: linear-gradient(135deg, rgba(27, 38, 59, 0.8), rgba(45, 27, 78, 0.5));
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
}

.about-card p {
    color: #aaa;
    line-height: 1.6;
}

/* ===== WORLDS SECTION ===== */
.worlds {
    padding: 100px 0;
    background: linear-gradient(180deg, #4A6FA5 0%, #5B6B8A 100%);
}

.worlds-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.worlds-slider::-webkit-scrollbar {
    height: 8px;
}

.worlds-slider::-webkit-scrollbar-track {
    background: #1B263B;
    border-radius: 4px;
}

.worlds-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #FFD700, #FF6D00);
    border-radius: 4px;
}

.world-card {
    min-width: 160px;
    background: linear-gradient(135deg, rgba(var(--world-color), 0.2), rgba(0, 0, 0, 0.3));
    border: 2px solid var(--world-color);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    scroll-snap-align: center;
    transition: all 0.3s ease;
}

.world-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px color-mix(in srgb, var(--world-color) 40%, transparent);
}

.world-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.world-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.world-card p {
    font-size: 13px;
    color: #888;
}

/* ===== LEADERBOARD SECTION ===== */
.leaderboard {
    padding: 100px 0;
    background: linear-gradient(180deg, #5B6B8A 0%, #6B5B95 100%);
}

.leaderboard-table {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(27, 38, 59, 0.5);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px 80px;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 109, 0, 0.2));
    font-weight: 700;
    color: #FFD700;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 80px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.leaderboard-row:hover {
    background: rgba(255, 215, 0, 0.05);
}

.leaderboard-row.gold { color: #FFD700; }
.leaderboard-row.silver { color: #C0C0C0; }
.leaderboard-row.bronze { color: #CD7F32; }

.loading {
    text-align: center;
    padding: 40px;
    color: #fff;
}

.empty-leaderboard {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.empty-leaderboard p {
    margin: 10px 0;
}

.empty-leaderboard p:first-child {
    font-size: 20px;
    color: #FFD700;
}

/* ===== DOWNLOAD SECTION ===== */
.download {
    padding: 100px 0;
    background: linear-gradient(180deg, #6B5B95 0%, #7B68EE 100%);
}

.download-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-card {
    background: linear-gradient(135deg, #1B263B, #2D1B4E);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    min-width: 280px;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
}

.download-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.download-card p {
    color: #888;
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(180deg, #5B4B85, #4A3B75);
    color: #ddd;
}

.footer p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #4FC3F7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.footer-links span {
    color: #444;
}

.footer-small {
    font-size: 12px;
    color: #555;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1B263B, #2D1B4E);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h2 {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 10px;
}

.modal-content p {
    color: #aaa;
    margin-bottom: 25px;
}

.modal-content input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 18px;
    font-family: inherit;
    text-align: center;
    margin-bottom: 25px;
    outline: none;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    border-color: #FFD700;
}

.modal-content input::placeholder {
    color: #666;
}

.consent-box {
    margin: 20px 0;
    text-align: right;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #FFD700;
}

.consent-label a {
    color: #4FC3F7;
}

.consent-label a:hover {
    text-decoration: underline;
}

.age-notice {
    font-size: 12px;
    color: #4CAF50;
    margin-top: 15px;
}

/* ===== DISCLAIMER POPUP ===== */
.disclaimer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.disclaimer-popup-content {
    background: linear-gradient(135deg, #4A6FA5, #5B6B8A);
    border: 2px solid #FFD700;
    border-radius: 25px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalIn 0.3s ease;
}

.disclaimer-popup-content h2 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 24px;
}

.disclaimer-text {
    text-align: right;
    margin-bottom: 25px;
    color: #fff;
    line-height: 1.8;
}

.disclaimer-text p {
    margin-bottom: 10px;
}

.disclaimer-text a {
    color: #FFD700;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo-text {
        font-size: 42px;
    }
    
    .logo-emoji {
        font-size: 60px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 40px 1fr 80px 60px;
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

