/* ===== 五线谱识谱闪卡 note-flashcard ===== */
.nf-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.nf-mode button {
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: var(--c-surface-soft);
    color: var(--c-text-sub);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .16s ease;
}
.nf-mode button.is-active {
    background: linear-gradient(135deg, rgba(108,92,231,.16), rgba(108,92,231,.06));
    border-color: rgba(108,92,231,.55);
    color: #5a4bd1;
}

/* 学一学 */
.nf-learn-card {
    text-align: center;
    padding: 18px 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108,92,231,.12), rgba(108,92,231,.04));
    border: 1px solid rgba(108,92,231,.25);
    margin-bottom: 12px;
}
.nf-learn-name {
    font-size: 54px;
    font-weight: 900;
    color: #5a4bd1;
    line-height: 1.1;
    font-family: Georgia, serif;
    font-style: italic;
}
.nf-learn-sub { font-size: 15px; font-weight: 700; color: var(--c-text); margin-top: 6px; }
.nf-learn-pos { font-size: 13px; color: var(--c-text-sub); margin-top: 6px; }
.nf-learn-btns { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; margin-bottom: 12px; }
.nf-dots { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.nf-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(108,92,231,.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all .15s ease;
}
.nf-dot-high { border-style: dashed; }
.nf-dot.is-active { background: #6c5ce7; border-color: #6c5ce7; transform: scale(1.25); }

/* 难度 */
.nf-level { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nf-level button {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    padding: 10px 4px;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: var(--c-surface-soft);
    color: var(--c-text-sub);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.nf-level button small { font-size: 11px; font-weight: 500; opacity: .8; }
.nf-level button.is-active {
    background: linear-gradient(135deg, rgba(108,92,231,.16), rgba(108,92,231,.06));
    border-color: rgba(108,92,231,.55);
    color: #5a4bd1;
}
.nf-best { font-size: 13px; color: var(--c-text-sub); text-align: center; margin: 10px 0; }

/* 抢答 */
.nf-quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nf-progress { font-size: 13.5px; font-weight: 700; color: var(--c-text-sub); }
.nf-score { font-size: 13.5px; color: var(--c-text-sub); }
.nf-score b { color: #5a4bd1; font-size: 16px; }
.nf-timer {
    height: 10px;
    border-radius: 99px;
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    overflow: hidden;
    margin-bottom: 12px;
}
.nf-timer-bar { height: 100%; width: 100%; border-radius: 99px; transition: width .06s linear; }
.nf-feedback {
    min-height: 44px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--c-text);
    text-align: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--c-surface-soft);
    margin: 0 0 12px;
    line-height: 1.5;
}
.nf-feedback.ok { color: #1d8a68; background: rgba(76,195,138,.14); }
.nf-feedback.no { color: #c25a5a; background: rgba(226,109,109,.12); }
.nf-answers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.nf-ans {
    height: 52px;
    border-radius: 13px;
    border: 1.5px solid rgba(108,92,231,.35);
    background: var(--c-surface);
    color: #5a4bd1;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all .14s ease;
}
.nf-ans:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(108,92,231,.25); }
.nf-ans:disabled { cursor: default; transform: none; box-shadow: none; }
.nf-ans.is-right { background: #27b08a; border-color: #27b08a; color: #fff; }
.nf-ans.is-wrong { background: #e26d6d; border-color: #e26d6d; color: #fff; }

/* 结算 */
#nfQuizEnd { text-align: center; padding: 8px 0 4px; }
.nf-end-stars { font-size: 46px; letter-spacing: 6px; }
.nf-end-score { font-size: 19px; font-weight: 800; color: var(--c-text); margin: 10px 0 6px; }
.nf-end-comment { font-size: 13.5px; color: var(--c-text-sub); line-height: 1.7; margin: 0 0 14px; }
.nf-end-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 五线谱 */
.nf-staff-wrap { padding: 8px 4px; }
.nf-svg { display: block; width: 100%; height: auto; }
.nf-staff-hint { text-align: center; font-size: 13px; color: var(--c-text-sub); margin: 10px 0 4px; line-height: 1.6; }

@media (max-width: 760px) {
    .nf-answers { grid-template-columns: repeat(4, 1fr); gap: 7px; }
    .nf-ans { height: 48px; font-size: 17px; }
    .nf-learn-name { font-size: 44px; }
}
