/* 7arif retro kit for the mini-games: the same look as the main grid (web/style.css), one stylesheet for all ten games.
   Link it BEFORE the game's own game.css:  <link rel="stylesheet" href="../retro/kit.css">
   Rules (docs/design/panel_rules.md): panel colour = question family, label band always ink, red = wrong only,
   lime = correct only, yellow = highlights (sticker, tags, tape). No emoji. Lalezar display + Cairo UI. Hard shadows, no blur.
   Outlined type only at 24 px or more. Every tap target >= 44 px. Eastern Arabic numerals in Arabic (kit.js digits()). */

/* fonts: web/fonts/fonts.css (subset WOFF2, linked by every page after this file). The two TTF faces that were declared
   here are gone (UI sweep G1): they were fetched on every game page next to the WOFF2s (~1 MB). */

:root {
  --navy: #1E2A6B; --navy-deep: #0D1238;
  --paper: #EFE6D2; --paper-2: #E6DAC0; --paper-clip: #FBF7EC;
  --ink: #1A1A1A; --ink-soft: #6B5D43; --ink-meta: #4a3f2c;
  --red: #D7262E; --red-ink: #AE1C23; /* red TYPE on paper: #D7262E is only 4.0:1 there, this is 5.5:1 */ --yellow: #F4D21F; --lime: #7BC43A; --cyan: #3BB3E5; --blue: #2A4DA0; --gold: #E0B43A;
  --font-display: "Lalezar", "Cairo", sans-serif;
  --font-ui: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --shadow-hard: 3px 3px 0 var(--ink); --shadow-navy: 0 6px 0 var(--navy-deep);
  --tap: 44px; --maxw: 520px;
  --tex-halftone: radial-gradient(rgba(0,0,0,.24) 1.1px, transparent 1.4px);
  --il: env(safe-area-inset-left, 0px); --ir: env(safe-area-inset-right, 0px);
  --it: env(safe-area-inset-top, 0px); --ib: env(safe-area-inset-bottom, 0px);
  /* panel families (retro.js FAM): background + icon colour */
  --fam-team: #1E2A6B;
  --fam-honours: #E0B43A;   /* SYS-COLOUR: a flat gold panel (the red sunburst carried no "wrong" meaning) */
  --fam-where: #3BB3E5;
  --fam-profile: repeating-linear-gradient(90deg, #2c7a3f 0 12.5%, #35894b 12.5% 25%);
  --fam-numbers: #F4D21F;
  color-scheme: dark;
}

/* =====================================================================================================================
   SYSTEM TOKENS v2 (visual sweep 2026-11-17, SYS-TYPE / SYS-GRID / SYS-COLOUR / SYS-MARKS / SYS-END / SYS-POS).
   The one source of every size, gap and colour role on the site. Game CSS consumes these; it does not invent numbers.
   web/style.css (main page, no kit.css) repeats this block verbatim: tests/web/test_system_tokens.py keeps them equal.
   Usage notes for every token and component: .sweep/visual/TOKENS.md.
   ===================================================================================================================== */
:root {
  /* type: 4 steps per screen, each >= 1.25x the one below. Arabic and English share the px values. */
  --fs-meta: 14px;      /* labels, dates, kickers, tags, English name line, counts      Cairo 700 (800 on fills) / 1.5 */
  --fs-body: 18px;      /* answers, names, body copy, every button, search input         Cairo 800 / 1.6 (1.5 in controls) */
  --fs-title: 24px;     /* questions (Cairo 800); verdict + next-game name (Lalezar)     1.5 */
  --fs-display: 32px;   /* masthead, in-game big numbers (Lalezar only)                  1 alone, 1.5 in text */
  --fs-score: 56px;     /* the end-screen score only                                     Lalezar, ink stroke 5 */
  --fs-name-sm: 15px; --fs-name-sm-en: 12px;   /* the ONE compact name pair (tiles too narrow for 18/14): never smaller */
  --lh-text: 1.6; --lh-title: 1.5;
  --fw-meta: 700; --fw-body: 800;
  /* spacing: the 4 / 8 scale, nothing else */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --margin: 16px;       /* content edge from the screen edge on phones: frame 8 + card 8 */
  --gutter: 8px;        /* 4 columns of 76 px at 360: (360 - 2 x 16 - 3 x 8) / 4 */
  /* colour roles: one meaning each */
  --c-paper: var(--paper); --c-paper-hi: var(--paper-clip); --c-paper-lo: var(--paper-2);
  --c-ink: var(--ink); --c-meta: var(--ink-meta);
  --c-frame: var(--navy);         /* the poster border only */
  --c-action: #0D1238;            /* the ONE primary action per screen (navy-deep ticket), nothing else in the card */
  --c-action-ink: #FBF7EC;
  --c-tap: var(--navy);           /* "tap here" outline on an empty slot (grid +, empty answer slot) */
  --c-wrong: #AE1C23;             /* wrong only: stamp fill, wrong-card border, struck answer */
  --c-right: #7BC43A;             /* right only: clipping frame, seal pill, right pip */
  --c-note: #F4D21F;              /* attempts / streak sticker, tape, timer warning, the current progress box. No other fill */
  --c-next: #F4D21F;              /* round 2 (owner, U5): the end screen's next-game card is a yellow ticket (Share stays navy) */
  --c-stamp: #2A4DA0;             /* round 2 (owner, U2): the tilted issue stamp "أوروبي" / "Europe" next to the issue: always blue */
  /* round 3 (owner 2026-11-19, R3-12): the page behind every card is a calm, flat blue (was the textured navy backdrop
     image), with at most a faint dot grid; navy-deep stays the action colour on top of it */
  --c-page: #1D2A73;
  --page-tex: radial-gradient(rgba(251, 247, 236, .045) 1px, transparent 1.4px) 0 0 / 16px 16px;
  /* round 4 (owner 2026-11-19, ROUND4.md): content sits straight on the calm blue (no box behind labels, crests, names).
     On the blue: light text, soft translucent panels only where something is functional (a tappable slot, an input) */
  --c-on: #FBF7EC;                          /* text / icons on the blue page */
  --c-on-soft: rgba(251, 247, 236, .78);    /* secondary text on the blue (dates, English names, hints): AA on --c-page */
  --c-soft: rgba(251, 247, 236, .08);       /* the soft panel: a tappable slot / option / secondary control on the blue */
  --c-soft-hi: rgba(251, 247, 236, .14);    /* its pressed / hover state */
  --c-line: rgba(251, 247, 236, .3);        /* dashed empty-slot outline, hairlines between rows on the blue */
  --c-wrong-on: rgba(13, 18, 56, .45);      /* a wrong answer card on the blue (with a 2 px --c-wrong rim) */
  --rad: 14px;                              /* the one corner radius of soft panels, slots and buttons */
  /* round 2 (owner, U6): the four game groups (list order and colour everywhere; catalog.js HAREEF_GROUPS) */
  --grp-grid: #1A1A1A; --grp-who: #1E2A6B; --grp-career: #3BB3E5; --grp-mates: #2C7A3F; --grp-quick: #E0B43A;
  /* round 6 (owner 2026-11-21, K12 "deep press inks"): the game cover / poster / tile colour per catalog GROUP (not the icon
     family), egg-white glyph (every one >= 4.9:1); Versus keeps its loud red + yellow */
  --cov-grid: #0D1238; --cov-who: #2A4DA0; --cov-career: #1C6F99; --cov-mates: #2C7A3F; --cov-quick: #4A2C7A; --cov-ink: #FBF7EC;
  --card-rule: rgba(26, 26, 26, .6);   /* 1 px hairline 4 px inside the paper card (the cyan rule is gone) */
  --grain-opacity: .09;           /* main-page card grain; game cards are flat */
  /* marks (right / wrong / near): one size, one place, one clock */
  --mark-h: 32px; --mark-seal: 28px; --mark-in: 240ms; --mark-done: 300ms;
  --pip: 22px;                    /* round 2 (owner, U7): one progress box; the current one is yellow and tilted */
  /* round 2 (owner, U1): THE yellow sticker disc (attempts, streak, lives, timer): diameter on phones / desktop */
  --sticker: 72px; --sticker-lg: 84px;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23141821' stroke-width='3.6' stroke-linecap='square'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23FBF7EC' stroke-width='4'/%3E%3C/svg%3E");
  /* end screen */
  --end-top: 8px;                 /* the end block's top edge (its first child is the score) from the viewport top */
  --end-in: 200ms; --end-step: 40ms;
  /* the action dock + the fixed phone header */
  --dock-h: 52px; --dock-b: calc(12px + var(--ib, 0px)); --dock-room: calc(var(--dock-h) + 24px + var(--ib, 0px));
  --head-h: 112px;              /* round 6 (K4): was 100; 12 px of room between the buttons and the wordmark row */
}
@media (prefers-color-scheme: dark) { :root { --navy: #18225a; --navy-deep: #080b26; --paper: #E3D8C0; --paper-2: #D6C8AA; --paper-clip: #EEE7D6;
  --ink-soft: #55482F; /* AA on the darker paper-2 */ } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--navy); overflow-x: hidden; font-synthesis: none; }
body { margin: 0; color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.6; min-height: 100svh;   /* UI sweep E1: body 16 / 1.6 */
       background: var(--page-tex), var(--c-page); }   /* round 3 (R3-12): flat calm blue, no backdrop image */
@media (prefers-color-scheme: dark) { :root { --c-page: #18235F; } }
html { background: var(--c-page); }
button, input { font: inherit; color: inherit; }
button, [role="button"] { touch-action: manipulation; cursor: pointer; }
svg { width: 1em; height: 1em; flex: 0 0 auto; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
html[lang="ar"] body * { letter-spacing: normal !important; }

/* ---- page frame ---- */
.r-poster { max-width: var(--maxw); margin: 0 auto; min-height: 100svh; padding: 0 max(10px, var(--ir)) calc(28px + var(--ib)) max(10px, var(--il)); background: transparent; }
@media (min-width: 1024px) { .r-poster { --maxw: 980px; background: transparent; } .r-spread { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 28px; align-items: start; } }
/* CLS gate (used by a game's game.css): the first paint comes while the page still waits for its scripts (data, kit.js,
   game.js, switcher.js), so the round card is drawn empty, then filled, the games button gets its word and kit.js
   fitTopbar() may move the masthead to its own row: everything under it jumped (CLS 0.15-0.5 on phones). A game keeps
   its card unpainted (visibility: the space is laid out, nothing is drawn) until the script has filled it and labelled
   the games button; failsafe: shown anyway after 3 s.   .xx-spread:has(#roundName:empty) { visibility: hidden; animation: r-gate-open 0s 3s forwards; } */
@keyframes r-gate-open { to { visibility: visible; } }

/* ---- top bar (one for all ten games): back | masthead | help + language ----
   Markup (every game):
     <header class="r-topbar">
       <div class="r-topbar__side"><a class="r-round back" href="../../" aria-label="..."><i class="r-back-ico" aria-hidden="true"></i></a></div>
       <h1 class="r-masthead">...</h1>
       <div class="r-topbar__side"><button class="r-round q"><span class="q-mark" aria-hidden="true"></span></button><button class="r-round pill">EN</button></div>
     </header>
   Back rule: the back button sits at the inline-start edge and its chevron points out of the page toward that edge
   (Arabic/RTL: right edge, pointing right; English/LTR: left edge, pointing left). One drawn chevron, mirrored by dir.
   Size rule: masthead 34-46 px (English 30-42 px), always red with a paper outline. When it does not fit between the two
   sides, kit.js (fitTopbar) adds .is-wrap: the masthead moves to its own row under the buttons (and shrinks only if it
   still overflows there). */
.r-topbar { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 8px; min-height: 76px; padding-top: var(--it); }
.r-topbar__side { display: flex; gap: 8px; align-items: center; }
.r-topbar__side:last-child { justify-content: flex-end; }
.r-round { position: relative; width: var(--tap); height: var(--tap); border-radius: 50%; border: 2px solid var(--paper); background: transparent; color: var(--paper);
           display: inline-grid; place-items: center; padding: 0; font-size: 20px; text-decoration: none; flex: 0 0 auto; transition: transform 80ms; }
.r-round:active { transform: scale(.94); background: rgba(239,230,210,.12); }
@media (hover: hover) { .r-round:hover { background: rgba(239,230,210,.12); } }
.r-round.pill { width: auto; min-width: var(--tap); padding: 0 12px; border-radius: 22px; font: 800 14px/1 var(--font-ui); }
.r-round.q { font-family: var(--font-display); font-size: 24px; line-height: 1; }
/* alignment pass 2026-11-12: on English pages the pill reads "ع"; the isolated letter's ink hangs below the line, so
   lift it to sit in the optical middle of the pill like "EN" does */
html[lang="en"] .r-round.pill { font-size: var(--fs-meta); padding-bottom: 4px; }
html[lang="en"] .r-round.pill > span { font-size: inherit; }
.q-mark::before { content: "\061F"; display: block; padding-top: 5px; }
html[lang="en"] .q-mark::before { content: "?"; padding-top: 3px; }
.r-back-ico { display: block; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 4.5l7.5 7.5-7.5 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 4.5l7.5 7.5-7.5 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
html[dir="ltr"] .r-back-ico { transform: scaleX(-1); }
.r-masthead { margin: 0; min-width: 0; font-family: var(--font-display); font-weight: 400; line-height: 1; font-size: clamp(34px, 10.4vw, 46px); color: var(--red);
              -webkit-text-stroke: 6px var(--paper); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--navy-deep); transform: rotate(-3deg); white-space: nowrap; text-align: center; padding: 6px 2px 0; }
html[lang="en"] .r-masthead { font-size: clamp(30px, 9vw, 42px); -webkit-text-stroke-width: 5px; }
.r-masthead small { display: block; font: var(--fw-meta) var(--fs-meta)/1.5 var(--font-ui); color: var(--paper); -webkit-text-stroke: 0; text-shadow: none; transform: rotate(3deg); margin-top: 6px; }
.r-topbar.is-wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "s e" "m m"; row-gap: 2px; min-height: 0; padding-top: calc(10px + var(--it)); padding-bottom: 12px; }
.r-topbar.is-wrap > .r-topbar__side:first-child { grid-area: s; }
.r-topbar.is-wrap > .r-topbar__side:last-child { grid-area: e; }
.r-topbar.is-wrap > .r-masthead { grid-area: m; }
/* round 2 (owner 2026-11-18, U3): the OLD placement on phones too. The masthead (display 32, SYS-TYPE) sits in the button
   row, between the two sides, whenever it fits there; only when it does not (kit.js fitTopbar measures it) does it take
   its own centred row under the buttons (.is-wrap: buttons 8 px from the top, then the masthead; --head-h + the safe area).
   First paint: the table below guesses fitTopbar's answer per game, language and width, so nothing jumps when the script
   runs (the old P3 table, regenerated for the v2 sizes: .sweep/visual/R2/shared/tools/wraptable.py; tests/web/
   test_topbar_table.py fails when it is stale). */
.r-topbar > .r-masthead { grid-column: var(--tbc, auto); grid-row: var(--tbr, auto); }
@media (max-width: 1023px) {
  .r-topbar { min-height: 60px; gap: var(--s2); padding-top: var(--it); }
  .r-topbar > .r-masthead { margin-top: 2px; padding: 0; transform: rotate(-2deg); }
  /* round 6 (owner 2026-11-20, K4): the wordmark on its own row keeps clear room under the buttons (--head-h grew by the
     same 12 px). First paint: the table's --tbr: 2 gives the same margin as .is-wrap after kit.js has run */
  .r-topbar > .r-masthead { margin-top: calc(2px + (var(--tbr, 1) - 1) * var(--s3)); }
  .r-topbar.is-wrap > .r-masthead { margin-top: calc(2px + var(--s3)); }
  .r-topbar.is-wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "s e" "m m"; row-gap: 0; min-height: 0; align-content: start;
    height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; }
  .r-topbar.is-wrap > .r-masthead { justify-self: center; max-width: 100%; }
  /* a masthead with a sub-line (the contents page): the box grows by that line, nothing spills into the card */
  .r-topbar.is-wrap:has(> .r-masthead > small) { height: auto; padding-bottom: var(--s2); }
}
/* TOPBAR-TABLE-START */
@media (max-width: 313px) { :is(html[data-game="links"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 316px) { :is(html[data-game="career"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 324px) { :is(html[data-game="squad"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 325px) { :is(html[data-game="transfer"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (min-width: 350px) and (max-width: 388px) { :is(html[data-game="connections"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 339px) { :is(html[data-game="guesswho"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (min-width: 350px) and (max-width: 397px) { :is(html[data-game="timeline"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (min-width: 350px) and (max-width: 413px) { :is(html[data-game="links"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (min-width: 350px) and (max-width: 416px) { :is(html[data-game="career"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (min-width: 350px) and (max-width: 424px) { :is(html[data-game="squad"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (min-width: 350px) and (max-width: 425px) { :is(html[data-game="transfer"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (min-width: 350px) and (max-width: 439px) { :is(html[data-game="guesswho"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 392px) { :is(html[data-game="connections"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 401px) { :is(html[data-game="timeline"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 417px) { :is(html[data-game="links"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 420px) { :is(html[data-game="career"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 428px) { :is(html[data-game="squad"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 429px) { :is(html[data-game="transfer"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 443px) { :is(html[data-game="guesswho"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 449px) { :is(html[data-game="teammates"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 450px) { :is(html[data-game="year"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 453px) { :is(html[data-game="teammates"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 454px) { :is(html[data-game="year"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 456px) { :is(html[data-game="higherlower"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 460px) { :is(html[data-game="higherlower"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 462px) { :is(html[data-game="links"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 466px) { :is(html[data-game="year"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 474px) { :is(html[data-game="links"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 477px) { :is(html[data-game="lie"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 478px) { :is(html[data-game="year"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 480px) { :is(html[data-game="oddone"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 481px) { :is(html[data-game="lie"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 487px) { :is(html[data-game="oddone"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 491px) { :is(html[data-game="oddone"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 492px) { :is(html[data-game="quiz"][lang="en"],html[data-game="oddone"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 495px) { :is(html[data-game="squad"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 502px) { :is(html[data-game="guesswho"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 504px) { :is(html[data-game="quiz"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 506px) { :is(html[data-game="career"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 507px) { :is(html[data-game="squad"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 508px) { :is(html[data-game="missing"][lang="ar"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 512px) { :is(html[data-game="missing"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 514px) { :is(html[data-game="higherlower"][lang="en"],html[data-game="guesswho"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 515px) { :is(html[data-game="missing"][lang="en"],html[data-game="quiz"][lang="ar"],html[data-game="transfer"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 517px) { :is(html[data-game="lie"][lang="en"]) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 518px) { :is(html[data-game="career"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 519px) { :is(html[data-game="quiz"][lang="ar"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
@media (max-width: 1023px) { :is(html[data-game="connections"][lang="en"],html[data-game="teammates"][lang="en"],html[data-game="timeline"][lang="en"],html[data-game="higherlower"][lang="en"].has-streak,html[data-game="lie"][lang="en"].has-streak,html[data-game="missing"][lang="en"].has-streak,html[data-game="transfer"][lang="en"].has-streak) .r-topbar:not(.is-fit) { --tbc: 1 / -1; --tbr: 2; grid-template-columns: 1fr 1fr; row-gap: 0; min-height: 0; align-content: start; height: calc(var(--head-h) + var(--it)); padding: calc(var(--s2) + var(--it)) 0 0; } }
/* TOPBAR-TABLE-END */
@media (min-width: 1024px) { .r-topbar { min-height: 100px; } .r-masthead, html[lang="en"] .r-masthead { font-size: 54px; -webkit-text-stroke-width: 7px; } }

/* ---- cover card: flat paper, a 1 px ink hairline 4 px inside it (SYS-DECOR: no cyan rule, no grain on game cards) ---- */
.r-cover { position: relative; background: var(--paper); border-radius: 4px; padding: var(--s2); box-shadow: 0 4px 0 var(--c-ink); outline: 1px solid var(--card-rule); outline-offset: -4px; }
.r-cover__rule { border: 0; border-radius: 2px; padding: var(--s3) var(--s2) var(--s4); }
/* ---- THE dateline (SYS-PARTS, one for every game): one 44 px line between a 2 px ink rule and a 1 px one:
   [prev]  issue title (Cairo 800 18) | date (meta 14)  [next]. Markup: .r-issue > [.r-inav.prev] <div>(.r-issue__title,
   .r-modetag, .r-issue__meta, in any wrapper)</div> [.r-inav.next]. Wrappers inside the middle block flatten
   (display: contents) so title and date share one baseline. Nothing is ever cut: when title + date do not fit on one
   line (Arabic dates at 320 px) the date moves whole to a second line under the title. The mode tag stays in the hub
   and the switcher; on phones it leaves the dateline. ---- */
.r-issue { display: flex; align-items: center; flex-wrap: nowrap; gap: var(--s1); min-height: 44px; padding: 0; margin: 0 0 var(--s3);
           border-top: 2px solid var(--c-ink); border-bottom: 1px solid var(--c-ink); }
.r-issue > :not(.r-inav):not(.r-tag):not(button) { display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: center;
           gap: 0 var(--s2); text-align: center; }
.r-issue > :not(.r-inav):not(.r-tag):not(button) > div { display: contents; }
/* owner 2026-11-21 "العدد #١٠٧": the title is ONE item (its number is a <bdi>); as display: contents its word and number
   became two flex items and the mode stamp wrapped in between */
.r-issue > :not(.r-inav):not(.r-tag):not(button) > div.r-issue__title { display: block; }
.r-issue__title { flex: 0 0 auto; margin: 0; font: var(--fw-body) var(--fs-body)/1.5 var(--font-ui); white-space: nowrap; }
.r-issue__meta { flex: 0 1 auto; min-width: 0; margin: 0; font: var(--fw-meta) var(--fs-meta)/1.5 var(--font-ui); color: var(--c-meta); white-space: nowrap; }
/* round 2 (owner 2026-11-18, U2): the issue stamp ("أوروبي" / "Europe") is back in every dateline, phones included: the OLD
   tilted rubber stamp (2 px rim, -4 deg) on raised paper, always blue (--c-stamp), next to the issue title (CSS order: title,
   stamp, then the date / meta, which moves whole to a second line when the three do not fit) */
.r-modetag { display: inline-block; flex: 0 0 auto; font: 800 var(--fs-meta)/1.5 var(--font-ui); color: var(--c-stamp); background: var(--c-paper-hi); border: 2px solid currentColor;
             padding: 0 6px; transform: rotate(-4deg); white-space: nowrap; }
.r-modetag.eu { color: var(--c-stamp); }
.r-issue > :not(.r-inav):not(.r-tag):not(button) > *, .r-issue > :not(.r-inav):not(.r-tag):not(button) > div > * { order: 2; }
.r-issue > :not(.r-inav):not(.r-tag):not(button) .r-issue__title { order: 0; }
.r-issue > :not(.r-inav):not(.r-tag):not(button) .r-modetag { order: 1; }
.r-issue > :not(.r-inav):not(.r-tag):not(button).r-modetag { display: inline-block; flex: 0 0 auto; min-width: 0; }   /* a stamp straight in the strip (contents page) is not the middle block */
/* owner 2026-11-21: Europe is simply "the game": no stamp in its datelines; only the Egypt edition keeps its "مصري" / "Egypt"
   stamp (games/mode.js sets <html data-mode> before the first paint, so nothing moves when the game script runs) */
html[data-mode="eu"] .r-modetag { display: none !important; }
/* a date / meta line that holds text of its own stays one box (an anonymous text item could not be ordered after the stamp) */
.r-issue > :not(.r-inav):not(.r-tag):not(button) > div.r-issue__meta:not(:has(> *)) { display: block; }
.r-kicker { font: var(--fw-body) var(--fs-meta)/1.5 var(--font-ui); color: var(--c-meta); margin: 0 0 2px; }   /* never red: red means wrong */
.r-h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-title); line-height: var(--lh-title); margin: 0 0 var(--s2); }

/* ---- buttons (SYS-COLOUR). .r-btn = THE primary action: a navy-deep match ticket, 52 px, 2 px ink border, 3 px ink
   shadow, two 12 px punched notches bitten into its short edges, Cairo 800 18 paper type. One per screen. Red is never a
   button. Secondary = .r-btn.paper (paper, no notches). Disabled = paper-lo, dashed, meta type. (.blue / .yellow are
   legacy names and render as paper.) ---- */
.r-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--dock-h); padding: 0 20px;
         border: 2px solid var(--c-ink); border-radius: 2px; background: var(--c-action); color: var(--c-action-ink); font: var(--fw-body) var(--fs-body)/1.5 var(--font-ui);
         box-shadow: var(--shadow-hard); text-decoration: none; transition: translate 60ms; }
.r-btn::before, .r-btn::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--c-paper);
         border: 2px solid var(--c-ink); pointer-events: none; }
/* the punched notches: half discs bitten into the short edges, drawn INSIDE the ticket's border box (nothing past its edge) */
.r-btn::before, .r-btn::after { width: 8px; height: 14px; margin-top: -7px; border-radius: 0; }
.r-btn::before { inset-inline-start: -2px; border-inline-start: 0; border-start-end-radius: 8px; border-end-end-radius: 8px; }
.r-btn::after { inset-inline-end: -2px; border-inline-end: 0; border-start-start-radius: 8px; border-end-start-radius: 8px; }
.r-btn:active, .r-btn.is-pressed { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.r-btn.paper, .r-btn.blue, .r-btn.yellow { background: var(--c-paper-hi); color: var(--c-ink); padding: 0 var(--s4); }
.r-btn:is(.paper, .blue, .yellow, .green, :disabled)::before, .r-btn:is(.paper, .blue, .yellow, .green, :disabled)::after { content: none; }   /* .green = a brand button (WhatsApp), not the ticket */
.r-btn:disabled { opacity: 1; cursor: default; translate: none; background: var(--c-paper-lo); color: var(--c-meta); border-style: dashed; box-shadow: none; }
.r-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--s3); }

/* ---- THE yellow sticker (round 2, owner 2026-11-18, U1): ONE component for attempts, streak ("يوم ورا بعض"), "N محاولة",
   lives and the timer, in every game, the end screen and the help sheets. Markup: <div class="r-sticker">[<small>top</small>]
   <b>N</b><small>label</small></div>. The disc is --st wide (--sticker 72 on phones, .is-lg = --sticker-lg 84; desktop 84 /
   96); everything inside scales with it: the number is Lalezar at .48 x --st (34 px at 72), the label Cairo 800 at .18 x --st
   (13 px); the number + label block is centred on the disc by its INK, not its line boxes: Lalezar's digits ride .09 em
   high in their line box and Cairo's Arabic sits .15 em low (measured from the font files), so both are nudged back. kit.js
   fitSticker() keeps the label inside the disc: it steps the label down to 11 px and lets it take two lines, hides a top
   label ("فاضل") that does not fit, and only then steps the number down (never under 24 px). A game sets position only. ---- */
.r-sticker { --st: var(--sticker); position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--st) * .05);
             box-sizing: border-box; width: var(--st); height: var(--st); min-width: var(--st); aspect-ratio: 1; flex: 0 0 auto; padding: 0; margin: 0; border-radius: 50%;
             background: var(--c-note); color: var(--c-ink); border: 2.5px solid var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink); transform: rotate(-6deg);
             text-align: center; line-height: 1; overflow: visible; white-space: normal; }
.r-sticker.is-lg { --st: var(--sticker-lg); }
.r-sticker > b { display: block; margin: 0; padding: 0; font: 400 calc(var(--st) * .48)/.64 var(--font-display); translate: 0 .09em; white-space: nowrap; color: var(--c-ink);
                 direction: ltr; unicode-bidi: isolate; -webkit-text-stroke: 0; text-shadow: none; }
.r-sticker > small { display: block; box-sizing: border-box; width: max-content; max-width: calc(var(--st) * .8); margin: 0; padding: 0; font: 800 calc(var(--st) * .18)/1.1 var(--font-ui);
                     color: var(--c-ink); white-space: normal; text-wrap: balance; overflow-wrap: normal; word-break: normal; text-align: center; letter-spacing: 0; }
html[lang="ar"] .r-sticker > small { translate: 0 -.15em; }
.r-sticker > small:empty, .r-sticker > small.is-cut { display: none; }
@media (min-width: 1024px) { .r-sticker { --st: var(--sticker-lg); } .r-sticker.is-lg { --st: 96px; } }
.r-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: var(--fs-meta); line-height: 1.5; padding: 0 6px; border-radius: 2px; }

/* ---- THE marks (SYS-MARKS, the same in all 15 games and Versus). Three silhouettes, never alike in grayscale:
   WRONG = .r-stamp: dark (#AE1C23, L* 39), TILTED -6 deg, square corners, double paper rule, "غلط" / "WRONG".
   RIGHT = .r-clip: a light card (paper-hi) with a 3 px lime inset frame, a tape strip across its top edge and an UPRIGHT
           round-ended lime seal pill (tick + "صح" / "RIGHT") on the inline-end edge, vertically centred, 8 px in.
           .r-clip.sm = small clipping (chips, slots, rows): short tape + a round 20 px tick seal in the corner, no word.
           .r-stamp.ok = the same seal pill used as a verdict stamp.
   NEAR  = .r-stamp.close / .r-near: hollow, DASHED wrong-red frame, red-ink word, no fill.
   Wrong answer card = .r-bad: paper-lo ground (no pink, no hatch), 2 px wrong border, the answer struck in wrong-red.
   One clock: starts <= 100 ms after the tap, done at 300 ms (--mark-done); reduced motion = a 150 ms fade. ---- */
.r-clip { position: relative; background: var(--c-paper-hi); outline: 3px solid var(--c-right); outline-offset: -6px; box-shadow: 3px 3px 0 var(--c-ink); padding: var(--s2) var(--s3); }
.r-clip::before { content: ""; position: absolute; top: -7px; left: 50%; width: 30%; max-width: 88px; height: 14px; transform: translateX(-50%) rotate(-3deg);
                  background: rgba(244, 210, 31, .85); box-shadow: inset 0 0 0 1px rgba(26,26,26,.25); z-index: 1; pointer-events: none; }
.r-clip::after { content: "\0635\062D"; position: absolute; z-index: 1; box-sizing: border-box; top: calc(50% - var(--mark-seal) / 2); margin-top: 0; inset-inline-end: var(--s2); height: var(--mark-seal);
                 display: inline-grid; align-items: center; padding-inline: 28px 10px; border-radius: 14px; border: 2px solid var(--c-ink); color: var(--c-ink); box-shadow: none;
                 font: 800 var(--fs-meta)/1 var(--font-ui); white-space: nowrap; pointer-events: none;
                 background: var(--c-right) var(--tick) no-repeat right 6px center / 18px 18px; }
/* round 6 (builder G request): the pill seal only, at zero extra specificity, so a small round seal (.r-clip.sm, the how-to
   scene, a game's own round seal) keeps its tick centred in English too */
:where(html[dir="ltr"]) .r-clip:where(:not(.sm))::after { background-position: left 6px center; }
/* the English word only replaces the Arabic one: zero extra specificity (same as .r-clip::after), so any game rule that
   shrinks the seal to a round tick and empties it (content: "") empties it in English too, no per-game patch needed */
:where(html[lang="en"]) .r-clip:where(:not(.sm))::after { content: "RIGHT"; letter-spacing: .03em; }
.r-bad { position: relative; border: 2px solid var(--c-wrong); background-color: var(--c-paper-lo); background-image: none; padding: var(--s2) var(--s3); }
.r-bad .r-name, .r-bad > s { color: var(--c-wrong); text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 800; }
/* a dual name: only the Arabic line is struck (a line-through would run through the English line too) */
.r-bad .r-name:has(.r-dn) { text-decoration: none; }
.r-bad .r-name .r-dn__ar { text-decoration: line-through; text-decoration-thickness: 2px; }
:is(.r-bad, .is-wrong, .bad, .wrong) .r-dn__ar { color: var(--c-wrong); }
.r-stamp { display: inline-flex; align-items: center; gap: 4px; min-height: var(--mark-h); font: 400 var(--fs-title)/1.25 var(--font-display); color: var(--c-paper-hi); background: var(--c-wrong);
           border: 3px double var(--c-paper-hi); outline: 2px solid var(--c-wrong); padding: 2px var(--s2) 0; transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--c-ink); white-space: nowrap; }
.r-stamp::before { content: "\063A\0644\0637"; padding-top: .12em; }
html[lang="en"] .r-stamp { font: 800 var(--fs-body)/1.25 var(--font-ui); padding-top: 2px; }
html[lang="en"] .r-stamp::before { content: "WRONG"; font-size: 1em; padding-top: 0; letter-spacing: .04em; }
/* right as a verdict stamp: the upright lime seal pill (tick + word) */
.r-stamp.ok { transform: none; border: 2px solid var(--c-ink); outline: 0; border-radius: 999px; box-shadow: 2px 2px 0 var(--c-ink); color: var(--c-ink);
              background: var(--c-right) var(--tick) no-repeat right 8px center / 20px 20px; font: 800 var(--fs-body)/1.25 var(--font-ui); padding: 4px 34px 4px 14px; }
html[dir="ltr"] .r-stamp.ok { background-position: left 8px center; padding: 4px 14px 4px 34px; }
.r-stamp.ok::before { content: "\0635\062D"; padding-top: 0; font-size: 1em; }
html[lang="en"] .r-stamp.ok::before { content: "RIGHT"; }
/* near (close / hint): hollow, dashed, red-ink word */
.r-stamp.close { background: var(--c-paper-hi); color: var(--c-wrong); border: 2px dashed var(--c-wrong); outline: 0; box-shadow: none; transform: rotate(-6deg); }
.r-near { background: var(--c-paper-hi); background-image: none; border: 2px dashed var(--c-wrong); }
/* the marks' motion (.r-fresh = a mark that just landed, .r-shake = the wrong element only) follows the feel tokens in the
   "feel" block at the end of this file: clipping 250 ms + tape 150 ms + tick seal at 300 ms; stamp 200 ms + 3 px shake */
.r-fresh.r-stamp, .r-fresh .r-stamp { animation: fx-stamp var(--t-stamp) ease-out both; }   /* see the FEEL block for the shared clock */
.r-fresh.r-clip { animation: fx-clip var(--t-clip) var(--ease-pop) both; }
.r-fresh.r-clip::before { animation: fx-tape var(--t-tape) var(--t-tape-at) ease-out both; }
.r-fresh.r-clip::after { animation: fx-seal var(--t-seal) var(--t-seal-at) var(--ease-pop) both; }
.r-shake { animation: fx-shake var(--t-shake) 1; }

/* ---- category panel: family colour + halftone, icon, ink label band ---- */
.r-panel { position: relative; display: flex; flex-direction: column; border: 2px solid var(--ink); overflow: hidden; background: var(--fam-team); min-height: 96px; container-type: inline-size; }
.r-panel::before { content: ""; position: absolute; inset: 0; background-image: var(--tex-halftone); background-size: 5px 5px; pointer-events: none; opacity: .6; }
.r-panel[data-family="honours"] { background: var(--fam-honours); color: var(--c-ink); }
.r-panel[data-family="where"] { background: var(--fam-where); }
.r-panel[data-family="profile"] { background: var(--fam-profile); }
.r-panel[data-family="numbers"] { background: var(--fam-numbers); }
.r-panel__art { position: relative; flex: 1 1 auto; display: grid; place-items: center; padding: 8% 10% 4%; min-height: 0; }
.r-panel__art img { width: auto; height: 100%; max-height: 64cqi; max-width: 80%; object-fit: contain; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.r-panel__ico { width: 62cqi; max-width: 80%; aspect-ratio: 1; background: var(--fill, var(--paper-clip)); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.r-band { position: relative; background: var(--ink); color: var(--paper-clip); font: var(--fw-body) var(--fs-meta)/1.5 var(--font-ui); padding: var(--s1) 6px; text-align: center; }

/* ---- bottom sheet (paper, torn top edge) ---- */
.r-sheet-back { position: fixed; inset: 0; background: rgba(8,11,38,.62); z-index: 40; }
.r-sheet { position: fixed; z-index: 41; inset-inline: 0; bottom: 0; max-height: 88svh; overflow: auto; background: var(--paper); padding: var(--s5) max(var(--s4), var(--ir)) calc(var(--s4) + var(--ib)) max(var(--s4), var(--il));
           clip-path: polygon(0 9px, 4% 4px, 8% 8px, 12% 2px, 17% 7px, 21% 3px, 26% 9px, 30% 4px, 35% 7px, 39% 1px, 44% 6px, 48% 3px, 53% 9px, 57% 4px, 62% 7px, 66% 2px, 71% 8px, 75% 3px, 80% 7px, 84% 1px, 89% 6px, 93% 3px, 97% 8px, 100% 4px, 100% 100%, 0 100%); }

/* ---- search: input + suggestion rows (kit.js HareefRetro.search) ---- */
.r-search { width: 100%; min-height: var(--dock-h); padding: 0 var(--s3); border: 2px solid var(--ink); border-radius: 0; background: var(--paper-clip); color: var(--ink); font: var(--fw-body) var(--fs-body) var(--font-ui);
            box-shadow: 3px 3px 0 var(--c-ink); }
.r-search:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.r-sugg { list-style: none; margin: var(--s2) 0 0; padding: 0; border-top: 3px solid var(--ink); }
.r-sugg li { min-height: 56px; padding: var(--s1); border-bottom: 1.5px solid var(--ink); cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.r-sugg li:active, .r-sugg li[aria-selected="true"] { background: var(--paper-2); }
.r-sugg b { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.25; padding-top: 2px; }
.r-sugg small { font-size: var(--fs-meta); font-weight: 700; color: var(--ink-soft); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- result: the back page ---- */
.r-result { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow-hard); padding: var(--s4); margin-top: var(--s4); text-align: center; }
.r-result__big { font-family: var(--font-display); font-size: var(--fs-score); line-height: 1; padding-top: 6px; }
.r-share { white-space: pre-wrap; background: var(--paper-clip); border: 1.5px dashed var(--ink); padding: 10px; font: var(--fw-meta) var(--fs-meta)/1.6 var(--font-ui); text-align: start; unicode-bidi: plaintext; margin: 12px 0 0; }

/* ---- generic paper card / list row ---- */
.r-card { background: var(--paper-clip); border: 2px solid var(--ink); box-shadow: var(--shadow-hard); padding: var(--s2) var(--s3); }
.r-rows { display: grid; gap: var(--s2); }
.r-num { font-family: var(--font-display); font-weight: 400; }
.r-sugg:empty { display: none; }

/* ---- clipping options: .seal-start puts the tick seal on the inline-start corner; .tape-narrow is the short tape
   for small clippings (chips, slots); .r-clip.sm = small clipping (smaller seal and tape) ---- */
.r-clip.seal-start::after { inset-inline-end: auto; inset-inline-start: var(--s2); }
.r-clip.sm { outline-width: 2px; outline-offset: -5px; }
.r-clip.sm::after { content: ""; width: 20px; height: 20px; padding: 0; border-radius: 50%; top: 4px; margin-top: 0; inset-inline-end: 4px; border-width: 1.5px;
                    background-position: center; background-size: 14px; }   /* inside the corner: nothing past the edge */
.r-clip.sm.seal-start::after { inset-inline-end: auto; inset-inline-start: 4px; }
.r-clip.sm::before, .r-clip.tape-narrow::before { width: 24%; min-width: 24px; height: 10px; top: -5px; }

/* ---- the sheet is a centred dialog on desktop (torn top kept, hard shadow) ---- */
@media (min-width: 700px) {
  .r-sheet { top: 50%; bottom: auto; inset-inline: 0; margin-inline: auto; width: min(560px, calc(100vw - 48px)); max-height: min(86svh, 760px); transform: translateY(-50%);
             padding: 26px 22px 20px; filter: drop-shadow(6px 6px 0 var(--navy-deep)); }
}

/* ---- display headline: the outlined result score ("7/10", "4 of 4"). Yellow = neutral or partial,
   .is-win lime (correct), .is-lose red (wrong): the feedback colours keep their meaning. ---- */
.r-score { display: inline-block; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-score); line-height: 1; padding-top: 8px; margin: 4px 0 10px;
           color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg);
           direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.r-score.is-win { color: var(--lime); }
.r-score.is-lose { color: var(--c-paper-hi); }   /* a loss is never red (SYS-END) */
.r-score.sm { font-size: var(--fs-score); -webkit-text-stroke-width: 5px; text-shadow: 3px 3px 0 var(--ink); }

/* ---- panel icon on file:// (CSS masks are CORS fetches there): the pre-painted icon, re-tinted to the family colour ---- */
.r-panel__art img.r-tint { filter: brightness(0) drop-shadow(2px 2px 0 rgba(0,0,0,.25)); }
.r-panel__art img.r-tint.paper { filter: brightness(0) invert(.96) sepia(.12) drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.r-panel__art img.r-tint.gold { filter: brightness(0) invert(.82) sepia(1) saturate(6) hue-rotate(2deg) drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.r-panel__art img.r-tint { height: auto; width: 62cqi; max-width: 80%; }

/* ---- issue strip: previous / next issue. Markup: <button class="r-inav prev"><i class="r-chev"></i></button> ...
   <button class="r-inav next">...</button>. "Previous" sits at the inline-start edge and points to it, "next" at the end. ---- */
.r-inav { width: var(--tap); height: var(--tap); flex: 0 0 auto; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); padding: 0; }
.r-inav:disabled { opacity: .45; cursor: default; }   /* UI sweep E6: still visible as "no more days this way" */
.r-inav:not(:disabled):active { transform: scale(.92); }
@media (hover: hover) { .r-inav:not(:disabled):hover { color: var(--red-ink); } }
.r-chev { display: block; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 4.5l7.5 7.5-7.5 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 4.5l7.5 7.5-7.5 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
html[dir="ltr"] .r-inav.prev .r-chev, html[dir="rtl"] .r-inav.next .r-chev { transform: scaleX(-1); }

/* ---- list separator: a middle dot next to Eastern Arabic digits reads as a zero, so Arabic uses a bar (kit.js sep()) ---- */
.r-sep::before { content: "\00a0\00B7\00a0"; }
html[lang="ar"] .r-sep::before { content: "\00a0|\00a0"; }
.r-sep:last-child, .r-sep:has(+ :empty) { display: none; }

/* result headline colour follows the round: lime = won / perfect, red = lost, yellow = partial (the container classes
   every game already sets on its result box) */
:is(.perfect, .won, .win) .r-score { color: var(--lime); }
:is(.lost, .lose) .r-score { color: var(--c-paper-hi); }
@media (min-width: 1024px) { .r-score { font-size: 84px; -webkit-text-stroke-width: 7px; } }

/* ---- game poster (hub cards, main page newsstand): the game's glyph as a big rubber stamp on a halftone panel in its
   panel family colour (games/icons.js HAREEF_POSTER). Icon colour per family as on the grid: paper on navy / green,
   gold on the red sunburst, ink on cyan / yellow. ---- */
.g-poster { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid #1A1A1A;
            background: #1E2A6B; color: #FBF7EC; container-type: inline-size; }
.g-poster::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.24) 1.1px, transparent 1.4px); background-size: 5px 5px; pointer-events: none; opacity: .6; }
.g-poster[data-family="honours"] { background: #D7262E; color: #F4D21F; }   /* round 5 (ROUND5.md): live's red poster again (flat + halftone), gold glyph */
.g-poster[data-family="where"] { background: #3BB3E5; color: #141821; }
.g-poster[data-family="profile"] { background: repeating-linear-gradient(90deg, #2c7a3f 0 12.5%, #35894b 12.5% 25%); color: #FBF7EC; }
.g-poster[data-family="numbers"] { background: #F4D21F; color: #141821; }
.g-poster__stamp { position: relative; display: grid; place-items: center; height: 76%; aspect-ratio: 1; border-radius: 50%;
                   border: max(3px, 2.2cqi) solid currentColor; outline: max(1.5px, 1cqi) solid currentColor; outline-offset: max(3px, 2cqi);
                   transform: rotate(-8deg); filter: drop-shadow(3px 3px 0 rgba(0,0,0,.4)); }
.g-poster__stamp svg { width: 62%; height: 62%; stroke-width: 2.3; }

/* ---- one help-sheet title for every game (each page's sheet heading is #helpTitle) ---- */
.r-sheet #helpTitle { font: 400 var(--fs-display)/var(--lh-title) var(--font-display); color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; text-align: start; margin: 4px 0 8px; padding-top: 0; }

/* ---- the verdict line under the result headline ("Brilliant", "Spot on!"): display type in ink, no outline ---- */
.r-verdict { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-title); line-height: var(--lh-title); color: var(--ink); padding-top: 4px; margin: 0 0 6px; }

/* =====================================================================================================================
   FEEL (Foundation B, games/retro/feel.js): motion tokens, pressed state, correct / wrong marks, high contrast, settings rows.
   Global rules 2-7 (docs/research/mobile_game_design_research.md section 4): pressed within 100 ms, marks done in 400 ms,
   only transform (incl. the translate / scale / rotate properties) and opacity animate, no blur, the wrong element shakes
   (never the page), reduced motion = an opacity fade of 150 ms or less. The individual translate / scale properties are
   used so a mark composes with an element's own rotate() tilt instead of replacing it.
   ===================================================================================================================== */
:root {
  --t-press: 60ms;                                       /* pressed state transition (starts on pointerdown) */
  /* SYS-MARKS: one clock for right and wrong, both done at --mark-done (300 ms) */
  --t-clip: var(--mark-in); --t-tape-at: 60ms; --t-tape: 180ms;   /* correct: clipping 240 ms, tape 60 -> 240 ms */
  --t-seal-at: 120ms; --t-seal: 180ms;                           /* correct: seal 120 -> 300 ms */
  --t-stamp: var(--mark-in); --t-shake: 60ms;                     /* wrong: stamp 240 ms, then one 60 ms shake: done 300 ms */
  --t-reduced: 150ms;                                    /* reduced motion: opacity only */
  --ease-pop: cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes fx-clip { from { scale: 1.08; opacity: .55; } to { scale: 1; opacity: 1; } }
@keyframes fx-tape { from { scale: 0 1; opacity: 0; } to { scale: 1 1; opacity: 1; } }
@keyframes fx-seal { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes fx-stamp { 0% { scale: 1.6; opacity: 0; } 70% { scale: .95; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes fx-shake { 0%, 100% { translate: 0 0; } 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
@keyframes fx-fade { from { opacity: .35; } to { opacity: 1; } }

/* HareefFeel.mark(el, ok): .fx-ok on the clipping (tape = ::before, seal = ::after on .r-clip, or child .fx-tape / .fx-seal),
   .fx-bad on the wrong element (stamp = .r-stamp / .fx-stamp inside it, or the element itself when it is the stamp) */
.fx-ok { animation: fx-clip var(--t-clip) var(--ease-pop) both; }
.r-clip.fx-ok::before, .fx-ok .fx-tape { animation: fx-tape var(--t-tape) var(--t-tape-at) ease-out both; }
.r-clip.fx-ok::after, .fx-ok .fx-seal { animation: fx-seal var(--t-seal) var(--t-seal-at) var(--ease-pop) both; }
.fx-bad { animation: fx-shake var(--t-shake) var(--t-stamp) 1; }
.fx-bad .r-stamp, .fx-bad .fx-stamp, .r-stamp.fx-bad { animation: fx-stamp var(--t-stamp) ease-out both; }
.r-stamp.fx-bad { animation: fx-stamp var(--t-stamp) ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .fx-ok, .fx-bad, .r-fresh, .r-fresh .r-stamp, .r-shake, .fx-bad .r-stamp, .fx-bad .fx-stamp { animation: fx-fade var(--t-reduced) ease-out both !important; }
  .r-clip.fx-ok::before, .r-clip.fx-ok::after, .fx-ok .fx-tape, .fx-ok .fx-seal, .r-fresh.r-clip::before, .r-fresh.r-clip::after { animation: none !important; }
}

/* pressed state: feel.js puts .is-pressed on the control at pointerdown (CSS :active can lag on touch); 2 px into the hard
   shadow. The translate property composes with a control's own rotate / scale. */
:is(button, a[href], [role="button"], [role="option"], summary, label, .r-sugg li).is-pressed:not(:disabled) { translate: 2px 2px; }
.r-round.is-pressed { background: rgba(239,230,210,.12); }
.r-sugg li.is-pressed { background: var(--paper-2); }
button, a[href], [role="button"], [role="option"], summary, label, input, select { touch-action: manipulation; }
button, a[href], [role="button"], summary { transition-property: translate, transform, opacity; transition-duration: var(--t-press); }
@media (prefers-reduced-motion: reduce) { :is(button, a[href], [role="button"], [role="option"], summary, label).is-pressed:not(:disabled) { translate: none; opacity: .8; } }

/* high contrast ("ألوان واضحة", mode.js data-contrast): Okabe-Ito, correct green -> blue #0072B2, highlight yellow ->
   orange #E69F00, red stays. Every coloured state also carries a word or an icon (tick seal, WRONG stamp, hatch). */
html[data-contrast="high"] { --lime: #0072B2; --yellow: #E69F00; --gold: #E69F00; }
html[data-contrast="high"] .r-clip::after { box-shadow: 2px 2px 0 var(--ink), 0 0 0 2px var(--paper-clip); }

/* settings rows added to every help sheet (feel.js mountSettings): label + switch, 52 px tall */
.fx-settings { margin: 14px 0 4px; border: 2px solid var(--ink); background: var(--paper-clip); box-shadow: var(--shadow-hard); text-align: start; }
.fx-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.fx-setting[hidden] { display: none; }
.fx-setting + .fx-setting { border-top: 1px solid var(--ink); }
.fx-setting__txt { display: flex; flex-direction: column; min-width: 0; }
.fx-setting__txt b { font: var(--fw-body) var(--fs-body)/1.5 var(--font-ui); }
.fx-setting__txt small { font: var(--fw-meta) var(--fs-meta)/1.5 var(--font-ui); color: var(--ink-meta); }
.fx-toggle { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 52px; height: 30px; margin: 0; border: 2px solid var(--ink); background: var(--paper-2); position: relative; cursor: pointer; }
.fx-toggle::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 18px; height: 18px; background: var(--ink); transition: translate var(--t-press); }
.fx-toggle:checked { background: var(--yellow); }   /* UI sweep D4: a yellow-filled track when on (+ the "شغّال / مقفول" word beside it) */
.fx-state { flex: 0 0 auto; min-width: 3.4em; font: var(--fw-meta) var(--fs-meta)/1.5 var(--font-ui); color: var(--ink-meta); text-align: end; }
.fx-state.is-on { color: var(--ink); }
.fx-toggle:checked::after { translate: 22px 0; }
html[dir="rtl"] .fx-toggle:checked::after { translate: -22px 0; }
.fx-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- TIMER (games/retro/timer.js): number + bar; the remaining part is anchored at the inline end and shrinks toward it
   (scaleX on the fill, transform only); digits never mirror; "!" + yellow in the last seconds (SYS-COLOUR: red = wrong only) ---- */
.tm { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.tm-num { flex: 0 0 auto; min-width: 3.2em; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-title); line-height: 1.5; padding-top: 0; direction: ltr; unicode-bidi: isolate; text-align: center; color: var(--paper-clip); }
.tm.is-warn .tm-num { color: var(--c-note); }
.tm.is-warn .tm-num::after { content: "!"; }
.tm-bar { position: relative; flex: 1 1 auto; height: 14px; border: 2px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.tm-bar i { position: absolute; inset: 0; background: var(--yellow); transform-origin: right center; transition: transform 250ms linear; }
html[dir="rtl"] .tm-bar i { transform-origin: left center; }
.tm.is-warn .tm-bar i { background: var(--c-note); }
.tm-tag { font: 800 var(--fs-meta)/1.5 var(--font-ui); color: var(--paper-clip); border: 2px solid currentColor; padding: 0 8px; }
.tm-soft .tm-num { font-size: 24px; min-width: 2.4em; }
.tm-soft .tm-bar { height: 10px; }
.tm-card { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(13, 18, 56, .86); }
.tm-card__box { display: grid; justify-items: center; gap: 14px; min-width: min(320px, 100%); padding: 22px 20px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); text-align: center; }
.tm-card__big { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.1; padding-top: 8px; color: var(--red); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.tm-card__big.is-pop { animation: fx-stamp 300ms ease-out both; }
.tm-card__num { font-family: var(--font-display); font-size: 34px; direction: ltr; unicode-bidi: isolate; }
.tm-card__go { min-width: 180px; }
@media (prefers-reduced-motion: reduce) { .tm-bar i { transition: none; } .tm-card__big.is-pop { animation: fx-fade var(--t-reduced) both; } }

/* ---- rule 12: Lalezar only at 24 px or more (smaller display type is Cairo 800 / 900) ---- */
.r-sugg b { font-family: var(--font-ui); font-weight: 800; font-size: var(--fs-body); line-height: 1.5; padding-top: 0; }
/* reduced motion: controls never slide when pressed (rule 6), only an opacity change of 150 ms or less */
@media (prefers-reduced-motion: reduce) {
  button, a[href], [role="button"], [role="option"], summary, label, .r-btn, .r-round, .r-inav { transition: opacity 100ms !important; }
  .r-btn:active, .r-btn.is-pressed, .r-round:active, .r-inav:not(:disabled):active { translate: none !important; transform: none !important; opacity: .8; }
}

/* =====================================================================================================================
   COMPACT PHONES (owner, 2026-11-11, from phone playtests: "make everything a bit smaller ... so you can ALWAYS see the
   question while you're playing"). The same retro look with less air: top bar, masthead, issue strip, stickers, cards,
   buttons and gaps. Minimums kept: tap targets 44 px (8 px apart), Arabic body 16 px, Lalezar only at 24 px or more.
   Desktop (the two-page spread) keeps the roomy sizes above.
   ===================================================================================================================== */
@media (max-width: 1023px) {
  .r-poster { padding-bottom: calc(16px + var(--ib)); }
  /* SYS-TYPE / SYS-GRID: the masthead is display 32 in every game; the content edge is 16 px (frame 8 + card 8) */
  .r-poster { padding-inline: max(var(--s2), var(--ir)) max(var(--s2), var(--il)); }
  .r-masthead, html[lang="en"] .r-masthead { font-size: var(--fs-display); -webkit-text-stroke-width: 5px; text-shadow: 3px 3px 0 var(--navy-deep); padding-top: 4px; }
  .r-cover { padding: var(--s2); }
  .r-cover__rule { padding: var(--s2) 0 var(--s4); }
  .r-h2 { margin-bottom: var(--s2); }
  .r-search { min-height: var(--dock-h); }
  .r-panel { min-height: 84px; }
  .r-sugg li { min-height: 52px; padding: var(--s1); }
  .r-result { padding: var(--s4); margin-top: var(--s4); }
  .r-clip, .r-bad, .r-card { padding: var(--s2) var(--s3); }
}

/* ---- the pinned question (kit.js HareefRetro.pinQuestion): when the game's question has scrolled out of view during
   play, a compact copy rides at the top of the screen so the question is ALWAYS visible. Paper strip, ink rule, the
   question in Cairo 800 16 px (never truncated: it wraps), an optional row of clues (crests, chips) under it. Tapping it
   scrolls back to the full question. Slides in with transform + opacity only. ---- */
.r-qpin { position: fixed; z-index: 22; top: 0; inset-inline: 0; margin-inline: auto; max-width: var(--maxw); display: grid; gap: 3px;
          padding: calc(6px + var(--it)) max(12px, var(--ir)) 7px max(12px, var(--il)); background: var(--paper-clip); color: var(--ink);
          border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 rgba(13, 18, 56, .55); text-align: start; cursor: pointer;
          translate: 0 -110%; opacity: 0; pointer-events: none; transition: translate 140ms ease-out, opacity 120ms; }
.r-qpin.is-on { translate: 0 0; opacity: 1; pointer-events: auto; }
.r-qpin__k { font: 800 var(--fs-meta)/1.5 var(--font-ui); color: var(--c-meta); }
.r-qpin__q { font: var(--fw-body) var(--fs-body)/1.6 var(--font-ui); overflow-wrap: anywhere; }
.r-qpin__q .r-num { font-family: var(--font-ui); font-weight: 900; }
.r-qpin__x { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 800 var(--fs-meta)/1.5 var(--font-ui); color: var(--ink-meta); }
.r-qpin__x img, .r-qpin__x .crest { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.r-qpin__chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); white-space: nowrap; }
.r-qpin__chip.ok { background: var(--lime); }
.r-qpin__sep { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .r-qpin, .r-qpin.is-on { translate: 0 0; transition: opacity var(--t-reduced); } }
/* under a sheet (search, help) the pin steps aside: the sheet carries the question itself */
html.sheet-open .r-qpin, html.ss-open .r-qpin { opacity: 0; pointer-events: none; }

/* ---- THE player name (kit.js HareefRetro.dual; SYS-PARTS / SYS-TYPE): Arabic line at its block's size, the English
   line ALWAYS meta 14 (never a computed .72em), ink-meta, never red. The English line is never cut and never broken
   mid-word: it wraps only at a space or a hyphen (overflow-wrap: normal; the old "anywhere" split surnames).
   .r-dn.is-sm   = the ONE compact pair for tiles too narrow for 18/14: 15 / 12 (game fit steps add it; never smaller)
   .r-dn.is-inline (or .r-dn__en.is-inline) = one row: "عربي (English)", the English part never wraps. ---- */
.r-dn { display: inline-flex; flex-direction: column; align-items: inherit; max-width: 100%; vertical-align: middle; line-height: 1.5; }
.r-dn__ar { min-width: 0; }
.r-dn__en { display: block; max-width: 100%; font-family: var(--font-ui, sans-serif); font-weight: var(--fw-meta); font-size: var(--fs-meta); line-height: 1.5; letter-spacing: 0; color: var(--ink-meta);
  unicode-bidi: isolate; overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-text-stroke: 0; text-shadow: none; }
:is(.r-bad, .is-wrong, .bad) .r-dn__en { color: var(--ink-meta); }
.r-dn.is-sm .r-dn__ar { font-size: var(--fs-name-sm); line-height: 1.25; }
.r-dn.is-sm .r-dn__en { font-size: var(--fs-name-sm-en); }
.r-dn.is-inline { display: inline; }
.r-dn__en.is-inline, .r-dn.is-inline .r-dn__en { display: inline; white-space: nowrap; margin-inline-start: var(--s1); }

/* skeleton while a game page is still filling its card (UI sweep D6): an empty issue title is a paper bar of the same
   height and an empty mode tag keeps its box, so the page shows paper (never bare navy) and nothing jumps when filled */
.r-issue__title:empty::before { content: ""; display: inline-block; width: 5.2em; height: .8em; vertical-align: middle; background: var(--paper-2); }
.r-modetag:empty { min-width: 3.6em; min-height: 1.5em; }
/* P3: an empty date / meta line and mode tag hold one line in their own font (a no-break space), so the issue strip has its
   final height before game.js fills it (the strip grew 6-10 px and the card under it moved: quiz en CLS 0.10) */
.r-issue__meta:empty::before, .r-modetag:empty::before { content: "\00a0"; }



/* =====================================================================================================================
   SYSTEM COMPONENTS v2 (visual sweep 2026-11-17). Tokens: the SYSTEM TOKENS block at the top. Usage: .sweep/visual/TOKENS.md
   ===================================================================================================================== */
/* ---- THE action dock (SYS-POS): every commit action of an answer screen (Next, Confirm, Check, Guess, Start) sits in the
   same box on phones: fixed, 16 px from both sides, 12 px + safe area above the bottom, 52 px tall.
   Markup: a transparent WRAPPER <div class="r-dock"><button class="r-btn">...</button></div>; the wrapper is the fixed
   box, the button fills it (the wrapper paints nothing and lets taps through around the button). A wrapper whose
   button is .hidden takes no room. .r-dock.is-flow = the same box but sticky, for a button that must follow its answer
   in the flow (it never covers the answer it explains). The page keeps --dock-room free at the bottom. ---- */
.r-dock:has(> .hidden) { display: none; }
.r-dock > .r-btn, .r-dock > button { width: 100%; }
@media (max-width: 1023px) {
  .r-dock { position: fixed; z-index: 30; inset-inline: var(--margin); inset-block-end: var(--dock-b); top: auto; width: auto; height: var(--dock-h); margin: 0;
            pointer-events: none; }
  .r-dock > * { pointer-events: auto; height: 100%; min-height: 0; margin: 0; }
  .r-dock.is-flow { position: sticky; margin: var(--s3) 0 0; }
  .r-poster { padding-bottom: var(--dock-room); }
}
html.sheet-open .r-dock { visibility: hidden; }

/* ---- the 4-column grid (SYS-GRID): 4 x 76 px columns, 8 px gutters at 360. Tiles, option pairs and button rows share
   the same columns. .span-2 = half row, .span-4 = full row. ---- */
.r-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.r-cols > .span-2 { grid-column: span 2; }
.r-cols > .span-4 { grid-column: 1 / -1; }

/* ---- THE progress row (SYS-PARTS): one 20 px square per round, 4 px apart; state by SHAPE and colour:
   todo = paper-lo, dashed meta rim | .cur = paper-hi, 2 px ink rim | .ok = lime + tick | .bad = wrong-red + cross |
   .close = paper-hi, dashed wrong rim. Markup: <div class="r-pips"><i class="ok"></i><i class="cur"></i><i></i></div>.
   Round games' .rd-pips (rounds.css) and quiz .q-dots use the same squares. ---- */
.r-pips { display: flex; flex-wrap: wrap; gap: var(--s1); }
/* round 2 (owner 2026-11-18, U7 / Q5): the OLD yellow progress boxes in every game with rounds: --pip (22 px) squares with
   a 2 px ink rim; the CURRENT one is yellow (--c-note), tilted -8 deg, with a 2 px ink shadow; done = lime + tick, wrong =
   wrong-red + cross, close = hollow dashed wrong rim (v2 colour roles). One rule for the kit row, the round games' .rd-pips,
   Meen El Ghareeb's .oo-pips and the quiz's .q-dots (their own files only lay the row out). */
:is(.r-pips, .rd-pips, .oo-pips) > i, .q-dots > .dot { display: block; box-sizing: border-box; width: var(--pip); height: auto; aspect-ratio: 1; flex: 0 1 var(--pip); min-width: 14px; max-width: var(--pip);
  background: var(--c-paper-hi); border: 2px solid var(--c-ink); box-shadow: none; transform: none; font-size: 0; }
:is(.r-pips, .rd-pips, .oo-pips) > i.cur, .q-dots > .dot.cur { background: var(--c-note); border: 2px solid var(--c-ink); box-shadow: 2px 2px 0 var(--c-ink); transform: rotate(-8deg); }
:is(.r-pips, .rd-pips, .oo-pips) > i.ok, .q-dots > .dot.ok { border: 2px solid var(--c-ink); background: var(--c-right) var(--tick) center / 15px no-repeat; }
:is(.r-pips, .rd-pips, .oo-pips) > i.bad, .q-dots > .dot.bad { border: 2px solid var(--c-wrong); background: var(--c-wrong) var(--cross) center / 13px no-repeat; }
:is(.r-pips, .rd-pips, .oo-pips) > i.close, .q-dots > .dot.close { background: var(--c-paper-hi); border: 2px dashed var(--c-wrong); }
:is(.r-pips, .rd-pips, .oo-pips) { min-width: 0; }   /* the row may give its boxes less than --pip (never under 14) */
@media (prefers-reduced-motion: reduce) { :is(.r-pips, .rd-pips, .oo-pips) > i.cur, .q-dots > .dot.cur { transition: none; } }

/* =====================================================================================================================
   ROUND 4: THE CALM LOOK (owner 2026-11-19, .sweep/visual/ROUND4.md + its OWNER CORRECTION; guide for game builders:
   .sweep/visual/R4/KIT_GUIDE.md). The approved home grid, for every page: a calm flat blue, content straight on it
   (no box, card, panel, band or border behind labels, crests, names, facts, rows); light type; a container only where it
   is functional (a tappable answer slot / option, an input, a sheet, a button, a revealed answer card). Colour and life
   come from the content (crests, flags, kits, group colours on icons), the ONE yellow sticker, Lalezar moments, the blue
   issue stamp and the green / red marks. No tickets, no perforations, no new texture.
   Part 1 (global): the kit chrome every game shares (top bar buttons, primary button, sheets, search input).
   Part 2 (opt-in): a page that puts class="r-calm" on its <body> gets the de-boxed card and the calm kit parts.
   ===================================================================================================================== */
/* ---- part 1: top bar buttons = soft rounded squares on the blue (as on home) ---- */
:where(body:not(.vs)) .r-round, :where(body:not(.vs)) .r-round.pill { border: 0; border-radius: 12px; background: var(--c-soft); color: var(--c-on); }
:where(body:not(.vs)) .r-round:active { transform: scale(.96); background: var(--c-soft-hi); }
:where(body:not(.vs)) .r-round.is-pressed { background: var(--c-soft-hi); }   /* no scale here: is-pressed can outlive the tap (the tap-size tests measure it) */
@media (hover: hover) { :where(body:not(.vs)) .r-round:hover { background: var(--c-soft-hi); } }
/* the primary action: navy-deep, rounded, no punched notches, a soft drop (one per screen) */
:where(body:not(.vs)) .r-btn { border: 0; border-radius: var(--rad); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
:where(body:not(.vs)) .r-btn::before, :where(body:not(.vs)) .r-btn::after { content: none; }
:where(body:not(.vs)) .r-btn:active, :where(body:not(.vs)) .r-btn.is-pressed { translate: 0 1px; box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
:where(body:not(.vs)) .r-btn.paper, :where(body:not(.vs)) .r-btn.blue, :where(body:not(.vs)) .r-btn.yellow { border: 0; box-shadow: 0 2px 0 rgba(0, 0, 0, .22); }
:where(body:not(.vs)) .r-btn:disabled { border: 1.5px dashed var(--c-meta); box-shadow: none; }
/* sheets: cream, rounded top, a grab handle (no torn edge) */
:where(body:not(.vs)) .r-sheet { clip-path: none; border-radius: 20px 20px 0 0; padding-top: 28px; color: var(--c-ink); }
:where(body:not(.vs)) .r-sheet::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(26, 26, 26, .25); }
@media (min-width: 700px) { :where(body:not(.vs)) .r-sheet { border-radius: 20px; filter: none; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); } }
:where(body:not(.vs)) .r-sheet-back { background: rgba(13, 18, 56, .55); }
/* the search input: a rounded field */
:where(body:not(.vs)) .r-search { border-radius: 12px; box-shadow: none; }

/* ---- part 2: body.r-calm ---- */
/* the card is gone: the page column sits straight on the blue */
.r-calm .r-poster { color: var(--c-on); }
.r-calm .r-cover { background: none; border-radius: 0; padding: 0; box-shadow: none; outline: 0; color: var(--c-on); }
.r-calm .r-cover::before, .r-calm .r-cover::after { content: none; }
.r-calm .r-cover__rule { border: 0; padding: 0 0 var(--s4); }
@media (max-width: 1023px) { .r-calm .r-poster { padding-inline: max(var(--margin), var(--ir)) max(var(--margin), var(--il)); } }
/* the dateline (as on home): [<]  العدد ١٠٥ (stamp) / the date  [>]: Lalezar title.
   round 6 (owner 2026-11-20, ROUND6.md K2): the whole dateline sits in ONE egg-white strip like the cards: paper-clip,
   ink type, rounded, 2 px ink rim + the small hard drop; the arrows are paper-lo squares inside it */
.r-calm .r-issue { border: 2px solid var(--ink); border-radius: 14px; background: var(--paper-clip); color: var(--c-ink); box-shadow: 0 3px 0 var(--ink);
                   min-height: var(--tap); margin: 0 0 var(--s3); padding: var(--s1); gap: var(--s2); }
.r-calm .r-issue .r-issue__title { font: 400 var(--fs-title)/1.4 var(--font-display); padding-top: 4px; color: var(--c-ink); }
.r-calm .r-issue :is(.r-issue__meta, .r-sep) { color: var(--c-meta); }
.r-calm .r-issue .r-issue__title:empty::before { background: var(--c-paper-lo); }
.r-calm .r-inav { border-radius: 10px; background: var(--c-paper-lo); color: var(--c-ink); }
.r-calm .r-inav:disabled { opacity: .35; }
@media (hover: hover) { .r-calm .r-inav:not(:disabled):hover { color: var(--c-ink); background: #fff; } }
.r-calm .r-modetag { box-shadow: none; }
/* round 6 (K3): no difficulty word ("سهلة / متوسطة / صعبة", "Easy / Medium / Hard") and no separator before it in the
   dateline; game.js still writes it (tests and data unchanged), it is just not shown */
.r-issue :is(#roundDiff, .diff), .r-issue .r-sep:has(+ :is(#roundDiff, .diff)) { display: none !important; }
/* type on the blue */
.r-calm .r-poster :is(.r-kicker, .r-sep) { color: var(--c-on-soft); }
.r-calm .r-poster :is(.r-h2, .r-verdict, .r-num) { color: var(--c-on); }
.r-calm .r-poster .r-dn__en { color: var(--c-on-soft); }
/* round 5 (owner 2026-11-19 late, ROUND5.md 50/50): the category panel is live's tile again: its family colour fill and
   halftone, the 2 px ink rim, the name in the ink band (cream type); rounded, a small hard drop (0 3px 0 ink) */
.r-calm .r-panel { border-radius: 12px; box-shadow: 0 3px 0 var(--ink); color: var(--paper-clip); }
.r-calm .r-panel[data-family="honours"], .r-calm .r-panel[data-family="where"], .r-calm .r-panel[data-family="numbers"] { color: var(--c-ink); }
.r-calm .r-band { background: var(--ink); color: var(--paper-clip); }
.r-calm .r-poster .r-panel .r-dn__en { color: inherit; opacity: .85; }
.r-calm .r-tag { border-radius: 6px; }
/* THE empty answer slot: dashed outline + the navy "+" disc (no count). Markup: <button class="r-slot"><i class="r-plus"></i></button> */
.r-slot { position: relative; display: grid; place-items: center; min-height: 56px; padding: var(--s2); border: 1.5px dashed var(--c-line); border-radius: var(--rad);
          background: rgba(251, 247, 236, .04); color: var(--c-on); font: var(--fw-body) var(--fs-body)/1.5 var(--font-ui); }
button.r-slot:not(:disabled):active, .r-slot.is-pressed { background: var(--c-soft-hi); }
@media (hover: hover) { button.r-slot:not(:disabled):hover { background: var(--c-soft); } }
/* round 6 (owner 2026-11-21, K11): the "+" alone, no navy disc (as home's grid): light, a size up so it still reads */
.r-plus { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: none; color: var(--c-on); font-style: normal; }
.r-plus::before { content: "+"; font: 400 var(--fs-display)/1 var(--font-display); padding-top: .16em; }
/* THE answer card (round 5, ROUND5.md 50/50; was the soft panel): a tappable option / answer item on the blue is a cream
   paper card: ink text, rounded, a crisp 2 px ink rim and a small hard drop. .r-soft = the card; add .is-tap on a control */
.r-soft { border: 2px solid var(--ink); border-radius: 12px; background: var(--paper-clip); color: var(--c-ink); box-shadow: 0 3px 0 var(--ink); }
.r-soft.is-tap:not(:disabled):is(:active, .is-pressed) { translate: 0 2px; box-shadow: 0 1px 0 var(--ink); background: #fff; }
@media (hover: hover) { .r-soft.is-tap:not(:disabled):hover { background: #fff; } }
.r-calm .r-poster .r-soft .r-dn__en { color: var(--c-meta); }
/* the outline control (secondary, like home's "How to play"): light rim, no fill */
.r-ghost { border: 1.5px solid rgba(251, 247, 236, .5); border-radius: var(--rad); background: none; color: var(--c-on); box-shadow: none; }
.r-ghost:active, .r-ghost.is-pressed { translate: 0 1px; background: var(--c-soft); }
/* the kit card / result / share box on the blue */
.r-calm .r-poster .r-card { background: var(--c-soft); border: 0; border-radius: var(--rad); box-shadow: none; color: var(--c-on); }
.r-calm .r-poster .r-result { background: none; border: 0; box-shadow: none; padding: var(--s2) 0; color: var(--c-on); }
.r-calm .r-poster .r-share { background: var(--c-soft); border: 1.5px dashed var(--c-line); border-radius: 12px; color: var(--c-on); }
.r-calm .r-poster .r-btn.paper, .r-calm .r-poster .r-btn.blue, .r-calm .r-poster .r-btn.yellow { background: none; color: var(--c-on); border: 1.5px solid rgba(251, 247, 236, .5); box-shadow: none; }
.r-calm .r-poster .r-btn:disabled { background: none; color: var(--c-on-soft); border: 1.5px dashed var(--c-line); }
/* RIGHT on the blue (round 5): the cream clipping with its lime frame, ink type, rounded, the small hard drop */
.r-calm .r-poster .r-clip { border-radius: 12px; box-shadow: 0 3px 0 var(--ink); color: var(--c-ink); }
.r-calm .r-poster .r-clip .r-dn__en { color: var(--c-meta); }
/* WRONG (round 5 = live's wrong card, rounded): paper-lo, the 2 px red rim, a small hard drop, ink type, the name struck
   in red. The .is-wrong / .bad / .wrong marks of the games are cream / paper-lo cards now too: their names are ink (the
   strike red), English ink-meta; a game whose wrong mark sits on the blue sets its own light type */
.r-calm .r-poster .r-bad { background-color: var(--c-paper-lo); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); color: var(--c-ink); }
.r-calm .r-poster .r-bad :is(.r-name, s) { color: var(--c-wrong); text-decoration-color: var(--c-wrong); }
.r-calm .r-poster :is(.is-wrong, .bad, .wrong) .r-dn__ar { color: var(--c-ink); text-decoration-color: var(--c-wrong); }
.r-calm .r-poster :is(.is-wrong, .bad, .wrong) .r-dn__en { color: var(--ink-meta); }
.r-calm .r-poster .r-bad .r-dn__ar, .r-calm .r-poster .r-bad :is(.is-wrong, .bad, .wrong) .r-dn__ar { color: var(--c-wrong); text-decoration-color: var(--c-wrong); }
.r-calm .r-poster .r-bad .r-dn__en, .r-calm .r-poster .r-bad :is(.is-wrong, .bad) .r-dn__en { color: var(--ink-meta); }
/* NEAR (round 5): the cream card with the dashed red rim, ink type, rounded */
.r-calm .r-poster .r-near { background: var(--c-paper-hi); border: 2px dashed var(--c-wrong); border-radius: 12px; color: var(--c-ink); }
/* the progress row on the blue: todo = a dashed light square, the current one the yellow tilted box (no ink rim) */
.r-calm :is(.r-pips, .rd-pips, .oo-pips) > i, .r-calm .q-dots > .dot { background: none; border: 1.5px dashed var(--c-line); border-radius: 5px; }
.r-calm :is(.r-pips, .rd-pips, .oo-pips) > i.cur, .r-calm .q-dots > .dot.cur { background: var(--c-note); border: 0; box-shadow: none; }
.r-calm :is(.r-pips, .rd-pips, .oo-pips) > i.ok, .r-calm .q-dots > .dot.ok { border: 0; background: var(--c-right) var(--tick) center / 15px no-repeat; }
.r-calm :is(.r-pips, .rd-pips, .oo-pips) > i.bad, .r-calm .q-dots > .dot.bad { border: 0; background: var(--c-wrong) var(--cross) center / 13px no-repeat; }
.r-calm :is(.r-pips, .rd-pips, .oo-pips) > i.close, .r-calm .q-dots > .dot.close { background: none; border: 2px dashed var(--red); }
/* suggestions under an inline search on the blue */
.r-calm .r-poster .r-sugg { border-top: 1px solid var(--c-line); }
.r-calm .r-poster .r-sugg li { border-bottom: 1px solid var(--c-line); color: var(--c-on); }
.r-calm .r-poster .r-sugg li:active, .r-calm .r-poster .r-sugg li[aria-selected="true"], .r-calm .r-poster .r-sugg li.is-pressed { background: var(--c-soft-hi); }
.r-calm .r-poster .r-sugg small { color: var(--c-on-soft); }
/* the pinned question: the page blue, light type */
.r-calm .r-qpin { background: var(--c-page); color: var(--c-on); border-bottom: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.r-calm .r-qpin__k, .r-calm .r-qpin__x { color: var(--c-on-soft); }
.r-calm .r-qpin__chip { border: 0; border-radius: 999px; background: var(--c-soft-hi); color: var(--c-on); }
.r-calm .r-qpin__chip.ok { background: var(--lime); color: var(--c-ink); }
/* the timer bar */
.r-calm .tm-bar { border: 0; border-radius: 7px; background: var(--c-soft-hi); }
.r-calm .tm-tag { border-radius: 6px; }
/* help sheets keep ink on cream */
.r-calm .r-sheet .r-dn__en { color: var(--c-meta); }
.r-calm .r-qpin__sep, .r-calm .r-qpin__q .r-num { color: var(--c-on-soft); }
.r-calm .r-qpin__q .r-num { color: var(--c-on); }
.r-calm .r-poster .r-card .r-dn__en { color: var(--c-on-soft); }
.r-calm .r-poster .r-near .r-dn__en { color: var(--c-meta); }
