.auth-container {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.sound-toggle {
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    margin-left: 5px;
    transition: transform 0.2s;
    border-radius: 5px;
    padding: 0;
    border: 1px solid transparent;
    margin-right: 10px;
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px #00ffff;
    border: 1px solid #00ffff;
}

.sound-on {
    background-image: url('../images/sound.png');
}

.sound-off {
    background-image: url('../images/sound.png');
    opacity: 0.5;
}

.view-leaderboard-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    background-image: url('../images/leaderboard.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
    margin-right: 10px;
    margin-bottom: 5px;
}

.view-leaderboard-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px #00ffff;
    border: 1px solid #00ffff;
}

.sign-out-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    background-image: url('../images/exit.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
    margin-left: 5px;
}

.sign-out-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px #00ffff;
    border: 1px solid #00ffff;
}

.sign-out-btn::before {
    content: '';
    background-image: url('../images/exit.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    display: none;
}

.view-leaderboard-btn::before {
    content: '';
    background-image: url('../images/leaderboard.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    display: none;
}

body {
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a2e 100%);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #00ffc8;
    height: 100vh;
}

canvas {
    background: #000;
    border: 3px solid #00f7ff;
    box-shadow: 0 0 40px rgba(0, 247, 255, 0.5);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-ui {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: #00ffc8;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 10px #00ffc8, 0 0 20px #00ffc8;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1d1d3a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    text-align: center;
}

.bobo-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 3px solid #00ffff;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from { box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff; }
    to { box-shadow: 0 0 30px #ff00ff, 0 0 60px #00ffff; }
}

.start-screen h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff;
}

.start-screen h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.play-btn {
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    border: none;
    padding: 15px 40px;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.9);
}

.play-btn.disabled {
    background: linear-gradient(135deg, #666 0%, #333 100%);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.play-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.twitter-btn-in-start {
    margin-top: 15px;
    margin-bottom: 15px;
    background: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.twitter-btn-in-start:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    background: #111111;
}

.twitter-share-btn {
    margin-top: 20px;
    margin-bottom: 10px;
    background: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.twitter-share-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    background: #111111;
}

.replay-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #00ffcc 0%, #00ccff 100%);
    border: none;
    padding: 10px 30px;
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    margin: auto;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.7);
}

.replay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.9);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 30, 0.9);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.5);
    text-align: center;
    z-index: 20;
    border: 2px solid #00ffc8;
    color: #00ffc8;
}

.controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 10, 30, 0.8);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #00f7ff;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    font-size: 14px;
    color: #00f7ff;
}

.mobile-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: 100%;
    text-align: center;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.mobile-only-arrow {
    display: none;
}

.touch-hint {
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid #00f7ff;
    color: #00f7ff;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    text-shadow: 0 0 5px #00f7ff;
    animation: pulse-hint 2s infinite alternate;
}

@keyframes pulse-hint {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .mobile-control-arrows {
        display: flex;
        justify-content: space-between;
        position: fixed;
        bottom: 30px;
        left: 0;
        width: 100%;
        z-index: 20;
        pointer-events: none;
        transform: translate(0, 0);
    }

    .left-arrow {
        border-right: 2px solid rgba(0, 255, 200, 0.8);
    }

    .right-arrow {
        border-left: 2px solid rgba(0, 255, 200, 0.8);
    }
    
    .mobile-arrow {
        font-size: 40px;
        color: rgba(0, 255, 200, 0.8);
        text-shadow: 0 0 10px #00ffc8, 0 0 20px #00ffcc;
        opacity: 0.8;
        width: 50%;
        text-align: center;
    }
    
    .controls {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    canvas {
        width: 100vw;
        height: 100vh;
        border: none;
        top: 0;
        left: 0;
        transform: none;
    }
    .game-ui {
        font-size: 14px;
        background: rgba(10, 10, 30, 0.6);
        padding: 5px 10px;
        border-radius: 5px;
        left: 10px;
        top: 10px;
    }
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
        touch-action: none;
    }
    
    .game-over {
        padding: 20px;
        width: 80%;
    }
    
    .game-over p {
        margin: 10px 0;
    }
    
    .touch-hint {
        pointer-events: none;
        opacity: 0.8;
    }
    
    .auth-container {
        gap: 5px;
    }
}
