/* Pinyin Listening Dictation (/games/pinyin-dictation) */

.pd-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #0f5132 0%, #16a34a 55%, #1864ab 100%);
}

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

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

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

.pd-start-orb {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a 0%, #1864ab 100%);
    color: #fff;
    font-size: 2.3rem;
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.25);
}

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

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

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

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

.pd-input {
    letter-spacing: 0.06em;
    font-size: 1.25rem;
}

/* Per-syllable grading chips in the feedback panel */
.pd-chip {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    margin: 0 0.15rem 0.25rem 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.pd-chip-good { background: #6aaa64; }
.pd-chip-tone { background: #c9b458; color: #212529; }
.pd-chip-bad { background: #787c7e; }

.pd-answer-hanzi {
    font-size: 2rem;
    line-height: 1.2;
}

.pd-answer-pinyin {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Metric tiles in the progress sidebar */
.pd-metric {
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.pd-metric-perfect { background: rgba(106, 170, 100, 0.14); }
.pd-metric-tones { background: rgba(201, 180, 88, 0.16); }
.pd-metric-wrong { background: rgba(120, 124, 126, 0.14); }
.pd-metric-streak { background: rgba(24, 100, 171, 0.10); }

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

/* The tone-number legend table cells stay compact on phones */
.pd-tone-legend td {
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}
