.pq-cat-history {
  --pq-marker: rgba(160, 116, 30, 0.22);
  --pq-marker-edge: rgba(160, 116, 30, 0.32);
  --pq-pigment: #79591B;
  --pq-pigment-soft: #E5D9C0;
  --pq-edge: #C4A973;
}
.pq-cat-history .pq-emblem {
  background-image: url("/home/emblem-history.webp");
}
.pq-cat-geography {
  --pq-marker: rgba(47, 79, 158, 0.22);
  --pq-marker-edge: rgba(47, 79, 158, 0.32);
  --pq-pigment: #2A3F75;
  --pq-pigment-soft: #CED1DA;
  --pq-edge: #8393BE;
}
.pq-cat-geography .pq-emblem {
  background-image: url("/home/emblem-geography.webp");
}
.pq-cat-science {
  --pq-marker: rgba(47, 116, 102, 0.22);
  --pq-marker-edge: rgba(47, 116, 102, 0.32);
  --pq-pigment: #2A594E;
  --pq-pigment-soft: #CED9CF;
  --pq-edge: #83A99D;
}
.pq-cat-science .pq-emblem {
  background-image: url("/home/emblem-science.webp");
}
.pq-cat-arts_literature {
  --pq-marker: rgba(108, 58, 125, 0.22);
  --pq-marker-edge: rgba(108, 58, 125, 0.32);
  --pq-pigment: #55305E;
  --pq-pigment-soft: #DACDD3;
  --pq-edge: #A687AA;
}
.pq-cat-arts_literature .pq-emblem {
  background-image: url("/home/emblem-arts_literature.webp");
}
.pq-cat-sport {
  --pq-marker: rgba(196, 71, 45, 0.22);
  --pq-marker-edge: rgba(196, 71, 45, 0.32);
  --pq-pigment: #923A26;
  --pq-pigment-soft: #ECD0C3;
  --pq-edge: #D98F7C;
}
.pq-cat-sport .pq-emblem {
  background-image: url("/home/emblem-sport.webp");
}
.pq-cat-entertainment {
  --pq-marker: rgba(192, 69, 111, 0.22);
  --pq-marker-edge: rgba(192, 69, 111, 0.32);
  --pq-pigment: #8F3854;
  --pq-pigment-soft: #EBCFD1;
  --pq-edge: #D78EA2;
}
.pq-cat-entertainment .pq-emblem {
  background-image: url("/home/emblem-entertainment.webp");
}
.pg-history { --pg-100: #E5D9C0; --pg-200: #D5C29C; --pg-300: #C4A973; --pg-400: #B18D47; --pg: #A0741E; --pg-600: #8D671D; --pg-700: #79591B; --pg-800: #664C1A; --pg-900: #523E19; }
.pg-geography { --pg-100: #CED1DA; --pg-200: #AAB4CD; --pg-300: #8393BE; --pg-400: #5770AD; --pg: #2F4F9E; --pg-600: #2C4789; --pg-700: #2A3F75; --pg-800: #273760; --pg-900: #252F4C; }
.pg-science { --pg-100: #CED9CF; --pg-200: #AAC2B7; --pg-300: #83A99D; --pg-400: #578D80; --pg: #2F7466; --pg-600: #2C675A; --pg-700: #2A594E; --pg-800: #274C42; --pg-900: #253E35; }
.pg-arts_literature { --pg-100: #DACDD3; --pg-200: #C2ACC0; --pg-300: #A687AA; --pg-400: #885F93; --pg: #6C3A7D; --pg-600: #60356D; --pg-700: #55305E; --pg-800: #492C4E; --pg-900: #3D273F; }
.pg-sport { --pg-100: #ECD0C3; --pg-200: #E3B1A2; --pg-300: #D98F7C; --pg-400: #CE6953; --pg: #C4472D; --pg-600: #AB4029; --pg-700: #923A26; --pg-800: #793322; --pg-900: #602C1F; }
.pg-entertainment { --pg-100: #EBCFD1; --pg-200: #E1B0BB; --pg-300: #D78EA2; --pg-400: #CB6887; --pg: #C0456F; --pg-600: #A83F62; --pg-700: #8F3854; --pg-800: #773247; --pg-900: #5F2B39; }
.wax.tn-play { --wx-face: var(--pg); --wx-side: var(--pg-700); --wx-line: var(--pg-900); --wx-ring: var(--pg-800); --wx-ring-o: 0.45; --wx-wash: var(--pg-400); --wx-glyph: var(--paper-raised); }
.wax.tn-done { --wx-face: var(--pg-700); --wx-side: var(--pg-800); --wx-line: var(--pg-900); --wx-ring: var(--pg-900); --wx-ring-o: 0.4; --wx-wash: var(--pg-600); --wx-glyph: var(--paper-raised); }
.wax.tn-ahead { --wx-face: var(--pg-200); --wx-side: var(--pg-300); --wx-line: var(--pg-700); --wx-ring: var(--pg-400); --wx-ring-o: 0.6; --wx-wash: var(--pg-100); --wx-glyph: var(--pg-700); }
/* The wax seals of the path, drawn by src/home-draw.mjs (`sealKit`): their
   bodies written once in a page, each seal naming one, its colours from the
   classes of its category (`pg-<category>`) and of its state (`tn-<tone>`).
   Shared by the home (/home.css) and the small quiz of the subject pages
   (/page-quiz.css): build.mjs puts this file in both. */

/* The bodies, written once: they take no room in the page. */
.wax-defs {
  position: absolute;
}
.wax {
  display: block;
  overflow: visible;
}
.wx-far {
  fill: var(--ink);
  fill-opacity: 0.06;
}
.wx-near {
  fill: var(--ink);
  fill-opacity: 0.12;
}
.wx-side {
  fill: var(--wx-side);
  stroke: var(--wx-line);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.wx-hatch {
  fill: none;
  stroke: var(--wx-line);
  stroke-width: 0.7;
  stroke-opacity: 0.45;
  stroke-linecap: round;
}
.wx-face {
  fill: var(--wx-face);
}
.wx-wash {
  fill: var(--wx-wash);
  fill-opacity: 0.5;
}
.wx-ring {
  fill: none;
  stroke: var(--wx-ring);
  stroke-width: 1.2;
  stroke-opacity: var(--wx-ring-o);
}
.wx-edge {
  fill: none;
  stroke: var(--wx-line);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.wx-check {
  fill: none;
  stroke: var(--wx-glyph);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wx-glyph {
  fill: var(--wx-glyph);
  font-family: var(--serif);
  font-weight: 600;
  text-anchor: middle;
}

/* The small quiz at the end of a subject page (src/pages/quiz.mjs; rule
   « petit quiz d'une page de sujet »), in the look of the app's question
   screens: the measures, colours and fonts of apps/mobile's
   QuestionHeading, MultipleChoice, ChoiceMark, AnswerFeedback,
   SwipeStatementCard, TruthStamp, FillTheGap and FindTheError. Fraunces 700
   and 600 italic, which the site does not serve, are set in 600 and 400
   italic.

   The states are classes the script (public/quiz/quiz.js) adds:
     .pq-live      on the section: the script plays the quiz
     .pq-moves     on the section: motion is allowed
     .pq-done      on the section: every question answered
     .pq-perfect   on the section too, when every answer was right
     .pq-cascade   on the pieces of a question that starts below the screen
     .pq-enter     on that question once it reaches the screen
     .pq-answered  on a question, with .pq-got or .pq-missed
     .pq-picked    on the answer touched
   The style at rest is always the final state: an animation only comes
   from its start. Under « reduce motion », or without the script, nothing
   moves. */

/* The quiz stands apart from the text of the page (the team, 2026-11-28):
   a frame on a paper a shade deeper than the page, and a head in the
   category's pigment, its painted emblem, « Teste-toi » and how to play. */
.page-quiz {
  --pq-ease: cubic-bezier(0.33, 1, 0.68, 1);
  margin: 48px 0 0;
  border: 1.5px solid var(--pq-edge);
  border-radius: 24px;
  background: var(--paper-sunk);
  overflow: hidden;
}

.page-quiz .pq-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 18px;
  background: var(--pq-pigment);
  color: var(--paper-raised);
}

.page-quiz .pq-emblem {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Longhands: the picture is the category's (build.mjs, quizCss). */
  background-color: var(--paper-raised);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px auto;
  box-shadow: 0 0 0 3px var(--pq-pigment-soft);
}

.prose .page-quiz .pq-head p {
  margin: 0;
  font-family: var(--sans);
  color: var(--pq-pigment-soft);
}

.prose .page-quiz .pq-eyebrow {
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose .page-quiz .pq-head h2 {
  margin: 2px 0 4px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--paper-raised);
}

.prose .page-quiz .pq-lede {
  font-size: 15px;
  line-height: 21px;
}

.prose .page-quiz .pq-list {
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.prose .page-quiz .pq-q {
  margin: 0;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.prose .page-quiz .pq-q:last-child {
  border-bottom: 0;
}

.page-quiz .pq-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-quiz .pq-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  margin: 0 auto 20px;
  border-radius: 12px;
  object-fit: contain;
}

/* ------------------------------------------------ QuestionHeading */

.prose .page-quiz .pq-instruction {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.prose .page-quiz .pq-question {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: pretty;
}

.prose .page-quiz .pq-question b {
  font-weight: 600;
}

.page-quiz .pq-question.pq-size-l {
  font-size: 23px;
  line-height: 30px;
}

.page-quiz .pq-question.pq-size-m {
  font-size: 20px;
  line-height: 27px;
}

.page-quiz .pq-question.pq-size-s {
  font-size: 18px;
  line-height: 25px;
}

.prose .page-quiz .pq-hint {
  margin: -12px 0 16px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------- answers */

.page-quiz .pq-answer {
  position: relative;
  font: inherit;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.page-quiz .pq-answer:disabled {
  cursor: default;
  color: var(--ink);
}

.page-quiz.pq-live .pq-q:not(.pq-answered) .pq-answer {
  cursor: pointer;
}

.page-quiz .pq-answer:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.page-quiz .pq-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* MultipleChoice, `choiceCardStyle`. */
.page-quiz .pq-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 23px;
  text-align: left;
}

.page-quiz .pq-card > .pq-mark,
.page-quiz .pq-card > .pq-text {
  position: relative;
}

/* ParchmentFill: the pick lays the parchment over the card, left to right. */
.page-quiz .pq-fill {
  position: absolute;
  inset: 0;
  border-radius: 10.5px;
  background: var(--parchment);
  transform: scaleX(0);
  transform-origin: left center;
}

.page-quiz .pq-picked .pq-fill {
  transform: scaleX(1);
}

/* ChoiceMark, variant « line ». */
.page-quiz .pq-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
}

.page-quiz .pq-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
}

.page-quiz .pq-mark svg {
  display: none;
  fill: none;
  stroke: var(--paper-raised);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-quiz .pq-glyph-check {
  width: 13px;
  height: 13px;
}

.page-quiz .pq-glyph-cross {
  width: 12px;
  height: 12px;
}

.page-quiz .pq-picked .pq-mark {
  border-color: var(--ink);
}

.page-quiz .pq-picked .pq-dot {
  transform: scale(1);
}

/* The verdict on the answer touched: a disc, its tick or its cross. */
.page-quiz .pq-answered .pq-picked .pq-mark {
  border-color: transparent;
}

.page-quiz .pq-answered .pq-picked .pq-dot {
  display: none;
}

.page-quiz .pq-got .pq-picked .pq-mark {
  background: var(--correct);
}

.page-quiz .pq-got .pq-picked .pq-glyph-check {
  display: block;
}

.page-quiz .pq-missed .pq-picked .pq-mark {
  background: var(--review);
}

.page-quiz .pq-missed .pq-picked .pq-glyph-cross {
  display: block;
}

/* Once answered: the others fade, the wrong pick is struck through. */
.page-quiz .pq-answered .pq-answer:not([data-right]):not(.pq-picked) {
  opacity: 0.5;
}

.page-quiz .pq-missed .pq-card.pq-picked {
  border-color: var(--review-line);
}

.page-quiz .pq-strike {
  background: linear-gradient(var(--review), var(--review)) no-repeat 0 58% / 0
    1.5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page-quiz .pq-missed .pq-card.pq-picked .pq-strike {
  background-size: 100% 1.5px;
  color: var(--ink-soft);
}

/* InkMark, the loop around the right answer, drawn by hand. */
.page-quiz .pq-loop {
  display: none;
  position: absolute;
  inset: -9px;
  width: calc(100% + 18px);
  height: calc(100% + 18px);
  overflow: visible;
  pointer-events: none;
}

.page-quiz .pq-loop path,
.page-quiz .pq-underline path {
  fill: none;
  stroke: var(--correct);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* The loop drawn for the width nearest to the column's (quiz.mjs,
   LOOP_WIDTHS: 340, 470, 600). */
.page-quiz .pq-answered [data-right] > .pq-loop-l {
  display: block;
}

@media (max-width: 599px) {
  .page-quiz .pq-answered [data-right] > .pq-loop-l {
    display: none;
  }
  .page-quiz .pq-answered [data-right] > .pq-loop-m {
    display: block;
  }
}

@media (max-width: 459px) {
  .page-quiz .pq-answered [data-right] > .pq-loop-m {
    display: none;
  }
  .page-quiz .pq-answered [data-right] > .pq-loop-s {
    display: block;
  }
}

/* ------------------------------------------------- true or false */

.page-quiz .pq-statement-card {
  position: relative;
  margin: 0 0 20px;
  padding: 22px 24px 26px;
  border: 1.5px solid var(--parchment-edge);
  border-radius: 24px;
  background: var(--parchment);
}

/* Their stamp's word is longer in Spanish and Brazilian Portuguese
   (VERDADERO, VERDADEIRO): tilted at −6°, its left corner rises some 9px,
   which the card's bottom keeps clear of the statement's last line. */
.page-quiz:lang(es) .pq-statement-card,
.page-quiz:lang(pt-BR) .pq-statement-card {
  padding-bottom: 32px;
}

.prose .page-quiz .pq-statement {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: pretty;
}

.page-quiz .pq-statement.pq-size-l {
  font-size: 26px;
  line-height: 34px;
}

.page-quiz .pq-statement.pq-size-m {
  font-size: 23px;
  line-height: 31px;
}

.page-quiz .pq-statement.pq-size-s {
  font-size: 20px;
  line-height: 28px;
}

/* TruthStamp: a double frame, the truth in capitals, set at −6°. */
.page-quiz .pq-stamp {
  display: none;
  position: absolute;
  right: 20px;
  bottom: -16px;
  padding: 2px;
  border: 2px solid var(--ink-soft);
  border-radius: 4px;
  background: var(--parchment);
  transform: rotate(-6deg);
}

.page-quiz .pq-stamp > span {
  display: block;
  padding: 2px 12px;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 2px;
  color: var(--ink-soft);
}

.page-quiz .pq-answered .pq-stamp {
  display: block;
}

.page-quiz .pq-truth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.page-quiz .pq-truth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper-raised);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
}

.page-quiz .pq-arrow {
  font-size: 18px;
  color: var(--ink-soft);
}

.page-quiz .pq-truth-button .pq-mark {
  display: none;
}

.page-quiz .pq-answered .pq-truth-button.pq-picked .pq-mark {
  display: inline-flex;
}

/* ------------------------------------------------- sentence with a gap */

.page-quiz .pq-gap {
  display: inline-grid;
  vertical-align: baseline;
  margin: 0 2px;
  border-bottom: 2px dashed var(--line-strong);
}

.page-quiz .pq-gap > * {
  grid-area: 1 / 1;
  text-align: center;
}

.page-quiz .pq-gap-size {
  visibility: hidden;
  padding: 0 6px;
}

.page-quiz .pq-gap-word,
.page-quiz .pq-gap-fix {
  display: none;
  position: relative;
  font-style: italic;
  font-weight: 400;
}

.page-quiz .pq-gap-word.pq-shown {
  display: inline-block;
}

.page-quiz .pq-got .pq-gap-word.pq-shown,
.page-quiz .pq-gap-fix {
  color: var(--correct);
}

.page-quiz .pq-missed .pq-gap-word.pq-shown {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--review);
}

.page-quiz .pq-answered .pq-gap {
  border-bottom-color: transparent;
}

.page-quiz .pq-missed .pq-gap-fix {
  display: inline;
}

/* InkUnderline, under the right word. */
.page-quiz .pq-underline {
  display: none;
  position: absolute;
  left: -7px;
  bottom: -9px;
  width: calc(100% + 14px);
  height: 14px;
  overflow: visible;
  pointer-events: none;
}

.page-quiz .pq-gap-fix {
  white-space: nowrap;
}

.page-quiz .pq-gap-fix .pq-underline {
  left: calc(0.3em - 7px);
  width: calc(100% - 0.3em + 14px);
}

.page-quiz .pq-got .pq-gap-word.pq-shown .pq-underline,
.page-quiz .pq-missed .pq-gap-fix .pq-underline,
.page-quiz .pq-answered .pq-fix .pq-underline {
  display: block;
}

.page-quiz .pq-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-quiz .pq-chip {
  min-height: 52px;
  padding: 14px 20px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 22px;
}

/* A chip gone to the gap leaves its hollow (`hollowCardStyle`). */
.page-quiz .pq-chip.pq-picked {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.page-quiz .pq-chip.pq-picked .pq-text {
  visibility: hidden;
}

.page-quiz .pq-answered .pq-chip {
  opacity: 0.5;
}

.page-quiz .pq-answered .pq-chip.pq-picked {
  opacity: 1;
}

/* ------------------------------------------------- find the mistake */

.prose .page-quiz .pq-segments {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .page-quiz .pq-segment {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.prose .page-quiz .pq-segment:first-child {
  border-top: 1px solid var(--line);
}

.page-quiz .pq-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 11px 8px;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  text-align: left;
}

.page-quiz .pq-line .pq-mark {
  margin-top: 2px;
}

.page-quiz .pq-line .pq-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* HighlightedText: the line touched under the category's pigment. */
.page-quiz .pq-marker {
  background: linear-gradient(var(--pq-marker), var(--pq-marker)) no-repeat 0
    0 / 0 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 3px;
}

.page-quiz .pq-line.pq-picked .pq-marker {
  background-size: 100% 100%;
  box-shadow: inset 0 -1px 0 var(--pq-marker-edge);
}

/* The error stays readable, struck through in ink, above its correction. */
.page-quiz .pq-answered .pq-line[data-right] .pq-marker {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--ink);
}

.page-quiz .pq-fix {
  display: none;
  position: relative;
  font-style: italic;
  color: var(--correct);
}

.page-quiz .pq-answered .pq-fix {
  display: inline-block;
}

/* The line a right touch found is the error: a tick; another line touched
   gets the amber cross (the base rule of the verdict, above). */
.page-quiz .pq-answered .pq-line:not([data-right]):not(.pq-picked) {
  opacity: 0.5;
}

/* ------------------------------------------------- the correction */

.page-quiz .pq-feedback {
  margin-top: 20px;
}

.page-quiz .pq-verdict {
  display: none;
  padding: 18px 20px 20px;
  border-top: 1px solid;
  border-radius: 12px;
}

.page-quiz .pq-verdict-right {
  border-top-color: var(--correct-line);
  background: var(--correct-soft);
  --pq-tone: var(--correct);
}

.page-quiz .pq-verdict-wrong {
  border-top-color: var(--review-line);
  background: var(--review-soft);
  --pq-tone: var(--review);
}

.page-quiz .pq-got .pq-verdict-right,
.page-quiz .pq-missed .pq-verdict-wrong {
  display: block;
}

.prose .page-quiz .pq-verdict-word {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: var(--pq-tone);
}

.page-quiz .pq-verdict-icon {
  flex: none;
  width: 22px;
  height: 22px;
}

.page-quiz .pq-verdict-icon circle {
  fill: var(--pq-tone);
}

.page-quiz .pq-verdict-icon path {
  fill: none;
  stroke: var(--paper-raised);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-quiz .pq-verdict-icon .pq-i-dot {
  fill: var(--paper-raised);
}

.prose .page-quiz .pq-answer-is {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
  color: var(--ink);
}

.prose .page-quiz .pq-explain {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  color: var(--ink);
}

/* « Voir la réponse »: without the script, the answer and why. */
.page-quiz .pq-reveal {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.page-quiz .pq-reveal summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.prose .page-quiz .pq-reveal p {
  margin: 8px 0 0;
}

.prose .page-quiz .pq-reveal .pq-reveal-answer {
  font-weight: 600;
  color: var(--ink);
}

.page-quiz.pq-live .pq-reveal {
  display: none;
}

/* ------------------------------------------------- the head's file */

/* The file of the questions' seals, on a strip of paper at the head's right:
   the seals in the category's pigment would be lost on the head painted in
   the same pigment. Empty seals with their rank; a right answer stamps its
   seal, a wrong one leaves an amber ring. */
.page-quiz .pq-head {
  flex-wrap: wrap;
}

.page-quiz .pq-head-words {
  flex: 1 1 200px;
  min-width: 0;
}

.page-quiz .pq-file {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-self: flex-start;
  padding: 3px 8px 0;
  border-radius: 999px;
  background: var(--paper-raised);
  box-shadow: 0 2px 0 rgb(30 26 21 / 0.18);
}

.page-quiz .pq-file-slot {
  display: grid;
  width: 34px;
  height: 36px;
}

.page-quiz .pq-file-slot > * {
  grid-area: 1 / 1;
  place-self: center;
}

.page-quiz .pq-fs-done,
.page-quiz .pq-fs-miss {
  visibility: hidden;
}

.page-quiz .pq-file-slot.pq-got .pq-fs-empty,
.page-quiz .pq-file-slot.pq-missed .pq-fs-empty {
  visibility: hidden;
}

.page-quiz .pq-file-slot.pq-got .pq-fs-done,
.page-quiz .pq-file-slot.pq-missed .pq-fs-miss {
  visibility: visible;
}

.page-quiz .pq-fs-miss,
.page-quiz .pq-slot-miss {
  fill: none;
  stroke: var(--review);
  stroke-width: 2;
  stroke-linecap: round;
}

.page-quiz .pq-fs-miss {
  width: 26px;
  height: 26px;
}

/* ------------------------------------------------- the end */

.prose .page-quiz .pq-end {
  padding: 26px 20px 30px;
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
  text-align: center;
}

/* The stamp card, once every question is answered: a slot per question with
   its seal or its ring, the flame's slot, the score, the flame's line. */
.page-quiz .pq-stamps {
  display: none;
  max-width: 420px;
  margin: 0 auto 20px;
  padding: 12px 18px 14px;
  border: 1.5px solid var(--parchment-edge);
  border-radius: 14px;
  background: var(--parchment);
  text-align: center;
  box-shadow:
    inset 0 0 0 4px var(--parchment),
    inset 0 0 0 5px var(--parchment-edge);
}

.page-quiz.pq-done .pq-stamps {
  display: block;
}

.prose .page-quiz .pq-card-title {
  margin: 0 0 8px;
  font: italic 400 18px/1.2 var(--serif);
  color: var(--ink-soft);
}

.page-quiz .pq-title-perfect,
.page-quiz.pq-perfect .pq-title-plain {
  display: none;
}

.page-quiz.pq-perfect .pq-title-perfect {
  display: inline;
  color: var(--correct);
}

.page-quiz .pq-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-quiz .pq-slot {
  display: grid;
  width: 62px;
  height: 62px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
}

.page-quiz .pq-slot > * {
  grid-area: 1 / 1;
  place-self: center;
}

.page-quiz .pq-slot-done .wax {
  margin-top: 4px;
}

.page-quiz .pq-slot-miss {
  width: 40px;
  height: 40px;
}

.page-quiz .pq-slot-done,
.page-quiz .pq-slot-miss {
  visibility: hidden;
}

.page-quiz .pq-slot.pq-got .pq-slot-done,
.page-quiz .pq-slot.pq-missed .pq-slot-miss {
  visibility: visible;
}

.page-quiz .pq-slot-sep {
  width: 1px;
  height: 44px;
  margin: 0 4px;
  background: var(--parchment-edge);
}

.page-quiz .pq-slot-flame {
  border-color: var(--flame-glow);
  background: rgb(255 253 248 / 0.6);
}

.page-quiz .pq-flame-pic,
.page-quiz .pq-flame-small {
  position: relative;
  display: block;
}

.page-quiz .pq-flame-pic {
  width: 36px;
  height: 52px;
}

.page-quiz .pq-flame-small {
  flex: none;
  width: 18px;
  height: 28px;
}

.page-quiz .pq-flame-pic img,
.page-quiz .pq-flame-small img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Unlit while the quiz runs; alive once it is over. */
.page-quiz .pq-fl-on,
.page-quiz.pq-done .pq-fl-off {
  opacity: 0;
}

.page-quiz.pq-done .pq-fl-on {
  opacity: 1;
}

.prose .page-quiz .pq-score {
  margin: 8px 0 0;
  font: 600 17px/1.3 var(--serif);
  color: var(--ink);
}

.page-quiz .pq-score-line {
  display: none;
}

.page-quiz .pq-score-line.pq-shown {
  display: inline;
}

.page-quiz .pq-count {
  font-variant-numeric: tabular-nums;
}

/* The flame's line, set apart: a band of the flame's glow, its flame, the
   sentence in the serif, centred. */
.prose .page-quiz .pq-flame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px -6px 0;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgb(235 158 93 / 0.2);
  box-shadow: inset 0 0 0 1px rgb(197 78 48 / 0.25);
  font: 600 17px/1.3 var(--serif);
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

.page-quiz .pq-flame > span {
  flex: 0 1 auto;
  max-width: 26ch;
}

.page-quiz .pq-flame em {
  font-style: italic;
  color: var(--flame);
}

/* The sentence that leads to the app, in the app's serif, as the questions
   are. */
.prose .page-quiz .pq-invite {
  max-width: 30ch;
  margin: 0 auto;
  font: 600 21px/28px var(--serif);
  color: var(--ink);
  text-wrap: balance;
}

/* The gold: the painted gilding of the app's ticket (its right piece and
   its mirror, without the perforation, public/quiz/plaque.webp), a light
   across it every 3 s. On a computer the stores' badges, large, in its
   field; on a phone the whole plaque is the button to /app. */
.page-quiz .pq-gold {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 16px auto 4px;
  aspect-ratio: 792 / 296;
  color: var(--ink);
  text-decoration: none;
}

.page-quiz .pq-gold-paint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 10px rgb(122 94 18 / 0.3));
}

.page-quiz .pq-gold-light {
  position: absolute;
  inset: 2% 0.6% 3%;
  overflow: hidden;
  border-radius: 14px;
  pointer-events: none;
}

.page-quiz .pq-gold-sheen {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 26%;
  background: linear-gradient(
    100deg,
    rgb(255 253 248 / 0) 0%,
    rgb(255 253 248 / 0.6) 50%,
    rgb(255 253 248 / 0) 100%
  );
  transform: translateX(-130%) skewX(-16deg);
}

.page-quiz .pq-gold-in {
  position: absolute;
  inset: 21% 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.page-quiz .pq-gold .stores {
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
}

.page-quiz .pq-gold .stores a {
  border-radius: 11px;
  box-shadow: 0 3px 0 rgb(107 77 14 / 0.55);
}

.page-quiz .pq-gold .stores img {
  width: auto;
  height: 66px;
}

.page-quiz .pq-gold-cta {
  font: 600 24px/1.05 var(--serif);
  color: var(--ink);
}

.page-quiz .pq-gold-sub {
  font: 800 10px/1.3 var(--sans);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--gilt-line);
}

.page-quiz .pq-gold-touch {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .page-quiz .pq-gold-touch {
    display: block;
  }
  .page-quiz .pq-gold-mouse {
    display: none;
  }
}

/* On a narrow computer window, the badges a little smaller. */
@media (max-width: 560px) {
  .page-quiz .pq-gold .stores img {
    height: 44px;
  }
  .page-quiz .pq-gold .stores {
    gap: 10px;
  }
}

/* ================================================= motion

   Only with .pq-moves, which the script sets when motion is allowed. Each
   animation runs from its start to the state written above, which is what
   stays. Sober answers (the team, 2026-11-28): the ink loop, which is the
   correction, and one moment per right answer, its seal stamped in the
   head's file; nothing shakes, nothing is thrown. */

.page-quiz.pq-moves .pq-answer {
  transition:
    transform 90ms ease-out,
    opacity 100ms linear;
}

.page-quiz.pq-moves .pq-q:not(.pq-answered) .pq-answer:active {
  transform: scale(0.985);
}

.page-quiz.pq-moves .pq-picked .pq-fill {
  animation: pq-lay 260ms var(--pq-ease) both;
}

.page-quiz.pq-moves .pq-picked .pq-dot,
.page-quiz.pq-moves .pq-answered .pq-picked .pq-mark svg {
  animation: pq-settle 160ms var(--pq-ease) both;
}

.page-quiz.pq-moves .pq-answered .pq-loop path {
  animation: pq-trace 380ms ease-out 120ms both;
}

.page-quiz.pq-moves .pq-answered .pq-underline path {
  animation: pq-trace 280ms ease-out 300ms both;
}

.page-quiz.pq-moves .pq-missed .pq-card.pq-picked .pq-strike {
  transition: background-size 200ms var(--pq-ease) 60ms;
}

.page-quiz.pq-moves .pq-line.pq-picked .pq-marker {
  transition: background-size 160ms ease-out;
}

.page-quiz.pq-moves .pq-answered .pq-verdict,
.page-quiz.pq-moves .pq-answered .pq-stamp,
.page-quiz.pq-moves .pq-missed .pq-gap-fix,
.page-quiz.pq-moves .pq-answered .pq-fix {
  animation: pq-fade 200ms ease-out 240ms both;
}

/* The word chosen flies to the gap (FLIP: the script sets where it came
   from, then lets it go). */
.page-quiz.pq-moves .pq-gap-word.pq-flying {
  transition: transform 260ms var(--pq-ease);
}

/* The one moment: the seal of the question stamped in the head's file. */
.page-quiz.pq-moves .pq-file-slot.pq-got .pq-fs-done {
  animation: pq-seal 300ms var(--pq-ease) 120ms both;
}

.page-quiz.pq-moves .pq-file-slot.pq-missed .pq-fs-miss {
  animation: pq-fade 260ms ease-out 150ms both;
}

/* The entry: once a question reaches the screen, its pieces come in turn. */
.page-quiz.pq-moves .pq-q.pq-enter .pq-cascade {
  animation: pq-enter 220ms var(--pq-ease) both;
  animation-delay: calc(var(--pq-i, 0) * 40ms);
}

/* The end: the card's seals pressed one after the other, the flame lit,
   then the gold lifts once; a light crosses the gold every 3 s. */
.page-quiz.pq-moves.pq-done .pq-stamps {
  animation: pq-enter 260ms var(--pq-ease) both;
}

.page-quiz.pq-moves.pq-done .pq-slot.pq-got .pq-slot-done,
.page-quiz.pq-moves.pq-done .pq-slot.pq-missed .pq-slot-miss {
  animation: pq-seal 280ms var(--pq-ease) both;
}

.page-quiz.pq-moves.pq-done .pq-slot:nth-child(1) > * {
  animation-delay: 300ms;
}

.page-quiz.pq-moves.pq-done .pq-slot:nth-child(2) > * {
  animation-delay: 480ms;
}

.page-quiz.pq-moves.pq-done .pq-slot:nth-child(3) > * {
  animation-delay: 660ms;
}

.page-quiz.pq-moves.pq-done .pq-fl-off {
  animation: pq-fade-out 400ms ease-out 900ms both;
}

.page-quiz.pq-moves.pq-done .pq-fl-on {
  animation: pq-fade 400ms ease-out 900ms both;
}

.page-quiz.pq-moves.pq-done .pq-gold {
  animation: pq-lift 520ms var(--pq-ease) 1100ms;
}

.page-quiz.pq-moves .pq-gold-sheen {
  animation: pq-sheen 3000ms ease-in-out 600ms infinite;
}

@keyframes pq-lay {
  from {
    transform: scaleX(0);
  }
}

@keyframes pq-settle {
  from {
    transform: scale(0);
  }
}

@keyframes pq-trace {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes pq-fade {
  from {
    opacity: 0;
  }
}

@keyframes pq-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes pq-seal {
  from {
    opacity: 0;
    transform: scale(1.4) rotate(-10deg);
  }
}

@keyframes pq-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes pq-lift {
  40% {
    transform: translateY(-6px) scale(1.025);
  }
}

@keyframes pq-sheen {
  0% {
    transform: translateX(-130%) skewX(-16deg);
  }
  25%,
  100% {
    transform: translateX(520%) skewX(-16deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-quiz *,
  .page-quiz *::before,
  .page-quiz *::after {
    animation: none !important;
    transition: none !important;
  }
}
