/* ============================================
   PROFESSIONAL GAME SCREEN - UNO WEB GAME
   Consistent with Lobby Design
   ============================================ */

/* Game Screen Container */
#game-screen {
    min-height: 100vh;
    padding: 2rem;
    /* background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); */ /* Removido para permitir fundo dinâmico */
    position: relative;
    overflow: hidden;
}

/* Animated Background Effects for Game Screen */
#game-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(72, 187, 120, 0.1) 0%, transparent 50%);
    animation: bgPulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Game Board - Main Container */
.game-board {
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.95), rgba(22, 33, 62, 0.98));
    backdrop-filter: blur(30px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.game-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
    border-radius: 24px 24px 0 0;
}

/* Game Info Header */
.game-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.game-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
    to { left: 100%; }
}

.game-info strong {
    font-weight: 700;
    color: #F0F0F0; /* Cor mais clara para garantir visibilidade */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Adicionar sombra para destaque */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-info span {
    color: #ffd700;
    font-weight: 600;
}

/* Buttons in Game Info */
.game-info .btn {
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-info .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.game-info .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.game-info .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.game-info .btn-warning {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border: none;
    color: #1a1a2e;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
}

.game-info .btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border: none;
    color: white;
}

/* Central Game Area - Deck and Discard Pile */
.central-game-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem; /* Aumentar o espaçamento entre as pilhas para acomodar o aumento de tamanho */
    min-height: 300px;
    margin: 3rem 0;
    position: relative;
}

.deck-pile,
.discard-pile {
    width: 140px;
    height: 210px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease-in-out; /* Transição ajustada */
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    
    /* Aumento de 40% no tamanho visual das cartas centrais */
    transform: scale(1.4);
}

.deck-pile {
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.95), rgba(22, 33, 62, 0.98));
    border: 3px solid rgba(102, 126, 234, 0.5);
}

.deck-pile:hover {
    transform: translateY(-10px) scale(1.45); /* Ajustar hover para o novo tamanho */
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    border-color: #667eea;
}

.deck-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.discard-pile {
    background: linear-gradient(145deg, rgba(50, 50, 66, 0.95), rgba(42, 53, 82, 0.98));
    border: 3px solid rgba(118, 75, 162, 0.5);
}

.discard-pile:hover {
    transform: scale(1.45); /* Adicionar hover para discard-pile para consistência */
}

/* Media Query para telas menores (Tablets) */
@media (max-width: 992px) {
    .central-game-area {
        gap: 2rem; /* Reduzir o espaçamento em telas menores */
        min-height: 250px;
    }
    .deck-pile,
    .discard-pile {
        transform: scale(1.1); /* Reduzir o aumento em telas menores */
    }
    .deck-pile:hover {
        transform: translateY(-10px) scale(1.15);
    }
    .discard-pile:hover {
        transform: scale(1.15);
    }
}

/* Media Query para telas muito pequenas (Celular) */
@media (max-width: 576px) {
    .central-game-area {
        gap: 1rem; /* Espaçamento mínimo */
        min-height: 200px;
    }
    .deck-pile,
    .discard-pile {
        /* Manter o tamanho original ou levemente maior */
        transform: scale(1.0); 
    }
    .deck-pile:hover {
        transform: translateY(-5px) scale(1.05);
    }
    .discard-pile:hover {
        transform: scale(1.05);
    }
}

/* Player Hand Section */
.player-hand {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 18px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-height: 200px;
    display: flex;
    flex-wrap: nowrap; /* Não quebrar a linha, o leque deve ser contínuo */
    gap: 0; /* Remover o gap para permitir a sobreposição */
    justify-content: center;
    align-items: flex-end; /* Alinhar as cartas pela base */
    overflow-x: auto; /* Adicionar rolagem horizontal para muitas cartas */
    /* Adicionar um padding horizontal para que a primeira e a última carta não fiquem cortadas */
    padding: 0 50px;
}

.player-hand h5 {
    color: #FFFFFF !important; /* Cor branca para destaque */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 2px 10px rgba(0, 0, 0, 0.9); /* Sombra forte para destaque */
}

/* UNO Cards Enhancement */
.card-uno {
    width: 90px;
    height: 135px;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s; /* Z-index não deve ter transição */
    cursor: pointer;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-uno:hover {
    transform: translateY(-30px) scale(1.1) rotate(0deg) !important; /* Anular a rotação e levantar a carta */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    z-index: 20; /* Garantir que a carta em hover fique por cima */
}

/* Efeito de Leque (Fan Effect) */
.player-hand .card-uno {
    margin-left: -60px; /* Sobrepor as cartas (ajustar conforme o tamanho da carta) */
    transform-origin: bottom center;
}

/* Ajustar a primeira carta para não ter margem negativa */
.player-hand .card-uno:first-child {
    margin-left: 0;
}

/* Rotações para o efeito de leque */
.player-hand .card-uno:nth-child(2n) {
    transform: rotate(2deg);
}

.player-hand .card-uno:nth-child(3n) {
    transform: rotate(-3deg);
}

.player-hand .card-uno:nth-child(4n) {
    transform: rotate(4deg);
}

.player-hand .card-uno:nth-child(5n) {
    transform: rotate(-5deg);
}

.player-hand .card-uno:nth-child(6n) {
    transform: rotate(6deg);
}

.player-hand .card-uno:nth-child(7n) {
    transform: rotate(-7deg);
}

/* Garantir que o hover sobrescreva as transformações do leque */
.player-hand .card-uno:hover {
    z-index: 20;
}

/* Ajustar o z-index para a sobreposição correta */
.player-hand .card-uno:nth-child(1) { z-index: 10; }
.player-hand .card-uno:nth-child(2) { z-index: 11; }
.player-hand .card-uno:nth-child(3) { z-index: 12; }
.player-hand .card-uno:nth-child(4) { z-index: 13; }
.player-hand .card-uno:nth-child(5) { z-index: 14; }
.player-hand .card-uno:nth-child(6) { z-index: 15; }
.player-hand .card-uno:nth-child(7) { z-index: 16; }
.player-hand .card-uno:nth-child(8) { z-index: 17; }
.player-hand .card-uno:nth-child(9) { z-index: 18; }
.player-hand .card-uno:nth-child(10) { z-index: 19; }

.card-uno.playable {
    border-color: #ffd700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 6px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 1),
            0 10px 30px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* Sidebar Sections */
.sidebar-section {
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.95), rgba(22, 33, 62, 0.98));
    backdrop-filter: blur(30px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
    border-radius: 20px 20px 0 0;
}

.sidebar-section h5,
.sidebar-section h6 {
    color: #FFFFFF !important; /* Cor branca para destaque */
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 2px 10px rgba(0, 0, 0, 0.9); /* Sombra forte para destaque */
    font-size: 1.3rem;
}

/* Player List Styling */
.player-list {
    border-color: rgba(72, 187, 120, 0.4);
}

.player-list::before {
    background: linear-gradient(90deg, #48bb78, #38a169, #48bb78);
}

#players-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#players-list > div {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    transition: all 0.3s ease;
}

#players-list > div:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
}

.current-player {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 183, 0, 0.2)) !important;
    border: 2px solid #ffd700 !important;
    border-left: 5px solid #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Game Log Styling */
.game-log {
    border-color: rgba(118, 75, 162, 0.4);
}

.game-log::before {
    background: linear-gradient(90deg, #764ba2, #667eea, #764ba2);
}

.game-log-content {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: #FFFFFF !important; /* Cor branca para destaque */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8); /* Sombra forte para destaque */
    font-size: 0.9rem;
    line-height: 1.6;
}

.game-log-content::-webkit-scrollbar {
    width: 8px;
}

.game-log-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.game-log-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.game-log-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Chat Modal Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.chat-messages {
    overflow-y: auto;
    border: 1px solid #495057;
    border-radius: 8px;
    padding: 10px;
    background-color: #343a40;
}

.chat-input-group {
    display: flex;
    gap: 5px;
}

.chat-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-message {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chat-message .chat-profile-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.chat-message .message-body {
    flex: 1;
    min-width: 0;
}

.chat-message .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 5px;
    display: block;
    cursor: pointer;
}

.chat-message.self {
    background-color: #007bff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.chat-message.other {
    background-color: #6c757d;
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.chat-message.system {
    background-color: #ffc107;
    color: #343a40;
    text-align: center;
    max-width: 100%;
    margin: 8px 0;
}

.chat-message .timestamp {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.chat-message.self .timestamp {
    text-align: right;
}

.chat-message.other .timestamp {
    text-align: left;
}

/* Emoji Picker Styling */
#emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    z-index: 1000;
    background: #343a40;
    border: 1px solid #495057;
    border-radius: 8px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 5px;
}

.emoji-picker-grid span {
    cursor: pointer;
    font-size: 1.5rem;
    text-align: center;
}

/* Profile Photo Upload Modal */
.profile-photo-modal-content {
    background: #2d3748;
    color: white;
}

.profile-photo-modal-header {
    border-bottom: 1px solid #495057;
}

.profile-photo-modal-footer {
    border-top: 1px solid #495057;
}

/* Game Finished Modal */
.game-finished-modal-content {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-finished-modal-header {
    border-bottom: 2px solid #667eea;
}

.game-finished-modal-body {
    text-align: center;
}

.game-finished-modal-body h2 {
    color: #ffd700;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-finished-modal-body p {
    font-size: 1.1rem;
    margin-top: 15px;
}

.game-finished-modal-body .winner-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffd700;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.game-finished-modal-footer {
    border-top: 2px solid #667eea;
}

/* Color Picker Modal */
.color-picker-modal-content {
    background: #2d3748;
    color: white;
    border-radius: 15px;
}

.color-picker-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.color-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover {
    border-color: white;
    transform: scale(1.1);
}

.color-option[data-color="red"] { background-color: #ff0000; }
.color-option[data-color="blue"] { background-color: #0000ff; }
.color-option[data-color="green"] { background-color: #008000; }
.color-option[data-color="yellow"] { background-color: #ffff00; }

.color-option.selected {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Player Info Badge */
.player-info-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 5px 10px;
    color: white;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.badge-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

.badge-label {
    font-weight: 300;
    margin-right: 5px;
}

.badge-id {
    font-weight: 600;
    color: #ffd700;
}

/* Chat Notification Badge */
#chat-notification-badge {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Player Card in Player List */
.player-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.player-card:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

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

.player-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #667eea;
}

.player-name {
    font-weight: 600;
}

.player-status {
    font-size: 0.9rem;
    color: #48bb78; /* Green for active/turn */
}

.player-card.is-turn .player-status {
    color: #ffd700; /* Yellow for turn */
    font-weight: 700;
    animation: pulse 1s infinite;
}

.player-card.is-turn {
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.player-card.is-turn .player-photo-small {
    border-color: #ffd700;
}

.player-card.is-uno .player-name::after {
    content: " (UNO!)";
    color: #ff0000;
    font-weight: 800;
    margin-left: 5px;
    animation: uno-flash 0.5s infinite alternate;
}

@keyframes uno-flash {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/* Game Direction Indicator */
#game-direction {
    font-weight: 700;
    color: #48bb78; /* Green for normal/clockwise */
}

.reverse-direction {
    color: #ff0000 !important; /* Red for reverse/counter-clockwise */
}

/* Current Color Indicator */
#current-color {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    color: #343a40;
    text-shadow: none;
}

#current-color[data-color="red"] { background-color: #ff0000; }
#current-color[data-color="blue"] { background-color: #0000ff; }
#current-color[data-color="green"] { background-color: #008000; }
#current-color[data-color="yellow"] { background-color: #ffff00; }
#current-color[data-color="wild"] { background-color: #fff; }

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    z-index: 9999;
}

.loading p {
    margin-top: 15px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #667eea !important;
}

/* Ajustes de responsividade geral */
@media (max-width: 768px) {
    /* Ajustes para o efeito leque em telas menores */
    .player-hand .card-uno {
        margin-left: -35px; /* Reduzir a sobreposição */
    }

    /* Rotações mais suaves para telas menores */
    .player-hand .card-uno:nth-child(2n) {
        transform: rotate(1deg);
    }
    
    .player-hand .card-uno:nth-child(3n) {
        transform: rotate(-1.5deg);
    }
    
    .player-hand .card-uno:nth-child(4n) {
        transform: rotate(2deg);
    }
    
    .player-hand .card-uno:nth-child(5n) {
        transform: rotate(-2.5deg);
    }
    
    .player-hand .card-uno:nth-child(6n) {
        transform: rotate(3deg);
    }
    
    .player-hand .card-uno:nth-child(7n) {
        transform: rotate(-3.5deg);
    }

    .card-uno:hover {
        transform: translateY(-20px) scale(1.1) rotate(0deg) !important; /* Ajustar hover */
    }
    #game-screen {
        padding: 1rem;
    }

    .game-board {
        padding: 1.5rem;
    }

    .game-info {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .central-game-area {
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .deck-pile,
    .discard-pile {
        width: 100px;
        height: 150px;
        font-size: 1rem;
    }

    .player-hand {
        padding: 1rem;
        min-height: 150px;
    }

    .card-uno {
        width: 70px;
        height: 105px;
        font-size: 1rem;
    }

    .sidebar-section {
        padding: 1.5rem;
    }

    .game-log-content {
        max-height: 200px;
    }
}

/* Estilos para o Botão Flutuante de Jogadores */
.floating-btn {
    position: fixed;
    bottom: 15px;
    left: 15px; /* Posição no canto inferior esquerdo, oposto ao music player */
    z-index: 1050; /* Acima do music player (z-index 1000) */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 3px solid #fff;
    padding: 0;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.floating-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 0.7rem;
    border: 2px solid #1a1a1a; /* Cor de fundo do modal para contraste */
}

/* Estilos para a Lista de Jogadores dentro do Modal */
#players-list-container .list-group-item {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    margin-bottom: 8px;
    border-radius: 10px;
    color: #f8f9fa;
    transition: background-color 0.2s;
}

#players-list-container .list-group-item:hover {
    background-color: #3a3a3a;
}

.player-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

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

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #007bff;
}

.player-name-status {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.player-status {
    font-size: 0.9rem;
    font-style: italic;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.status-playing {
    background-color: #28a745; /* Verde */
    color: white;
}

.status-waiting {
    background-color: #ffc107; /* Amarelo */
    color: #212529;
}

.status-turn {
    background-color: #dc3545; /* Vermelho */
    color: white;
    animation: pulse-status 1s infinite;
}

@keyframes pulse-status {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Responsividade para o botão flutuante */
@media (max-width: 576px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 75px; /* Mover para cima para não colidir com a mão do jogador ou outros elementos */
        left: 10px;
    }
    .floating-btn .badge {
        padding: 3px 6px;
        font-size: 0.6rem;
    }
}
