/* ═══════════════════════════════════════════════════════════════════
   Chinese Picture Quiz — /games/picture-quiz
   Hero: midnight → violet → pink (#1e1b4b → #6d28d9 → #db2777). Distinct
   from the gauntlet's cyan, the arcade's rose and the builder's indigo —
   every game hero on this site reads as its own place.
   ═══════════════════════════════════════════════════════════════════ */

.pq-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 55%, #db2777 100%);
    border-radius: 0.5rem;
}

.pq-accent { color: #7c3aed; }

/* ── HUD row above the stage ─────────────────────────────────────── */
.pq-hud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.pq-hud-item {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
}

.pq-hud-item small {
    display: block;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
}

.pq-heart {
    color: #ef4444;
    font-size: 1.15rem;
    transition: transform 0.15s, color 0.15s;
}

.pq-heart.lost {
    color: #cbd5e1;
    transform: scale(0.85);
}

.pq-combo-badge {
    display: inline-block;
    min-width: 2.4rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #6d28d9;
    color: #fff;
    font-size: 0.95rem;
}

.pq-pinyin-btn-label {
    font-size: 0.75rem;
    font-weight: 700;
}

.pq-pinyin-btn[aria-pressed="true"] {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.pq-progress {
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.3);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.pq-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6d28d9, #db2777);
    transition: width 0.3s ease;
}

/* ── The stage: it clips every effect ────────────────────────────── */
.pq-stage {
    position: relative;
    min-height: 560px;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 100%);
    border: 1px solid rgba(109, 40, 217, 0.15);
    padding: 0.85rem;
    overflow: hidden;
}

.pq-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
}

.pq-band-pill:empty { display: none; }

.pq-band-pill {
    display: inline-block;
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.12);
    color: #5b21b6;
    font-weight: 700;
}

/* ── The word ────────────────────────────────────────────────────── */
.pq-prompt {
    text-align: center;
    min-height: 8.25rem;
    padding: 0.1rem 0 0.5rem;
}

.pq-word-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.pq-hanzi {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1e1b4b;
    transition: color 0.2s, text-shadow 0.2s;
}

.pq-prompt.pq-right .pq-hanzi {
    color: #15803d;
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.pq-say {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 2px solid rgba(109, 40, 217, 0.35);
    background: #fff;
    color: #6d28d9;
    font-size: 1.1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pq-say:disabled { opacity: 0.4; cursor: default; }

.pq-say:active:not(:disabled) { transform: scale(0.94); }

.pq-say.pq-say-playing {
    border-color: #db2777;
    color: #db2777;
    animation: pq-pulse 0.9s ease-in-out infinite;
}

@keyframes pq-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.45); }
    50% { box-shadow: 0 0 0 7px rgba(219, 39, 119, 0); }
}

.pq-pinyin {
    font-size: 1.25rem;
    font-weight: 600;
    color: #15803d;
    min-height: 1.6rem;
}

/* Hidden but still holding its line, so the board never jumps when it appears. */
.pq-pinyin.pq-hidden-text { visibility: hidden; }

.pq-peek { padding: 0; font-size: 0.8rem; }

.pq-english {
    min-height: 1.9rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #be185d;
}

.pq-english.pq-shown .pq-english-text {
    display: inline-block;
    animation: pq-reveal-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4) backwards;
}

@keyframes pq-reveal-in {
    0% { opacity: 0; transform: translateY(6px) scale(0.85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── The pictures ────────────────────────────────────────────────── */
.pq-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

/* Phone: four as 2×2, five and six on three columns. */
.pq-grid .pq-tile { flex: 0 0 calc((100% - 0.6rem) / 2); }
.pq-grid.pq-n-5 .pq-tile,
.pq-grid.pq-n-6 .pq-tile { flex-basis: calc((100% - 1.2rem) / 3); }

@media (min-width: 768px) {
    .pq-grid.pq-n-4 .pq-tile { flex-basis: calc((100% - 1.8rem) / 4); }
}

.pq-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 190px;
    aspect-ratio: 1 / 1;
    padding: 0.4rem;
    border: 3px solid rgba(109, 40, 217, 0.18);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s, opacity 0.2s;
    /* backwards, never both: a held end frame would out-rank :hover, :active and .faded. */
    animation: pq-deal-in 0.28s ease backwards;
}

.pq-tile img {
    width: 82%;
    height: auto;
    max-height: 82%;
    pointer-events: none;
    user-select: none;
}

@media (hover: hover) {
    .pq-tile:hover:not(:disabled) {
        border-color: #7c3aed;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(109, 40, 217, 0.18);
    }
}

.pq-tile:active:not(:disabled) { transform: scale(0.96); background: #f5f3ff; }

.pq-tile:focus-visible { outline: 3px solid #db2777; outline-offset: 2px; }

.pq-tile:disabled { cursor: default; }

.pq-key {
    position: absolute;
    top: 0.3rem;
    left: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(30, 27, 75, 0.35);
}

.pq-tile.correct {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25), 0 8px 22px rgba(34, 197, 94, 0.3);
    animation: pq-pop 0.45s ease;
}

.pq-tile.wrong {
    border-color: #dc2626;
    background: #fef2f2;
    animation: pq-shake 0.35s ease;
}

.pq-tile.faded { opacity: 0.4; }

/* The English slides up over the bottom of the picture once the word is answered. */
.pq-tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.2rem 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: rgba(22, 163, 74, 0.92);
    transform: translateY(100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.pq-tile-label:empty { display: none; }

.pq-tile.wrong .pq-tile-label { background: rgba(220, 38, 38, 0.92); }

.pq-tile.pq-labelled .pq-tile-label { transform: translateY(0); }

.pq-status {
    min-height: 1.6rem;
    margin-top: 0.6rem;
    text-align: center;
    font-size: 0.9rem;
}

.pq-praise { color: #15803d; font-weight: 800; }
.pq-miss { color: #b91c1c; font-weight: 800; }
.pq-again { color: #b45309; font-weight: 700; }

.pq-bonus {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #422006;
    font-size: 0.75rem;
    font-weight: 800;
}

.pq-next-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.pq-reveal-link {
    font-size: 0.85rem;
    color: #6d28d9;
    text-decoration: none;
    background: rgba(109, 40, 217, 0.08);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
}

.pq-reveal-link:hover { background: rgba(109, 40, 217, 0.16); }

/* ── Effects (Grammar Gauntlet kit) ──────────────────────────────── */
@keyframes pq-pop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes pq-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pq-deal-in { 0% { opacity: 0; transform: translateY(8px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.pq-float {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
    font-weight: 800; font-size: 1.5rem; color: #15803d; text-shadow: 0 1px 0 #fff;
    pointer-events: none; z-index: 4;
    animation: pq-float-up 0.9s ease-out forwards;
}
@keyframes pq-float-up {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
    20% { transform: translate(-50%, -70%) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -160%) scale(1); }
}

.pq-particle {
    position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    pointer-events: none; z-index: 3;
    animation: pq-burst 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes pq-burst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* Above the round/game-over overlays (z-index 5) on purpose: that is where it falls. */
.pq-confetti {
    position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px;
    pointer-events: none; z-index: 6;
    animation: pq-confetti-fall 1.8s ease-in forwards;
}
@keyframes pq-confetti-fall {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    100% { opacity: 0; transform: translate(var(--drift), 520px) rotate(var(--spin)); }
}

.pq-combo-pop {
    position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
    font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 900; color: #6d28d9;
    text-shadow: 0 2px 0 #fff, 0 6px 18px rgba(124, 58, 237, 0.45);
    white-space: nowrap; pointer-events: none; z-index: 4;
    animation: pq-combo-pop 1.1s ease-out forwards;
}
.pq-combo-pop-3 { color: #db2777; }
.pq-combo-pop-4 { color: #ea580c; }
.pq-combo-pop-5 { color: #dc2626; }
@keyframes pq-combo-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-6deg); }
    25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(2deg); }
    45% { transform: translate(-50%, -50%) scale(1) rotate(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
}

.pq-toast {
    position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%);
    padding: 0.35rem 0.9rem; border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #facc15); color: #422006;
    font-weight: 800; font-size: 0.9rem; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    pointer-events: none; z-index: 4;
    animation: pq-toast 2.1s ease forwards;
}
@keyframes pq-toast {
    0% { opacity: 0; transform: translate(-50%, -12px); }
    12% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -6px); }
}

.pq-prompt.pq-deal { animation: pq-deal-in 0.3s ease backwards; }
.pq-prompt.pq-shake { animation: pq-shake 0.4s ease; }   /* declared after .pq-deal so it wins */

.pq-heart.pq-heart-break { animation: pq-heart-break 0.6s ease; }
@keyframes pq-heart-break {
    0% { transform: scale(1); }
    30% { transform: scale(1.5); color: #ef4444; }
    60% { transform: scale(0.7) rotate(-12deg); }
    100% { transform: scale(0.85); }
}

.pq-bump { display: inline-block; animation: pq-bump 0.35s ease; }
@keyframes pq-bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.pq-combo-badge.pq-combo-2 { background: #0284c7; }
.pq-combo-badge.pq-combo-3 { background: #db2777; }
.pq-combo-badge.pq-combo-4 { background: #ea580c; }
.pq-combo-badge.pq-combo-5 { background: linear-gradient(135deg, #dc2626, #f97316); animation: pq-glow 1.2s ease-in-out infinite; }
@keyframes pq-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
    50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

/* ── Overlays ────────────────────────────────────────────────────── */
.pq-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    z-index: 5;
    overflow-y: auto;
}

.pq-big-icon { font-size: 2.5rem; color: #6d28d9; }

/* Bootstrap paints a focused or pressed .btn from these variables, not from `color`, so the
   text went dark on the gradient the moment the button took focus. */
.pq-btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 124, 58, 237;
    background: linear-gradient(135deg, #6d28d9, #db2777);
    border: none;
    color: #fff;
    font-weight: 600;
}

.pq-btn-primary:focus,
.pq-btn-primary:focus-visible,
.pq-btn-primary:active {
    background: linear-gradient(135deg, #5b21b6, #be185d);
    color: #fff;
}

.pq-btn-primary:hover { background: linear-gradient(135deg, #5b21b6, #be185d); color: #fff; }

.pq-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.pq-pick-btn {
    border: 2px solid rgba(109, 40, 217, 0.3);
    background: #fff;
    color: #1e1b4b;
    border-radius: 0.5rem;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.12s, box-shadow 0.12s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: hover) {
    .pq-pick-btn:hover { border-color: #6d28d9; }
}

.pq-pick-btn:active { transform: scale(0.96); }

/* The selected level. Must out-rank the dark-mode rule for .pq-pick-btn below, which sets a
   background of its own — the attribute-qualified twin in the dark block keeps it lit there. */
.pq-pick-btn.active,
.pq-pick-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, #6d28d9, #db2777);
    border-color: #6d28d9;
    color: #fff;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

.pq-pick-btn.active::before { content: "\2713\00a0"; }

.pq-pick-btn.pq-picked { animation: pq-pop 0.3s ease; }

.pq-pick-btn-expert { border-style: dashed; }

.pq-final-score {
    font-size: 2.75rem;
    font-weight: 800;
    color: #6d28d9;
    line-height: 1;
}

.pq-final-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.pq-final-missed {
    width: 100%;
    max-width: 26rem;
    max-height: 11rem;
    overflow-y: auto;
    text-align: left;
}

.pq-final-missed-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
    text-align: center;
}

.pq-missed-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.85rem;
}

.pq-missed-word { line-height: 1.25; }
.pq-missed-word a, .pq-missed-word [lang] { font-weight: 700; font-size: 1.05rem; }
.pq-missed-py { color: #15803d; }
.pq-missed-en { color: var(--bs-secondary-color); }

/* Where to go next — chosen for this game, not a generic "more games". */
.pq-onward {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    max-width: 26rem;
}

.pq-onward a {
    flex: 1 1 11rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.25;
    color: #6d28d9;
    background: rgba(109, 40, 217, 0.08);
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: 0.6rem;
    padding: 0.45rem 0.65rem;
}

.pq-onward a strong { display: block; color: #1e1b4b; }

.pq-onward a:hover { background: rgba(109, 40, 217, 0.16); }

.pq-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ── Sidebar: the run's collection ───────────────────────────────── */
.pq-met-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 0.35rem;
}

.pq-met {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(34, 197, 94, 0.45);
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    animation: pq-deal-in 0.3s ease backwards;
}

.pq-met-missed { border-color: rgba(220, 38, 38, 0.55); }
.pq-met-rescued { border-color: #f59e0b; }

/* ── Prose cards ─────────────────────────────────────────────────── */
.pq-examples { display: grid; gap: 0.75rem; }

.pq-example {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pq-example img { flex: 0 0 auto; border-radius: 0.5rem; }

.pq-deck-list {
    columns: 2;
    column-gap: 1.5rem;
    padding-left: 1.1rem;
}

/* ── Dark mode ───────────────────────────────────────────────────── */
[data-bs-theme="dark"] .pq-stage {
    background: linear-gradient(180deg, #1e1b4b 0%, #3b0764 100%);
    border-color: rgba(167, 139, 250, 0.25);
}

[data-bs-theme="dark"] .pq-hanzi { color: #ede9fe; }
[data-bs-theme="dark"] .pq-prompt.pq-right .pq-hanzi { color: #4ade80; }
[data-bs-theme="dark"] .pq-pinyin { color: #86efac; }
[data-bs-theme="dark"] .pq-english { color: #f9a8d4; }
[data-bs-theme="dark"] .pq-band-pill { background: rgba(167, 139, 250, 0.2); color: #ddd6fe; }

/* The pictures are drawn for a light card; they keep one in the dark. */
[data-bs-theme="dark"] .pq-tile {
    background: #f5f3ff;
    border-color: rgba(167, 139, 250, 0.35);
}

[data-bs-theme="dark"] .pq-tile.correct { background: #dcfce7; border-color: #22c55e; }
[data-bs-theme="dark"] .pq-tile.wrong { background: #fee2e2; border-color: #ef4444; }
[data-bs-theme="dark"] .pq-tile:active:not(:disabled) { background: #ede9fe; }

[data-bs-theme="dark"] .pq-say { background: #1e1b4b; color: #c4b5fd; border-color: rgba(167, 139, 250, 0.45); }

[data-bs-theme="dark"] .pq-overlay { background: rgba(15, 23, 42, 0.95); }

[data-bs-theme="dark"] .pq-pick-btn {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(167, 139, 250, 0.35);
}

/* The fix for "the buttons do not light up on my phone": the rule above has the same
   specificity as .pq-pick-btn.active and comes later, so this one out-ranks it. */
[data-bs-theme="dark"] .pq-pick-btn.active,
[data-bs-theme="dark"] .pq-pick-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, #6d28d9, #db2777);
    border-color: #c4b5fd;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.4), 0 2px 12px rgba(124, 58, 237, 0.45);
}

[data-bs-theme="dark"] .pq-pinyin-btn[aria-pressed="true"] { background: #6d28d9; border-color: #c4b5fd; color: #fff; }

[data-bs-theme="dark"] .pq-praise { color: #4ade80; }
[data-bs-theme="dark"] .pq-miss { color: #f87171; }
[data-bs-theme="dark"] .pq-again { color: #fbbf24; }
[data-bs-theme="dark"] .pq-reveal-link { color: #c4b5fd; background: rgba(167, 139, 250, 0.16); }
[data-bs-theme="dark"] .pq-float { color: #4ade80; text-shadow: none; }
[data-bs-theme="dark"] .pq-heart.lost { color: #475569; }
[data-bs-theme="dark"] .pq-final-score,
[data-bs-theme="dark"] .pq-big-icon,
[data-bs-theme="dark"] .pq-accent { color: #c4b5fd; }
[data-bs-theme="dark"] .pq-combo-pop { color: #c4b5fd; text-shadow: 0 6px 18px rgba(124, 58, 237, 0.5); }
[data-bs-theme="dark"] .pq-combo-pop-3 { color: #f9a8d4; }
[data-bs-theme="dark"] .pq-combo-pop-4 { color: #fdba74; }
[data-bs-theme="dark"] .pq-combo-pop-5 { color: #fca5a5; }
[data-bs-theme="dark"] .pq-onward a { color: #c4b5fd; background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.3); }
[data-bs-theme="dark"] .pq-onward a strong { color: #e2e8f0; }
[data-bs-theme="dark"] .pq-missed-py { color: #86efac; }
[data-bs-theme="dark"] .pq-met img,
[data-bs-theme="dark"] .pq-example img,
[data-bs-theme="dark"] .pq-missed-item img { background: #f5f3ff; border-radius: 0.4rem; }

/* ── Reduced motion: every effect off, not just slower ──────────────
   The engine already skips spawning bursts, confetti, floats and combo pops; this stops the
   animations that live on the board itself. Colour changes stay — they are the feedback. */
@media (prefers-reduced-motion: reduce) {
    .pq-stage *,
    .pq-hud *,
    .pq-met-grid * {
        animation: none !important;
        transition: none !important;
    }

    .pq-tile:active:not(:disabled),
    .pq-pick-btn:active,
    .pq-say:active:not(:disabled) {
        transform: none;
    }
}
