/* Duolecto (/duolecto, templates/public/duolecto.php, www/assets/js/duolecto.js). Facelift of 1 Oct 2026 after the
   owner's Claude design: the site's own serif and flat paper look, with a big wordmark, a magenta call to action and the
   game live in a card beside the intro. A little louder than the rest of the site (the mascot, the speech bubble, a lip
   under the main buttons, confetti at the end), never a party colour: cyan, magenta, the site's green for « right ».
   Everything is scoped to .train so the rest of the site keeps its sober look. */

.train { --tr-cyan: #0088b0; --tr-cyan-d: #006786; --tr-mag: #d6006c; --tr-mag-d: #aa0b56;
         --tr-ok: #2f8a5b; --tr-ok-bg: #e3f4ea; --tr-ko: #b23a2e; --tr-ko-bg: #fbe7e4;
         --tr-card: var(--color-bg); --tr-line: var(--color-border); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .train { --tr-ok-bg: #173826; --tr-ko-bg: #3d1a16; --tr-ok: #5cc28a; --tr-ko: #f08a7e; }
}
:root[data-theme="dark"] .train { --tr-ok-bg: #173826; --tr-ko-bg: #3d1a16; --tr-ok: #5cc28a; --tr-ko: #f08a7e; }

.train section { padding: var(--space-5, 2.5rem) 0; }
.train .wrap { padding-left: 16px; padding-right: 16px; }
.tr-band { background: var(--color-surface); }

/* main buttons: magenta with a darker lip, pressed down on click */
.train .btn.tr-cta { background: var(--tr-mag); border-color: var(--tr-mag); color: #fff; box-shadow: 0 3px 0 var(--tr-mag-d);
                     transition: transform .06s, box-shadow .06s; }
.train .btn.tr-cta:hover { background: var(--tr-mag-d); }
.train .btn.tr-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tr-mag-d); }
.tr-wide { width: 100%; }
.tr-link { color: var(--color-link); font-weight: 600; }

/* ---------------------------------------------------------------- hero */
.tr-hero { padding-top: var(--space-4, 1.5rem) !important; }
.tr-hero-in { display: grid; gap: var(--space-5, 2.5rem); align-items: start; }
.tr-mascot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tr-mascot { width: 64px; height: 64px; flex: 0 0 auto; animation: tr-bob 2.4s ease-in-out infinite; }
.tr-kicker { margin: 0; font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-kicker-2, var(--tr-mag)); }
.tr-kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tr-mag); margin-right: 8px; vertical-align: middle; }
.tr-bubble { position: relative; margin: 0; padding: 6px 12px; font-style: italic; background: var(--tr-card); border: 1px solid var(--tr-line); }
.tr-bubble::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--tr-card);
                     border-left: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); transform: rotate(45deg); }
.tr-brand { margin: var(--space-3, 1rem) 0 0; font-size: clamp(3.25rem, 13vw, 6.5rem); line-height: .95; letter-spacing: -0.03em; font-weight: 700; }
.tb-duo { color: var(--color-text); }
.tb-lecto { color: var(--tr-mag); }
.tr-tagline { margin: var(--space-3, 1rem) 0 0; font-size: clamp(1.25rem, 4.5vw, 1.75rem); font-style: italic; line-height: 1.3; max-width: 26ch; }
.tr-lede { color: var(--color-text-muted); max-width: 36rem; }
.tr-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin: var(--space-3, 1rem) 0; }
.tr-stat { margin: 0; display: inline-flex; align-items: baseline; gap: 8px; color: var(--color-text-muted); font-size: 0.9375rem; }
.tr-stat strong { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--color-text); }
.tr-stat.is-mag strong { color: var(--tr-mag); }
.tr-stat.is-cyan strong { color: var(--tr-cyan); }
.tr-stat-today { flex-basis: 100%; margin: 0; font-size: 0.875rem; color: var(--tr-ok); font-weight: 600; }
.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.tr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-4, 1.5rem) 0 0; padding: 0; }
.tr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--tr-card); border: 1px solid var(--tr-line);
           font: inherit; font-size: 0.9375rem; color: var(--color-text); cursor: pointer; }
.tr-chip:hover { border-color: var(--color-border-strong); }
.tr-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tr-cyan); }
.tr-chip-1::before, .tr-chip-3::before { background: var(--tr-mag); }
.tr-chip-4::before { background: var(--color-neutral-500, #9b9797); }

/* ---------------------------------------------------------------- the game card */
.tr-card { position: relative; overflow: hidden; background: var(--tr-card); border: 1px solid var(--tr-line); padding: 20px 18px; min-height: 22rem;
           scroll-margin-top: 5rem; /* below the sticky header when the game scrolls into view */ }
.tr-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; }
.tr-card-k { color: var(--color-text-muted); }
.tr-card-theme { display: inline-flex; align-items: center; gap: 12px; color: var(--tr-mag); }
.tr-flame { display: inline-flex; align-items: center; gap: 3px; color: var(--tr-mag); font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-flame svg { width: 15px; height: 15px; }
.tr-card-q { font-size: 1.375rem; line-height: 1.3; margin: var(--space-4, 1.5rem) 0 var(--space-3, 1rem); font-weight: 600; }
.tr-card-themes { list-style: none; padding: 0; margin: 0 0 var(--space-4, 1.5rem); display: grid; gap: 6px; counter-reset: th; }
.tr-card-themes li { counter-increment: th; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--tr-line); }
.tr-card-themes li::before { content: counter(th); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
                             border: 1px solid var(--tr-line); font-size: 0.8125rem; color: var(--color-text-muted); }
.tr-card-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3, 1rem); }
.tr-card-note { margin: var(--space-3, 1rem) 0 0; font-size: 0.875rem; color: var(--color-text-muted); }
.tr-defi { margin: 0 0 var(--space-3, 1rem); padding: 10px 12px; background: var(--color-accent-2-100, #fff1f4); color: var(--color-text);
           border-left: 3px solid var(--tr-mag); font-weight: 600; }

.tr-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 12px 0 8px; }
.tr-seg { height: 5px; background: var(--color-surface-2); }
.tr-seg.is-now { background: color-mix(in srgb, var(--tr-mag) 40%, var(--color-surface-2)); }
.tr-seg.is-ok { background: var(--tr-ok); }
.tr-seg.is-ko { background: var(--tr-ko); }
.tr-meta { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.tr-again { margin: 10px 0 0; font-size: 0.875rem; color: var(--tr-mag-d); font-style: italic; }
.tr-q { font-size: 1.375rem; line-height: 1.3; margin: var(--space-3, 1rem) 0; }
.tr-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; font: inherit; color: var(--color-text);
          background: var(--tr-card); border: 1px solid var(--tr-line); cursor: pointer; transition: border-color .1s, background .1s; }
.tr-opt:hover:not(:disabled) { border-color: var(--tr-cyan); background: var(--color-accent-100, #e9f8ff); }
.tr-opt:disabled { cursor: default; }
.tr-letter { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--tr-line);
             font-size: 0.75rem; color: var(--color-text-muted); }
.tr-opt.is-correct { border-color: var(--tr-ok); background: var(--tr-ok-bg); }
.tr-opt.is-correct .tr-letter { background: var(--tr-ok); border-color: var(--tr-ok); color: #fff; }
.tr-opt.is-incorrect { border-color: var(--tr-ko); background: var(--tr-ko-bg); }
.tr-opt.is-incorrect .tr-letter { background: var(--tr-ko); border-color: var(--tr-ko); color: #fff; }
.tr-fb { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--tr-ok); background: var(--tr-ok-bg); animation: tr-rise .18s ease-out; }
.tr-fb.is-ko { border-left-color: var(--tr-ko); background: var(--tr-ko-bg); }
.tr-fb p { margin: 0 0 6px; }
.tr-fb-t { font-weight: 700; font-size: 1.125rem; color: var(--tr-ok); }
.tr-fb.is-ko .tr-fb-t { color: var(--tr-ko); }
.tr-fb-a { font-weight: 600; }
.tr-fb-x { font-size: 0.9375rem; }
.tr-fb-src { display: inline-block; margin: 0 18px 10px 0; font-size: 0.875rem; color: var(--color-link); }

.tr-end { text-align: center; position: relative; }
.tr-end-t { font-size: 2rem; margin: var(--space-3, 1rem) 0; }
.tr-end-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: var(--space-3, 1rem) 0; }
.tr-end-card { padding: 10px 6px; border: 1px solid var(--tr-line); }
.tr-end-card span { display: block; font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.tr-end-card b { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.tr-end-streak, .tr-end-duel { margin: 6px 0; }
.tr-end-duel { font-weight: 700; color: var(--tr-mag-d); }
.tr-end .tr-card-row { justify-content: center; }

/* the grids: green for right, white for missed */
.tr-sq-row { display: inline-flex; gap: 5px; }
.tr-sq { width: 22px; height: 22px; border: 1px solid var(--tr-line); background: var(--tr-card); }
.tr-sq.is-ok { background: var(--tr-ok); border-color: var(--tr-ok); }
.tr-end .tr-sq { width: 30px; height: 30px; }

.tr-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tr-confetti i { position: absolute; top: -12px; width: 7px; height: 11px; animation: tr-fall 1.6s ease-in forwards; }

.tr-install, .tr-remind { margin-top: var(--space-4, 1.5rem); padding: 12px 14px; border: 1px solid var(--tr-line); background: var(--color-surface); text-align: left; }
.tr-install-t, .tr-remind-t { margin: 0 0 4px; font-weight: 700; }
.tr-install-x, .tr-remind-x { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
.tr-install-no { background: none; border: 0; font: inherit; color: var(--color-link); text-decoration: underline; cursor: pointer; }
.tr-remind-sel { width: auto; min-width: 7rem; }
.tr-remind .tr-card-row { align-items: center; }
.tr-remind-f { display: contents; }   /* the agenda form's select and button sit in the row like before */

/* ---------------------------------------------------------------- sections */
.tr-sec-kicker { margin: 0 0 6px; font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-mag); }
.tr-kicker-cyan { color: var(--tr-cyan-d); }
.tr-sec-title { margin: 0 0 var(--space-3, 1rem); font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.15; max-width: 24ch; }
.tr-sec-text { color: var(--color-text-muted); max-width: 34rem; }
.tr-steps { list-style: none; margin: var(--space-4, 1.5rem) 0 0; padding: 0; display: grid; gap: var(--space-4, 1.5rem); }
.tr-steps h3 { margin: 0 0 6px; font-size: 1.1875rem; }
.tr-steps p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.tr-step-n { color: var(--tr-mag); font-size: 0.875rem; margin-right: 6px; font-variant-numeric: tabular-nums; }
.tr-two { display: grid; gap: var(--space-5, 2.5rem); align-items: start; }
.tr-share-status { min-height: 1.4em; margin: 8px 0 0; font-size: 0.875rem; color: var(--color-text-muted); word-break: break-word; }
.tr-grids { display: grid; gap: 14px; align-content: start; }
.tr-grid-row { display: grid; grid-template-columns: 6.5rem auto 2rem; align-items: center; gap: 12px; }
.tr-grid-name { font-weight: 700; }
.tr-grid-score { font-size: 1.375rem; text-align: right; color: var(--tr-cyan); font-variant-numeric: tabular-nums; }
.tr-grids-note, .tr-grids-empty { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }

/* the theme units: one aligned column, the round buttons on a dotted line */
.tr-review { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin: var(--space-3, 1rem) 0;
             border: 1px solid var(--tr-line); border-left: 3px solid var(--tr-mag); background: var(--tr-card); }
.tr-review p { margin: 0; font-weight: 600; }
.tr-units { list-style: none; margin: var(--space-4, 1.5rem) 0 0; padding: 0; position: relative; display: grid; gap: 14px; }
.tr-units::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 2px dotted var(--color-border-strong); }
.tr-unit { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 14px; }
.tr-unit-n { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font: inherit;
             font-size: 1.375rem; font-weight: 700; color: #fff; background: var(--tr-cyan); border: 0; box-shadow: 0 3px 0 var(--tr-cyan-d); cursor: pointer;
             transition: transform .06s, box-shadow .06s; }
.tr-unit-n:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tr-cyan-d); }
.tr-unit:nth-child(3n+2) .tr-unit-n { background: var(--tr-mag); box-shadow: 0 3px 0 var(--tr-mag-d); }
.tr-unit.is-mastered .tr-unit-n { background: var(--tr-ok); box-shadow: 0 3px 0 #23694a; }
.tr-unit.is-locked .tr-unit-n { background: var(--color-surface-2); color: var(--color-text-muted); box-shadow: none; cursor: default; }
.tr-unit.is-current .tr-unit-n { outline: 3px solid color-mix(in srgb, var(--tr-cyan) 35%, transparent); outline-offset: 3px; }
.tr-unit-t { margin: 0 0 6px; font-weight: 600; line-height: 1.25; }
.tr-unit.is-locked .tr-unit-t { color: var(--color-text-muted); }
.tr-unit-meta { margin: 6px 0 0; font-size: 0.875rem; color: var(--color-text-muted); }
.tr-bar { display: block; height: 6px; max-width: 24rem; background: var(--color-surface-2); overflow: hidden; }
.tr-bar-fill { display: block; height: 100%; background: var(--tr-ok); transition: width .4s; }

/* progress: the save link, the reminder, the QR (desktop only: it is for opening the game on a phone) */
.tr-updates-t { margin: var(--space-4, 1.5rem) 0 6px; font-size: 1.1875rem; }
.train-qr { display: none; }
@media (min-width: 64rem) {
  .train-qr { display: inline-flex; gap: 14px; align-items: center; margin: var(--space-4, 1.5rem) 0 0; padding: 10px 14px 10px 10px; max-width: 26rem;
              border: 1px solid var(--tr-line); background: var(--tr-card); }
  .train-qr-code { width: 6.5rem; flex: 0 0 auto; }
  .train-qr-code svg { display: block; width: 100%; height: auto; }
  .train-qr figcaption { font-size: 0.875rem; line-height: 1.35; color: var(--color-text-muted); }
  .train-qr figcaption b { display: block; font-size: 1rem; color: var(--color-text); margin-bottom: 4px; }
}

@media (min-width: 48rem) {
  .tr-steps { grid-template-columns: repeat(2, 1fr); }
  .tr-two { grid-template-columns: 1fr 1fr; }
  .tr-card { padding: 28px 30px; }
}
@media (min-width: 64rem) {
  /* DV60: the intro on the left (name, tagline, text, stats), the game and the QR on the right, centred against each
     other; the button and theme chips are the card's and the units' job on a wide screen */
  .tr-hero-in { grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: start; } /* DV71: both columns start at the top */
  .tr-actions, .tr-chips { display: none; }
  .tr-side .train-qr { display: flex; margin-top: 14px; max-width: none; }
  .tr-card { min-height: 0; }
  .tr-lede { margin-top: var(--space-3, 1rem); }
  .tr-steps { grid-template-columns: repeat(4, 1fr); }
  .tr-units { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .tr-units::before { display: none; }
}

@keyframes tr-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tr-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tr-fall { to { transform: translateY(26rem) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tr-mascot, .tr-fb { animation: none; } }

/* « read, then answer » (level 4): the passage above the question */
.tr-passage { margin: var(--space-3, 1rem) 0 0; padding: 12px 14px; background: var(--color-surface); border-left: 3px solid var(--tr-cyan); }
.tr-passage p { margin: 0; line-height: 1.5; }
.tr-passage .tr-passage-k { margin-bottom: 4px; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }

/* ---------------------------------------------------------------- true/false, matching, ordering (2 Oct 2026) */
.tr-hint { margin: 0 0 10px; font-size: 0.875rem; color: var(--color-text-muted); }
.tr-opts.tr-opts-vf { grid-template-columns: 1fr 1fr; }
.tr-opts-vf .tr-opt { justify-content: center; font-weight: 700; }
.tr-opts-vf .tr-letter { display: none; }
.tr-chipq { display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; min-height: 48px; text-align: left; font: inherit; font-size: 0.9375rem;
            color: var(--color-text); background: var(--tr-card); border: 2px solid var(--tr-line); cursor: pointer; line-height: 1.3; }
.tr-chipq:disabled { cursor: default; }
.tr-chipq.is-sel { border-color: var(--tr-cyan); background: var(--color-accent-100, #e9f8ff); }
.tr-chipq.is-paired { border-style: solid; }
.tr-chipq.p0 { border-color: var(--tr-cyan); } .tr-chipq.p1 { border-color: var(--tr-mag); } .tr-chipq.p2 { border-color: #c9a227; }
.tr-chipq.p3 { border-color: var(--color-neutral-700, #5a5757); } .tr-chipq.p4 { border-color: var(--tr-ok); }
.tr-chipq.is-paired { border-width: 2px 2px 2px 8px; }
.tr-chipq.is-ok { background: var(--tr-ok-bg); border-color: var(--tr-ok); }
.tr-chipq.is-ko { background: var(--tr-ko-bg); border-color: var(--tr-ko); }
.tr-match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-seq { margin: 0 0 10px; padding-left: 1.6em; min-height: 1.5em; }
.tr-seq li { padding: 8px 10px; margin-bottom: 6px; border: 2px solid var(--tr-cyan); background: var(--tr-card); }
.tr-seq li.is-ok { border-color: var(--tr-ok); background: var(--tr-ok-bg); }
.tr-seq li.is-ko { border-color: var(--tr-ko); background: var(--tr-ko-bg); }
.tr-pool { margin-bottom: 6px; }
.tr-undo { margin: 0 0 10px; padding: 6px 0; border: 0; background: none; font: inherit; color: var(--color-link); text-decoration: underline; cursor: pointer; }
.tr-undo:disabled { color: var(--color-text-muted); text-decoration: none; cursor: default; }
.btn.tr-check:disabled { opacity: .45; cursor: default; }
.tr-units-h { margin: var(--space-5, 2.5rem) 0 4px; font-size: 1.375rem; }
.tr-units-x { margin: 0; color: var(--color-text-muted); max-width: 36rem; }

/* ---------------------------------------------------------------- phone: a game, not a web page
   (owner, 2 Oct 2026: « remove most of the header, just leave the burger; focus on the game, your score and défier
   un ami; take inspiration from Duolingo »). Phone only; the desktop page above is unchanged. Of the site header only
   the burger stays, floating top right; the game bar (series, points, best) takes its place; the intro shrinks to the
   mascot and the name; while a game runs (.is-playing) nothing but the game shows, and the answer's feedback rises
   from the bottom with a full-width « Continuer ». */
.tr-gamebar { display: none; }
.tr-quit { flex: 0 0 auto; width: 36px; height: 36px; margin-right: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 1.75rem;
           line-height: 1; color: var(--color-text-muted); cursor: pointer; }
.tr-quit:hover { color: var(--color-text); }
.tr-card-head { justify-content: flex-start; }
.tr-card-head > .tr-card-k { flex: 1 1 auto; }

@media (max-width: 47.99rem) {
  body.train-page main { padding-top: 0; }
  body.train-page .site-header { height: 0; border: 0; background: none; z-index: 30; }
  body.train-page .site-header .wrap { min-height: 0; padding: 0; }
  body.train-page .site-header .brand, body.train-page .site-header .v27-save-btn { display: none; }
  body.train-page .nav-toggle { position: absolute; top: 4px; right: 8px; z-index: 2; background: var(--color-bg); border-radius: 50%; }
  body.train-page .nav { top: 52px; max-height: calc(100dvh - 52px); overflow-y: auto; } /* under the burger, never over it */
  body.train-page:has(.train.is-playing) .site-footer { display: none; }

  .tr-gamebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; height: 52px; padding: 0 60px 0 16px;
                background: var(--color-bg); border-bottom: 2px solid var(--tr-line); }
  .tr-gamebar-brand { margin-right: auto; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
  .tr-gamebar-brand i { font-style: normal; color: var(--tr-mag); }
  .tr-pill { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .tr-pill svg { width: 20px; height: 20px; }
  .tr-pill.is-flame svg { color: var(--tr-mag); }
  .tr-pill.is-star svg { color: var(--surligneur, #F4DC4A); }
  .tr-pill.is-best svg { color: var(--tr-cyan); }

  /* the idle screen: the mascot greets, the card is the screen's one big action */
  .train section { padding: var(--space-4, 1.5rem) 0; }
  .tr-hero { padding-top: var(--space-3, 1rem) !important; }
  .tr-hero-in { gap: var(--space-3, 1rem); }
  .tr-intro { text-align: center; }
  .tr-mascot-row { justify-content: center; }
  .tr-mascot { width: 72px; height: 72px; }
  .tr-kicker, .tr-tagline, .tr-lede, .tr-stats, .tr-actions, .tr-chips { display: none; }
  .tr-brand { font-size: 3rem; margin-top: 6px; }
  .tr-card { border-width: 2px; padding: 16px; min-height: 0; scroll-margin-top: 60px; }

  /* chunky, thumb-sized controls */
  .train .btn.tr-cta { min-height: 52px; font-size: 1.0625rem; font-weight: 700; box-shadow: 0 4px 0 var(--tr-mag-d); }
  .train .btn.tr-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tr-mag-d); }
  .tr-card-row .btn { flex: 1 1 100%; min-height: 48px; }
  .tr-opt { min-height: 56px; border-width: 2px; box-shadow: 0 3px 0 var(--tr-line); }
  .tr-opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--tr-line); }
  .tr-opt.is-correct { box-shadow: 0 3px 0 var(--tr-ok); }
  .tr-opt.is-incorrect { box-shadow: 0 3px 0 var(--tr-ko); }

  /* playing: the game alone, full screen */
  .train.is-playing .tr-gamebar, .train.is-playing .tr-intro, .train.is-playing > section:not(.tr-hero) { display: none; }
  .train.is-playing .tr-hero { padding: 0 !important; }
  .train.is-playing .tr-hero .wrap { padding: 0; }
  .train.is-playing .tr-card { border: 0; margin: 0; min-height: 100dvh; padding: 10px 16px 24px; }
  .train.is-playing .tr-card-head { padding-right: 52px; min-height: 44px; }
  .train.is-playing .tr-segs { gap: 4px; }
  .train.is-playing .tr-seg { height: 10px; border-radius: 5px; }
  .train.is-playing .tr-q { font-size: 1.5rem; margin: var(--space-4, 1.5rem) 0; }
  .tr-fb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; max-height: 70dvh; overflow-y: auto;
           padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-left: 0; border-top: 3px solid var(--tr-ok);
           animation: tr-up .2s ease-out; }
  .tr-fb.is-ko { border-top-color: var(--tr-ko); }
  .tr-fb-t { font-size: 1.375rem; }
  .tr-fb .btn.tr-cta { margin-top: 6px; }
  .tr-fb.is-ok .btn.tr-cta { background: var(--tr-ok); border-color: var(--tr-ok); box-shadow: 0 4px 0 color-mix(in srgb, var(--tr-ok) 70%, #000); }
  .train.is-playing .tr-end { padding-top: var(--space-5, 2.5rem); }
  .train.is-playing .tr-end-t { font-size: 2.5rem; }

  /* the units as a path: the circles zigzag, the titles stay in one column */
  .tr-units::before { left: 47px; }
  .tr-unit { grid-template-columns: 96px 1fr; }
  .tr-unit-n { justify-self: center; width: 60px; height: 60px; }
  .tr-unit:nth-child(4n+2) .tr-unit-n { translate: 14px 0; }
  .tr-unit:nth-child(4n+4) .tr-unit-n { translate: -14px 0; }
}
@keyframes tr-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tr-fb { animation: none; } }

/* DV60: the challenge's example grids (before a daily is played), marked as an example */
.tr-grids-ex { opacity: .75; }
.tr-grids-k { margin: 0; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }

/* DV74: the optional first name in the challenge link */
.tr-name { display: block; margin: 0 0 12px; max-width: 24rem; }
.tr-name-l { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.tr-name-i { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; border: 2px solid var(--tr-line); background: var(--tr-card); color: var(--color-text); }
.tr-name-x { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--color-text-muted); }

/* streak milestones and freezes (owner, 4 Oct 2026: « let's also make streaks, people love that ») */
.tr-milestone { margin: var(--space-3, 1rem) auto; padding: 14px 12px; max-width: 22rem; text-align: center; border: 2px solid var(--tr-mag);
                background: color-mix(in srgb, var(--tr-mag) 8%, var(--tr-card)); animation: tr-pop .35s ease-out; }
.tr-ms-flame { display: inline-block; color: var(--tr-mag); }
.tr-ms-flame svg { width: 40px; height: 40px; }
.tr-ms-n { margin: 2px 0; font-size: 1.75rem; font-weight: 700; color: var(--tr-mag); }
.tr-ms-t { margin: 0; }
.tr-end-freeze, .tr-end-next { margin: 6px 0; font-size: 0.9375rem; }
.tr-end-next { color: var(--color-text-muted); }
.tr-froze { border-left-color: var(--tr-cyan); background: var(--color-accent-100, #e9f8ff); }
.tr-pill.is-snow svg { color: var(--tr-cyan); }
@keyframes tr-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tr-milestone { animation: none; } }

/* friends' leagues (owner, 5 Oct 2026) */
.tr-league { grid-column: 1 / -1; margin-top: var(--space-4, 1.5rem); padding-top: var(--space-4, 1.5rem); border-top: 1px solid var(--tr-line); }
.tr-league-h { margin: 0 0 6px; font-size: 1.375rem; }
.tr-league-n { margin: 12px 0 4px; font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.tr-board { display: grid; gap: 8px; margin: 10px 0; max-width: 32rem; }
.tr-board-ls { margin: 0 0 4px; font-weight: 700; color: var(--tr-mag); display: flex; align-items: center; gap: 4px; }
.tr-board-ls svg { width: 18px; height: 18px; }
.tr-board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 3rem 1.5rem; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--tr-line); background: var(--tr-card); }
.tr-board-row.is-me { border-color: var(--tr-cyan); }
.tr-board-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-board-wait { font-size: 0.8125rem; color: var(--color-text-muted); font-style: italic; }
.tr-board-streak { display: inline-flex; align-items: center; gap: 2px; color: var(--tr-mag); font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-board-streak.is-zero { color: var(--color-text-muted); font-weight: 400; }
.tr-board-streak svg { width: 15px; height: 15px; }
.tr-board-score { text-align: right; font-size: 1.125rem; color: var(--tr-cyan); font-variant-numeric: tabular-nums; }
.tr-board-row .tr-sq { width: 16px; height: 16px; }
.tr-board-note { margin: 4px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--tr-mag-d); }
