/* Number Dictation (/games/number-dictation) */

.nd-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #7c2d12 0%, #d97706 55%, #b45309 100%);
}

.nd-hero .hero-kicker {
    letter-spacing: 0.14em;
    opacity: 0.82;
}

.nd-hero .hero-copy {
    max-width: 42rem;
    opacity: 0.92;
}

.nd-quiz-card {
    min-height: 29rem;
}

.nd-start-orb {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d97706 0%, #7c2d12 100%);
    color: #fff;
    font-size: 2.3rem;
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.25);
}

.nd-start-copy {
    max-width: 30rem;
}

/* Big round play button, pulsing while the TTS clip is playing */
.nd-play-btn {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    font-size: 2rem;
}

.nd-play-btn.playing {
    animation: nd-pulse 1s ease-in-out infinite;
}

@keyframes nd-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Digits want tabular figures and room to breathe */
.nd-input {
    letter-spacing: 0.12em;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
}

.nd-answer-cn {
    font-size: 1.9rem;
    line-height: 1.25;
}

.nd-answer-number {
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Metric tiles in the progress sidebar */
.nd-metric {
    border: 1px solid rgba(217, 119, 6, 0.16);
}

.nd-metric-correct { background: rgba(106, 170, 100, 0.14); }
.nd-metric-wrong { background: rgba(120, 124, 126, 0.14); }
.nd-metric-streak { background: rgba(217, 119, 6, 0.12); }

[data-bs-theme="dark"] .nd-metric {
    border-color: var(--pl-border, #3a4049);
}

/* Unit cheat-sheet table stays compact on phones */
.nd-unit-legend td {
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}
