/* Pictionary module styles (scoped under .pict-root / shared game-screen ids). */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}
#pict-timer { font-size: 2rem; font-weight: bold; color: #e74c3c; }
#pict-word { font-size: 1.5rem; letter-spacing: 4px; font-family: monospace; }

.game-container { display: flex; gap: 1rem; }
.canvas-area { flex: 1; display: flex; flex-direction: column; }

#drawing-canvas {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
    touch-action: none;
}

#drawing-tools {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 8px;
}
.color-picker, .brush-sizes { display: flex; gap: 4px; }
.color-btn { width: 30px; height: 30px; border: 2px solid #ddd; border-radius: 50%; cursor: pointer; }
.color-btn.active { border-color: #333; transform: scale(1.1); }
.size-btn { width: 30px; height: 30px; border: 2px solid #ddd; border-radius: 4px; background: white; cursor: pointer; }
.size-btn.active { background: #667eea; color: white; }
#clear-canvas-btn, #skip-turn-btn {
    padding: 6px 16px; color: white; border: none; border-radius: 4px; cursor: pointer;
}
#clear-canvas-btn { background: #e74c3c; }
#skip-turn-btn { background: #8a94b8; }

.players-panel { width: 200px; background: #f5f5f5; border-radius: 8px; padding: 1rem; }
.players-panel h3 { margin-bottom: 0.5rem; }
.hint-text { font-size: 0.8rem; color: #667eea; margin-bottom: 0.5rem; }
.player-score {
    display: flex; justify-content: space-between;
    padding: 8px; margin-bottom: 4px; background: white; border-radius: 4px; font-size: 14px;
}
.player-score.drawing { background: #fff3cd; font-weight: bold; }
.player-score.clickable { cursor: pointer; border: 2px solid #667eea; }
.player-score.clickable:hover { background: #eef; }

.pict-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex; justify-content: center; align-items: center;
    z-index: 500;
}
.overlay-content { text-align: center; color: white; }
.overlay-title { font-size: 2rem; margin-bottom: 1rem; }
.overlay-message { font-size: 2.5rem; font-weight: bold; margin-bottom: 1rem; }
.overlay-message.word-reveal { color: #ffd700; }
.overlay-message.waiting { color: #bbb; font-size: 1.5rem; }
.overlay-countdown { font-size: 3rem; font-weight: bold; }
.final-score-item {
    display: flex; gap: 1rem; justify-content: space-between;
    padding: 10px 16px; background: rgba(255,255,255,0.1); margin-bottom: 4px; border-radius: 6px;
    min-width: 260px;
}
.final-score-item:first-child { background: rgba(255,215,0,0.3); font-weight: bold; }

@media (max-width: 720px) {
    .game-container { flex-direction: column; }
    .players-panel { width: 100%; }
}
