body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.snake-auth {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(20, 20, 20, 0.95);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #4CAF50;
}

.snake-auth .auth-buttons {
    display: flex;
    gap: 10px;
}

.snake-auth button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.snake-auth .btn-login {
    background: #4CAF50;
    color: white;
}

.snake-auth .btn-register {
    background: #2196F3;
    color: white;
}

.snake-auth .btn-logout {
    background: #f44336;
    color: white;
}

.snake-auth .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.snake-container {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 20px;
}

.snake-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1;
    border: 3px solid #4CAF50;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

#snake-game {
    width: 100% !important;
    height: 100% !important;
}

.snake-leaderboard {
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #4CAF50;
}

.snake-leaderboard h2 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 15px;
}

.snake-score-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.snake-score-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.snake-score-row .rank {
    font-weight: bold;
    color: #4CAF50;
    min-width: 30px;
}

.snake-score-row .player-name {
    flex: 1;
    margin-left: 10px;
}

.snake-score-row .score-value {
    font-weight: bold;
    color: #FFD700;
}

@media (max-width: 768px) {
    .snake-auth {
        flex-direction: column;
        gap: 10px;
    }
    
    .snake-container {
        margin-top: 120px;
    }
}
