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

        :root {
            --neon-cyan: #00ffff;
            --neon-pink: #ff00ff;
            --neon-purple: #8b5cf6;
            --neon-green: #00ff88;
            --neon-yellow: #ffff00;
            --neon-orange: #ff8800;
            --dark-bg: #0a0a0f;
            --panel-bg: rgba(20, 20, 30, 0.8);
        }

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

        @keyframes pulseGlow {
            0%, 100% { 
                box-shadow: 
                    0 0 5px var(--neon-cyan),
                    0 0 10px var(--neon-cyan),
                    inset 0 0 10px rgba(0, 255, 255, 0.1);
            }
            50% { 
                box-shadow: 
                    0 0 10px var(--neon-cyan),
                    0 0 20px var(--neon-cyan),
                    inset 0 0 20px rgba(0, 255, 255, 0.2);
            }
        }

        @keyframes dataFlow {
            0% { background-position: 0% 0%; }
            100% { background-position: 0% 100%; }
        }

        @keyframes slideIn {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes criticalPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        body {
            background: var(--dark-bg);
            background-image: 
                radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
            min-height: 100vh;
            font-family: 'Rajdhani', sans-serif;
            color: #fff;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Animated Background Grid */
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: dataFlow 20s linear infinite;
            pointer-events: none;
        }

        .game-container {
            width: 100vw;
            height: 100vh;
            display: grid;
            grid-template-rows: 70px 1fr 50px;
            grid-template-columns: 200px 1fr 200px;
            gap: 10px;
            padding: 10px;
            position: relative;
        }

        /* Header Bar */
        .header {
            grid-column: 1 / -1;
            background: linear-gradient(135deg, var(--panel-bg), rgba(139, 92, 246, 0.1));
            border: 1px solid rgba(139, 92, 246, 0.5);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
            animation: slideIn 3s infinite;
        }

        .logo {
            font-family: 'Orbitron', monospace;
            font-size: 2.5rem;
            font-weight: 900;
            background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
            background-size: 200% 200%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-transform: uppercase;
            letter-spacing: 5px;
            animation: neonFlicker 2s ease-in-out infinite;
            text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
        }

        .header-center {
            display: flex;
            gap: 40px;
            align-items: center;
        }

        .timer {
            font-family: 'Orbitron', monospace;
            font-size: 2rem;
            font-weight: 700;
            color: var(--neon-cyan);
            text-shadow: 
                0 0 10px var(--neon-cyan),
                0 0 20px var(--neon-cyan);
            letter-spacing: 3px;
        }

        .round-info {
            text-align: center;
        }

        .round-label {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .round-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--neon-pink);
            text-shadow: 0 0 10px var(--neon-pink);
        }

        .header-right {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .mtk-display {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid var(--neon-yellow);
            border-radius: 25px;
            animation: pulseGlow 3s ease-in-out infinite;
        }

        .mtk-icon {
            width: 30px;
            height: 30px;
            background: radial-gradient(circle, var(--neon-yellow), var(--neon-orange));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: var(--dark-bg);
            box-shadow: 0 0 20px var(--neon-yellow);
        }

        .mtk-amount {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--neon-yellow);
            text-shadow: 0 0 10px var(--neon-yellow);
            font-family: 'Orbitron', monospace;
        }

        /* Left Panel */
        .left-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .player-slot {
            background: var(--panel-bg);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 10px;
            padding: 12px;
            backdrop-filter: blur(10px);
            position: relative;
            transition: all 0.3s;
        }

        .player-slot.active {
            border-color: var(--neon-green);
            background: rgba(0, 255, 136, 0.05);
            box-shadow: 
                0 0 20px rgba(0, 255, 136, 0.3),
                inset 0 0 10px rgba(0, 255, 136, 0.1);
        }

        .player-slot.eliminated {
            opacity: 0.4;
            filter: grayscale(0.8);
        }

        .player-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .player-name {
            font-weight: 700;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .player-status {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            animation: neonFlicker 2s ease-in-out infinite;
        }

        .player-status.online {
            background: var(--neon-green);
            box-shadow: 0 0 10px var(--neon-green);
        }

        .player-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            margin-top: 8px;
        }

        .stat-mini {
            text-align: center;
            padding: 3px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            border: 1px solid rgba(139, 92, 246, 0.2);
        }

        .stat-icon {
            font-size: 0.9rem;
        }

        .stat-value {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--neon-cyan);
        }

        .player-health {
            width: 100%;
            height: 4px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 2px;
            margin-top: 8px;
            overflow: hidden;
        }

        .health-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
            transition: width 0.3s;
            box-shadow: 0 0 10px var(--neon-green);
        }

        /* Game Arena */
        .game-arena-wrapper {
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid var(--neon-purple);
            border-radius: 15px;
            padding: 15px;
            position: relative;
            overflow: hidden;
            box-shadow: 
                0 0 50px rgba(139, 92, 246, 0.3),
                inset 0 0 50px rgba(139, 92, 246, 0.05);
        }

        .game-arena-wrapper::before {
            content: "";
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, 
                var(--neon-cyan), 
                var(--neon-pink), 
                var(--neon-purple), 
                var(--neon-cyan));
            border-radius: 15px;
            opacity: 0.5;
            z-index: -1;
            animation: neonFlicker 4s ease-in-out infinite;
            filter: blur(10px);
        }

        .game-arena {
            width: 100%;
            height: 100%;
            background: #0a0a0a;
            border-radius: 10px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .game-canvas {
            width: 100%;
            height: 100%;
            max-width: 900px;
            max-height: 720px;
            image-rendering: crisp-edges;
            image-rendering: pixelated;
        }

        /* Right Panel */
        .right-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .tournament-card {
            background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
            border: 1px solid var(--neon-pink);
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            animation: criticalPulse 3s ease-in-out infinite;
        }

        .tournament-card::before {
            content: "LIVE";
            position: absolute;
            top: 5px;
            right: 10px;
            font-size: 0.7rem;
            color: var(--neon-pink);
            background: rgba(236, 72, 153, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
            border: 1px solid var(--neon-pink);
            animation: neonFlicker 1s ease-in-out infinite;
        }

        .tournament-title {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 10px;
        }

        .tournament-prize {
            font-family: 'Orbitron', monospace;
            font-size: 2rem;
            font-weight: 900;
            background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px var(--neon-pink);
            margin: 10px 0;
        }

        .tournament-timer {
            font-size: 0.85rem;
            color: var(--neon-cyan);
            margin-bottom: 10px;
        }

        .btn-tournament {
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 700;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .btn-tournament:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 25px rgba(236, 72, 153, 0.5);
        }

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

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

        .powerup-panel {
            background: var(--panel-bg);
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 10px;
            padding: 12px;
            backdrop-filter: blur(10px);
        }

        .panel-title {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 10px;
            text-align: center;
        }

        .powerup-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .powerup-item {
            aspect-ratio: 1;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .powerup-item.active {
            border-color: var(--neon-cyan);
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 
                0 0 15px rgba(0, 255, 255, 0.5),
                inset 0 0 10px rgba(0, 255, 255, 0.2);
            animation: pulseGlow 2s ease-in-out infinite;
        }

        .powerup-item:hover {
            transform: scale(1.1);
            border-color: var(--neon-cyan);
        }

        .powerup-icon {
            font-size: 1.5rem;
        }

        .powerup-count {
            position: absolute;
            bottom: 2px;
            right: 2px;
            font-size: 0.7rem;
            background: var(--neon-cyan);
            color: var(--dark-bg);
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        .leaderboard {
            background: var(--panel-bg);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 10px;
            padding: 12px;
            backdrop-filter: blur(10px);
        }

        .leaderboard-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0;
            border-bottom: 1px solid rgba(139, 92, 246, 0.1);
            font-size: 0.85rem;
        }

        .leaderboard-rank {
            width: 20px;
            font-weight: 700;
            color: var(--neon-yellow);
        }

        .leaderboard-name {
            flex: 1;
            margin: 0 10px;
        }

        .leaderboard-score {
            font-weight: 700;
            color: var(--neon-cyan);
            font-family: 'Orbitron', monospace;
        }

        /* Bottom Bar */
        .bottom-bar {
            grid-column: 1 / -1;
            background: var(--panel-bg);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            backdrop-filter: blur(10px);
        }

        .controls-hint {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .control-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.8);
            font-family: 'Rajdhani', sans-serif;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .control-item:hover {
            color: var(--neon-cyan);
            text-shadow: 0 0 8px var(--neon-cyan);
        }

        .control-item:hover .key {
            transform: translateY(-2px);
            box-shadow:
                0 0 15px var(--neon-purple),
                0 0 30px rgba(139, 92, 246, 0.5),
                inset 0 0 10px rgba(139, 92, 246, 0.3);
            border-color: var(--neon-cyan);
        }

        .key {
            position: relative;
            background: linear-gradient(135deg,
                rgba(139, 92, 246, 0.3),
                rgba(139, 92, 246, 0.15));
            border: 2px solid var(--neon-purple);
            border-radius: 6px;
            padding: 6px 12px;
            font-weight: 700;
            color: white;
            font-family: 'Orbitron', monospace;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow:
                0 0 10px rgba(139, 92, 246, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.3),
                inset 0 0 10px rgba(139, 92, 246, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-shadow: 0 0 8px var(--neon-purple);
        }

        .key::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg,
                transparent,
                rgba(139, 92, 246, 0.3),
                transparent);
            border-radius: 6px;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .key:hover::before {
            opacity: 1;
        }

        .game-status {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .status-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85rem;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--neon-green);
            box-shadow: 0 0 5px var(--neon-green);
            animation: neonFlicker 2s ease-in-out infinite;
        }

        /* Notifications */
        .notification {
            position: fixed;
            top: 90px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid var(--neon-cyan);
            border-radius: 10px;
            padding: 15px 30px;
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            box-shadow: 0 0 30px var(--neon-cyan);
            animation: slideIn 0.5s ease;
            z-index: 1000;
            display: none;
        }

        .notification.show {
            display: block;
        }

        /* Responsive Design */
        @media (max-width: 1400px) {
            .game-container {
                grid-template-columns: 180px 1fr 180px;
            }
        }

        @media (max-width: 1200px) {
            .game-container {
                grid-template-columns: 150px 1fr 150px;
            }
            .logo {
                font-size: 2rem;
            }

/* Mobile Controls */
.mobile-controls {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: none; /* Hidden by default, shown on mobile */
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10000;
}

.dpad-container,
.bomb-button-container {
    pointer-events: all;
}

/* D-Pad Styles */
.dpad {
    display: grid;
    grid-template-columns: 60px 60px 60px;
    grid-template-rows: 60px 60px 60px;
    gap: 5px;
}

.dpad-btn {
    /* Reset browser button defaults */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;

    background: rgba(139, 92, 246, 0.3);
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.4),
        inset 0 0 10px rgba(139, 92, 246, 0.1);
    text-shadow: 0 0 8px var(--neon-purple);
    transition: all 0.1s;
}

.dpad-btn:active {
    background: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
    transform: scale(0.95);
}

.dpad-up {
    grid-column: 2;
    grid-row: 1;
}

.dpad-left {
    grid-column: 1;
    grid-row: 2;
}

.dpad-center {
    grid-column: 2;
    grid-row: 2;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    pointer-events: none;
}

.dpad-right {
    grid-column: 3;
    grid-row: 2;
}

.dpad-down {
    grid-column: 2;
    grid-row: 3;
}

/* Bomb Button Styles */
.bomb-btn {
    /* Reset browser button defaults */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;

    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.4), rgba(139, 92, 246, 0.3));
    border: 3px solid var(--neon-pink);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    transition: all 0.1s;
}

.bomb-btn:active {
    background: radial-gradient(circle, rgba(255, 0, 255, 0.7), rgba(139, 92, 246, 0.5));
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.9);
    transform: scale(0.9);
}

.bomb-icon {
    font-size: 36px;
    line-height: 1;
}

.bomb-label {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: bold;
    color: var(--neon-pink);
    margin-top: 2px;
}

/* Show mobile controls ONLY on small screens (not on desktop with mouse) */
/* Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .mobile-controls {
        display: flex;
    }

    .game-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        padding: 5px;
        gap: 5px;
        height: 100vh;
        overflow: hidden;
    }

    .left-panel,
    .right-panel {
        display: none !important;
    }

    .header {
        padding: 5px 10px;
        gap: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .mtk-display {
        padding: 5px 10px !important;
        font-size: 0.8rem;
    }

    .mtk-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.9rem !important;
    }

    .timer-display {
        font-size: 1.2rem !important;
        padding: 5px 10px !important;
    }

    .game-arena-wrapper {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .game-arena {
        max-width: 100%;
        max-height: calc(100vh - 200px);
        width: 100% !important;
    }

    canvas {
        max-width: 100% !important;
        max-height: calc(100vh - 200px) !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .mobile-controls {
        padding: 5px;
        gap: 10px;
    }

    .bottom-bar {
        display: none !important;
    }

    .controls-hint {
        display: none !important;
    }
}

/* Mobile Landscape - ULTRA COMPACT for no scrolling */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-controls {
        display: flex;
    }

    .game-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        padding: 0;
        gap: 0;
        height: 100vh;
        overflow: hidden;
    }

    .left-panel,
    .right-panel {
        display: none !important;
    }

    .header {
        padding: 1px 3px;
        gap: 3px;
        font-size: 0.7rem;
        min-height: 30px;
    }

    .logo {
        font-size: 0.85rem;
    }

    .mtk-display {
        padding: 2px 5px !important;
        font-size: 0.6rem;
    }

    .mtk-icon {
        width: 15px !important;
        height: 15px !important;
        font-size: 0.7rem !important;
    }

    .timer-display {
        font-size: 0.85rem !important;
        padding: 2px 5px !important;
    }

    .round-info {
        font-size: 0.6rem !important;
    }

    .game-arena-wrapper {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .game-arena {
        max-width: 100%;
        max-height: calc(100vh - 110px);
        width: 100% !important;
    }

    canvas {
        max-width: 100% !important;
        max-height: calc(100vh - 110px) !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .mobile-controls {
        padding: 0;
        gap: 3px;
        min-height: 80px;
    }

    .dpad-container {
        width: 80px !important;
        height: 80px !important;
    }

    .dpad-btn {
        font-size: 16px !important;
    }

    .bomb-button-container {
        width: 70px !important;
        height: 70px !important;
    }

    .bomb-btn {
        font-size: 1rem !important;
    }

    .bottom-bar {
        display: none !important;
    }

    .controls-hint {
        display: none !important;
    }

    button.connect-wallet-btn {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .game-container {
        grid-template-columns: 150px 1fr 150px;
    }

    .left-panel,
    .right-panel {
        font-size: 0.9rem;
    }
}

/* Connect Wallet Button - Match keyboard buttons exactly */
.connect-wallet-btn,
button.connect-wallet-btn,
.header-right .connect-wallet-btn {
    /* IMPORTANT: Reset ALL browser button defaults */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    border: none !important;

    position: relative;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.3),
        rgba(139, 92, 246, 0.15)) !important;
    border: 2px solid var(--neon-purple) !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    color: white !important;
    font-family: 'Orbitron', monospace !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(139, 92, 246, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 0 8px var(--neon-purple) !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.connect-wallet-btn::before,
button.connect-wallet-btn::before,
.header-right .connect-wallet-btn::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg,
        transparent,
        rgba(139, 92, 246, 0.3),
        transparent) !important;
    border-radius: 6px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: -1 !important;
}

.connect-wallet-btn:hover,
button.connect-wallet-btn:hover,
.header-right .connect-wallet-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 0 15px var(--neon-purple),
        0 0 30px rgba(139, 92, 246, 0.5),
        inset 0 0 10px rgba(139, 92, 246, 0.3) !important;
    border-color: var(--neon-cyan) !important;
}

.connect-wallet-btn:hover::before,
button.connect-wallet-btn:hover::before,
.header-right .connect-wallet-btn:hover::before {
    opacity: 1 !important;
}

/* Install wallet links */
.wallet-install-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
}

/* Wallet Container */
.wallet-container {
    position: relative;
}

/* Base Wallet Button - Keyboard Style */
.wallet-button {
    /* Reset button/link defaults */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    text-decoration: none;
    display: inline-block;

    position: relative;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.3),
        rgba(139, 92, 246, 0.15));
    border: 2px solid var(--neon-purple);
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 700;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 8px var(--neon-purple);
    cursor: pointer;
    overflow: hidden;
}

.wallet-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 15px var(--neon-purple),
        0 0 30px rgba(139, 92, 246, 0.5),
        inset 0 0 10px rgba(139, 92, 246, 0.3);
    border-color: var(--neon-cyan);
}

.wallet-button:active {
    transform: translateY(0);
}

.wallet-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Wallet Selector Container */
.wallet-selector-container {
    position: relative;
}

/* Wallet Selector Dropdown */
.wallet-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Wallet Selector Items - Same keyboard style */
.wallet-selector-item {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.3),
        rgba(139, 92, 246, 0.15));
    border: 2px solid var(--neon-purple);
    border-radius: 6px;
    font-weight: 700;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 8px var(--neon-purple);
    cursor: pointer;
}

.wallet-selector-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 15px var(--neon-purple),
        0 0 30px rgba(139, 92, 246, 0.5),
        inset 0 0 10px rgba(139, 92, 246, 0.3);
    border-color: var(--neon-cyan);
}

.wallet-icon {
    font-size: 1.2rem;
}

.wallet-name {
    flex: 1;
}

/* Connected Wallet Display */
.wallet-connected {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.wallet-tokens {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.token-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.token-row:last-child {
    border-bottom: none;
}

.token-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Wallet Error */
.wallet-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 4px;
    color: #ff4444;
    font-size: 0.75rem;
    text-align: center;
}
