        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@500;700&display=swap');
        
        * { box-sizing: border-box; }
        
        body {
            margin: 0;
            overflow: hidden;
            background-color: #0a0a0f;
            font-family: 'Rajdhani', sans-serif;
            user-select: none;
        }

        #ui-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        /* Crosshair */
        #crosshair {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 24px;
            height: 24px;
            transform: translate(-50%, -50%);
        }
        #crosshair::before, #crosshair::after {
            content: '';
            position: absolute;
            background: rgba(0, 255, 255, 0.9);
            box-shadow: 0 0 8px #0ff, 0 0 16px rgba(0,255,255,0.5);
            border-radius: 1px;
        }
        #crosshair::before { top: 11px; left: 0; width: 24px; height: 2px; }
        #crosshair::after { top: 0; left: 11px; width: 2px; height: 24px; }
        
        #crosshair .dot {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 4px;
            height: 4px;
            background: #fff;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 6px #0ff;
        }

        /* Death flash effect */
        #death-flash {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, rgba(255,0,0,0.6) 0%, rgba(139,0,0,0.8) 100%);
            pointer-events: none;
            opacity: 0;
            z-index: 9999;
        }
        
        #death-flash.active {
            animation: deathFlash 0.15s ease-out forwards;
        }
        
        @keyframes deathFlash {
            0% { opacity: 1; }
            100% { opacity: 0; }
        }

        #score-board {
            padding: 20px 30px;
            display: flex;
            justify-content: flex-end;
            align-items: flex-start;
            gap: 30px;
        }
        
        .stat-box {
            background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(20,20,30,0.8));
            border: 1px solid rgba(0,255,255,0.3);
            border-radius: 8px;
            padding: 12px 20px;
            backdrop-filter: blur(10px);
        }
        
        .stat-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: rgba(0,255,255,0.7);
            margin-bottom: 2px;
        }
        
        .stat-value {
            font-family: 'Orbitron', monospace;
            font-size: 28px;
            font-weight: 900;
            color: #fff;
            text-shadow: 0 0 10px rgba(0,255,255,0.5);
        }

        #ammo-container {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        #ammo-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: rgba(0,255,255,0.6);
        }

        #ammo-bar-container {
            width: 240px;
            height: 8px;
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
        }

        #ammo-bar {
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #00ffff, #00ff88);
            box-shadow: 0 0 15px rgba(0,255,255,0.6), inset 0 -2px 4px rgba(0,0,0,0.3);
            transition: background 0.2s;
            border-radius: 3px;
        }

        #ammo-bar.reloading {
            background: linear-gradient(90deg, #ff3333, #ff6644);
            box-shadow: 0 0 15px rgba(255,50,50,0.6);
        }

        #message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            background: linear-gradient(145deg, rgba(10,10,20,0.95), rgba(20,20,40,0.95));
            padding: 50px 70px;
            border-radius: 16px;
            border: 1px solid rgba(0,255,255,0.2);
            pointer-events: auto;
            cursor: pointer;
            transition: all 0.3s;
            backdrop-filter: blur(20px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
        }
        
        #message:hover {
            border-color: rgba(0,255,255,0.5);
            box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 40px rgba(0,255,255,0.1);
        }

        #message h1 { 
            margin: 0 0 8px 0; 
            font-family: 'Orbitron', monospace;
            font-size: 42px; 
            font-weight: 900;
            background: linear-gradient(135deg, #00ffff, #00ff88, #00ffff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 4px;
            text-shadow: none;
        }
        
        #message .subtitle {
            font-size: 14px;
            color: rgba(0,255,255,0.5);
            letter-spacing: 6px;
            text-transform: uppercase;
            margin-bottom: 30px;
        }
        
        #message .instruction {
            font-size: 16px;
            color: #888;
            margin: 8px 0;
        }
        
        #message .key {
            display: inline-block;
            background: rgba(0,255,255,0.1);
            border: 1px solid rgba(0,255,255,0.3);
            border-radius: 4px;
            padding: 4px 10px;
            margin: 0 3px;
            font-family: 'Orbitron', monospace;
            font-size: 12px;
            color: #0ff;
        }
        
        /* === ROTATE DEVICE OVERLAY === */
        #rotate-device-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 100000;
            opacity: 1;
            transition: opacity 0.5s ease-out;
        }
        
        #rotate-device-overlay.hiding {
            opacity: 0;
            pointer-events: none;
        }
        
        .rotate-icon {
            font-size: 80px;
            animation: rotatePhone 2s ease-in-out infinite;
            margin-bottom: 20px;
        }
        
        @keyframes rotatePhone {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-20deg); }
            75% { transform: rotate(90deg); }
        }
        
        .rotate-text {
            font-family: 'Orbitron', monospace;
            font-size: 24px;
            color: #00ffff;
            text-align: center;
            margin-bottom: 10px;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        }
        
        .rotate-subtext {
            font-family: Arial, sans-serif;
            font-size: 16px;
            color: #888;
            text-align: center;
        }
        
        .rotate-countdown {
            font-family: 'Orbitron', monospace;
            font-size: 48px;
            color: #fff;
            margin-top: 30px;
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
        }
        
        /* === KILLSTREAK DISPLAY === */
        #killstreak-display {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 1000;
            display: none;
        }
        
        .killstreak-announcement {
            text-align: center;
            animation: killstreakPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .killstreak-title {
            font-family: 'Orbitron', monospace;
            font-size: 48px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 4px;
            text-shadow: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 60px currentColor;
            margin-bottom: 10px;
        }
        
        .killstreak-subtitle {
            font-family: 'Orbitron', monospace;
            font-size: 24px;
            color: #fff;
            text-shadow: 0 0 10px rgba(255,255,255,0.8);
        }
        
        .killstreak-count {
            font-size: 72px;
            font-weight: bold;
            font-family: 'Orbitron', monospace;
            text-shadow: 0 0 30px currentColor;
        }
        
        @keyframes killstreakPop {
            0% { transform: scale(0) rotate(-10deg); opacity: 0; }
            50% { transform: scale(1.2) rotate(5deg); }
            70% { transform: scale(0.9) rotate(-2deg); }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        
        @keyframes killstreakShake {
            0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
            25% { transform: translate(-48%, -52%) rotate(-2deg); }
            50% { transform: translate(-52%, -48%) rotate(2deg); }
            75% { transform: translate(-50%, -50%) rotate(-1deg); }
        }
        
        .killstreak-shake {
            animation: killstreakShake 0.3s ease-in-out;
        }
        
        /* Killstreak counter HUD */
        #killstreak-hud {
            position: fixed;
            top: 120px;
            right: 20px;
            display: none;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, rgba(255,68,68,0.3), rgba(255,136,0,0.2));
            border: 2px solid rgba(255,68,68,0.6);
            border-radius: 8px;
            padding: 8px 16px;
            z-index: 100;
        }
        
        #killstreak-hud.active {
            display: flex;
            animation: hudPulse 1s ease-in-out infinite;
        }
        
        @keyframes hudPulse {
            0%, 100% { box-shadow: 0 0 10px rgba(255,68,68,0.5); }
            50% { box-shadow: 0 0 25px rgba(255,68,68,0.8), 0 0 50px rgba(255,136,0,0.4); }
        }
        
        #killstreak-hud-icon {
            font-size: 24px;
        }
        
        #killstreak-hud-count {
            font-family: 'Orbitron', monospace;
            font-size: 28px;
            font-weight: bold;
            color: #ff4444;
            text-shadow: 0 0 10px rgba(255,68,68,0.8);
        }
        
        #killstreak-hud-label {
            font-family: 'Orbitron', monospace;
            font-size: 12px;
            color: #ffaa00;
            text-transform: uppercase;
        }
        
        #kill-feed {
            position: absolute;
            top: 20px;
            left: 20px;
            display: flex;
            flex-direction: column-reverse;
            gap: 8px;
            max-width: 400px;
        }
        
        .feed-item {
            font-size: 16px;
            color: #fff;
            background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
            padding: 8px 16px;
            border-left: 3px solid #0ff;
            border-radius: 0 4px 4px 0;
            opacity: 1;
            transition: opacity 0.5s, transform 0.3s;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
            white-space: nowrap;
        }
        
        .feed-item .killer-name {
            color: #ff4444;
            font-weight: bold;
        }
        
        .feed-item .victim-name {
            color: #44ff44;
            font-weight: bold;
        }
        
        .feed-item .my-name {
            color: #00ffff;
            font-weight: bold;
        }

        /* Minimap */
        #minimap-container {
            position: absolute;
            bottom: 80px;
            right: 20px;
            width: 150px;
            height: 150px;
            background: rgba(0,0,0,0.7);
            border: 2px solid rgba(0,255,255,0.3);
            border-radius: 8px;
            overflow: hidden;
        }
        
        #minimap {
            width: 100%;
            height: 100%;
            image-rendering: pixelated;
        }
        
        /* Leaderboard */
        #leaderboard {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 10px;
            padding: 20px;
            min-width: 400px;
            z-index: 1000;
        }
        
        .leaderboard-title {
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            color: #0ff;
            text-shadow: 0 0 10px #0ff;
            margin-bottom: 15px;
            letter-spacing: 3px;
        }
        
        #leaderboard-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        #leaderboard-table th,
        #leaderboard-table td {
            padding: 8px 12px;
            text-align: center;
            border-bottom: 1px solid rgba(0, 255, 255, 0.2);
        }
        
        #leaderboard-table th {
            color: #0ff;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 1px;
        }
        
        #leaderboard-table td {
            color: #fff;
            font-size: 14px;
        }
        
        #leaderboard-table tr.me {
            background: rgba(0, 255, 255, 0.15);
        }
        
        #leaderboard-table tr.me td {
            color: #0ff;
            font-weight: bold;
        }
        
        .player-color {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 2px;
            margin-right: 8px;
            vertical-align: middle;
        }
        
        .leaderboard-hint {
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            margin-top: 15px;
        }

        canvas { display: block; }
        
        /* Loading animation */
        .loading-text {
            animation: pulse 1.5s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }
        
        /* Login Screen */
        #login-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }
        
        /* Hub Screen */
        #hub-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0f0f2a 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9998;
            overflow: hidden;
        }
        
        /* Animated Background */
        .hub-bg-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
        
        /* Grid overlay */
        .hub-grid-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 1;
            animation: gridMove 20s linear infinite;
            pointer-events: none;
        }
        
        @keyframes gridMove {
            0% { background-position: 0 0; }
            100% { background-position: 50px 50px; }
        }
        
        /* Glowing orbs */
        .hub-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(60px);
            opacity: 0.4;
            z-index: 1;
            animation: orbFloat 10s ease-in-out infinite;
            pointer-events: none;
        }
        
        .hub-orb-1 {
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(0, 255, 255, 0.6) 0%, transparent 70%);
            top: -100px;
            left: -100px;
            animation-delay: 0s;
        }
        
        .hub-orb-2 {
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, transparent 70%);
            bottom: -50px;
            right: -50px;
            animation-delay: -3s;
            animation-duration: 12s;
        }
        
        .hub-orb-3 {
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(0, 200, 255, 0.4) 0%, transparent 70%);
            top: 50%;
            right: 20%;
            animation-delay: -5s;
            animation-duration: 15s;
        }
        
        .hub-orb-4 {
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(255, 0, 128, 0.3) 0%, transparent 70%);
            bottom: 30%;
            left: 10%;
            animation-delay: -7s;
            animation-duration: 18s;
        }
        
        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(30px, -20px) scale(1.1); }
            50% { transform: translate(-20px, 30px) scale(0.9); }
            75% { transform: translate(-30px, -10px) scale(1.05); }
        }
        
        /* Floating particles container */
        .hub-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            overflow: hidden;
            pointer-events: none;
        }
        
        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(0, 255, 255, 0.8);
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
            animation: particleFloat linear infinite;
        }
        
        @keyframes particleFloat {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) rotate(720deg);
                opacity: 0;
            }
        }
        
        /* Scanning line effect */
        .hub-scan-line {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
            z-index: 2;
            animation: scanLine 4s linear infinite;
            opacity: 0.5;
            pointer-events: none;
        }
        
        @keyframes scanLine {
            0% { top: -2px; }
            100% { top: 100%; }
        }
        
        /* Hexagon pattern overlay */
        .hub-hex-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300ffff' fill-opacity='0.02'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            z-index: 1;
            opacity: 0.5;
            pointer-events: none;
        }
        
        .hub-container {
            background: rgba(0, 0, 0, 0.85);
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 15px;
            padding: 30px 40px;
            display: flex;
            flex-direction: column;
            width: 90%;
            max-width: 1100px;
            max-height: 90vh;
            z-index: 10;
            position: relative;
            box-shadow: 0 0 40px rgba(0, 255, 255, 0.2), 
                        inset 0 0 60px rgba(0, 0, 0, 0.5);
        }
        
        .hub-header {
            text-align: center;
            margin-bottom: 30px;
            padding: 10px 0 20px 0;
            position: relative;
        }
        
        .hub-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #0ff, #ff3366, #0ff, transparent);
            animation: lineGlow 2s ease-in-out infinite;
        }
        
        @keyframes lineGlow {
            0%, 100% { opacity: 0.5; width: 200px; }
            50% { opacity: 1; width: 350px; }
        }
        
        .hub-content {
            display: flex;
            gap: 30px;
            flex: 1;
            min-height: 0;
        }
        
        .hub-left {
            width: 320px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .hub-right {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        
        .hub-title {
            font-size: 52px;
            font-weight: 900;
            color: #0ff;
            text-shadow: 
                0 0 10px #0ff,
                0 0 20px #0ff,
                0 0 40px #0ff,
                0 0 80px #0ff,
                0 0 120px rgba(0, 255, 255, 0.5);
            margin-bottom: 0;
            letter-spacing: 8px;
            position: relative;
            animation: logoGlow 2s ease-in-out infinite, logoFloat 3s ease-in-out infinite;
            text-transform: uppercase;
        }
        
        .hub-title::before,
        .hub-title::after {
            content: 'HYPERBLOCK';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .hub-title::before {
            color: #f0f;
            animation: glitch1 2.5s infinite;
            clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
            transform: translate(-2px, 0);
        }
        
        .hub-title::after {
            color: #0f0;
            animation: glitch2 2.5s infinite;
            clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
            transform: translate(2px, 0);
        }
        
        @keyframes logoGlow {
            0%, 100% { 
                text-shadow: 
                    0 0 10px #0ff,
                    0 0 20px #0ff,
                    0 0 40px #0ff,
                    0 0 80px #0ff;
                filter: brightness(1);
            }
            50% { 
                text-shadow: 
                    0 0 20px #0ff,
                    0 0 40px #0ff,
                    0 0 60px #0ff,
                    0 0 100px #0ff,
                    0 0 150px rgba(0, 255, 255, 0.8);
                filter: brightness(1.2);
            }
        }
        
        @keyframes logoFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        
        @keyframes glitch1 {
            0%, 92%, 100% { transform: translate(0); opacity: 0; }
            93% { transform: translate(-4px, -2px); opacity: 0.8; }
            94% { transform: translate(4px, 2px); opacity: 0.8; }
            95% { transform: translate(-4px, 0); opacity: 0.8; }
            96% { transform: translate(0); opacity: 0; }
        }
        
        @keyframes glitch2 {
            0%, 94%, 100% { transform: translate(0); opacity: 0; }
            95% { transform: translate(3px, 1px); opacity: 0.8; }
            96% { transform: translate(-3px, -1px); opacity: 0.8; }
            97% { transform: translate(3px, 0); opacity: 0.8; }
            98% { transform: translate(0); opacity: 0; }
        }
        
        .hub-subtitle {
            font-size: 36px;
            font-weight: 700;
            color: #ff3366;
            text-shadow: 
                0 0 10px #ff3366,
                0 0 20px #ff3366,
                0 0 40px rgba(255, 51, 102, 0.5);
            margin-top: 5px;
            margin-bottom: 25px;
            letter-spacing: 15px;
            text-transform: uppercase;
            animation: arenaGlow 2s ease-in-out infinite 0.5s, arenaFloat 3s ease-in-out infinite 0.5s;
        }
        
        @keyframes arenaGlow {
            0%, 100% { 
                text-shadow: 
                    0 0 10px #ff3366,
                    0 0 20px #ff3366,
                    0 0 40px rgba(255, 51, 102, 0.5);
            }
            50% { 
                text-shadow: 
                    0 0 20px #ff3366,
                    0 0 40px #ff3366,
                    0 0 60px #ff3366,
                    0 0 80px rgba(255, 51, 102, 0.8);
            }
        }
        
        @keyframes arenaFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }
        
        .player-profile {
            background: rgba(0, 255, 255, 0.1);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 10px;
            padding-top: 20px;
            padding-left: 20px;
            padding-right: 20px;
        }
        
        .profile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .profile-title {
            color: #0ff;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .profile-edit-btn {
            background: rgba(0, 255, 255, 0.2);
            border: 1px solid #0ff;
            color: #0ff;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }
        
        .profile-edit-btn:hover {
            background: rgba(0, 255, 255, 0.4);
        }
        
        .profile-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .profile-avatar {
            position: relative;
        }
        
        .profile-level-badge {
            position: absolute;
            bottom: -5px;
            right: -5px;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            border: 2px solid #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            color: #000;
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
            z-index: 10;
        }
        
        .profile-color {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
        }
        
        .profile-avatar-img {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            object-fit: cover;
        }
        
        .profile-details {
            flex: 1;
        }
        
        .profile-name {
            font-size: 24px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 5px;
        }
        
        .profile-status {
            font-size: 12px;
            color: #0f0;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .profile-status::before {
            content: '';
            width: 8px;
            height: 8px;
            background: #0f0;
            border-radius: 50%;
            animation: statusPulse 2s infinite;
        }
        
        /* XP Bar Section */
        .xp-section {
            margin-top: 15px;
            padding-top: 12px;
            padding-bottom: 25px;
            border-top: 1px solid rgba(0, 255, 255, 0.2);
        }
        
        .xp-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .xp-level {
            font-size: 14px;
            font-weight: bold;
            color: #ffd700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        .xp-text {
            font-size: 11px;
            color: #888;
        }
        
        .xp-bar-container {
            position: relative;
            height: 12px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 6px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            overflow: hidden;
        }
        
        .xp-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #ff8c00, #ffd700, #ffec8b);
            border-radius: 5px;
            transition: width 1s ease-out;
            position: relative;
        }
        
        .xp-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
            border-radius: 5px 5px 0 0;
        }
        
        .xp-bar-glow {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
            animation: xpShine 2s infinite;
            pointer-events: none;
        }
        
        @keyframes xpShine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(200%); }
        }
        
        .xp-bar.leveling-up {
            animation: xpPulse 0.5s ease-out;
        }
        
        @keyframes xpPulse {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.5); }
        }
        
        .coins-section {
            margin-top: 8px;
            display: flex;
            justify-content: center;
        }
        
        /* ═══════════════════════════════════════════════════════════════
           UNIFIED LOGIN REQUIRED OVERLAY
           ═══════════════════════════════════════════════════════════════ */
        
        .login-required-container {
            position: relative;
        }
        
        .login-required-content {
            filter: grayscale(30%);
            opacity: 0.6;
            pointer-events: none;
            user-select: none;
        }
        
        .login-required-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 10px;
            z-index: 10;
            padding: 20px;
            text-align: center;
        }
        
        .login-required-icon {
            font-size: 36px;
            margin-bottom: 10px;
            animation: lockPulse 2s ease-in-out infinite;
        }
        
        @keyframes lockPulse {
            0%, 100% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.1); opacity: 1; }
        }
        
        .login-required-text {
            color: #fff;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }
        
        .login-required-subtext {
            color: #aaa;
            font-size: 12px;
            margin-bottom: 12px;
        }
        
        .login-required-buttons {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
        }
        
        /* Small variant for compact areas */
        .login-required-overlay.compact {
            padding: 15px;
        }
        
        .login-required-overlay.compact .login-required-icon {
            font-size: 28px;
            margin-bottom: 10px;
        }
        
        .login-required-overlay.compact .login-required-text {
            font-size: 13px;
            margin-bottom: 5px;
        }
        
        .login-required-overlay.compact .login-required-subtext {
            font-size: 10px;
            margin-bottom: 10px;
        }
        
        .login-required-overlay.compact .login-required-btn {
            padding: 8px 20px;
            font-size: 11px;
        }
        
        /* Mobile adjustments */
        @media (max-width: 768px) {
            .login-required-icon {
                font-size: 32px;
            }
            
            .login-required-text {
                font-size: 14px;
            }
            
            .login-required-subtext {
                font-size: 11px;
            }
            
            .login-required-btn {
                padding: 10px 24px;
                font-size: 12px;
            }
        }
        
        /* Level Up Overlay */
        #level-up-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 20000;
            animation: fadeIn 0.3s ease-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .level-up-content {
            text-align: center;
            animation: levelUpBounce 0.6s ease-out;
        }
        
        @keyframes levelUpBounce {
            0% { transform: scale(0.5); opacity: 0; }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .level-up-title {
            font-size: 24px;
            color: #ffd700;
            text-transform: uppercase;
            letter-spacing: 10px;
            margin-bottom: 20px;
            animation: levelUpGlow 1s infinite;
        }
        
        @keyframes levelUpGlow {
            0%, 100% { text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700; }
            50% { text-shadow: 0 0 40px #ffd700, 0 0 80px #ffd700, 0 0 120px #ffd700; }
        }
        
        .level-up-number {
            font-size: 120px;
            font-weight: 900;
            color: #fff;
            text-shadow: 
                0 0 20px #ffd700,
                0 0 40px #ffd700,
                0 0 60px #ff8c00,
                0 0 80px #ff8c00;
            animation: levelNumberPulse 0.5s ease-out;
        }
        
        @keyframes levelNumberPulse {
            0% { transform: scale(0); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        
        .level-up-stars {
            margin-top: 20px;
            font-size: 30px;
            animation: starsSparkle 1s infinite;
        }
        
        @keyframes starsSparkle {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.1); }
        }
        
        /* XP Gain Animation */
        .xp-gain-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 48px;
            font-weight: bold;
            color: #ffd700;
            text-shadow: 0 0 20px #ffd700, 0 0 40px rgba(255, 215, 0, 0.5);
            z-index: 19999;
            pointer-events: none;
            animation: xpGainAnim 2s ease-out forwards;
        }
        
        @keyframes xpGainAnim {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
            20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
            40% { transform: translate(-50%, -50%) scale(1); }
            100% { opacity: 0; transform: translate(-50%, -100%) scale(1); }
        }
        
        /* OAuth Login Buttons */
        .auth-section {
            margin-top: 12px;
            padding-top: 8px;
        }
        
        .auth-buttons {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        
        .auth-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }
        
        .auth-btn.google {
            background: #fff;
            color: #333;
        }
        
        .auth-btn.google:hover {
            background: #f0f0f0;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }
        
        .auth-btn.discord {
            background: #5865F2;
            color: #fff;
        }
        
        .auth-btn.discord:hover {
            background: #4752C4;
            box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
        }
        
        .auth-btn.logout {
            background: transparent;
            border: 1px solid #ff6666;
            color: #ff6666;
            padding: 4px 8px;
        }
        
        .auth-btn img, .auth-btn svg {
            width: 12px;
            height: 12px;
        }
        .auth-btn.logout:hover {
            background: rgba(255, 102, 102, 0.2);
        }
        
        .auth-btn img {
            width: 16px;
            height: 16px;
        }
        
        .auth-provider-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
        }
        
        .auth-provider {
            font-size: 10px;
            color: #888;
        }
        
        /* Email Auth Form */
        .auth-btn.email {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
        }
        
        .auth-btn.email:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
        }
        
        .email-auth-form {
            display: none;
            flex-direction: column;
            gap: 8px;
            margin-top: 8px;
        }
        
        .email-auth-form.active {
            display: flex;
        }
        
        .email-auth-form input {
            padding: 8px 10px;
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            font-size: 12px;
            outline: none;
        }
        
        .email-auth-form input:focus {
            border-color: #0ff;
            box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
        }
        
        .email-auth-form input::placeholder {
            color: #666;
        }
        
        .email-auth-actions {
            display: flex;
            gap: 6px;
        }
        
        .email-auth-actions button {
            flex: 1;
            padding: 6px 10px;
            border: none;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .email-auth-actions .submit-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
        }
        
        .email-auth-actions .submit-btn:hover {
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
        }
        
        .email-auth-actions .cancel-btn {
            background: transparent;
            border: 1px solid #666;
            color: #888;
        }
        
        .email-auth-actions .cancel-btn:hover {
            border-color: #ff6666;
            color: #ff6666;
        }
        
        .auth-toggle {
            font-size: 9px;
            color: #888;
            text-align: center;
            cursor: pointer;
        }
        
        .auth-toggle:hover {
            color: #0ff;
        }
        
        .auth-error {
            color: #ff6666;
            font-size: 10px;
            margin-top: 4px;
        }
        
        .servers-section {
            text-align: left;
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        
        .servers-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .servers-title {
            color: #0ff;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .servers-count {
            color: #888;
            font-size: 14px;
        }
        
        #servers-list {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
        }
        
        #servers-list::-webkit-scrollbar {
            width: 6px;
        }
        
        #servers-list::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 3px;
        }
        
        #servers-list::-webkit-scrollbar-thumb {
            background: rgba(0, 255, 255, 0.5);
            border-radius: 3px;
        }
        
        #servers-list::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 255, 255, 0.7);
        }
        
        .server-card {
            background: linear-gradient(135deg, rgba(15, 20, 40, 0.95), rgba(10, 15, 30, 0.98));
            border: 1px solid rgba(0, 255, 255, 0.15);
            border-radius: 8px;
            padding: 0;
            margin-bottom: 6px;
            cursor: pointer;
            transition: all 0.25s ease;
            width: 100%;
            box-sizing: border-box;
            overflow: hidden;
            position: relative;
        }
        
        .server-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #0ff, #00ff88);
            opacity: 0;
            transition: opacity 0.25s;
        }
        
        .server-card:hover {
            border-color: rgba(0, 255, 255, 0.4);
            background: linear-gradient(135deg, rgba(20, 25, 50, 0.95), rgba(15, 20, 40, 0.98));
            transform: translateX(3px);
            box-shadow: 0 4px 15px rgba(0, 255, 255, 0.1);
        }
        
        .server-card:hover::before {
            opacity: 1;
        }
        
        .server-card.full {
            opacity: 0.6;
        }
        
        .server-card.full::before {
            background: linear-gradient(180deg, #ff4444, #ff6666);
        }
        
        .server-card-content {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            gap: 12px;
        }
        
        /* Server status indicator */
        .server-status-dot {
            width: 8px;
            height: 8px;
            background: #00ff66;
            border-radius: 50%;
            flex-shrink: 0;
            animation: dotPulse 2s ease-in-out infinite;
            box-shadow: 0 0 6px rgba(0, 255, 100, 0.6);
        }
        
        .server-card.full .server-status-dot {
            background: #ff4444;
            box-shadow: 0 0 6px rgba(255, 68, 68, 0.6);
        }
        
        @keyframes dotPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(0.85); opacity: 0.7; }
        }
        
        /* Server main info */
        .server-main-info {
            flex: 1;
            min-width: 0;
        }
        
        .server-name {
            font-size: 13px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .server-details {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.5);
        }
        
        .server-detail {
            display: flex;
            align-items: center;
            gap: 3px;
        }
        
        .server-detail-icon {
            font-size: 10px;
        }
        
        .server-detail-value {
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* Server stats on the right */
        .server-right-stats {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        
        /* Timer badge */
        .server-timer {
            display: flex;
            align-items: center;
            gap: 4px;
            background: rgba(255, 255, 255, 0.05);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            color: #fff;
            font-family: 'Orbitron', monospace;
        }
        
        .server-timer-icon {
            font-size: 10px;
            color: rgba(0, 255, 255, 0.7);
        }
        
        /* Player count */
        .server-players {
            display: flex;
            align-items: center;
            gap: 4px;
            background: rgba(0, 255, 100, 0.1);
            color: #00ff66;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            border: 1px solid rgba(0, 255, 100, 0.2);
        }
        
        .server-players.full {
            background: rgba(255, 68, 68, 0.1);
            color: #ff6666;
            border-color: rgba(255, 68, 68, 0.2);
        }
        
        .server-players-icon {
            font-size: 10px;
        }
        
        /* Status badge */
        .server-status-badge {
            display: flex;
            align-items: center;
            gap: 3px;
            padding: 4px 6px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        .server-status-badge.in-game {
            background: rgba(0, 255, 255, 0.1);
            color: #0ff;
        }
        
        .server-status-badge.voting {
            background: rgba(255, 200, 0, 0.1);
            color: #ffcc00;
        }
        
        /* Server card - second row for maps/bonuses */
        .server-card-row2 {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4px 12px 6px 12px;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.03);
            gap: 10px;
        }
        
        .server-maps-row {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .server-maps-label {
            font-size: 9px;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .server-map-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
            font-size: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .server-map-badge.active {
            background: rgba(0, 255, 255, 0.15);
            border-color: rgba(0, 255, 255, 0.3);
        }
        
        .server-bonuses-row {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .server-bonus-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
            font-size: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .server-bonus-badge.speed { color: #00ffff; border-color: rgba(0, 255, 255, 0.3); }
        .server-bonus-badge.damage { color: #ff4444; border-color: rgba(255, 68, 68, 0.3); }
        .server-bonus-badge.rapidfire { color: #ffaa00; border-color: rgba(255, 170, 0, 0.3); }
        .server-bonus-badge.shield { color: #00ff88; border-color: rgba(0, 255, 136, 0.3); }
        .server-bonus-badge.jumps { color: #ff66ff; border-color: rgba(255, 102, 255, 0.3); }
        
        /* Hide old elements */
        .server-header,
        .server-header,
        .server-stats-grid,
        .server-footer,
        .server-players-bar,
        .server-maps-list,
        .server-info {
            display: none;
        }
        
        .server-status {
            display: none;
        }
        
        .server-players-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #00ff66, #00ffaa);
            border-radius: 2px;
            transition: width 0.3s ease;
        }
        
        .server-players-bar-fill.warning {
            background: linear-gradient(90deg, #ffaa00, #ffcc00);
        }
        
        .server-players-bar-fill.full {
            background: linear-gradient(90deg, #ff4444, #ff6666);
        }
        
        .server-loading {
            color: #888;
            text-align: center;
            padding: 20px;
        }
        
        .hub-footer {
            margin-top: 20px;
            color: #666;
            font-size: 12px;
        }
        
        /* Daily Reward Styles */
        .daily-reward-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
            border: none;
            border-radius: 8px;
            color: #000;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 10px;
            text-shadow: 0 1px 0 rgba(255,255,255,0.3);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        }
        
        .daily-reward-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
        }
        
        .daily-reward-btn.claimed {
            background: linear-gradient(135deg, #555 0%, #333 100%);
            color: #888;
            cursor: default;
            box-shadow: none;
        }
        
        .daily-reward-btn.claimed:hover {
            transform: none;
        }
        
        .daily-reward-btn .reward-icon {
            font-size: 18px;
        }
        
        .daily-reward-btn .reward-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1.2;
        }
        
        .daily-reward-btn .reward-amount {
            font-size: 16px;
        }
        
        .daily-reward-btn .reward-streak {
            font-size: 10px;
            opacity: 0.8;
        }
        
        /* Daily Reward Modal */
        .daily-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            backdrop-filter: blur(5px);
        }
        
        .daily-modal {
            background: linear-gradient(145deg, rgba(20, 20, 40, 0.98), rgba(10, 10, 25, 0.98));
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 16px;
            padding: 25px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            animation: modalPop 0.3s ease-out;
        }
        
        @keyframes modalPop {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .daily-modal-title {
            font-family: 'Orbitron', monospace;
            font-size: 24px;
            color: #ffd700;
            margin-bottom: 8px;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }
        
        .daily-modal-subtitle {
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            margin-bottom: 20px;
        }
        
        .daily-rewards-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            margin-bottom: 20px;
        }
        
        .daily-day {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 8px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transition: all 0.2s;
        }
        
        .daily-day.current {
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.15);
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
        }
        
        .daily-day.claimed {
            background: rgba(0, 255, 100, 0.1);
            border-color: rgba(0, 255, 100, 0.3);
        }
        
        .daily-day.claimed .day-check {
            display: block;
        }
        
        .daily-day .day-number {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
        }
        
        .daily-day .day-reward {
            font-size: 14px;
            font-weight: bold;
            color: #ffd700;
        }
        
        .daily-day .day-check {
            display: none;
            color: #0f0;
            font-size: 12px;
        }
        
        .daily-claim-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
            border: none;
            border-radius: 10px;
            color: #000;
            font-weight: bold;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 15px;
        }
        
        .daily-claim-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
        }
        
        .daily-claim-btn:disabled {
            background: linear-gradient(135deg, #444 0%, #333 100%);
            color: #666;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .daily-timer {
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
        }
        
        .daily-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
        }
        
        .daily-close-btn:hover {
            color: #fff;
        }
        
        .daily-modal-container {
            position: relative;
        }
        
        /* Reward animation */
        .reward-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(145deg, rgba(255, 215, 0, 0.95), rgba(255, 140, 0, 0.95));
            color: #000;
            padding: 30px 50px;
            border-radius: 15px;
            font-size: 28px;
            font-weight: bold;
            z-index: 10001;
            animation: rewardPop 0.5s ease-out, rewardFade 0.5s ease-in 1.5s forwards;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
        }
        
        @keyframes rewardPop {
            0% { transform: translate(-50%, -50%) scale(0); }
            50% { transform: translate(-50%, -50%) scale(1.2); }
            100% { transform: translate(-50%, -50%) scale(1); }
        }
        
        @keyframes rewardFade {
            to { opacity: 0; transform: translate(-50%, -100%) scale(0.8); }
        }
        
        /* Quick Actions */
        .quick-actions {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 10px;
            padding: 15px;
        }
        
        .quick-actions-title {
            color: #0ff;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }
        
        /* Create Server Button */
        .create-server-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #0ff 0%, #00a8a8 100%);
            border: none;
            border-radius: 8px;
            color: #000;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .create-server-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        }
        
        /* Daily Reward Button */
        .daily-reward-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
            border: none;
            border-radius: 8px;
            color: #000;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 8px;
            animation: dailyPulse 2s infinite;
        }
        
        .daily-reward-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }
        
        .daily-reward-btn.claimed {
            background: linear-gradient(135deg, #555 0%, #333 100%);
            animation: none;
            cursor: default;
            opacity: 0.7;
        }
        
        @keyframes dailyPulse {
            0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
            50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
        }
        
        /* Buy Coins Button */
        .buy-coins-btn {
            background: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
            border: none;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            color: #000;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin-left: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            line-height: 1;
        }
        
        .buy-coins-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        }
        
        /* Buy Coins Modal Content */
        .buy-coins-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border: 2px solid #00ff00;
            border-radius: 20px;
            padding: 25px 30px;
            text-align: center;
            position: relative;
            box-shadow: 0 0 50px rgba(0, 255, 0, 0.3);
            max-width: 500px;
            width: 90%;
            animation: modalAppear 0.3s ease-out;
        }
        
        /* Daily Reward Modal */
        .daily-reward-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        
        .daily-reward-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border: 2px solid #ffd700;
            border-radius: 20px;
            padding: 30px 40px;
            text-align: center;
            position: relative;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
            min-width: 350px;
            animation: modalAppear 0.3s ease-out;
        }
        
        @keyframes modalAppear {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .daily-reward-close {
            position: absolute;
            top: 15px;
            right: 20px;
            color: #888;
            font-size: 24px;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .daily-reward-close:hover {
            color: #fff;
        }
        
        .daily-reward-title {
            font-size: 28px;
            font-weight: bold;
            color: #ffd700;
            margin-bottom: 25px;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }
        
        .daily-streak-container {
            margin-bottom: 25px;
        }
        
        .daily-streak-label {
            color: #aaa;
            font-size: 14px;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .daily-streak-days {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .streak-day {
            width: 70px;
            padding: 10px 5px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid #333;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
        }
        
        .streak-day-number {
            font-size: 11px;
            color: #888;
            text-transform: uppercase;
            font-weight: bold;
        }
        
        .streak-day-icon {
            font-size: 24px;
            opacity: 0.5;
        }
        
        .streak-day-amount {
            font-size: 14px;
            font-weight: bold;
            color: #666;
        }
        
        .streak-day.completed {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
            border-color: #ffd700;
        }
        
        .streak-day.completed .streak-day-number {
            color: #ffd700;
        }
        
        .streak-day.completed .streak-day-icon {
            opacity: 1;
        }
        
        .streak-day.completed .streak-day-amount {
            color: #ffd700;
        }
        
        .streak-day.completed::after {
            content: '✓';
            position: absolute;
            top: -5px;
            right: -5px;
            background: #00ff00;
            color: #000;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        .streak-day.completed {
            position: relative;
        }
        
        .streak-day.current {
            border-color: #ffd700;
            animation: currentDay 1.5s infinite;
            background: rgba(255, 215, 0, 0.1);
        }
        
        .streak-day.current .streak-day-number {
            color: #ffd700;
        }
        
        .streak-day.current .streak-day-icon {
            opacity: 1;
            animation: iconBounce 1s infinite;
        }
        
        .streak-day.current .streak-day-amount {
            color: #ffd700;
        }
        
        .streak-day.special {
            background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
            border-color: #8a2be2;
        }
        
        .streak-day.special .streak-day-amount {
            color: #8a2be2;
        }
        
        .streak-day.special.completed {
            border-color: #ffd700;
        }
        
        .streak-day.special.current {
            border-color: #ffd700;
        }
        
        @keyframes currentDay {
            0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
            50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
        }
        
        @keyframes iconBounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }
        
        .daily-reward-amount {
            font-size: 48px;
            font-weight: bold;
            color: #ffd700;
            margin: 25px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .daily-reward-amount .coin-icon {
            font-size: 40px;
        }
        
        .daily-reward-amount .amount {
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }
        
        .daily-claim-btn {
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
            border: none;
            border-radius: 10px;
            padding: 15px 50px;
            font-size: 18px;
            font-weight: bold;
            color: #000;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.2s;
            animation: claimPulse 2s infinite;
        }
        
        .daily-claim-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
        }
        
        .daily-claim-btn:disabled {
            background: #555;
            animation: none;
            cursor: default;
        }
        
        @keyframes claimPulse {
            0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
            50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
        }
        
        .daily-next-claim {
            color: #888;
            font-size: 14px;
            margin-top: 15px;
        }
        
        .daily-next-claim span {
            color: #0ff;
            font-weight: bold;
        }
        
        /* Hub Stats */
        .hub-stats {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 10px;
            padding: 15px;
        }
        
        .hub-stats-title {
            color: #0ff;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        
        .stat-item {
            background: rgba(0, 255, 255, 0.05);
            border-radius: 6px;
            padding: 10px;
            text-align: center;
        }
        
        .stat-value {
            font-size: 20px;
            font-weight: bold;
            color: #fff;
        }
        
        .stat-label {
            font-size: 10px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        /* Leaderboard Section */
        .leaderboard-section {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
        }
        
        .leaderboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .leaderboard-title {
            color: #ffd700;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .leaderboard-tabs {
            display: flex;
            gap: 5px;
        }
        
        .leaderboard-tab {
            background: rgba(255, 215, 0, 0.1);
            border: 1px solid rgba(255, 215, 0, 0.3);
            color: #aaa;
            padding: 4px 10px;
            font-size: 10px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
            text-transform: uppercase;
        }
        
        .leaderboard-tab:hover {
            background: rgba(255, 215, 0, 0.2);
            color: #ffd700;
        }
        
        .leaderboard-tab.active {
            background: rgba(255, 215, 0, 0.3);
            border-color: #ffd700;
            color: #ffd700;
        }
        
        .leaderboard-list {
            max-height: 200px;
            overflow-y: auto;
        }
        
        .leaderboard-list::-webkit-scrollbar {
            width: 6px;
        }
        
        .leaderboard-list::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 3px;
        }
        
        .leaderboard-list::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 0, 0.3);
            border-radius: 3px;
        }
        
        .leaderboard-entry {
            display: flex;
            align-items: center;
            padding: 8px 10px;
            background: rgba(255, 215, 0, 0.05);
            border-radius: 5px;
            margin-bottom: 4px;
        }
        
        .leaderboard-entry:nth-child(1) {
            background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent);
            border-left: 3px solid #ffd700;
        }
        
        .leaderboard-entry:nth-child(2) {
            background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
            border-left: 3px solid #c0c0c0;
        }
        
        .leaderboard-entry:nth-child(3) {
            background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
            border-left: 3px solid #cd7f32;
        }
        
        .leaderboard-rank {
            width: 25px;
            font-size: 12px;
            font-weight: bold;
            color: #888;
        }
        
        .leaderboard-entry:nth-child(1) .leaderboard-rank { color: #ffd700; }
        .leaderboard-entry:nth-child(2) .leaderboard-rank { color: #c0c0c0; }
        .leaderboard-entry:nth-child(3) .leaderboard-rank { color: #cd7f32; }
        
        .leaderboard-name {
            flex: 1;
            font-size: 12px;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .leaderboard-kills {
            font-size: 12px;
            font-weight: bold;
            color: #ff4444;
        }
        
        .leaderboard-kills::before {
            content: '💀 ';
        }
        
        .leaderboard-level {
            font-size: 10px;
            color: #0ff;
            background: rgba(0, 255, 255, 0.15);
            padding: 2px 6px;
            border-radius: 10px;
            margin-right: 8px;
            min-width: 32px;
            text-align: center;
        }
        
        .leaderboard-empty {
            text-align: center;
            color: #666;
            font-size: 12px;
            padding: 20px;
        }
        
        .leaderboard-loading {
            text-align: center;
            color: #ffd700;
            font-size: 12px;
            padding: 20px;
        }
        
        .leaderboard-login-notice {
            text-align: center;
            color: #ff9900;
            font-size: 11px;
            padding: 10px;
            background: rgba(255, 153, 0, 0.1);
            border: 1px solid rgba(255, 153, 0, 0.3);
            border-radius: 5px;
            margin-top: 10px;
        }
        
        .leaderboard-reset-timer {
            text-align: center;
            color: #888;
            font-size: 11px;
            padding: 8px;
            margin-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .leaderboard-reset-timer .timer-label {
            color: #666;
        }
        
        .leaderboard-reset-timer .timer-value {
            color: #0ff;
            font-weight: bold;
            font-family: monospace;
        }
        
        /* Hub Main Tabs */
        .hub-main-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 15px;
            border-bottom: 2px solid rgba(0, 255, 255, 0.3);
        }
        
        .hub-main-tab {
            flex: 1;
            background: rgba(0, 255, 255, 0.05);
            border: none;
            color: #888;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
        }
        
        .hub-main-tab:hover {
            background: rgba(0, 255, 255, 0.1);
            color: #0ff;
        }
        
        .hub-main-tab.active {
            background: rgba(0, 255, 255, 0.15);
            color: #0ff;
            border-bottom-color: #0ff;
        }
        
        .hub-main-tab-content {
            display: none;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        
        .hub-main-tab-content.active {
            display: flex;
            flex-direction: column;
        }
        
        /* Coins display */
        .coins-display {
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.1));
            border: 1px solid rgba(255, 215, 0, 0.4);
            border-radius: 20px;
            padding: 6px 14px;
            font-weight: bold;
            color: #ffd700;
            font-size: 14px;
        }
        
        .coins-icon {
            font-size: 16px;
        }
        
        /* Shop Tab */
        .shop-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        
        .shop-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 255, 255, 0.2);
        }
        
        .shop-title {
            color: #0ff;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .shop-categories {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
        }
        
        .shop-category {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 6px;
            padding: 8px 16px;
            color: #888;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
        }
        
        .shop-category:hover {
            border-color: #0ff;
            color: #0ff;
        }
        
        .shop-category.active {
            background: rgba(0, 255, 255, 0.2);
            border-color: #0ff;
            color: #0ff;
        }
        
        .shop-buy-coins-btn {
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            color: #000;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
            margin-left: auto;
        }
        
        .shop-buy-coins-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        }
        
        .shop-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
            overflow-y: auto;
            flex: 1;
            min-height: 0;
            padding-right: 5px;
        }
        
        /* Coins Shop Styles */
        .coins-shop-intro {
            text-align: center;
            color: #aaa;
            margin-bottom: 20px;
            font-size: 14px;
        }
        
        .coins-packs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .coin-pack {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(30, 30, 50, 0.6) 100%);
            border: 2px solid rgba(100, 100, 100, 0.4);
            border-radius: 15px;
            padding: 20px 15px;
            text-align: center;
            transition: all 0.3s;
            position: relative;
        }
        
        .coin-pack:hover {
            transform: translateY(-5px);
            border-color: #0ff;
            box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
        }
        
        .coin-pack.popular {
            border-color: #ffd700;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(30, 30, 50, 0.6) 100%);
        }
        
        .coin-pack.best-value {
            border-color: #00ff00;
            background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(30, 30, 50, 0.6) 100%);
        }
        
        .coin-pack-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
            color: #000;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .coin-pack.best-value .coin-pack-badge {
            background: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
        }
        
        .coin-pack-amount {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 5px;
        }
        
        .coin-pack-icon {
            font-size: 28px;
        }
        
        .coin-pack-value {
            font-size: 32px;
            font-weight: bold;
            color: #ffd700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        .coin-pack-bonus {
            color: #00ff00;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .coin-pack-name {
            color: #888;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
        }
        
        .coin-pack-btn {
            background: linear-gradient(135deg, #0ff 0%, #0088ff 100%);
            border: none;
            border-radius: 8px;
            padding: 12px 25px;
            color: #000;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
        }
        
        .coin-pack-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
        }
        
        .coin-pack-btn:disabled {
            background: #444;
            cursor: not-allowed;
            transform: none;
        }
        
        .coins-shop-footer {
            text-align: center;
            color: #666;
            margin-top: 20px;
            font-size: 12px;
        }

        /* Buy Coins Modal - Mobile Responsive */
        @media (max-width: 600px) {
            .buy-coins-content {
                padding: 20px 15px;
                max-width: 95%;
                width: 95%;
                max-height: 90vh;
                overflow-y: auto;
            }
            
            .buy-coins-content .daily-reward-title {
                font-size: 22px;
                margin-bottom: 15px;
            }
            
            .coins-shop-intro {
                font-size: 12px;
                margin-bottom: 15px;
            }
            
            .coins-shop-intro p {
                margin: 0;
            }
            
            .coins-packs-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                max-width: 100%;
            }
            
            .coin-pack {
                padding: 15px 10px;
                border-radius: 12px;
            }
            
            .coin-pack-badge {
                font-size: 8px;
                padding: 3px 8px;
                top: -10px;
            }
            
            .coin-pack-icon {
                font-size: 22px;
            }
            
            .coin-pack-value {
                font-size: 24px;
            }
            
            .coin-pack-bonus {
                font-size: 10px;
            }
            
            .coin-pack-name {
                font-size: 10px;
                margin-bottom: 10px;
            }
            
            .coin-pack-btn {
                padding: 10px 15px;
                font-size: 14px;
            }
            
            .coins-shop-footer {
                margin-top: 15px;
                font-size: 11px;
            }
        }
        
        /* Buy Coins Modal - Very small screens */
        @media (max-width: 380px) {
            .buy-coins-content {
                padding: 15px 10px;
            }
            
            .buy-coins-content .daily-reward-title {
                font-size: 18px;
            }
            
            .coins-packs-grid {
                gap: 8px;
            }
            
            .coin-pack {
                padding: 12px 8px;
            }
            
            .coin-pack-icon {
                font-size: 18px;
            }
            
            .coin-pack-value {
                font-size: 20px;
            }
            
            .coin-pack-btn {
                padding: 8px 10px;
                font-size: 12px;
            }
        }
        
        /* Buy Coins Modal - Mobile Landscape */
        @media (max-height: 500px) and (orientation: landscape) {
            .buy-coins-content {
                padding: 15px 20px;
                max-height: 95vh;
                overflow-y: auto;
            }
            
            .buy-coins-content .daily-reward-title {
                font-size: 18px;
                margin-bottom: 10px;
            }
            
            .coins-shop-intro {
                font-size: 11px;
                margin-bottom: 10px;
            }
            
            .coins-packs-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 10px;
            }
            
            .coin-pack {
                padding: 10px 8px;
            }
            
            .coin-pack-badge {
                font-size: 7px;
                padding: 2px 6px;
                top: -8px;
            }
            
            .coin-pack-amount {
                margin-bottom: 3px;
            }
            
            .coin-pack-icon {
                font-size: 18px;
            }
            
            .coin-pack-value {
                font-size: 20px;
            }
            
            .coin-pack-bonus {
                font-size: 9px;
                margin-bottom: 3px;
            }
            
            .coin-pack-name {
                font-size: 9px;
                margin-bottom: 8px;
            }
            
            .coin-pack-btn {
                padding: 8px 10px;
                font-size: 12px;
            }
            
            .coins-shop-footer {
                margin-top: 10px;
                font-size: 10px;
            }
            
            .daily-reward-close {
                top: 10px;
                right: 15px;
                font-size: 20px;
            }
        }

        .shop-item {
            background: rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(100, 100, 100, 0.3);
            border-radius: 10px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        .shop-item:hover {
            border-color: #0ff;
            transform: translateY(-2px);
        }
        
        .shop-item.owned {
            border-color: rgba(0, 255, 100, 0.5);
            background: rgba(0, 255, 100, 0.1);
        }
        
        .shop-item.equipped {
            border-color: #0ff;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            background: rgba(0, 255, 255, 0.15);
        }
        
        .shop-item.locked {
            opacity: 0.6;
        }
        
        .skin-preview {
            width: 70px;
            height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            margin-bottom: 5px;
        }
        
        .skin-preview-body {
            width: 32px;
            height: 52px;
            border-radius: 6px;
            position: relative;
            transition: all 0.3s;
        }
        
        .skin-preview-head {
            width: 26px;
            height: 26px;
            border-radius: 5px;
            position: absolute;
            top: 5px;
            left: 50%;
            transform: translateX(-50%);
            transition: all 0.3s;
        }
        
        /* Glow effects for rare+ skins */
        .skin-preview.has-glow .skin-preview-body,
        .skin-preview.has-glow .skin-preview-head {
            box-shadow: 0 0 15px var(--glow-color, currentColor);
        }
        
        .skin-preview.glow-pulse .skin-preview-body,
        .skin-preview.glow-pulse .skin-preview-head {
            animation: skinGlowPulse 2s ease-in-out infinite;
        }
        
        @keyframes skinGlowPulse {
            0%, 100% { filter: brightness(1); box-shadow: 0 0 10px var(--glow-color); }
            50% { filter: brightness(1.3); box-shadow: 0 0 25px var(--glow-color), 0 0 40px var(--glow-color); }
        }
        
        /* Metallic shine effect */
        .skin-preview.metallic .skin-preview-body,
        .skin-preview.metallic .skin-preview-head {
            background-image: linear-gradient(135deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.4) 45%, 
                rgba(255,255,255,0) 50%,
                rgba(255,255,255,0.2) 80%,
                rgba(255,255,255,0) 100%);
            background-size: 200% 200%;
            animation: metallicShine 3s ease-in-out infinite;
        }
        
        @keyframes metallicShine {
            0% { background-position: 200% 200%; }
            100% { background-position: -200% -200%; }
        }
        
        /* Rainbow animated skin */
        .skin-preview.rainbow .skin-preview-body,
        .skin-preview.rainbow .skin-preview-head {
            animation: rainbowShift 3s linear infinite;
        }
        
        @keyframes rainbowShift {
            0% { filter: hue-rotate(0deg); }
            100% { filter: hue-rotate(360deg); }
        }
        
        /* Particle effects container */
        .skin-preview .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }
        
        /* Fire particles */
        .skin-preview.fire-particles::before {
            content: '🔥';
            position: absolute;
            font-size: 10px;
            animation: fireFloat 1s ease-out infinite;
            opacity: 0.8;
        }
        
        .skin-preview.fire-particles::after {
            content: '🔥';
            position: absolute;
            font-size: 8px;
            animation: fireFloat 1.5s ease-out infinite 0.5s;
            left: 60%;
            opacity: 0.6;
        }
        
        @keyframes fireFloat {
            0% { bottom: 30%; opacity: 0.8; transform: translateX(0); }
            100% { bottom: 100%; opacity: 0; transform: translateX(10px); }
        }
        
        /* Star/sparkle particles */
        .skin-preview.sparkle-particles::before,
        .skin-preview.sparkle-particles::after {
            content: '✦';
            position: absolute;
            color: #fff;
            font-size: 8px;
            animation: sparkleFloat 2s ease-in-out infinite;
        }
        
        .skin-preview.sparkle-particles::after {
            animation-delay: 1s;
            left: 70%;
        }
        
        @keyframes sparkleFloat {
            0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
            50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
        }
        
        /* Void/shadow particles */
        .skin-preview.void-particles::before {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            background: radial-gradient(circle, rgba(102, 0, 204, 0.3) 0%, transparent 70%);
            animation: voidPulse 2s ease-in-out infinite;
            border-radius: 50%;
        }
        
        @keyframes voidPulse {
            0%, 100% { transform: scale(0.8); opacity: 0.5; }
            50% { transform: scale(1.3); opacity: 0.8; }
        }
        
        /* Cosmic aura */
        .skin-preview.cosmic-aura::before {
            content: '';
            position: absolute;
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, 
                rgba(255, 0, 255, 0.4) 0%, 
                rgba(0, 255, 255, 0.2) 40%,
                transparent 70%);
            animation: cosmicRotate 4s linear infinite;
            border-radius: 50%;
        }
        
        @keyframes cosmicRotate {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }
        
        /* Holy/light aura */
        .skin-preview.holy-aura::before {
            content: '';
            position: absolute;
            width: 50px;
            height: 50px;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, transparent 60%);
            animation: holyPulse 1.5s ease-in-out infinite;
            border-radius: 50%;
        }
        
        @keyframes holyPulse {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.15); }
        }
        
        /* Dark aura */
        .skin-preview.dark-aura::before {
            content: '';
            position: absolute;
            width: 55px;
            height: 55px;
            background: radial-gradient(circle, rgba(50, 0, 100, 0.6) 0%, transparent 60%);
            animation: darkPulse 2s ease-in-out infinite;
            border-radius: 50%;
            filter: blur(3px);
        }
        
        @keyframes darkPulse {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 0.4; }
        }
        
        /* ═══════════════════════════════════════════════════════════════
           SKIN SYMBOLS & PATTERNS
           ═══════════════════════════════════════════════════════════════ */
        
        .skin-symbol {
            position: absolute;
            font-size: 14px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-weight: bold;
            z-index: 5;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        
        .symbol-glow {
            filter: drop-shadow(0 0 3px currentColor);
        }
        
        .symbol-pulse {
            animation: symbolPulse 1.5s ease-in-out infinite;
        }
        
        @keyframes symbolPulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
            50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
        }
        
        .symbol-rainbow {
            animation: symbolRainbow 2s linear infinite;
        }
        
        @keyframes symbolRainbow {
            0% { filter: drop-shadow(0 0 5px #ff0000) hue-rotate(0deg); }
            100% { filter: drop-shadow(0 0 5px #ff0000) hue-rotate(360deg); }
        }
        
        /* Pattern overlays */
        .pattern-stripes .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 3px,
                rgba(0,0,0,0.15) 3px,
                rgba(0,0,0,0.15) 6px
            );
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-camo .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse at 20% 30%, rgba(0,0,0,0.3) 0%, transparent 40%),
                radial-gradient(ellipse at 70% 60%, rgba(0,0,0,0.25) 0%, transparent 35%),
                radial-gradient(ellipse at 40% 80%, rgba(0,0,0,0.2) 0%, transparent 30%);
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-waves .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 4px,
                rgba(255,255,255,0.1) 4px,
                rgba(255,255,255,0.1) 6px
            );
            border-radius: inherit;
            animation: waveMove 2s linear infinite;
            pointer-events: none;
        }
        
        @keyframes waveMove {
            0% { background-position-y: 0; }
            100% { background-position-y: 20px; }
        }
        
        .pattern-cracks .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                linear-gradient(45deg, transparent 45%, rgba(255,100,0,0.4) 47%, transparent 49%),
                linear-gradient(-30deg, transparent 40%, rgba(255,100,0,0.3) 42%, transparent 44%),
                linear-gradient(70deg, transparent 55%, rgba(255,100,0,0.35) 57%, transparent 59%);
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-stars .skin-preview-body::after {
            content: '✧ ✦';
            position: absolute;
            font-size: 6px;
            color: rgba(255,255,255,0.4);
            top: 30%;
            left: 20%;
            letter-spacing: 5px;
            pointer-events: none;
        }
        
        .pattern-gem .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%),
                linear-gradient(-135deg, transparent 50%, rgba(255,255,255,0.15) 100%);
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-royal .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 8px,
                    rgba(139,69,19,0.2) 8px,
                    rgba(139,69,19,0.2) 10px
                );
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-armor .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 6px,
                    rgba(0,0,0,0.15) 6px,
                    rgba(0,0,0,0.15) 8px
                );
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-chrome .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(
                135deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.5) 25%,
                rgba(255,255,255,0) 50%,
                rgba(255,255,255,0.3) 75%,
                rgba(255,255,255,0) 100%
            );
            background-size: 200% 200%;
            animation: chromeShine 2s linear infinite;
            border-radius: inherit;
            pointer-events: none;
        }
        
        @keyframes chromeShine {
            0% { background-position: 200% 200%; }
            100% { background-position: -200% -200%; }
        }
        
        .pattern-drip .skin-preview-body::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 30%;
            width: 6px;
            height: 10px;
            background: #ff2222;
            border-radius: 50%;
            animation: dripFall 2s ease-in infinite;
            pointer-events: none;
        }
        
        @keyframes dripFall {
            0%, 80% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(15px); }
        }
        
        .pattern-lightning .skin-preview-body::after {
            content: '⚡';
            position: absolute;
            font-size: 8px;
            top: 10%;
            right: -2px;
            color: #fff;
            animation: lightningFlash 0.5s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes lightningFlash {
            0%, 90%, 100% { opacity: 0; }
            92%, 98% { opacity: 1; }
        }
        
        .pattern-flames .skin-preview-body::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            right: 0;
            height: 15px;
            background: linear-gradient(to top, 
                rgba(255,100,0,0.8) 0%,
                rgba(255,200,0,0.5) 50%,
                transparent 100%);
            border-radius: 0 0 6px 6px;
            animation: flameFlicker 0.3s ease-in-out infinite alternate;
            pointer-events: none;
        }
        
        @keyframes flameFlicker {
            0% { height: 12px; opacity: 0.8; }
            100% { height: 18px; opacity: 1; }
        }
        
        .pattern-frost .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4) 0%, transparent 20%),
                radial-gradient(circle at 80% 30%, rgba(200,255,255,0.3) 0%, transparent 15%),
                radial-gradient(circle at 30% 70%, rgba(255,255,255,0.35) 0%, transparent 18%),
                radial-gradient(circle at 70% 80%, rgba(200,255,255,0.25) 0%, transparent 12%);
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-hazard .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 4px,
                rgba(0,0,0,0.3) 4px,
                rgba(0,0,0,0.3) 8px
            );
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-circuit .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                linear-gradient(90deg, transparent 48%, rgba(0,255,255,0.3) 49%, rgba(0,255,255,0.3) 51%, transparent 52%),
                linear-gradient(0deg, transparent 48%, rgba(0,255,255,0.3) 49%, rgba(0,255,255,0.3) 51%, transparent 52%);
            background-size: 10px 10px;
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-thunder .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                linear-gradient(170deg, transparent 40%, rgba(255,255,255,0.6) 42%, transparent 44%),
                linear-gradient(150deg, transparent 55%, rgba(255,215,0,0.4) 57%, transparent 59%);
            border-radius: inherit;
            animation: thunderFlash 2s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes thunderFlash {
            0%, 85%, 100% { opacity: 0; }
            87%, 89%, 93%, 95% { opacity: 1; }
            88%, 94% { opacity: 0; }
        }
        
        .pattern-prism .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(
                135deg,
                rgba(255,0,0,0.2) 0%,
                rgba(255,127,0,0.2) 14%,
                rgba(255,255,0,0.2) 28%,
                rgba(0,255,0,0.2) 42%,
                rgba(0,0,255,0.2) 57%,
                rgba(75,0,130,0.2) 71%,
                rgba(148,0,211,0.2) 85%,
                rgba(255,0,0,0.2) 100%
            );
            background-size: 300% 300%;
            animation: prismShift 3s linear infinite;
            border-radius: inherit;
            pointer-events: none;
        }
        
        @keyframes prismShift {
            0% { background-position: 0% 0%; }
            100% { background-position: 100% 100%; }
        }
        
        .pattern-galaxy .skin-preview-body::after {
            content: '✦ ★ ✧';
            position: absolute;
            font-size: 5px;
            color: rgba(255,255,255,0.6);
            top: 20%;
            left: 10%;
            letter-spacing: 3px;
            animation: starsSparkle 2s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes starsSparkle {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 1; }
        }
        
        .pattern-scales .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse 8px 6px at 25% 25%, rgba(255,69,0,0.3) 50%, transparent 50%),
                radial-gradient(ellipse 8px 6px at 75% 25%, rgba(255,69,0,0.25) 50%, transparent 50%),
                radial-gradient(ellipse 8px 6px at 50% 50%, rgba(255,69,0,0.3) 50%, transparent 50%),
                radial-gradient(ellipse 8px 6px at 25% 75%, rgba(255,69,0,0.25) 50%, transparent 50%),
                radial-gradient(ellipse 8px 6px at 75% 75%, rgba(255,69,0,0.3) 50%, transparent 50%);
            border-radius: inherit;
            pointer-events: none;
        }
        
        .pattern-feather .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                linear-gradient(160deg, rgba(255,215,0,0.4) 0%, transparent 30%),
                linear-gradient(-160deg, rgba(255,99,71,0.3) 0%, transparent 30%);
            border-radius: inherit;
            animation: featherGlow 2s ease-in-out infinite alternate;
            pointer-events: none;
        }
        
        @keyframes featherGlow {
            0% { filter: brightness(1); }
            100% { filter: brightness(1.3); }
        }
        
        .pattern-diamond .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                linear-gradient(60deg, transparent 40%, rgba(255,255,255,0.6) 45%, transparent 50%),
                linear-gradient(-60deg, transparent 40%, rgba(255,255,255,0.4) 45%, transparent 50%),
                linear-gradient(120deg, transparent 40%, rgba(200,255,255,0.5) 45%, transparent 50%);
            background-size: 100% 100%;
            animation: diamondSparkle 1.5s ease-in-out infinite;
            border-radius: inherit;
            pointer-events: none;
        }
        
        @keyframes diamondSparkle {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }
        
        .pattern-shadow .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: -5px;
            background: radial-gradient(circle, transparent 40%, rgba(102,0,255,0.4) 100%);
            border-radius: inherit;
            animation: shadowPulse 2s ease-in-out infinite;
            pointer-events: none;
            z-index: -1;
        }
        
        @keyframes shadowPulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }
        
        .pattern-holy .skin-preview-body::after {
            content: '✦';
            position: absolute;
            font-size: 20px;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255,215,0,0.8);
            animation: haloGlow 1.5s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes haloGlow {
            0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
            50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
        }
        
        .pattern-cosmic .skin-preview-body::after {
            content: '';
            position: absolute;
            inset: -10px;
            background: 
                radial-gradient(circle at 30% 30%, rgba(255,0,255,0.4) 0%, transparent 30%),
                radial-gradient(circle at 70% 70%, rgba(0,255,255,0.4) 0%, transparent 30%),
                radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 0%, transparent 50%);
            animation: cosmicSwirl 4s linear infinite;
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
        }
        
        @keyframes cosmicSwirl {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Rarity-based card borders */
        .shop-item.rarity-uncommon {
            border-color: rgba(0, 255, 0, 0.4);
        }
        
        .shop-item.rarity-rare {
            border-color: rgba(0, 170, 255, 0.5);
        }
        
        .shop-item.rarity-epic {
            border-color: rgba(180, 0, 255, 0.5);
            box-shadow: inset 0 0 20px rgba(180, 0, 255, 0.1);
        }
        
        .shop-item.rarity-legendary {
            border-color: rgba(255, 215, 0, 0.6);
            box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.15), 0 0 10px rgba(255, 215, 0, 0.2);
        }

        /* Ultimate tier special border */
        .shop-item.ultimate {
            border: 2px solid transparent;
            background: linear-gradient(#1a1a2e, #1a1a2e) padding-box,
                        linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff) border-box;
            animation: ultimateBorder 3s linear infinite;
        }
        
        @keyframes ultimateBorder {
            0% { filter: hue-rotate(0deg); }
            100% { filter: hue-rotate(360deg); }
        }
        
        .shop-item.ultimate .skin-name {
            background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
            background-size: 200% 100%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: ultimateText 2s linear infinite;
        }
        
        @keyframes ultimateText {
            0% { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }
        
        .skin-name {
            font-size: 11px;
            color: #fff;
            text-align: center;
            font-weight: bold;
        }
        
        .skin-description {
            font-size: 9px;
            color: #888;
            text-align: center;
            margin-top: 2px;
            font-style: italic;
        }
        
        .skin-price {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: #ffd700;
        }
        
        .skin-price.owned {
            color: #0f6;
        }
        
        .skin-rarity {
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 2px 6px;
            border-radius: 3px;
            margin-top: 4px;
        }
        
        .rarity-common { background: rgba(150, 150, 150, 0.3); color: #aaa; }
        .rarity-uncommon { background: rgba(50, 205, 50, 0.25); color: #32cd32; border: 1px solid rgba(50, 205, 50, 0.4); }
        .rarity-rare { background: rgba(30, 144, 255, 0.25); color: #1e90ff; border: 1px solid rgba(30, 144, 255, 0.4); }
        .rarity-epic { background: rgba(148, 0, 211, 0.3); color: #da70d6; border: 1px solid rgba(148, 0, 211, 0.5); box-shadow: 0 0 5px rgba(148, 0, 211, 0.3); }
        .rarity-legendary { 
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3)); 
            color: #ffd700; 
            border: 1px solid rgba(255, 215, 0, 0.6); 
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
            animation: legendaryPulse 2s ease-in-out infinite;
        }
        
        @keyframes legendaryPulse {
            0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
            50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
        }
        
        .shop-item-actions {
            display: flex;
            gap: 6px;
            width: 100%;
        }
        
        .shop-btn {
            flex: 1;
            padding: 6px 10px;
            border: none;
            border-radius: 4px;
            font-size: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
        }
        
        .shop-btn-buy {
            background: linear-gradient(135deg, #ffd700, #ff9500);
            color: #000;
        }
        
        .shop-btn-buy:hover {
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        .shop-btn-buy:disabled {
            background: #444;
            color: #666;
            cursor: not-allowed;
        }
        
        .shop-btn-equip {
            background: linear-gradient(135deg, #0ff, #00a8a8);
            color: #000;
        }
        
        .shop-btn-equip:hover {
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        }
        
        .shop-btn-equipped {
            background: rgba(0, 255, 100, 0.3);
            color: #0f6;
            border: 1px solid #0f6;
        }
        
        .shop-btn-login {
            background: linear-gradient(135deg, #666, #444);
            color: #fff;
            font-size: 9px;
        }
        
        .shop-btn-login:hover {
            background: linear-gradient(135deg, #888, #666);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }
        
        .shop-login-notice {
            text-align: center;
            color: #ffd700;
            padding: 15px;
            font-size: 13px;
            background: rgba(255, 215, 0, 0.1);
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        /* ═══════════════════════════════════════════════════════════════
           SHOP MOBILE STYLES
           ═══════════════════════════════════════════════════════════════ */
        
        @media (max-width: 768px), (pointer: coarse) {
            /* Hub tabs mobile */
            .hub-main-tabs {
                gap: 0;
                margin-bottom: 10px;
            }
            
            .hub-main-tab {
                padding: 10px 8px;
                font-size: 11px;
                letter-spacing: 0.5px;
            }
            
            .coins-display {
                padding: 4px 10px;
                font-size: 12px;
                border-radius: 15px;
            }
            
            .coins-icon {
                font-size: 14px;
            }
            
            .shop-container {
                gap: 8px;
            }
            
            .shop-header {
                display: none;
            }
            
            .shop-categories {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 6px;
                margin-bottom: 8px;
                padding-bottom: 8px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            
            .shop-categories::-webkit-scrollbar {
                display: none;
            }
            
            .shop-category {
                padding: 6px 12px;
                font-size: 10px;
                white-space: nowrap;
                flex-shrink: 0;
            }
            
            .shop-buy-coins-btn {
                padding: 6px 12px;
                font-size: 10px;
                white-space: nowrap;
                flex-shrink: 0;
            }
            
            .shop-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
                max-height: 350px;
                padding: 5px;
            }
            
            .shop-item {
                padding: 8px;
                gap: 5px;
                border-radius: 8px;
            }
            
            .skin-preview {
                width: 50px;
                height: 65px;
                margin-bottom: 3px;
            }
            
            .skin-preview-body {
                width: 24px;
                height: 40px;
            }
            
            .skin-preview-head {
                width: 20px;
                height: 20px;
            }
            
            .skin-symbol {
                font-size: 10px;
            }
            
            .skin-name {
                font-size: 10px !important;
            }
            
            .skin-price {
                font-size: 9px !important;
            }
            
            .rarity-badge {
                font-size: 7px !important;
                padding: 2px 5px !important;
            }
            
            .shop-item-actions {
                gap: 4px;
            }
            
            .shop-btn {
                padding: 5px 6px;
                font-size: 8px;
            }
            
            .shop-login-notice {
                padding: 10px;
                font-size: 11px;
            }
        }
        
        /* Extra small phones */
        @media (max-width: 400px) {
            .shop-categories {
                gap: 4px;
            }
            
            .shop-category {
                padding: 5px 10px;
                font-size: 9px;
            }
            
            .shop-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
                max-height: 300px;
            }
            
            .shop-item {
                padding: 6px;
            }
            
            .skin-preview {
                width: 45px;
                height: 55px;
            }
            
            .skin-preview-body {
                width: 20px;
                height: 35px;
            }
            
            .skin-preview-head {
                width: 17px;
                height: 17px;
            }
            
            .skin-symbol {
                font-size: 8px;
            }
            
            .skin-name {
                font-size: 9px !important;
            }
            
            .shop-btn {
                padding: 4px 5px;
                font-size: 7px;
            }
        }
        
        /* Landscape mode on mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .shop-grid {
                grid-template-columns: repeat(4, 1fr);
                max-height: 200px;
                gap: 6px;
            }
            
            .shop-categories {
                margin-bottom: 5px;
            }
            
            .shop-category {
                padding: 4px 10px;
                font-size: 9px;
            }
            
            .skin-preview {
                width: 40px;
                height: 50px;
            }
            
            .skin-preview-body {
                width: 18px;
                height: 32px;
            }
            
            .skin-preview-head {
                width: 15px;
                height: 15px;
            }
        }

        /* Full width leaderboard in tab */
        .leaderboard-full {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 10px;
            padding: 20px;
        }
        
        .leaderboard-full .leaderboard-list {
            max-height: 400px;
        }
        
        .leaderboard-full .leaderboard-entry {
            padding: 12px 15px;
        }
        
        .leaderboard-full .leaderboard-rank {
            width: 40px;
            font-size: 16px;
        }
        
        .leaderboard-full .leaderboard-name {
            font-size: 14px;
        }
        
        .leaderboard-full .leaderboard-kills {
            font-size: 14px;
        }

        /* Create Server Modal */
        #create-server-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10002;
        }
        
        .create-server-container {
            background: rgba(0, 20, 40, 0.95);
            border: 3px solid #0ff;
            border-radius: 15px;
            padding: 30px 40px;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
        }
        
        .create-server-title {
            font-size: 32px;
            font-weight: bold;
            color: #0ff;
            text-shadow: 0 0 20px #0ff;
            margin-bottom: 25px;
            text-align: center;
            letter-spacing: 3px;
        }
        
        .form-section {
            margin-bottom: 25px;
        }
        
        .form-section-title {
            color: #0ff;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }
        
        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
        }
        
        .form-group {
            flex: 1;
        }
        
        .form-group label {
            display: block;
            color: #aaa;
            font-size: 12px;
            margin-bottom: 6px;
        }
        
        .form-group input[type="text"],
        .form-group input[type="number"],
        .form-group select {
            width: 100%;
            padding: 10px 12px;
            background: rgba(0, 255, 255, 0.1);
            border: 2px solid rgba(0, 255, 255, 0.3);
            border-radius: 6px;
            color: #fff;
            font-size: 16px;
            outline: none;
            box-sizing: border-box;
        }
        
        .form-group input:focus,
        .form-group select:focus {
            border-color: #0ff;
        }
        
        .map-checkboxes {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .map-checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        
        .map-checkbox:hover {
            border-color: rgba(0, 255, 255, 0.5);
        }
        
        .map-checkbox.selected {
            border-color: #0ff;
            background: rgba(0, 255, 255, 0.2);
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
        }
        
        .map-checkbox.selected::after {
            content: '✓';
            position: absolute;
            top: 5px;
            right: 8px;
            color: #0ff;
            font-size: 16px;
            font-weight: bold;
        }
        
        .map-checkbox input {
            display: none;
        }
        
        .map-checkbox .map-icon {
            font-size: 24px;
        }
        
        .map-checkbox .map-label {
            color: #fff;
            font-size: 14px;
        }
        
        .map-checkbox:not(.selected) {
            opacity: 0.5;
        }
        
        .bonus-checkboxes {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .bonus-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 15px;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        
        .bonus-checkbox:hover {
            border-color: rgba(0, 255, 0, 0.5);
        }
        
        .bonus-checkbox.selected {
            border-color: #0f0;
            background: rgba(0, 255, 0, 0.2);
            box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
        }
        
        .bonus-checkbox.selected::before {
            content: '✓ ';
            color: #0f0;
            font-weight: bold;
        }
        
        .bonus-checkbox:not(.selected) {
            opacity: 0.5;
        }
        
        .bonus-checkbox input {
            display: none;
        }
        
        .bonus-checkbox .bonus-icon {
            font-size: 18px;
        }
        
        .bonus-checkbox .bonus-label {
            color: #fff;
            font-size: 13px;
        }
        
        .form-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }
        
        .form-btn {
            flex: 1;
            padding: 15px;
            font-size: 16px;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.2s;
        }
        
        .form-btn.create {
            background: linear-gradient(135deg, #0ff 0%, #00a8a8 100%);
            color: #000;
        }
        
        .form-btn.create:hover {
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        }
        
        .form-btn.cancel {
            background: transparent;
            border: 2px solid #888;
            color: #888;
        }
        
        .form-btn.cancel:hover {
            border-color: #fff;
            color: #fff;
        }
        
        @media (max-width: 600px) {
            .create-server-container {
                margin: 10px;
                padding: 20px;
            }
            
            .form-row {
                flex-direction: column;
                gap: 15px;
            }
            
            .map-checkboxes {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 900px) {
            .hub-content {
                flex-direction: column;
            }
            
            .hub-left {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .player-profile {
                flex: 1;
                min-width: 280px;
            }
            
            .quick-actions {
                flex: 1;
                min-width: 200px;
            }
            
            .hub-stats {
                width: 100%;
            }
        }
        
        /* ============================================
           MOBILE RESPONSIVE - ALL SCREEN TYPES
           ============================================ */
        
        /* Mobile create server button (hidden on desktop) */
        .create-server-btn-mobile {
            display: none;
        }
        
        /* Mobile daily reward button (hidden on desktop) */
        .daily-reward-btn-mobile {
            display: none !important;
        }
        
        /* Mobile global stats floating (hidden on desktop) */
        .mobile-global-stats {
            display: none;
        }
        
        /* Header stats (hidden by default, shown on mobile landscape) */
        .hub-header-stats {
            display: none;
        }
        
        /* Mobile Portrait - Stack everything vertically */
        @media (max-width: 768px) and (orientation: portrait) {
            /* Show mobile create server button - same style as desktop */
            .create-server-btn-mobile {
                display: flex;
                width: 100%;
                padding: 12px;
                margin-bottom: 10px;
                background: linear-gradient(135deg, #0ff 0%, #00a8a8 100%);
                border: none;
                border-radius: 8px;
                color: #000;
                font-size: 14px;
                font-weight: bold;
                cursor: pointer;
                font-family: inherit;
                transition: all 0.2s;
                text-transform: uppercase;
                letter-spacing: 1px;
                align-items: center;
                justify-content: center;
                gap: 8px;
            }
            
            .create-server-btn-mobile:hover {
                transform: scale(1.02);
                box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
            }
            
            /* Mobile daily reward button - in profile section */
            .daily-reward-btn-mobile {
                display: flex !important;
                width: 100%;
                padding: 10px;
                margin-top: 10px;
                background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
                border: none;
                border-radius: 8px;
                color: #000;
                font-size: 12px;
                font-weight: bold;
                cursor: pointer;
                font-family: inherit;
                transition: all 0.2s;
                text-transform: uppercase;
                letter-spacing: 1px;
                align-items: center;
                justify-content: center;
                gap: 6px;
                animation: dailyPulse 2s infinite;
            }
            
            .daily-reward-btn-mobile.claimed {
                background: linear-gradient(135deg, #555 0%, #333 100%);
                animation: none;
                opacity: 0.7;
            }
            
            /* Daily reward modal - mobile portrait */
            .daily-reward-content {
                min-width: unset;
                width: 90%;
                max-width: 350px;
                padding: 20px;
            }
            
            .daily-reward-title {
                font-size: 22px;
                margin-bottom: 15px;
            }
            
            .streak-day {
                width: 42px;
                padding: 6px 3px;
            }
            
            .streak-day-number {
                font-size: 9px;
            }
            
            .streak-day-icon {
                font-size: 18px;
            }
            
            .streak-day-amount {
                font-size: 11px;
            }
            
            .daily-streak-days {
                gap: 5px;
            }
            
            .daily-reward-amount {
                font-size: 36px;
                margin: 15px 0;
            }
            
            .daily-reward-amount .coin-icon {
                font-size: 30px;
            }
            
            .daily-claim-btn {
                padding: 12px 30px;
                font-size: 14px;
            }
            
            /* Hide desktop quick actions */
            .quick-actions {
                display: none;
            }
            
            .hub-container {
                width: 95%;
                max-width: 100%;
                padding: 15px;
                max-height: 95vh;
                overflow-y: auto;
            }
            
            .hub-header {
                margin-bottom: 15px;
            }
            
            .hub-title {
                font-size: 28px;
            }
            
            .hub-subtitle {
                font-size: 14px;
            }
            
            .hub-content {
                flex-direction: column;
                gap: 12px;
            }
            
            .hub-left {
                width: 100%;
                flex-direction: column;
                gap: 10px;
            }
            
            .hub-right {
                width: 100%;
                max-height: 45vh;
                overflow-y: auto;
            }
            
            .player-profile {
                min-width: auto;
                padding: 15px;
            }
            
            .profile-info {
                flex-direction: row;
                gap: 15px;
            }
            
            .profile-color {
                width: 50px;
                height: 50px;
            }
            
            .quick-actions {
                min-width: auto;
            }
            
            .create-server-btn {
                padding: 12px;
                font-size: 14px;
            }
            
            .hub-stats {
                width: 100%;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .server-card {
                padding: 12px;
            }
            
            .server-info {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .server-maps {
                font-size: 11px !important;
            }
        }
        
        /* Mobile Landscape - Two columns side by side */
        @media (max-height: 700px) and (orientation: landscape) {
            /* Show mobile create server button - same style as desktop */
            .create-server-btn-mobile {
                display: flex;
                width: 100%;
                padding: 8px;
                margin-bottom: 8px;
                background: linear-gradient(135deg, #0ff 0%, #00a8a8 100%);
                border: none;
                border-radius: 6px;
                color: #000;
                font-size: 11px;
                font-weight: bold;
                cursor: pointer;
                font-family: inherit;
                text-transform: uppercase;
                letter-spacing: 1px;
                align-items: center;
                justify-content: center;
                gap: 6px;
            }
            
            /* Mobile daily reward button - landscape */
            /* Mobile daily reward button - landscape - in profile section */
            .daily-reward-btn-mobile {
                display: flex !important;
                width: 100%;
                padding: 6px;
                margin-top: 6px;
                background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
                border: none;
                border-radius: 6px;
                color: #000;
                font-size: 10px;
                font-weight: bold;
                cursor: pointer;
                font-family: inherit;
                text-transform: uppercase;
                letter-spacing: 1px;
                align-items: center;
                justify-content: center;
                gap: 4px;
                animation: dailyPulse 2s infinite;
            }
            
            .daily-reward-btn-mobile.claimed {
                background: linear-gradient(135deg, #555 0%, #333 100%);
                animation: none;
                opacity: 0.7;
            }
            
            /* Daily reward modal - landscape */
            .daily-reward-content {
                min-width: unset;
                width: 80%;
                max-width: 450px;
                padding: 15px 25px;
                max-height: 90vh;
                overflow-y: auto;
            }
            
            .daily-reward-title {
                font-size: 20px;
                margin-bottom: 10px;
            }
            
            .streak-day {
                width: 38px;
                padding: 5px 2px;
            }
            
            .streak-day-number {
                font-size: 8px;
            }
            
            .streak-day-icon {
                font-size: 16px;
            }
            
            .streak-day-amount {
                font-size: 10px;
            }
            
            .daily-streak-days {
                gap: 4px;
            }
            
            .daily-streak-container {
                margin-bottom: 10px;
            }
            
            .daily-reward-amount {
                font-size: 32px;
                margin: 10px 0;
            }
            
            .daily-reward-amount .coin-icon {
                font-size: 26px;
            }
            
            .daily-claim-btn {
                padding: 10px 25px;
                font-size: 12px;
            }
            
            /* Hide desktop quick actions */
            .quick-actions {
                display: none;
            }
            
            /* Hide hub-stats panel in landscape (use header stats instead) */
            .hub-stats {
                display: none !important;
            }
            
            /* Show stats in header */
            .hub-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 6px;
            }
            
            .hub-title-group {
                display: flex;
                align-items: baseline;
                gap: 10px;
            }
            
            .hub-header-stats {
                display: flex;
                gap: 12px;
                background: rgba(0, 20, 40, 0.8);
                padding: 6px 12px;
                border-radius: 6px;
                border: 1px solid rgba(0, 255, 255, 0.3);
            }
            
            .header-stat {
                font-size: 12px;
                color: #0ff;
                display: flex;
                align-items: center;
                gap: 4px;
            }
            
            .header-stat span {
                font-weight: bold;
            }
            
            .hub-container {
                width: 98%;
                max-width: 100%;
                padding: 8px 12px;
                height: 94vh;
                max-height: 94vh;
                overflow: hidden;
            }
            
            .hub-title {
                font-size: 20px;
                margin-bottom: 0;
            }
            
            .hub-subtitle {
                font-size: 10px;
                margin-bottom: 0;
            }
            
            .hub-content {
                flex-direction: row;
                gap: 10px;
                overflow: hidden;
                height: calc(94vh - 50px);
            }
            
            .hub-left {
                width: 40%;
                max-width: 280px;
                flex-shrink: 0;
                flex-direction: column;
                gap: 6px;
                overflow-y: auto;
            }
            
            .hub-right {
                flex: 1;
                min-width: 0;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            
            .servers-section {
                flex: 1;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }
            
            .servers-header {
                flex-shrink: 0;
                margin-bottom: 5px;
            }
            
            .servers-list {
                flex: 1;
                overflow-y: auto;
                padding-right: 5px;
            }
            
            .player-profile {
                padding: 8px;
                flex-shrink: 0;
                flex-grow: 0;
            }
            
            .profile-header {
                margin-bottom: 5px;
            }
            
            .profile-title {
                font-size: 10px;
            }
            
            .profile-edit-btn {
                padding: 3px 6px;
                font-size: 9px;
            }
            
            .profile-color {
                width: 35px;
                height: 35px;
            }
            
            .profile-name {
                font-size: 14px;
            }
            
            .profile-status {
                font-size: 9px;
            }
            
            .quick-actions {
                padding: 6px;
                flex-shrink: 0;
                flex-grow: 0;
            }
            
            .quick-actions-title {
                font-size: 8px;
                margin-bottom: 6px;
            }
            
            .create-server-btn {
                padding: 8px;
                font-size: 12px;
            }
            
            .hub-stats {
                padding: 6px;
            }
            
            .hub-stats-title {
                display: none;
            }
            
            .stats-grid {
                display: flex;
                flex-direction: row;
                gap: 8px;
            }
            
            .stat-item {
                padding: 4px 8px;
                flex: 1;
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 6px;
            }
            
            .stat-value {
                font-size: 14px;
            }
            
            .stat-label {
                font-size: 7px;
            }
            
            .servers-title {
                font-size: 11px;
            }
            
            .servers-count {
                font-size: 10px;
            }
            
            .server-card {
                padding: 10px;
                margin-bottom: 6px;
            }
            
            .server-name {
                font-size: 14px;
            }
            
            .server-players {
                font-size: 11px;
                padding: 2px 8px;
            }
            
            .server-info {
                font-size: 11px;
                gap: 10px;
                margin-top: 6px;
            }
            
            .server-maps {
                font-size: 9px !important;
                margin-top: 4px !important;
            }
        }
        
        /* Very small landscape (phones like iPhone SE) */
        @media (max-height: 380px) and (orientation: landscape) {
            .hub-container {
                padding: 6px 10px;
                height: auto;
                max-height: 90vh;
            }
            
            .hub-header {
                margin-bottom: 4px;
            }
            
            .hub-title {
                font-size: 16px;
            }
            
            .hub-subtitle {
                font-size: 8px;
            }
            
            .hub-content {
                height: auto;
                max-height: calc(90vh - 35px);
                overflow-y: auto;
            }
            
            .hub-left {
                width: 40%;
                max-width: 300px;
                gap: 4px;
            }
            
            .hub-right {
                flex: 1;
            }
            
            .player-profile {
                padding: 6px;
                flex-shrink: 0;
                flex-grow: 0;
            }
            
            .profile-header {
                margin-bottom: 3px;
            }
            
            .profile-color {
                width: 28px;
                height: 28px;
            }
            
            .profile-name {
                font-size: 12px;
            }
            
            .profile-status {
                font-size: 8px;
            }
            
            .quick-actions {
                padding: 5px;
                flex-shrink: 0;
                flex-grow: 0;
            }
            
            .quick-actions-title {
                font-size: 7px;
                margin-bottom: 4px;
            }
            
            .create-server-btn {
                padding: 5px;
                font-size: 10px;
            }
            
            .hub-stats {
                padding: 5px;
                flex-shrink: 0;
                flex-grow: 0;
            }
            
            .hub-stats-title {
                display: none;
            }
            
            .stats-grid {
                display: flex;
                flex-direction: row;
                gap: 6px;
            }
            
            .stat-item {
                padding: 3px 6px;
                flex: 1;
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 4px;
            }
            
            .stat-value {
                font-size: 12px;
            }
            
            .stat-label {
                font-size: 6px;
            }
            
            .server-card {
                padding: 6px;
                margin-bottom: 4px;
            }
            
            .server-header {
                margin-bottom: 3px;
            }
            
            .server-name {
                font-size: 11px;
            }
            
            .server-players {
                font-size: 9px;
                padding: 2px 5px;
            }
            
            .server-info {
                font-size: 9px;
                gap: 6px;
                margin-top: 3px;
            }
            
            .server-maps {
                display: none !important;
            }
        }
        
        /* Small portrait phones */
        @media (max-width: 400px) and (orientation: portrait) {
            .hub-container {
                padding: 12px;
            }
            
            .hub-title {
                font-size: 24px;
            }
            
            .hub-subtitle {
                font-size: 12px;
            }
            
            .hub-right {
                max-height: 40vh;
            }
            
            .profile-color {
                width: 40px;
                height: 40px;
            }
            
            .profile-name {
                font-size: 16px;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }
            
            .stat-value {
                font-size: 16px;
            }
            
            .stat-label {
                font-size: 8px;
            }
            
            .server-card {
                padding: 10px;
            }
            
            .server-name {
                font-size: 14px;
            }
            
            .server-info {
                font-size: 11px;
            }
        }
        
        /* Touch devices - larger touch targets */
        @media (pointer: coarse) {
            .server-card {
                min-height: 60px;
            }
            
            .create-server-btn {
                min-height: 44px;
            }
            
            .profile-edit-btn {
                min-height: 32px;
                min-width: 60px;
            }
        }
        
        .login-container {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 15px;
            padding: 40px;
            text-align: center;
            min-width: 400px;
        }
        
        .login-title {
            font-size: 48px;
            font-weight: bold;
            color: #0ff;
            text-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
            margin-bottom: 10px;
            letter-spacing: 5px;
        }
        
        .login-subtitle {
            font-size: 18px;
            color: #888;
            margin-bottom: 30px;
        }
        
        .login-field {
            margin-bottom: 25px;
            text-align: left;
        }
        
        .login-field label {
            display: block;
            color: #0ff;
            font-size: 14px;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .login-field input[type="text"] {
            width: 100%;
            padding: 12px 15px;
            font-size: 18px;
            background: rgba(0, 255, 255, 0.1);
            border: 2px solid rgba(0, 255, 255, 0.3);
            border-radius: 8px;
            color: #fff;
            outline: none;
            transition: all 0.3s;
            box-sizing: border-box;
        }
        
        .login-field input[type="text"]:focus {
            border-color: #0ff;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
        }
        
        .color-picker-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        
        .color-option {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.2s;
            position: relative;
        }
        
        .color-option:hover {
            transform: scale(1.1);
        }
        
        .color-option.selected {
            border-color: #fff;
            box-shadow: 0 0 20px currentColor;
        }
        
        .color-option.selected::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 24px;
            color: #fff;
            text-shadow: 0 0 5px #000;
        }
        
        #play-button {
            margin-top: 30px;
            padding: 15px 60px;
            font-size: 24px;
            font-weight: bold;
            background: linear-gradient(135deg, #0ff 0%, #00a8a8 100%);
            border: none;
            border-radius: 10px;
            color: #000;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 3px;
            transition: all 0.3s;
        }
        
        #play-button:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
        }
        
        #play-button:disabled {
            background: #444;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .laser-preview {
            margin-top: 15px;
            height: 5px;
            border-radius: 3px;
            transition: background-color 0.3s;
        }
        
        /* Game Timer */
        #game-timer {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 32px;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 0 10px rgba(0,0,0,0.8);
            z-index: 100;
        }
        
        #game-timer.warning {
            color: #ff4444;
            animation: timerPulse 0.5s ease-in-out infinite;
        }
        
        @keyframes timerPulse {
            0%, 100% { transform: translateX(-50%) scale(1); }
            50% { transform: translateX(-50%) scale(1.1); }
        }
        
        /* Menu (ESC) */
        #pause-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10001;
        }
        
        .pause-container {
            background: rgba(0, 20, 40, 0.95);
            border: 3px solid #0ff;
            border-radius: 15px;
            padding: 40px 60px;
            text-align: center;
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
        }
        
        .pause-title {
            font-size: 42px;
            font-weight: bold;
            color: #0ff;
            text-shadow: 0 0 20px #0ff;
            margin-bottom: 30px;
            letter-spacing: 5px;
        }
        
        .pause-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .pause-btn {
            padding: 15px 50px;
            font-size: 18px;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.2s;
        }
        
        .pause-btn.resume {
            background: linear-gradient(135deg, #0ff 0%, #00a8a8 100%);
            color: #000;
        }
        
        .pause-btn.resume:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        }
        
        .pause-btn.hub {
            background: transparent;
            border: 2px solid #ff6600;
            color: #ff6600;
        }
        
        .pause-btn.hub:hover {
            background: rgba(255, 102, 0, 0.2);
            transform: scale(1.05);
        }
        
        .pause-hint {
            margin-top: 20px;
            color: #666;
            font-size: 14px;
        }
        
        /* End Game Screen */
        #end-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        
        .end-container {
            background: rgba(0, 20, 40, 0.95);
            border: 3px solid #0ff;
            border-radius: 15px;
            padding: 40px;
            text-align: center;
            min-width: 500px;
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
        }
        
        .end-title {
            font-size: 56px;
            font-weight: bold;
            color: #0ff;
            text-shadow: 0 0 30px #0ff;
            margin-bottom: 10px;
            letter-spacing: 8px;
        }
        
        .end-subtitle {
            font-size: 20px;
            color: #888;
            margin-bottom: 30px;
        }
        
        #end-leaderboard-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        
        #end-leaderboard-table th,
        #end-leaderboard-table td {
            padding: 12px 15px;
            text-align: center;
            border-bottom: 1px solid rgba(0, 255, 255, 0.3);
        }
        
        #end-leaderboard-table th {
            color: #0ff;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 14px;
        }
        
        #end-leaderboard-table td {
            color: #fff;
            font-size: 16px;
        }
        
        #end-leaderboard-table tr:first-child td {
            color: #ffd700;
            font-size: 20px;
            font-weight: bold;
        }
        
        #end-leaderboard-table tr.me td {
            color: #0ff;
        }
        
        /* End Screen XP Section */
        .end-xp-section {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .end-xp-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .end-xp-title {
            font-size: 14px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .end-xp-gained {
            font-size: 24px;
            font-weight: bold;
            color: #ffd700;
            text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
            animation: xpGainedPulse 0.5s ease-out;
        }
        
        @keyframes xpGainedPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        
        .end-xp-bar-container {
            margin-top: 10px;
        }
        
        .end-xp-level-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 12px;
        }
        
        .end-xp-level-label span:first-child {
            color: #ffd700;
            font-weight: bold;
        }
        
        .end-xp-level-label span:last-child {
            color: #888;
        }
        
        .end-xp-bar-bg {
            position: relative;
            height: 20px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 10px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            overflow: hidden;
        }
        
        .end-xp-bar-fill {
            position: absolute;
            height: 100%;
            background: linear-gradient(90deg, #ff8c00, #ffd700);
            border-radius: 9px;
            transition: width 0.1s linear;
        }
        
        .end-xp-bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
            border-radius: 9px 9px 0 0;
        }
        
        .end-xp-bar-gain {
            position: absolute;
            height: 100%;
            background: linear-gradient(90deg, #ffec8b, #fff);
            border-radius: 9px;
            opacity: 0.8;
            animation: xpBarGainPulse 0.5s ease-out infinite;
        }
        
        @keyframes xpBarGainPulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
        
        .end-xp-levelup-flash {
            animation: levelUpFlash 0.5s ease-out;
        }
        
        @keyframes levelUpFlash {
            0% { background: rgba(255, 215, 0, 0.5); }
            100% { background: rgba(0, 0, 0, 0.4); }
        }
        
        /* End Screen Coins Section */
        .end-coins-section {
            background: rgba(0, 0, 0, 0.4);
            border-radius: 10px;
            padding: 15px 20px;
            margin-top: 10px;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }
        
        .end-coins-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .end-coins-title {
            font-size: 14px;
            color: #ffd700;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .end-coins-gained {
            font-size: 22px;
            font-weight: bold;
            color: #ffd700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        .end-coins-total {
            font-size: 14px;
            color: #aaa;
            text-align: center;
        }
        
        .end-coins-total span {
            color: #ffd700;
            font-weight: bold;
        }
        
        @keyframes coinBounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }
        
        .end-coins-animate {
            animation: coinBounce 0.3s ease-out;
        }
        
        /* End screen rewards container */
        .end-rewards-container {
            position: relative;
            margin-top: 10px;
        }
        
        /* Podium Section */
        .podium-section {
            margin-bottom: 15px;
        }
        
        .podium-container {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 15px;
            height: 260px;
        }
        
        .podium-player {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }
        
        .podium-player.first {
            order: 2;
        }
        
        .podium-player.second {
            order: 1;
        }
        
        .podium-player.third {
            order: 3;
        }
        
        .podium-skin-container {
            width: 100px;
            height: 140px;
            position: relative;
            margin-bottom: 5px;
        }
        
        .podium-canvas {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            background: transparent;
        }
        
        .podium-name {
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 5px;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .podium-score {
            font-size: 11px;
            color: #aaa;
            margin-bottom: 5px;
        }
        
        .podium-base {
            width: 80px;
            border-radius: 8px 8px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: bold;
        }
        
        .podium-player.first .podium-base {
            height: 60px;
            background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
            color: #000;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
        }
        
        .podium-player.first .podium-name {
            color: #ffd700;
            font-size: 16px;
        }
        
        .podium-player.second .podium-base {
            height: 45px;
            background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
            color: #333;
            box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
        }
        
        .podium-player.second .podium-name {
            color: #c0c0c0;
        }
        
        .podium-player.third .podium-base {
            height: 35px;
            background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
            color: #fff;
            box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
        }
        
        .podium-player.third .podium-name {
            color: #cd7f32;
        }
        
        /* Crown for winner */
        .podium-crown {
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 28px;
            animation: crownBounce 1s ease-in-out infinite;
        }
        
        @keyframes crownBounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-5px); }
        }
        
        .end-countdown {
            font-size: 18px;
            color: #888;
            margin-top: 20px;
        }
        
        .end-countdown span {
            color: #0ff;
            font-weight: bold;
            font-size: 24px;
        }
        
        .end-actions {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
        
        .back-to-hub-btn {
            background: transparent;
            border: 2px solid #f44;
            color: #f44;
            padding: 12px 30px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.2s;
        }
        
        .back-to-hub-btn:hover {
            background: rgba(255, 68, 68, 0.2);
            box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
        }
        
        /* Map Voting */
        .map-voting {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 255, 255, 0.3);
        }
        
        .map-voting-title {
            font-size: 24px;
            color: #0ff;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 3px;
        }
        
        .map-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 10px;
        }
        
        .map-card {
            background: rgba(0, 40, 60, 0.8);
            border: 2px solid rgba(100, 100, 100, 0.5);
            border-radius: 10px;
            padding: 15px 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            pointer-events: auto;
        }
        
        .map-card:hover {
            border-color: #0ff;
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
        }
        
        .map-card.selected {
            border-color: #0f0;
            background: rgba(0, 80, 40, 0.8);
            box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
        }
        
        .map-icon {
            font-size: 36px;
            margin-bottom: 8px;
        }
        
        .map-name {
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 5px;
        }
        
        .map-desc {
            font-size: 11px;
            color: #888;
            line-height: 1.3;
        }
        
        .map-votes {
            margin-top: 8px;
            font-size: 16px;
            font-weight: bold;
            color: #0ff;
        }
        
        .vote-status {
            font-size: 14px;
            color: #888;
            margin-top: 10px;
        }
        
        .vote-status.voted {
            color: #0f0;
        }
        
        /* === MOBILE/TOUCH CONTROLS === */
        #touch-controls {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            top: 0;
            pointer-events: none;
            z-index: 500;
        }
        
        #touch-controls.active {
            display: block;
        }
        
        .joystick-zone {
            position: absolute;
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, rgba(0,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
            border: 3px solid rgba(0,255,255,0.4);
            border-radius: 50%;
            pointer-events: auto;
            touch-action: none;
            z-index: 10;
        }
        
        #joystick-left {
            bottom: 40px;
            left: 40px;
        }
        
        /* Touch look area covers the whole screen */
        #touch-look-area {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: auto;
            touch-action: none;
            z-index: 1;
        }
        
        .joystick-stick {
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, rgba(0,255,255,0.9) 0%, rgba(0,255,255,0.5) 100%);
            border: 3px solid rgba(0,255,255,0.9);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 25px rgba(0,255,255,0.6);
            transition: box-shadow 0.1s;
        }
        
        .joystick-zone:active .joystick-stick {
            box-shadow: 0 0 35px rgba(0,255,255,0.9);
        }
        
        #fire-button {
            display: none;
        }
        
        #jump-button {
            position: absolute;
            right: 10px;
            bottom: 10px;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(0,255,100,0.7) 0%, rgba(0,200,50,0.4) 100%);
            border: 4px solid rgba(0,255,100,0.9);
            border-radius: 50%;
            pointer-events: auto;
            touch-action: none;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 35px;
            color: #fff;
            text-shadow: 0 0 15px #0f0;
            box-shadow: 0 0 40px rgba(0,255,0,0.5);
            transition: all 0.1s;
            z-index: 10;
        }
        
        #jump-button:active,
        #jump-button.active {
            background: radial-gradient(circle, rgba(0,255,100,1) 0%, rgba(0,255,50,0.8) 100%);
            transform: scale(0.92);
            box-shadow: 0 0 60px rgba(0,255,0,0.8);
        }
        
        #pause-button {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 36px;
            height: 36px;
            background: rgba(0,0,0,0.7);
            border: 2px solid rgba(0,255,255,0.6);
            border-radius: 8px;
            pointer-events: auto;
            touch-action: none;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            color: #0ff;
            z-index: 600;
            box-shadow: 0 0 10px rgba(0,255,255,0.3);
        }
        
        #pause-button:active {
            background: rgba(0,255,255,0.4);
            border-color: #0ff;
            box-shadow: 0 0 20px rgba(0,255,255,0.6);
        }
        
        /* Old mobile-controls - keeping for compatibility */
        #mobile-controls {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            top: 0;
            pointer-events: none;
            z-index: 500;
        }
        
        .joystick-container {
            position: absolute;
            pointer-events: auto;
            touch-action: none;
        }
        
        #joystick-left {
            bottom: 30px;
            left: 30px;
        }
        
        #joystick-right {
            bottom: 30px;
            right: 30px;
        }
        
        .joystick-base {
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(0,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
            border: 2px solid rgba(0,255,255,0.4);
            border-radius: 50%;
            position: relative;
        }
        
        .joystick-handle {
            width: 50px;
            height: 50px;
            background: radial-gradient(circle, rgba(0,255,255,0.8) 0%, rgba(0,255,255,0.4) 100%);
            border: 2px solid rgba(0,255,255,0.8);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 20px rgba(0,255,255,0.5);
        }
        
        #mobile-shoot-btn {
            position: absolute;
            right: 180px;
            bottom: 80px;
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, rgba(255,50,50,0.6) 0%, rgba(255,0,0,0.3) 100%);
            border: 3px solid rgba(255,100,100,0.8);
            border-radius: 50%;
            pointer-events: auto;
            touch-action: none;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 28px;
            color: #fff;
            text-shadow: 0 0 10px #f00;
            box-shadow: 0 0 30px rgba(255,0,0,0.4);
        }
        
        #mobile-shoot-btn:active {
            background: radial-gradient(circle, rgba(255,100,100,0.9) 0%, rgba(255,50,50,0.6) 100%);
            transform: scale(0.95);
        }
        
        #mobile-jump-btn {
            position: absolute;
            right: 180px;
            bottom: 180px;
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, rgba(0,255,100,0.5) 0%, rgba(0,200,50,0.3) 100%);
            border: 3px solid rgba(0,255,100,0.7);
            border-radius: 50%;
            pointer-events: auto;
            touch-action: none;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 22px;
            color: #fff;
            text-shadow: 0 0 10px #0f0;
            box-shadow: 0 0 20px rgba(0,255,0,0.3);
        }
        
        #mobile-jump-btn:active {
            background: radial-gradient(circle, rgba(0,255,100,0.9) 0%, rgba(0,255,50,0.6) 100%);
            transform: scale(0.95);
        }
        
        /* === MOBILE RESPONSIVE STYLES === */
        @media (max-width: 768px), (pointer: coarse) {
            #touch-controls.active {
                display: block;
            }
            
            #mobile-controls {
                display: block;
            }
            
            /* Repositionner la minimap */
            #minimap-container {
                width: 70px;
                height: 70px;
                bottom: auto;
                top: 60px;
                right: 10px;
            }
            
            #joystick-left {
                width: 120px;
                height: 120px;
                bottom: 30px;
                left: 20px;
            }
            
            .joystick-stick {
                width: 50px;
                height: 50px;
            }
            
            #fire-button {
                width: 85px;
                height: 85px;
                right: 25px;
                bottom: 40px;
                font-size: 32px;
            }
            
            #jump-button {
                width: 100px;
                height: 100px;
                right: 10px;
                bottom: 10px;
                font-size: 35px;
            }
            
            /* Smaller score board - score clickable on mobile */
            #score-board {
                padding: 10px 15px;
                gap: 15px;
            }
            
            #score {
                pointer-events: auto;
                z-index: 600;
                cursor: pointer;
            }
            
            .stat-box {
                padding: 8px 12px;
            }
            
            .stat-label {
                font-size: 9px;
            }
            
            .stat-value {
                font-size: 20px;
            }
            
            /* Leaderboard mobile positioning */
            #leaderboard {
                position: fixed !important;
                top: 80px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                right: auto !important;
                min-width: 280px;
                max-width: 95vw;
                z-index: 1000;
            }
            
            /* Smaller timer */
            #game-timer {
                font-size: 22px;
                top: 10px;
            }
            
            /* Adjust kill feed */
            #kill-feed {
                top: 50px;
                left: 10px;
                max-width: 200px;
            }
            
            .feed-item {
                font-size: 11px;
                padding: 4px 8px;
            }
            
            /* Adjust ammo bar - déplacer en haut à gauche */
            #ammo-container {
                bottom: auto;
                top: 130px;
                left: 10px;
                transform: none;
            }
            
            #ammo-bar-container {
                width: 90px;
            }
            
            #ammo-label {
                font-size: 8px;
            }
            
            /* Crosshair stays centered */
            #crosshair {
                width: 20px;
                height: 20px;
            }
            
            #crosshair::before { top: 9px; width: 20px; }
            #crosshair::after { left: 9px; height: 20px; }
            
            /* Login screen mobile */
            #login-screen {
                padding: 15px;
                align-items: flex-start;
                padding-top: 5vh;
                overflow-y: auto;
            }
            
            .login-container {
                min-width: auto;
                width: 100%;
                max-width: 340px;
                padding: 20px 15px;
                margin: 0 auto;
                border-radius: 12px;
            }
            
            .login-title {
                font-size: 28px;
                letter-spacing: 3px;
                margin-bottom: 5px;
            }
            
            .login-subtitle {
                font-size: 13px;
                margin-bottom: 20px;
            }
            
            .login-field {
                margin-bottom: 18px;
            }
            
            .login-field label {
                font-size: 11px;
                margin-bottom: 6px;
                letter-spacing: 1.5px;
            }
            
            .login-field input[type="text"] {
                font-size: 16px;
                padding: 12px 12px;
                border-radius: 6px;
            }
            
            .color-picker-container {
                gap: 8px;
            }
            
            .color-option {
                width: 38px;
                height: 38px;
                border-radius: 6px;
            }
            
            .laser-preview {
                height: 4px !important;
                margin-top: 10px !important;
            }
            
            #play-button {
                padding: 14px 50px;
                font-size: 18px;
                margin-top: 10px;
                border-radius: 8px;
            }
            
            .mobile-hint {
                margin-top: 12px !important;
                font-size: 11px !important;
                line-height: 1.5;
            }
            
            /* Leaderboard mobile */
            #leaderboard {
                min-width: 90%;
                max-width: 350px;
                padding: 15px;
            }
            
            .leaderboard-title {
                font-size: 18px;
            }
            
            #leaderboard-table th,
            #leaderboard-table td {
                padding: 5px 8px;
                font-size: 12px;
            }
            
            /* End screen mobile */
            .end-container {
                min-width: 95% !important;
                max-width: 98% !important;
                padding: 15px 10px !important;
                max-height: 90vh;
                overflow-y: auto;
            }
            
            .end-title {
                font-size: 24px !important;
                letter-spacing: 4px !important;
                margin-bottom: 5px !important;
            }
            
            .end-subtitle {
                font-size: 14px !important;
                margin-bottom: 15px !important;
            }
            
            .map-voting {
                margin-top: 15px !important;
                padding-top: 10px !important;
            }
            
            .map-voting-title {
                font-size: 16px !important;
                margin-bottom: 10px !important;
                letter-spacing: 2px !important;
            }
            
            .map-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }
            
            .map-card {
                padding: 8px 6px !important;
            }
            
            .map-icon {
                font-size: 24px !important;
                margin-bottom: 4px !important;
            }
            
            .map-name {
                font-size: 11px !important;
            }
            
            .map-desc {
                font-size: 8px !important;
                display: none;
            }
            
            .map-votes {
                font-size: 9px !important;
            }
            
            .vote-status {
                font-size: 11px !important;
                margin-top: 8px !important;
            }
            
            .end-countdown {
                font-size: 14px !important;
                margin-top: 10px !important;
            }
            
            .end-countdown span {
                font-size: 18px !important;
            }
            
            #end-leaderboard-table th,
            #end-leaderboard-table td {
                padding: 4px 4px !important;
                font-size: 10px !important;
            }
            
            #end-leaderboard-table tr:first-child td {
                font-size: 12px !important;
            }
            
            /* Masquer la colonne Deaths sur mobile pour gagner de la place */
            #end-leaderboard-table th:nth-child(5),
            #end-leaderboard-table td:nth-child(5) {
                display: none;
            }
        }
        
        /* Extra small screens (phone portrait) */
        @media (max-width: 480px) {
            #joystick-left {
                width: 100px;
                height: 100px;
                bottom: 20px;
                left: 15px;
            }
            
            .joystick-stick {
                width: 40px;
                height: 40px;
            }
            
            #fire-button {
                width: 70px;
                height: 70px;
                right: 15px;
                bottom: 25px;
                font-size: 26px;
            }
            
            #jump-button {
                width: 90px;
                height: 90px;
                right: 10px;
                bottom: 10px;
                font-size: 30px;
            }
            
            .login-title {
                font-size: 24px;
                letter-spacing: 2px;
            }
            
            .login-subtitle {
                font-size: 11px;
                margin-bottom: 15px;
            }
            
            .login-container {
                padding: 15px 12px;
                max-width: 300px;
            }
            
            .login-field {
                margin-bottom: 14px;
            }
            
            .login-field label {
                font-size: 10px;
            }
            
            .login-field input[type="text"] {
                font-size: 16px;
                padding: 10px;
            }
            
            .color-option {
                width: 32px;
                height: 32px;
            }
            
            #play-button {
                padding: 12px 40px;
                font-size: 16px;
            }
            
            #minimap-container {
                width: 60px;
                height: 60px;
            }
            
            #game-timer {
                font-size: 18px;
            }
            
            #score-board {
                padding: 8px 10px;
            }
            
            .stat-value {
                font-size: 16px;
            }
            
            /* End screen extra small */
            .end-container {
                padding: 10px 8px !important;
                max-height: 95vh;
            }
            
            .end-title {
                font-size: 20px !important;
                letter-spacing: 2px !important;
            }
            
            .end-subtitle {
                font-size: 12px !important;
                margin-bottom: 10px !important;
            }
            
            .map-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 6px !important;
            }
            
            .map-card {
                padding: 6px 4px !important;
            }
            
            .map-icon {
                font-size: 20px !important;
            }
            
            .map-name {
                font-size: 10px !important;
            }
            
            #end-leaderboard-table th,
            #end-leaderboard-table td {
                padding: 3px 2px !important;
                font-size: 9px !important;
            }
            
            /* Masquer aussi Kills sur très petit écran */
            #end-leaderboard-table th:nth-child(4),
            #end-leaderboard-table td:nth-child(4) {
                display: none;
            }
            
            /* Server cards responsive - extra small */
            .server-card-content {
                padding: 12px 14px;
            }
            
            .server-name {
                font-size: 15px;
            }
            
            .server-players {
                padding: 4px 10px;
                font-size: 11px;
            }
            
            .server-stats-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }
            
            .server-stat {
                padding: 8px 4px;
            }
            
            .server-stat-icon {
                font-size: 14px;
            }
            
            .server-stat-value {
                font-size: 11px;
            }
            
            .server-stat-label {
                font-size: 8px;
            }
            
            .server-status-badge {
                font-size: 10px;
                padding: 4px 8px;
            }
            
            .server-map-icon {
                width: 24px;
                height: 24px;
                font-size: 12px;
            }
        }
        
        /* Landscape orientation adjustments */
        @media (max-height: 500px) and (orientation: landscape) {
            #joystick-left {
                width: 90px;
                height: 90px;
                bottom: 10px;
                left: 15px;
            }
            
            #fire-button {
                width: 70px;
                height: 70px;
                right: 15px;
                bottom: 15px;
            }
            
            #jump-button {
                width: 75px;
                height: 75px;
                right: 10px;
                bottom: 10px;
                font-size: 25px;
            }
            
            #score-board {
                top: 5px;
            }
            
            #game-timer {
                top: 5px;
                font-size: 18px;
            }
            
            #minimap-container {
                display: none;
            }
        }
        
        /* Hide leaderboard hint on mobile, show mobile hint */
        @media (pointer: coarse) {
            .leaderboard-hint {
                display: none;
            }
            
            .mobile-hint {
                display: block !important;
            }
        }
        
        /* ============================================
           EXTRA SMALL SCREENS (320px and below)
           ============================================ */
        @media (max-width: 320px) {
            /* Hub */
            .hub-container {
                padding: 8px;
                width: 98%;
            }
            
            .hub-title {
                font-size: 20px;
                letter-spacing: 2px;
            }
            
            .hub-subtitle {
                font-size: 10px;
            }
            
            .player-profile {
                padding: 10px;
            }
            
            .profile-color {
                width: 35px;
                height: 35px;
            }
            
            .profile-name {
                font-size: 14px;
            }
            
            .profile-level-badge {
                font-size: 8px;
                padding: 2px 4px;
            }
            
            .profile-edit-btn {
                padding: 4px 8px;
                font-size: 9px;
            }
            
            /* XP Section */
            .xp-header {
                flex-direction: column;
                gap: 4px;
                align-items: flex-start;
            }
            
            .xp-level {
                font-size: 11px;
            }
            
            .xp-text {
                font-size: 9px;
            }
            
            .coins-display {
                font-size: 10px;
                padding: 3px 8px;
            }
            
            /* Auth buttons */
            .auth-btn {
                padding: 4px 8px;
                font-size: 9px;
                gap: 3px;
            }
            
            .auth-btn svg {
                width: 10px;
                height: 10px;
            }
            
            /* Login overlay */
            .login-required-icon {
                font-size: 24px;
            }
            
            .login-required-text {
                font-size: 12px;
            }
            
            .login-required-subtext {
                font-size: 9px;
            }
            
            .login-required-buttons {
                gap: 4px;
            }
            
            /* Hub tabs */
            .hub-main-tab {
                padding: 8px 6px;
                font-size: 9px;
            }
            
            /* Server cards */
            .server-card-content {
                padding: 10px;
            }
            
            .server-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .server-name {
                font-size: 13px;
            }
            
            .server-players {
                font-size: 10px;
                padding: 3px 8px;
            }
            
            .server-stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 6px;
            }
            
            .server-stats-grid .server-stat:last-child {
                grid-column: span 2;
            }
            
            .server-stat {
                padding: 6px 4px;
            }
            
            .server-stat-icon {
                font-size: 12px;
            }
            
            .server-stat-value {
                font-size: 10px;
            }
            
            .server-stat-label {
                font-size: 7px;
            }
            
            .server-footer {
                flex-direction: column;
                gap: 8px;
                align-items: flex-start;
            }
            
            .server-status-badge {
                font-size: 9px;
                padding: 3px 6px;
            }
            
            .server-map-icon {
                width: 22px;
                height: 22px;
                font-size: 10px;
            }
            
            /* Leaderboard */
            .leaderboard-table th,
            .leaderboard-table td {
                padding: 4px 3px;
                font-size: 9px;
            }
            
            /* Shop */
            .shop-category {
                padding: 4px 8px;
                font-size: 8px;
            }
            
            .shop-grid {
                gap: 5px;
            }
            
            .shop-item {
                padding: 5px;
            }
            
            .skin-preview {
                width: 40px;
                height: 50px;
            }
            
            .skin-name {
                font-size: 9px !important;
            }
            
            .skin-price {
                font-size: 8px !important;
            }
            
            /* Login screen */
            .login-container {
                padding: 12px 10px;
                min-width: 280px;
                max-width: 95%;
            }
            
            .login-title {
                font-size: 20px;
                letter-spacing: 2px;
            }
            
            .login-subtitle {
                font-size: 10px;
            }
            
            .color-option {
                width: 28px;
                height: 28px;
            }
            
            #play-button {
                padding: 10px 30px;
                font-size: 14px;
            }
            
            /* Create server modal */
            .create-server-container {
                padding: 15px 10px;
                margin: 5px;
            }
            
            .create-server-title {
                font-size: 18px;
            }
            
            .form-section-title {
                font-size: 11px;
            }
            
            .form-group label {
                font-size: 10px;
            }
            
            .form-group input {
                font-size: 12px;
                padding: 8px;
            }
            
            .map-checkbox {
                padding: 6px;
            }
            
            .map-label {
                font-size: 9px;
            }
            
            /* End screen */
            .end-container {
                padding: 8px !important;
                min-width: auto !important;
                width: 95% !important;
            }
            
            .end-title {
                font-size: 18px !important;
            }
            
            .end-subtitle {
                font-size: 10px !important;
            }
            
            #end-leaderboard-table {
                font-size: 8px;
            }
            
            #end-leaderboard-table th,
            #end-leaderboard-table td {
                padding: 2px !important;
                font-size: 8px !important;
            }
            
            .end-xp-section,
            .end-coins-section {
                padding: 8px !important;
            }
            
            .end-xp-title,
            .end-coins-title {
                font-size: 10px;
            }
            
            .end-xp-gained,
            .end-coins-gained {
                font-size: 12px;
            }
            
            .map-voting-title {
                font-size: 12px;
            }
            
            .map-grid {
                gap: 4px !important;
            }
            
            .map-card {
                padding: 4px 3px !important;
            }
            
            .map-icon {
                font-size: 16px !important;
            }
            
            .map-name {
                font-size: 8px !important;
            }
            
            .map-desc {
                display: none;
            }
            
            .map-votes {
                font-size: 8px;
            }
            
            .end-countdown {
                font-size: 14px;
            }
            
            .back-to-hub-btn {
                padding: 8px 16px;
                font-size: 12px;
            }
            
            /* Game UI */
            #score-board {
                padding: 6px 8px;
            }
            
            #game-timer {
                font-size: 16px;
                padding: 6px 12px;
            }
            
            #minimap-container {
                width: 50px;
                height: 50px;
            }
            
            /* Level up overlay */
            .level-up-number {
                font-size: 80px;
            }
            
            .level-up-title {
                font-size: 16px;
                letter-spacing: 5px;
            }
        }
        
        /* ============================================
           ENSURE ALL CONTAINERS ARE RESPONSIVE
           ============================================ */
        @media (max-width: 768px) {
            /* Ensure no horizontal scroll */
            body, html {
                overflow-x: hidden;
            }
            
            /* All modals and overlays */
            .hub-container,
            .login-container,
            .create-server-container,
            .end-container,
            #pause-menu .pause-container {
                max-width: 95vw;
                box-sizing: border-box;
            }
            
            /* Tables responsive */
            table {
                width: 100%;
                table-layout: fixed;
            }
            
            /* Stats in hub header for very small screens */
            .hub-stats .stats-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        /* ============================================
           TABLET PORTRAIT (768px - 1024px)
           ============================================ */
        @media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
            .hub-container {
                width: 90%;
                max-height: 90vh;
            }
            
            .hub-content {
                flex-direction: column;
            }
            
            .hub-left {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .hub-right {
                width: 100%;
            }
            
            .player-profile,
            .quick-actions {
                flex: 1;
                min-width: 250px;
            }
            
            .hub-stats {
                width: 100%;
            }
            
            .shop-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* ============================================
           LARGE SCREENS (1920px+)
           ============================================ */
        @media (min-width: 1920px) {
            .hub-container {
                max-width: 1600px;
            }
            
            .hub-title {
                font-size: 56px;
            }
            
            .hub-subtitle {
                font-size: 20px;
            }
            
            .shop-grid {
                grid-template-columns: repeat(5, 1fr);
            }
            
            .end-container {
                max-width: 900px;
            }
        }
        
        /* ============================================
           PAUSE MENU RESPONSIVE
           ============================================ */
        @media (max-width: 480px) {
            .pause-container {
                padding: 20px 25px;
                border-radius: 10px;
                margin: 10px;
            }
            
            .pause-title {
                font-size: 28px;
                letter-spacing: 3px;
                margin-bottom: 20px;
            }
            
            .pause-btn {
                padding: 12px 30px;
                font-size: 14px;
                letter-spacing: 1px;
            }
            
            .pause-hint {
                font-size: 10px;
                margin-top: 15px;
            }
        }
        
        @media (max-width: 320px) {
            .pause-container {
                padding: 15px 20px;
            }
            
            .pause-title {
                font-size: 22px;
                letter-spacing: 2px;
                margin-bottom: 15px;
            }
            
            .pause-btn {
                padding: 10px 20px;
                font-size: 12px;
            }
        }
