.uno-game-container {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
}

.uno-header {
    text-align: center;
    margin-bottom: 20px;
}

.uno-header h2 {
    font-size: 28px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.difficulty-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-left: 10px;
}

.difficulty-easy {
    background-color: #4CAF50;
}

.difficulty-medium {
    background-color: #FF9800;
}

.difficulty-hard {
    background-color: #F44336;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
}

.game-board {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pc-area, .player-area {
    width: 45%;
    text-align: center;
    position: relative;
}

.area-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.pc-cards {
    display: flex;
    justify-content: center;
    height: 120px;
    align-items: center;
}

.pc-card {
    width: 60px;
    height: 90px;
    background: #1e3c72;
    border: 2px solid white;
    border-radius: 8px;
    margin: 0 -15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.discard-pile {
    margin: 20px 0;
    text-align: center;
}

.current-card {
    width: 80px;
    height: 120px;
    margin: 0 auto;
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.card-color-red {
    background: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
    color: white;
}

.card-color-blue {
    background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 100%);
    color: white;
}

.card-color-green {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.card-color-yellow {
    background: linear-gradient(135deg, #ffd200 0%, #f7971e 100%);
    color: #333;
}

.card-color-black {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    color: white;
}

.player-hand {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    min-height: 140px;
}

.player-card {
    width: 70px;
    height: 100px;
    border: 2px solid white;
    border-radius: 8px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.player-card:hover {
    transform: translateY(-10px);
}

.controls {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s;
}

.btn-draw {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.btn-new-game {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.game-message {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
    min-height: 30px;
}

.win-message {
    color: #4CAF50;
}

.lose-message {
    color: #F44336;
}

.color-selection {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.color-red {
    background: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
}

.color-blue {
    background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 100%);
}

.color-green {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.color-yellow {
    background: linear-gradient(135deg, #ffd200 0%, #f7971e 100%);
}

.uno-leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.uno-leaderboard th, .uno-leaderboard td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.uno-leaderboard th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.uno-leaderboard tr:last-child td {
    border-bottom: none;
}

.uno-leaderboard tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Registro del juego */
.game-log {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.game-log h3 {
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.log-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.log-entry {
    padding: 8px 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.log-entry:last-child {
    margin-bottom: 0;
}

/* Burbuja de pensamiento */
.thinking-bubble {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 10px 15px;
    color: #333;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: pulse 1.5s infinite;
}

.bubble-content {
    font-size: 14px;
}

.bubble-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .game-board {
        flex-direction: column;
    }
    
    .pc-area, .player-area {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .player-card {
        width: 60px;
        height: 85px;
        font-size: 16px;
    }
    
    .game-log {
        font-size: 14px;
    }
    
    .log-entry {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .thinking-bubble {
        top: -60px;
        padding: 8px 12px;
    }
    
    .bubble-content {
        font-size: 12px;
    }
}