/* ========================================
   Menu "Batas waktu menjawab" (timer kustom) - komponen bersama js/timer-setting.js.
   Gayanya sengaja sama dengan pilihan jumlah soal (.question-count-btn) supaya semua layar
   awal permainan kuis tampak seragam.
   ======================================== */

.tmr {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.tmr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.tmr-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.tmr-now {
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 217, 255, 0.4);
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
}

.tmr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tmr-chip {
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.tmr-chip:hover { border-color: var(--accent); }

.tmr-chip:focus-visible,
.tmr-step:focus-visible,
.tmr-reset:focus-visible,
.tmr-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tmr-chip.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.25) 0%, rgba(131, 56, 236, 0.2) 100%);
    box-shadow: 0 0 14px rgba(255, 0, 110, 0.25);
}

.tmr-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transition: opacity 0.2s ease;
}

.tmr-custom--off { opacity: 0.6; }

.tmr-custom-label {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.tmr-step {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.tmr-step:hover { border-color: var(--accent); }

.tmr-input {
    width: 88px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.tmr-unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.tmr-reset {
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tmr-reset:hover { color: var(--text-primary); border-color: var(--accent); }

.tmr-note {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .tmr-chip { padding: 9px 12px; font-size: 13px; }
    .tmr-reset { margin-left: 0; }
}
