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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

.logo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5a5a, #ff8a3d, #ffb347);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-letter {
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.logo-controller {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
}

.controller-base {
    width: 12px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    position: relative;
    margin: 2px auto;
}

.controller-dpad {
    position: absolute;
    top: -4px;
    left: 2px;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
}

.dpad-square {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    border-radius: 1px;
}

.dpad-square:nth-child(1) { top: 0; left: 2px; }
.dpad-square:nth-child(2) { top: 2px; left: 0; }
.dpad-square:nth-child(3) { top: 2px; left: 2px; }
.dpad-square:nth-child(4) { top: 2px; left: 4px; }
.dpad-square:nth-child(5) { top: 4px; left: 2px; }

.menu-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.menu-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.brand {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.login-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: scale(1.05);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin: 20px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.main-content {
    padding: 0 20px 20px;
}

.welcome-text {
    margin: 20px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-text strong {
    color: #ff6b35;
}

.challenges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
}

.challenges-title {
    font-size: 22px;
    font-weight: bold;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.toggle-btn {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.toggle-btn.active {
    background: #ff6b35;
}

.challenge-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.challenge-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.time-left {
    font-size: 14px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.challenge-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.challenge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.challenge-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.challenge-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.challenge-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.stat-value {
    color: #4CAF50;
    font-weight: bold;
}

.rank-badge {
    background: linear-gradient(45deg, #cd7f32, #b8860b);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.leaderboard {
    padding: 20px;
}

.leaderboard-header {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.leaderboard-item:nth-child(2) { border-left-color: #FFD700; }
.leaderboard-item:nth-child(3) { border-left-color: #C0C0C0; }
.leaderboard-item:nth-child(4) { border-left-color: #CD7F32; }

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.player-name {
    font-weight: bold;
    color: white;
}

.player-score {
    color: #4CAF50;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.view-more-btn {
    text-align: center;
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 10px;
    margin: 10px 0;
    transition: color 0.3s;
}

.view-more-btn:hover {
    color: #f7931e;
}

.pubg-theme {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:%23ff6b35;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%23f7931e;stop-opacity:0.05" /></linearGradient></defs><rect width="100" height="20" fill="url(%23grad)" /></svg>');
    z-index: -1;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 107, 53, 0.5);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .challenge-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .brand {
        font-size: 18px;
    }
    
    .login-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}