/* ========== TASK MODAL ========== */
.task-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.task-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.task-card {
    width: min(92vw, 520px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-main);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    transform: translateY(18px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.task-modal.show .task-card {
    transform: translateY(0) scale(1);
}

.task-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.task-content {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
}

.task-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.task-close-btn {
    font-size: 12px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-close-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .main-wrap { padding: 12px; }
    .player-bar { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 900px) {
    .ludo-board { width: min(100%, 860px); }
}

@media (max-width: 768px) {
    .ludo-board { gap: 0; }
    .track-cell { margin: 1px; border-radius: 2px; }
    .runway-cell { margin: 10%; }
    .cell-mark { min-width: 9px; height: 8px; font-size: 4px; }
    .cell-no { font-size: 5px; }
    .home-box { width: 55%; height: 55%; border-radius: 8px; }
    .home-title { font-size: 7px; }
    .home-planes { gap: 2px; }
    .player-bar { grid-template-columns: 1fr; }
    .ludo-board-wrap { padding: 3px; }
}
