.game-container { width: 100%; max-width: 800px; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; position: relative; z-index: 10; }
.game-header { width: 100%; text-align: center; position: relative; }
.back-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.back-btn:hover { color: var(--primary); }

.score-board { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.player-score { background: var(--glass-bg); border: 2px solid transparent; border-radius: 12px; padding: 1rem 2rem; display: flex; flex-direction: column; align-items: center; transition: all 0.3s; opacity: 0.5; }
.player-score.active { opacity: 1; transform: scale(1.05); }
.player-score.player1.active { border-color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.player-score.player2.active { border-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
.player-score .name { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.player-score .score { font-size: 1.8rem; font-weight: 700; }

#status-message { margin-top: 1rem; font-size: 1.2rem; color: var(--text-main); font-weight: 500; height: 1.5rem; }

.panel { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2rem; text-align: center; width: 100%; max-width: 500px; margin: 0 auto; }
.panel h2 { margin-bottom: 1.5rem; }
.btn-group { display: flex; flex-direction: column; gap: 1rem; }
.hidden { display: none !important; }

#game-board-container { display: flex; flex-direction: column; align-items: center; width: 100%; }

.grid-container {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 2rem auto;
}

.chocolate-block {
    background: linear-gradient(135deg, #8B4513, #5C2E0B);
    border: 1px solid #3d1c02;
    border-radius: 8px;
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.2), inset -2px -2px 5px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.1s, opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.chocolate-block.poisoned {
    background: linear-gradient(135deg, #22c55e, #166534);
    border: 1px solid #14532d;
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.3), inset -2px -2px 5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(34, 197, 94, 0.4);
}

.chocolate-block.poisoned::after {
    content: "☠️";
}


.chocolate-block.hovered {
    background: linear-gradient(135deg, #a0522d, #8b4513);
    transform: scale(0.95);
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.5);
    opacity: 0.8;
}

.chocolate-block.poisoned.hovered {
    background: linear-gradient(135deg, #16a34a, #15803d);
}


.chocolate-block.eaten {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

@media (max-width: 600px) {
    .back-btn { position: relative; top: 0; transform: none; display: block; margin-bottom: 1rem; }
    .score-board { gap: 1rem; }
    .player-score { padding: 0.5rem 1rem; }
}
