/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #000000 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: auto;
}

/* Container principal */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho */
.game-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    border: 2px solid #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.game-title {
    font-family: 'Creepster', cursive;
    font-size: 3rem;
    color: #FF4444;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.game-subtitle {
    font-family: 'Butcherman', cursive;
    font-size: 1.2rem;
    color: #CCCCCC;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Tabuleiro */
.game-board-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(10, 60px);
    grid-template-rows: repeat(6, 60px);
    gap: 2px;
    background: #000000;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid #8B0000;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.7);
}

.board-cell {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2a0000 0%, #4a0000 100%);
    border: 1px solid #666;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    color: #fff;
    text-align: center;
}

.board-cell:hover {
    background: linear-gradient(135deg, #4a0000 0%, #6a0000 100%);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.board-cell.special {
    background: linear-gradient(135deg, #8B0000 0%, #FF4444 100%);
    border-color: #FF6666;
    animation: pulse 2s infinite;
}

.board-cell.start {
    background: linear-gradient(135deg, #006400 0%, #32CD32 100%);
    border-color: #90EE90;
}

.board-cell.finish {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFFF00;
    animation: glow 2s infinite alternate;
}

.cell-number {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 2px;
}

.cell-icon {
    font-size: 16px;
}

/* Animações */
@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 68, 68, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.5); }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Peças dos jogadores */
.player-piece {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: absolute;
    top: 2px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    z-index: 10;
}

.player-piece.player-1 { background: #FF4444; left: 2px; }
.player-piece.player-2 { background: #4444FF; right: 2px; }
.player-piece.player-3 { background: #44FF44; left: 2px; bottom: 2px; top: auto; }
.player-piece.player-4 { background: #FFFF44; right: 2px; bottom: 2px; top: auto; }

/* Controles do jogo */
.game-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.players-section, .game-actions, .current-player {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #8B0000;
}

.players-section h3, .current-player h3 {
    color: #FF4444;
    margin-bottom: 15px;
    font-family: 'Nosifer', cursive;
}

.players-list {
    margin-bottom: 15px;
}

.player-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 5px;
}

.player-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
}

.player-name {
    flex: 1;
    font-weight: bold;
}

.remove-player {
    background: #8B0000;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.remove-player:hover {
    background: #FF4444;
}

/* Botões */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #8B0000 0%, #FF4444 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #333 0%, #666 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #006400 0%, #32CD32 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: white;
}

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

/* Resultado do dado */
.dice-result {
    margin: 10px 0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #FF4444;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Display do jogador atual */
.player-display {
    padding: 15px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

/* Card de evento */
.event-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.event-content {
    background: linear-gradient(135deg, #1a0000 0%, #330000 100%);
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #8B0000;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
}

.event-title {
    font-family: 'Nosifer', cursive;
    color: #FF4444;
    margin-bottom: 20px;
    font-size: 24px;
}

.event-description {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

/* Informações do jogo */
.game-info {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #8B0000;
}

.game-info h3 {
    color: #FF4444;
    margin-bottom: 15px;
    font-family: 'Nosifer', cursive;
}

.game-info ul {
    list-style: none;
    padding-left: 0;
}

.game-info li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.game-info li:before {
    content: "🎭";
    position: absolute;
    left: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }
    
    .game-controls {
        grid-template-columns: 1fr;
    }
    
    .game-board {
        grid-template-columns: repeat(10, 50px);
        grid-template-rows: repeat(4, 50px);
    }
    
    .board-cell {
        width: 50px;
        height: 50px;
        font-size: 8px;
    }
    
    .player-piece {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

