/*
  LD2-K: quizzes and their results (Views/Courses/Quiz.cshtml, Views/Tests/Test.cshtml, js/quiz.js, js/test.js;
  LD2-pinnacle.md §5.6). The level and final quizzes, path tests and certificate exams on the lesson player's stage
  (frame.css, .ln-player--stage) with the action bar and sheet (sheet.css); the result as a stage of its own on the
  lesson end's card (end.css): the score as a ring of beads on the world's picture, what you now know, what to look at
  again, your lessons' mastery, the course's levels as a small route; and the seal pressed at the finish of a course
  or a certificate. One motion at a time: the beads light, then the seal is pressed. Loaded by those views only
  (ViewData["PlayerStyles"]), before the look's file, so teens and kids may dress it further.
*/

/* ---------- The quiz's bar: a piece of the line a question, the count, the right answers ---------- */
.ln .ln-player--stage.ln-quiz .ln-player-bar { grid-template-columns: auto minmax(0, max-content) minmax(90px, 1fr) auto auto; grid-template-areas: "close title prog count read"; }
.ln-quiz-prog { background: none; }
.ln .ln-player--stage .ln-quiz-prog .ln-segs { inset: 0; gap: 4px; }
.ln .ln-player--stage .ln-quiz-prog .ln-segs li { height: 100%; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: background var(--ln-in), box-shadow var(--ln-in); }
.ln .ln-player--stage .ln-quiz-prog .ln-segs li.is-current { background: rgba(255, 255, 255, .78); box-shadow: 0 0 12px color-mix(in srgb, var(--w-glow) 70%, transparent); }
.ln .ln-player--stage .ln-quiz-prog .ln-segs li.is-right { background: linear-gradient(90deg, var(--w-glow), var(--w-accent)); box-shadow: none; }
.ln .ln-player--stage .ln-quiz-prog .ln-segs li.is-wrong { background: var(--ln-try); box-shadow: none; }
.ln .ln-player--stage .ln-quiz-prog .ln-segs .is-current button::after { display: none; }
.ln-quiz-count { grid-area: count; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .78); }
.ln-quiz-count b { color: #fff; }
.ln .ln-player--stage .ln-quiz-score { height: 32px; min-width: 0; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 9px; font-size: 13px; color: #12081f; background: var(--w-glow); font-variant-numeric: tabular-nums; }

/* The question across the stage, its own words its title. */
.ln .ln-player--stage.ln-quiz .ln-screens > .ln-screen { grid-area: 1 / 1; }

/* ---------- The result: a stage of its own ---------- */
.ln .ln-player--stage .ln-qres[hidden], .ln .ln-player--stage.ln-quiz [data-questions][hidden] { display: none; }
.ln .ln-player--stage .ln-qres { padding-bottom: calc(var(--ln-abar-h) + 26px + env(safe-area-inset-bottom)); }
.ln .ln-player--stage .ln-qres .ln-end-art { height: clamp(220px, 32vh, 300px); }
/* One motion at a time: the beads light, not confetti. */
.ln-qres .ln-burst { display: none; }
.ln-qres-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 22px; padding-top: 60px; }
.ln-qres-words { display: grid; gap: 4px; min-width: 0; }
.ln .ln-player--stage .ln-qres-words .ln-end-sub { max-width: 62ch; }

/* The score as the world's mark: a ring of beads, one a question, lit when right first time. */
.ln-qres-mark { position: relative; width: 124px; aspect-ratio: 1; flex: none; }
.ln-qres-ring { width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .ln-qres-ring { transform: scaleX(-1); }
.ln-qres-track { fill: color-mix(in srgb, var(--w-deep) 62%, transparent); stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
.ln-qres-bead { fill: rgba(255, 255, 255, .26); stroke: none; transition: fill var(--ln-in); }
.ln-qres-bead.is-right { fill: var(--w-glow); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--w-glow) 80%, transparent)); }
.ln-qres-bead.is-wrong { fill: none; stroke: var(--ln-try); stroke-width: 2.2; }
.ln-qres.is-current .ln-qres-bead { animation: ln-bead-in var(--ln-pop) both; animation-delay: calc(var(--i) * 40ms); transform-box: fill-box; transform-origin: center; }
@keyframes ln-bead-in { from { opacity: 0; transform: scale(.2); } }
/* Kids' beads are stars, placed by their own transform: they fade in rather than grow. */
.ln--kid .ln-qres.is-current .ln-qres-bead { animation-name: ln-bead-fade; }
@keyframes ln-bead-fade { from { opacity: 0; } }
.ln-qres-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--ln-display); font-weight: 600; font-size: 30px; font-variant-numeric: tabular-nums; color: #fff; }

/* A retake missed after a pass: the course stays complete. */
.ln-qres-kept { justify-self: start; margin-top: 4px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ln-qres-kept[hidden] { display: none; }

/* ---------- What you now know, what to look at again, your lessons ---------- */
/* (Doubled class: end.css's lesson-end areas are set with :has(), which would otherwise win.) */
.ln-end-beats.ln-qres-beats { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "known again" "known mastery"; }
.ln-end-beats.ln-qres-beats:not(:has(> .ln-qres-again:not([hidden]))) { grid-template-areas: "known mastery" "known mastery"; }
.ln-end-beats.ln-qres-beats:not(:has(> .ln-qres-known:not([hidden]))) { grid-template-areas: "again mastery" "again mastery"; }
/* Nothing beside the list (a visitor, or a child): it takes the whole width. */
.ln-end-beats.ln-qres-beats:not(:has(> .ln-qres-mastery:not([hidden]))):not(:has(> .ln-qres-again:not([hidden]))) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "known"; }
.ln-end-beats.ln-qres-beats:not(:has(> .ln-qres-mastery:not([hidden]))):not(:has(> .ln-qres-known:not([hidden]))) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "again"; }
.ln-qres-known { grid-area: known; }
.ln-qres-again { grid-area: again; }
.ln-qres-mastery { grid-area: mastery; }
.ln-qres-beats > [hidden] { display: none; }
.ln-qres-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ln-qres-list--again { grid-template-columns: minmax(0, 1fr); }
.ln-qres-list li { position: relative; display: grid; gap: 2px; padding: 10px 12px; padding-inline-start: 40px; border-radius: 14px; font-size: 15px; line-height: 1.4; align-content: start; background: color-mix(in srgb, var(--w-accent) 8%, var(--ln-card)); }
.ln-qres-list li::before { content: "✓"; position: absolute; top: 11px; inset-inline-start: 12px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ln-on-good, #fff); background: var(--ln-good); }
.ln-qres-list b { font-weight: 650; color: var(--ln-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; max-height: calc(2 * 1.4em); }
.ln-qres-list span { color: var(--ln-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; max-height: calc(2 * 1.4em); }
.ln-qres-list--again li { background: var(--ln-try-soft, color-mix(in srgb, var(--ln-try) 12%, var(--ln-card))); }
.ln-qres-list--again li::before { content: "↻"; color: var(--ln-on-try, #fff); background: var(--ln-try-strong, var(--ln-try)); }
.ln-qres-list--again span::before { content: "→ "; color: var(--ln-try-ink, var(--ln-ink-2)); font-weight: 800; }
.ln .ln-qres-review { justify-self: start; min-height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 750; color: var(--ln-ink); box-shadow: inset 0 0 0 2px var(--ln-try); }
.ln .ln-qres-review:hover { background: var(--ln-try-soft, transparent); }
/* On a miss the mistakes are the action bar's main step; here it stays as the reminder of where they went. */
.ln-qres-lessons { display: grid; }
.ln-qres-lessons li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ln-line); }
.ln-qres-lessons li:last-child { border-bottom: 0; }
.ln-qres-lessons a { flex: 1; min-width: 0; font-size: 15px; font-weight: 650; color: var(--ln-ink); text-decoration: none; }
.ln-qres-lessons a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ln-qres-lessons small { font-size: 13px; font-weight: 700; color: var(--ln-muted); }
.ln-qres-lessons li.is-strong small { color: var(--w-ink); }
.ln-qres-lesson-mark { display: inline-grid; width: 22px; height: 22px; color: var(--ln-muted); }
.ln-qres-counts { margin-top: 0; }

/* ---------- The course's levels as a small route, and the ways on ---------- */
.ln-qres-foot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 16px 26px; margin: 22px 34px 0; padding-top: 18px; border-top: 1px solid var(--ln-line); }
.ln-qmap { display: flex; align-items: flex-start; }
.ln-qmap-stop { position: relative; flex: 1; display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--ln-muted); }
.ln-qmap-stop span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-qmap-stop + .ln-qmap-stop::before { content: ""; position: absolute; top: 8px; inset-inline-end: 50%; width: 100%; height: 3px; border-radius: 2px; background: var(--ln-line-2); z-index: 0; }
.ln-qmap-stop i { position: relative; z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: var(--ln-card); box-shadow: inset 0 0 0 3px var(--ln-line-2); transition: background var(--ln-in), box-shadow var(--ln-in); }
.ln-qmap-stop.is-done i { background: var(--ln-good); box-shadow: none; }
.ln-qmap-stop.is-done + .ln-qmap-stop::before { background: var(--ln-good); }
.ln-qmap-stop.is-here { color: var(--w-ink); }
.ln-qmap-stop.is-here i { background: var(--w-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-accent) 26%, transparent); }
.ln-qmap-stop.is-locked i { background: none; box-shadow: inset 0 0 0 2px var(--ln-line-2); outline: 2px dashed var(--ln-line-2); outline-offset: 2px; }
/* A pass: this stop is done, the line runs on and the next stop lights up. */
.ln-qres.is-pass .ln-qmap-stop.is-here i { background: var(--ln-good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ln-good) 24%, transparent); }
.ln-qres.is-pass .ln-qmap-stop.is-after::before { background: linear-gradient(90deg, var(--ln-good), var(--w-glow)); }
[dir="rtl"] .ln-qres.is-pass .ln-qmap-stop.is-after::before { background: linear-gradient(270deg, var(--ln-good), var(--w-glow)); }
.ln-qres.is-pass .ln-qmap-stop.is-after:not(.is-locked) { color: var(--w-ink); }
.ln-qres.is-pass .ln-qmap-stop.is-after:not(.is-locked) i { background: var(--w-glow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-glow) 35%, transparent), 0 0 16px var(--w-glow); animation: ln-stop-lit var(--ln-pop) 900ms both; }
@keyframes ln-stop-lit { from { transform: scale(.4); } }
.ln-qres-on { display: grid; justify-items: end; gap: 10px; text-align: end; }
.ln-qres-next, .ln-qres-path { margin: 0; font-size: 15px; color: var(--ln-ink-2); }
.ln-qres-next b { color: var(--w-ink); }
.ln-qres-path { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px 14px; }
.ln-qres-path b { font-variant-numeric: tabular-nums; color: var(--ln-ink); }
.ln-qres-path a { font-weight: 750; color: var(--w-ink); text-underline-offset: 3px; }
.ln-qres-next[hidden], .ln-qres-path[hidden] { display: none; }
.ln-qres .ln-end-actions { margin: 0; justify-content: flex-end; }
/* The main way on is the action bar's (it is here for a page without scripts). */
.ln-player--stage.is-live .ln-qres [data-result-next] { display: none; }
.ln-qres .ln-end-actions [hidden] { display: none; }

/* ---------- The seal, pressed at the finish of a course or a certificate ---------- */
.ln-seal { position: relative; display: grid; justify-items: center; gap: 2px; margin: 0; opacity: 0; animation: none; }
.ln-seal svg { width: 138px; height: auto; overflow: visible; animation: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
.ln-seal b { font-family: var(--ln-sans); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ln-seal span { display: none; }
.ln-seal.is-pressed { animation: ln-seal-press 640ms var(--ip-ease-spring, cubic-bezier(.2, 1.4, .4, 1)) both; }
.ln-seal.is-pressed::after { content: ""; position: absolute; top: 4px; left: 50%; width: 116px; aspect-ratio: 1; margin-left: -58px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ln-gold); opacity: 0; animation: ln-seal-ring 900ms 380ms var(--ip-ease-out, ease-out) both; pointer-events: none; }
@keyframes ln-seal-press { 0% { opacity: 0; transform: translateY(-46px) scale(1.7) rotate(-14deg); } 55% { opacity: 1; transform: scale(.9) rotate(3deg); } 78% { transform: scale(1.04) rotate(-1deg); } 100% { opacity: 1; transform: none; } }
@keyframes ln-seal-ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.7); } }
/* Adults: gold, the world's deep on the ribbons. */
.ln-seal-edge { fill: var(--ln-gold); }
.ln-seal-light { stop-color: #fff6d8; }
.ln-seal-deep { stop-color: var(--ln-gold); }
.ln-seal-ring { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 2; stroke-dasharray: 3 4; }
.ln-seal-ribbon { fill: var(--w-deep); stroke: color-mix(in srgb, var(--ln-gold) 70%, transparent); stroke-width: 1.5; }
.ln-seal-check { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(120, 84, 10, .45)); }
.ln-seal-glyph { fill: #fff; }
/* Teens: a neon badge with a hard offset edge. */
.ln--teen .ln-seal svg { filter: drop-shadow(6px 6px 0 #22d3ee); }
.ln--teen .ln-seal-edge { fill: #8b5cf6; }
.ln--teen .ln-seal-light { stop-color: #67e8f9; }
.ln--teen .ln-seal-deep { stop-color: #7c3aed; }
.ln--teen .ln-seal-ribbon { fill: #12081f; stroke: #22d3ee; }
.ln--teen .ln-seal-check { filter: none; }
.ln--teen .ln-seal.is-pressed::after { box-shadow: 0 0 0 3px #22d3ee; }
/* Kids: a sunshine trophy. */
.ln--kid .ln-seal-edge { fill: #ffb020; }
.ln--kid .ln-seal-light { stop-color: #fff3a6; }
.ln--kid .ln-seal-deep { stop-color: #ff9f0a; }
.ln--kid .ln-seal-ribbon { fill: #ff6fa5; stroke: #fff; }
.ln--kid .ln-seal svg { width: 150px; }
.ln--kid .ln-seal.is-pressed::after { box-shadow: 0 0 0 3px #ffd84d; }

/* ---------- Teens: bold and flat ---------- */
.ln--teen .ln-qres-pct { font-family: var(--ln-sans); font-weight: 850; letter-spacing: -.02em; }
.ln--teen .ln-qres-bead.is-right { fill: #22d3ee; filter: drop-shadow(0 0 4px rgba(34, 211, 238, .8)); }
.ln--teen .ln-qres-list li { border-radius: 10px; }
.ln--teen .ln-qres-review { border-radius: 10px; box-shadow: inset 0 0 0 2px var(--ln-try), 4px 4px 0 #8b5cf6; }
.ln--teen .ln-qmap-stop.is-here i { background: #8b5cf6; box-shadow: 0 0 0 4px rgba(34, 211, 238, .45); }

/* ---------- Kids: Noor cheers (or thinks) beside the stars ---------- */
.ln-qres-noor { width: 112px; align-self: end; margin-bottom: -18px; }
.ln--kid .ln-qres-bead { fill: rgba(255, 255, 255, .32); }
.ln--kid .ln-qres-bead.is-right { fill: #ffd84d; filter: drop-shadow(0 0 4px rgba(255, 216, 77, .9)); }
.ln--kid .ln-qres-bead.is-wrong { fill: rgba(255, 255, 255, .2); stroke: none; }
.ln--kid .ln-qres-list li { border-radius: 20px; font-size: 17px; }
.ln--kid .ln-qres-list li::before { content: "★"; color: #2b2100; background: #ffd84d; }
.ln--kid .ln-qres-review { min-height: 58px; border-radius: 20px; font-size: 17px; }
.ln--kid .ln-player--stage .ln-qres-head .ln-kicker { color: #fff3c4; }
/* A child reads little (at most a few lines a screen): four things learnt, by their question alone. */
.ln--kid .ln-qres-known li:nth-child(n + 5), .ln--kid .ln-qres-known li span { display: none; }

/* ---------- Path tests and certificate exams on the stage ---------- */
.ln .ln-player--stage.ln-test .ln-player-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "close title read"; }
.ln .ln-player--stage.ln-test .ln-player-title { max-width: none; }
.ln .ln-player--stage.ln-test .ln-timer { grid-area: read; color: #12081f; background: var(--w-glow); }
.ln .ln-player--stage .ln-test-layout { width: var(--ln-stage-w); margin: 0 auto; grid-template-columns: minmax(0, 1fr) 232px; gap: 22px; padding-bottom: calc(var(--ln-abar-h) + 20px + env(safe-area-inset-bottom)); }
.ln .ln-player--stage .ln-test-layout .ln-screens { padding-bottom: 0; }
.ln .ln-player--stage .ln-test-layout .ln-screen { min-height: 0; padding: 22px 0 0; align-content: start; }
.ln .ln-player--stage .ln-test-layout .ln-screen-in { width: 100%; }
.ln .ln-player--stage .ln-test-grid { top: 78px; margin-top: 22px; border-radius: 22px; background: var(--ln-card); box-shadow: var(--ln-z2); }
.ln--teen .ln-player--stage .ln-test-grid { border-radius: 14px; box-shadow: 6px 6px 0 var(--w-accent, #8b5cf6); }
/* One main step a screen (the action bar's): the grid's "Hand it in" is the quiet way to hand in early. */
.ln .ln-player--stage .ln-test-grid [data-submit] { color: var(--w-ink); background: color-mix(in srgb, var(--w-accent) 12%, var(--ln-card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--w-accent) 55%, transparent); }

/* ---------- The result of a path test or certificate exam ---------- */
.ln-test-hero .ln-tres { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 8px; }
.ln-test-hero .ln-tres .ln-seal { opacity: 1; }
.ln-test-hero .ln-tres .ln-seal.is-pressed { animation: ln-seal-press 640ms 250ms var(--ip-ease-spring, cubic-bezier(.2, 1.4, .4, 1)) both; }
.ln-tres-number { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; font-size: 14px; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.ln-tres-number code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; letter-spacing: .06em; }
.ln .ln-tres-copy { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 750; color: var(--w-deep); background: #fff; }
.ln-tres-lists { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 26px; align-items: start; }
.ln-tres-lists > section { display: grid; gap: 10px; min-width: 0; }
.ln-tres-lists h2 { display: flex; align-items: center; gap: 10px; font-family: var(--ln-sans); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--w-ink); }
.ln-tres-lists h2::before { content: ""; flex: none; width: 22px; height: 2px; border-radius: 2px; background: var(--w-accent); }
.ln-tres-courses { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-tres-courses a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ln-ink); text-decoration: none; background: var(--ln-card); box-shadow: inset 0 0 0 1.5px var(--ln-line-2); }
.ln-tres-courses a:hover { box-shadow: inset 0 0 0 2px var(--w-accent); }

/* ---------- Right to left: Arabic and Urdu small headings unspaced (spacing breaks the joining), the arrow mirrored ---------- */
[dir="rtl"] :is(.ln .ln-player--stage .ln-qres .ln-kicker, .ln-qres .ln-end-beat h3, .ln-seal b, .ln-tres-lists h2) { font-size: 14px; letter-spacing: 0; text-transform: none; }
.ln-qres-list--again span:dir(rtl)::before { content: "← "; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .ln .ln-player--stage.ln-quiz .ln-player-bar { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "close title count read"; }
  .ln .ln-player--stage .ln-quiz-prog .ln-segs { gap: 3px; }
  .ln .ln-player--stage .ln-qres .ln-end-art { height: auto; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; }
  .ln .ln-player--stage .ln-qres .ln-end-head { position: relative; inset: auto; }
  .ln-qres-head { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-top: 56px; }
  .ln-qres-head .ln-seal, .ln-qres-noor { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  /* Beside the seal, not under it. */
  .ln-qres-head:has(.ln-seal:not([hidden])) .ln-qres-noor { justify-self: start; }
  .ln-qres-noor { width: 84px; margin: 0; }
  .ln-qres-mark { width: 92px; }
  .ln-qres-pct { font-size: 24px; }
  .ln-seal svg { width: 112px; }
  /* One column (flex, so the areas above no longer apply), what to look at again first. */
  .ln-end-beats.ln-qres-beats { display: flex; flex-direction: column; align-items: stretch; }
  .ln-qres-again { order: -1; }
  .ln-qres-list { grid-template-columns: minmax(0, 1fr); }
  .ln-qres-foot { grid-template-columns: minmax(0, 1fr); margin: 18px 16px 0; }
  .ln-qres-on { justify-items: stretch; text-align: start; }
  .ln-qres-path, .ln-qres .ln-end-actions { justify-content: flex-start; }
  .ln .ln-player--stage .ln-test-layout { width: calc(100vw - 16px); grid-template-columns: minmax(0, 1fr); }
  .ln .ln-player--stage .ln-test-grid { position: static; }
  .ln-tres-lists { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Less motion: everything fades where it stands ---------- */
@media (prefers-reduced-motion: reduce) {
  .ln-qres.is-current .ln-qres-bead, .ln-qres.is-pass .ln-qmap-stop.is-after:not(.is-locked) i { animation: ln-bead-fade 120ms both; }
  .ln-seal.is-pressed, .ln-test-hero .ln-tres .ln-seal.is-pressed { animation: ln-bead-fade 120ms both; }
  .ln-seal.is-pressed::after { display: none; }
}
