/* The Memocratie, player side: client/memocratie.ts. Mockup: docs/design-handoff/memocratie/maquette.html. */

/* The green of a counted choice and the red of « Signaler » / the bin, each readable on both themes. */
.memo {
  --mq-ok: #3ddc8a;
  --mq-ok-ink: #3ddc8a;
  --mq-ok-bg: rgba(29, 179, 107, 0.22);
  --mq-bad: #ff8a80;
  --mq-bad-bg: rgba(229, 72, 77, 0.16);
  max-width: 460px;
  margin-inline: auto;
}
:root[data-theme="light"] .memo {
  --mq-ok: #17a563;
  --mq-ok-ink: #0b7d4a;
  --mq-ok-bg: #d5f2e2;
  --mq-bad: #c92a2d;
  --mq-bad-bg: #fde3e3;
}
.memo .mq-head {
  flex-wrap: nowrap;
  margin-bottom: 8px;
}
.memo .mq-head h1 {
  margin: 0;
}
/* The screen's old name beside its title (Théo, 30/10/2026: « Proposer un meme (Memocratie) »). */
/* A narrow screen puts it on its own short line under the title, never splitting the title. */
.memo .mq-head h1:has(> .mq-alias),
.memo .mq-head h1 .mq-words:has(> .mq-alias) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.3em;
}
.memo .mq-head h1 .mq-t {
  white-space: nowrap;
}
.memo .mq-alias {
  color: var(--muted);
  font-size: 0.5em;
  white-space: nowrap;
}
/* What the week's votes pay, one block under the title: the player's promise beside what every voter was paid.
   The gold of the balance chip (app.css .coins), so the block reads as MemeCoins. */
.mq-gains {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  margin: 0 0 10px;
  padding: 10px 0 10px 14px;
  border-radius: 16px;
  background: rgba(255, 216, 74, 0.1);
  border: 1.5px solid rgba(255, 216, 74, 0.45);
}
:root[data-theme="light"] .mq-gains {
  background: #fff7e0;
  border-color: #f0d9a0;
}
.mq-gains > .memecoin {
  width: 40px;
  height: 40px;
  margin-right: 14px;
}
.mq-gains > :is(div, a) {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 0 16px;
  border-left: 1.5px solid rgba(255, 216, 74, 0.35);
}
:root[data-theme="light"] .mq-gains > :is(div, a) {
  border-left-color: #f0d9a0;
}
.mq-gains small {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.mq-gains b {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.mq-gains b .coin-mark {
  font-size: 18px;
}
.mq-gains em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
@media (max-width: 599px) {
  .mq-gains {
    padding: 8px 0 8px 10px;
  }
  .mq-gains > .memecoin {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }
  .mq-gains > :is(div, a) {
    padding: 0 10px;
  }
  .mq-gains small {
    font-size: 9.5px;
  }
  .mq-gains b {
    font-size: 19px;
  }
  .mq-gains b .coin-mark {
    font-size: 16px;
  }
  .mq-gains em {
    font-size: 10.5px;
  }
}
/* « Tous les votants » opens the contributors' ranking (client/memocratie-top.ts): the whole half is the link, its
   chevron on the right edge says so, and the touch darkens it (charte.md, « Pas de relief »). */
.mq-gains > a.mq-all {
  position: relative;
  align-self: stretch;
  align-content: center;
  margin: -10px 0;
  padding-right: 34px;
  border-radius: 0 14px 14px 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mq-all-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: rgba(255, 216, 74, 0.22);
  color: var(--gold);
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
:root[data-theme="light"] .mq-all-arrow {
  background: #f6e3b0;
  color: #8a5a12;
}
@media (hover: hover) {
  .mq-gains > a.mq-all:hover {
    background: rgba(255, 216, 74, 0.1);
  }
}
.mq-gains > a.mq-all:active {
  background: rgba(255, 216, 74, 0.18);
}
/* The total since the start runs to seven figures: on a small phone it steps down to its half's width rather than
   slide under the chevron. */
.mq-gains > a.mq-all {
  container-type: inline-size;
}
.mq-gains > a.mq-all b {
  font-size: min(22px, calc(100cqi / 6.6));
}
.mq-gains > a.mq-all b .coin-mark {
  font-size: 0.82em;
}
@media (max-width: 599px) {
  .mq-gains > a.mq-all {
    margin: -8px 0;
    padding-right: 30px;
  }
  .mq-gains > a.mq-all b {
    font-size: min(19px, calc(100cqi / 6.6));
  }
  .mq-all-arrow {
    right: 7px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    font-size: 15px;
  }
}
.memo .seg {
  margin: 0 0 10px;
}
.memo .seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding-inline: 4px;
}
.memo-pane {
  display: grid;
  gap: 10px;
}
.mq-empty,
.mq-blocked {
  text-align: center;
  padding: 24px 8px;
}
.mq-note {
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- the card to vote on ---------- */

.mq-card {
  display: grid;
  /* One column no wider than the tile: a word longer than the line would otherwise widen the whole card. */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  text-align: left;
}
/* The frame the card stands in, on a blurred copy of its picture. Without the game's renderer the meme is a plain
   photo there, contained (.mq-pic). */
.mq-photo {
  position: relative;
  width: 100%;
  height: clamp(150px, 30vh, 250px);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.mq-photo.mq-photo-sm {
  height: 96px;
}
.mq-noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  border: 2px dashed var(--line);
  border-radius: inherit;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}
.mq-photo-sm .mq-noimg {
  gap: 2px;
  padding: 8px;
  font-size: 13px;
}
.mq-photo .mq-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(0.55);
  transform: scale(1.2);
}
.mq-photo .mq-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mq-rar {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.mq-rar.r-common {
  background: var(--common);
}
.mq-rar.r-rare {
  background: var(--rare);
}
.mq-rar.r-epic {
  background: var(--epic);
}
/* Orange always carries dark ink in the game: the Legendary pill follows the style guide. */
.mq-rar.r-legendary {
  background: var(--legendary);
  color: #2a1700;
}
.mq-rar.r-mythic {
  background: var(--mythic);
  color: #04211b;
}
.mq-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  color: var(--mq-bad);
  cursor: pointer;
}
.mq-txt {
  display: grid;
  gap: 4px;
  text-align: center;
}
.mq-title {
  margin: 0;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
  text-wrap: balance;
}
.mq-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: balance;
  white-space: pre-line;
}
.mq-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
/* The links the author gave, after the votes on their line (ticket d07077): the text's ink, underlined, a tap
   wide enough for a thumb without growing the line. */
.mq-meta {
  align-items: center;
  gap: 0 8px;
}
.mq-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: -8px 0;
  padding: 8px 2px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mq-dot {
  font-style: normal;
}
.mq-ref > svg {
  flex: none;
}
.mq-refs-card {
  display: grid;
  gap: 8px;
}
.mq-refs-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.mq-ref-row {
  display: grid;
  text-align: left;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--text);
  text-decoration: none;
}
.mq-ref-row > svg {
  grid-row: span 2;
}
.mq-ref-row > b {
  font-weight: 800;
}
.mq-ref-row > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The vote card's text has a slot of its own, the same for every meme (owner, 10/10/2026): the lines of a
   description (--mq-lines of 21px), then the votes on one line (4px under them, 2px of margin, 21.6px). A short
   description stands in the middle of it, a long one is cut on its last line and opens on a tap (client/memocratie.ts
   fitStage), a meme without one leaves the slot empty: the gain and the four voices never move. */
.mq-card:has(> .mq-go [data-up]) > .mq-txt {
  --mq-lines: 2;
  grid-template-columns: minmax(0, 1fr);
  height: calc(var(--mq-lines) * 21px + 28px);
  align-content: center;
  overflow: hidden;
}
.mq-card:has(> .mq-go [data-up]) > .mq-txt > .mq-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--mq-lines);
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mq-card:has(> .mq-go [data-up]) > .mq-txt:has(> .mq-desc[data-open]) {
  height: auto;
}
.mq-card:has(> .mq-go [data-up]) > .mq-txt > .mq-desc[data-open] {
  display: block;
}
/* The meme is voted on for itself: no author on the card (player's idea, 14/10/2026), the votes alone. */
.mq-card:has(> .mq-go [data-up]) > .mq-txt > .mq-meta {
  display: flex;
  justify-content: center;
  white-space: nowrap;
}
@media (min-width: 600px) {
  .mq-card:has(> .mq-go [data-up]) > .mq-txt {
    --mq-lines: 3;
  }
}
/* The gain first, said once: a vote earns the same whatever it says. Then the four choices one under the other,
   all the same size. */
.mq-go {
  display: grid;
  gap: 8px;
}
.mq-go .mq-win {
  margin: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
/* Small enough for the French line to hold on one line down to a 320 px screen. */
.mq-go .mq-note {
  margin-bottom: 6px;
  font-size: clamp(11px, 3.3vw, 13.5px);
  text-wrap: balance;
}
.mq-go .btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px;
  text-align: left;
}
.mq-go .btn svg {
  flex: none;
}
.mq-go .btn > span {
  flex: 1 1 auto;
  min-width: 0;
}
.memo-send .coin-mark {
  font-size: 22px;
}
/* A small phone: the longest choice holds one line at 320 px, and the four of them take less of a short screen. */
@media (max-width: 380px) {
  .mq-go .btn {
    font-size: clamp(14px, 4.4vw, 16px);
  }
}
@media (max-height: 700px) and (max-width: 999px) {
  .mq-go {
    gap: 6px;
  }
  .mq-go .mq-win {
    font-size: 28px;
  }
  .mq-go .mq-note {
    margin-bottom: 2px;
  }
  .mq-go .btn {
    min-height: 44px;
    padding-block: 6px;
  }
}

/* ---------- the questions ---------- */

.mq-qtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mq-qn {
  color: var(--muted);
  font-size: 14px;
}
.mq-stamp {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid var(--mq-ok);
  border-radius: 10px;
  color: var(--mq-ok-ink);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}
.mq-stamp.paf {
  animation: mq-stamp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
@keyframes mq-stamp {
  0% {
    transform: scale(2.6) rotate(-14deg);
    opacity: 0;
  }
  55% {
    transform: scale(0.9) rotate(-4deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-4deg);
  }
}
.mq-q {
  margin: 0;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.mq-list {
  display: grid;
  gap: 8px;
}
.mq-ans {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.mq-ans > * {
  position: relative;
}
.mq-ans > .mq-val {
  flex: 1;
  min-width: 0;
  /* A long answer says its beginning: three lines, then « … ». The whole of it is the element's title. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/* « + Proposer le mien » and what it earns stay together in the middle of their row, however tall the row is. */
.mq-ans.add > .mq-val {
  flex: none;
}
/* A row the search left out. `hidden` alone would not hide a flex row. */
.mq-ans[hidden] {
  display: none;
}
/* A pack's row: its sachet, its name on one line, and under it « Choix de l'auteur » on the author's own. */
.mq-ans > .mq-pkv {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.mq-ans > .mq-pkv > b {
  overflow: hidden;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mq-ans > .mq-pkv > small {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--muted);
}
.mq-ans.me {
  border-color: var(--mq-ok);
  box-shadow: inset 0 0 0 1px var(--mq-ok);
}
.mq-ans.add {
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  text-align: center;
}
.mq-ans.add:not(.mq-ansimg) {
  flex-direction: column;
  gap: 2px;
}
/* « Retenu : la carte en #001 et +100 » under « + Proposer le mien »: what a kept answer earns. */
.mq-kept {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
  text-align: center;
}
.mq-box > .mq-kept {
  margin-bottom: 6px;
}
.mq-fill {
  position: absolute !important;
  inset: 0 auto 0 0;
  background: var(--surface-2);
  animation: mq-grow 0.55s ease both;
}
.mq-ans.me .mq-fill {
  background: var(--mq-ok-bg);
}
@keyframes mq-grow {
  from {
    width: 0;
  }
}
/* A scrollable row keeps the vote controls in place when the admin enables more reasons. */
.mq-whys {
  display: grid;
  gap: 6px;
  margin: -2px 0 2px;
  padding: 8px 10px 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.mq-whyq {
  margin: 0;
  font-size: clamp(12px, 3.2vw, 13px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}
.mq-why-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
/* Equal while they fit. A narrow column (a computer's, beside the card) narrows the shorter ones first, down to
   their longest word, rather than cut the last one (« Autre », Théo, 27/10/2026); past that, with more reasons on
   from the admin, the row scrolls. */
.mq-why-row > .mq-why {
  flex: 1 1 0;
  min-width: min-content;
  scroll-snap-align: start;
}
.mq-why {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 6px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mq-why:active {
  translate: 0 1px;
}
@media (hover: hover) {
  .mq-why:hover {
    border-color: var(--muted);
    background: var(--surface);
  }
}
.mq-why-art {
  display: grid;
  place-items: center;
  height: 24px;
  color: var(--heading);
}
.mq-why b {
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--heading);
  text-wrap: balance;
  overflow-wrap: normal;
}
.mq-why small {
  display: none;
  max-width: 80px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--muted);
  text-wrap: balance;
}
@media (min-width: 560px) {
  .mq-why small {
    display: block;
  }
}
/* A row too narrow for its hints (a computer's column beside the card) keeps only the names, as a phone does: the
   hints wrapped word by word in the narrowed tiles. */
.mq-whys {
  container-type: inline-size;
}
@container (max-width: 340px) {
  .mq-why small {
    display: none;
  }
}
.mq-why[disabled] {
  background: var(--surface-2);
  color: var(--text);
  cursor: default;
}
.mq-why[disabled] :is(b, small, .mq-why-art, .mq-gain) {
  color: inherit;
}
/* The gain on each choice, said on the choice itself (Andrei, 24/10/2026): every way to answer visibly pays the same.
   Once the others' answers fill the buttons, the share takes that room instead (.mq-pct). */
.mq-gain {
  flex: none;
  margin-left: auto;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.mq-gain-sm {
  margin: 0;
  font-size: 12px;
}
.mq-go.is-result > .btn .mq-gain {
  display: none;
}
.mq-go.is-result .mq-why .mq-gain {
  visibility: hidden;
}
.mq-pct {
  flex: none;
  font-size: 14px;
  white-space: nowrap;
}
.mq-rdot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.mq-rdot.r-common {
  background: var(--common);
}
.mq-rdot.r-rare {
  background: var(--rare);
}
.mq-rdot.r-epic {
  background: var(--epic);
}
.mq-rdot.r-legendary {
  background: var(--legendary);
}
.mq-rdot.r-mythic {
  background: var(--mythic);
}
.mq-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mq-ok);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  animation: mq-tick 0.45s ease both;
}
@keyframes mq-tick {
  0% {
    transform: scale(0) rotate(-40deg);
  }
  70% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
/* The image question: two tiles a row, the picture on top, its share and the check under it once answered. */
.mq-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mq-ansimg {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
}
/* Each image in the card's own window (1.3277:1, .k2-art in cards/face.css), framed as the card frames it: what
   the tile shows is what the card beside it will. */
.mq-ansimg > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.3277;
  border-radius: 11px;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--surface-2);
}
/* The result is laid over the foot of the picture, not under it: answering changes no tile's size. */
.mq-imgres {
  position: absolute !important;
  right: 6px;
  bottom: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 0 0 11px 11px;
  background: rgba(10, 12, 18, 0.74);
  color: #fff;
}
.mq-ansimg.add {
  justify-content: center;
}
.mq-ansimg.add {
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}
.mq-plus {
  display: grid;
  place-items: center;
  min-height: 80px;
}
.mq-counted {
  margin: 0;
  padding: 6px 0;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--mq-ok-ink);
}
.mq-links {
  margin: 0;
  display: grid;
  justify-items: center;
}
/* « ‹ Précédente » · what the line says · « Suivante › »: the two arrows hold their sides and the middle takes the
   room between them, never under one of them on a narrow phone. */
.mq-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
/* The two sides share the room left equally, never less than their words: the middle stays centred whether one
   arrow, both or none is there. */
.mq-foot > :is(:first-child, :last-child) {
  flex: 1 1 0;
  display: flex;
}
.mq-foot > :first-child {
  justify-content: flex-start;
}
.mq-foot > :last-child {
  justify-content: flex-end;
}
.mq-foot > :nth-child(2) {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
/* A phone keeps the two chevrons, a thumb wide each, and gives their words to the middle: « Choix compté ✓ »
   and « Une autre idée ? » stay on one line between them. */
@media (max-width: 419px) {
  .mq-foot :is(.mq-prev, .mq-next) {
    min-width: 44px;
  }
  .mq-foot :is(.mq-prev, .mq-next) > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.mq-foot .mq-counted {
  padding: 0;
}
/* « Valider » holds its place until a pack is touched, and « Suivante › » gives way to it: nothing moves on the tap. */
.mq-foot .mq-ok {
  min-height: 44px;
  padding-inline: 18px;
}
.mq-foot:not(.is-pend) .mq-ok,
.mq-foot.is-pend .mq-next {
  opacity: 0;
  visibility: hidden;
}
.mq-foot :is(.mq-prev, .mq-next) {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
}
.mq-foot :is(.mq-prev, .mq-next) svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.mq-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mq-box input,
.mq-box textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  font-size: max(16px, 1em);
  font-weight: 700;
  resize: none;
}
.mq-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mq-two .btn {
  width: 100%;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .mq-stamp,
  .mq-fill,
  .mq-check {
    animation: none;
  }
}

/* ---------- proposing one's meme ---------- */

.memo-form {
  gap: 10px;
  margin: 0;
}
/* Two lines of description at rest, not the form's default height: « Envoyer » stays above the fold at 390 x 700.
   The field then grows with the text (client/memocratie.ts fitText). */
.memo-form textarea {
  height: 64px;
  min-height: 0;
}
/* The packs the meme may join (client/memocratie.ts packChips): each its sachet and its name, the one picked ringed.
   One line that slides and says so, as every row of choices in the game (.rail-wrap, public/app/app.css): the free
   packs then the Permanent Editions, however many there are. Past ten, a search sits before the row. As tall as the
   switch it replaces, so « Envoyer » keeps its place above the fold at 390 x 700. */
.memo-packs {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.memo-packs > .rail-wrap[hidden],
.memo-pk-none[hidden] {
  display: none;
}
.memo .memo-pack {
  gap: 6px;
  padding-block: 2px;
}
.memo .memo-pack > button {
  min-height: 36px;
  padding: 2px 12px 2px 3px;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.memo .memo-pack > button[hidden] {
  display: none;
}
.memo .memo-pack > button[aria-checked='true'] {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--active-bg);
}
.memo .memo-pack > button:focus-visible {
  outline: 2px solid var(--active-bg);
  outline-offset: 2px;
}
/* The sachet at its own proportions (40 x 56), its place held while it loads. */
.memo-pk-art {
  flex: none;
  width: 23px;
  height: 32px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.memo-pk-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.memo .memo-pack > .memo-pk-open {
  justify-content: center;
  width: 40px;
  padding: 0;
  color: var(--muted);
}
/* The packs voted on are picked from the sachet in the vote card's corner (client/memocratie.ts packPicker): the
   sachet is a button there, its label a pill with a caret, gold while a pack is picked. The pack just picked with no
   meme in hand: the card on screen waits, dimmed and out of reach. */
/* « Choisis ton pack » (client/memocratie.ts packHint): « Grader »'s veil (.gh, app.css) over the whole page, above
   the header and the tab bar, the sachet lit in its gold ring. */
.gh.mq-gh {
  position: fixed;
  z-index: 60;
}
.mq-gh .gh-hole {
  border-radius: 14px;
}
/* Its title on one line where the screen allows, its lines balanced: no word left alone on the last one. */
.mq-gh .gh-bubble {
  max-width: min(320px, calc(100vw - 24px));
}
.mq-gh :is(.gh-t, .gh-s) {
  text-wrap: balance;
}
/* After .mq-sec, which lets taps through to the stage: this one takes them. In front of the card when the two meet:
   the sachet went behind the card's corner on a computer (Théo, 27/10/2026). */
.mq-stage > .mq-sec-pick {
  z-index: 3;
  pointer-events: auto;
}
.mq-sec-pick {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mq-sec-pick:focus-visible {
  outline: 2px solid var(--active-bg);
  outline-offset: 2px;
  border-radius: 8px;
}
.mq-sec-pick b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.mq-sec-pick b.is-on {
  background: var(--active-bg);
  color: var(--active-ink);
}
.mq-caret {
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}
@media (hover: hover) {
  .mq-sec-pick:hover b {
    filter: brightness(0.94);
  }
}
.mq-sec-pick:active {
  scale: 0.96;
}
/* On a phone, bigger than the plain sachet: it is a button, and the thumb finds it (Théo, 22/10/2026: « un peu
   petit »). */
@media (max-width: 999px) {
  .mq-stage > .mq-sec-pick {
    width: 80px;
    gap: 6px;
  }
  .mq-stage > .mq-sec-pick .mq-sec-art {
    width: 46px;
    height: 64px;
  }
  .mq-stage > .mq-sec-pick b {
    min-height: 28px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 28px;
  }
  .mq-stage > .mq-sec-pick .mq-caret {
    width: 6px;
    height: 6px;
  }
}
/* Beside the vote's buttons the sachet's column is 44px: its label and caret take the width they need, still clear
   of the card. */
@media (min-width: 1000px) {
  .mq-stage > .mq-sec-pick {
    width: auto;
    min-width: 44px;
  }
  .mq-stage > .mq-sec-pick {
    left: 4px;
  }
  .mq-stage > .mq-sec-pick b {
    max-width: none;
    gap: 3px;
    padding-inline: 5px;
  }
  .mq-stage > .mq-sec-pick .mq-caret {
    width: 4px;
    height: 4px;
    margin-top: -2px;
  }
}
/* From 1180px the card leaves the sachet room enough: it stands as large as it reads well. */
@media (min-width: 1180px) {
  .mq-stage > .mq-sec-pick {
    left: 10px;
    top: 10px;
    gap: 5px;
  }
  .mq-stage > .mq-sec-pick .mq-sec-art {
    width: 40px;
    height: 56px;
  }
  .mq-stage > .mq-sec-pick b {
    min-height: 24px;
    padding: 0 8px;
    font-size: 13px;
    line-height: 24px;
  }
}
/* Where the card leaves the sachet too narrow a column (from 56px, by the window's width and height), the screen
   measures it and tightens the label to keep clear of the card (client/memocratie.ts fitSachet). */
.mq-stage > .mq-sec-pick.is-tight {
  left: 3px;
  width: auto;
  min-width: 44px;
  gap: 3px;
}
.mq-stage > .mq-sec-pick.is-tight .mq-sec-art {
  width: 30px;
  height: 42px;
}
.mq-stage > .mq-sec-pick.is-tight b {
  gap: 2px;
  min-height: 0;
  padding: 1px 4px;
  font-size: 10px;
  line-height: 16px;
}
.mq-stage > .mq-sec-pick.is-tight .mq-caret {
  width: 4px;
  height: 4px;
  margin-top: -2px;
}
.memo:not([data-skel]) .memo-pane[aria-busy='true'] > .mq-card {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s;
}
/* The picker: the reference links' small card (.mq-refs-card), a row per pack, the one voted on ringed and ticked. */
.mq-pick-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.mq-pick-row[aria-pressed='true'] {
  box-shadow: inset 0 0 0 2px var(--active-bg);
}
.mq-pick-row > svg {
  grid-row: auto;
  color: var(--active-bg);
}
.mq-pick-row > .memo-pk-art,
.mq-pick-all {
  display: grid;
  place-items: center;
  width: 23px;
  height: 32px;
}
.mq-pick-all {
  color: var(--muted);
}
/* A pack with no meme left says so as the empty queue does, with the way back to every pack under it. */
.mq-empty-pack {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.mq-empty-pack > p {
  margin: 0;
}
.memo :is(.memo-packs, .mq-list) .memo-pk-find[hidden] {
  display: none;
}
.memo :is(.memo-packs, .mq-list) .memo-pk-find {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.memo :is(.memo-packs, .mq-list) .memo-pk-find:focus-within {
  box-shadow: inset 0 0 0 2px var(--active-bg);
}
.memo :is(.memo-packs, .mq-list) .memo-pk-find input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.memo-pk-none {
  margin: 0;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
}
/* The links to the meme's reference: one quiet line until opened, so « Envoyer » keeps its place above the fold. */
.memo-refs,
.memo-ref-list {
  display: grid;
  gap: 8px;
}
.memo-ref-list[hidden] {
  display: none;
}
/* Drawn one line tall, touched taller: the padding the finger gets is given back to the rows around it. */
.memo-refs .link-btn {
  justify-self: start;
  min-height: 0;
  margin-block: -10px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.15;
  color: var(--muted);
}
.memo-ref-head {
  margin: 0;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--muted);
}
.memo-form .memo-ref[aria-invalid] {
  border-color: #e0457b;
}
.memo-field {
  display: grid;
  gap: 4px;
  font-weight: 800;
  font-size: 13.5px;
}
/* The golden promise: what the card will say if the vote makes it one. */
.mq-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 196, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 92, 0.32);
  text-align: center;
}
:root[data-theme="light"] .mq-promise {
  background: #fff7e0;
  box-shadow: inset 0 0 0 1px #f0d9a0;
}
.mq-promise > span {
  flex: 1 0 100%;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--gold-text);
}
.mq-promise b {
  font-weight: 900;
  font-size: 15px;
}
.mq-promise > i {
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #231600;
  background: linear-gradient(135deg, #ffe08a, #f2b53a 55%, #d18a12);
}
.mq-gold {
  font-style: normal;
  font-weight: 900;
  color: var(--gold-text);
}
/* The photo's button heads the fields, dashed until the photo is in. The file input covers it: it is the button. */
/* It is a label: the form's rule for labels (a grid, smaller words) must not undo the button, here or on the guide. */
.memo-form .mq-go .mq-pick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  cursor: pointer;
}
.mq-go .mq-pick:not(.is-set) {
  border: 2px dashed color-mix(in srgb, var(--text) 45%, transparent);
  box-shadow: none;
}
.mq-pick .memo-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.mq-go :is(.memo-send, .mqdup-a .btn, .mqdup-none) {
  justify-content: center;
  text-align: center;
}
/* The longest handle (20 characters) breaks rather than leave the promise, beside the card on a phone. */
.mq-new .mq-promise {
  min-width: 0;
}
.mq-new .mq-promise b {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* « Tu penses à… ? » under the title: the gold of the promise above it, so it reads as the game talking, not an error. */
.mq-dup-slot:empty {
  display: none;
}
/* The picture, then the text and the two buttons in the column beside it; on a phone the buttons take the box's
   whole width under both, where their labels hold on one line. */
.mqdup {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 196, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 92, 0.32);
  animation: mqdup-in 0.25s ease-out;
}
:root[data-theme="light"] .mqdup {
  background: #fff7e0;
  box-shadow: inset 0 0 0 1px #f0d9a0;
}
@keyframes mqdup-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mqdup {
    animation: none;
  }
}
/* The meme as the vote card shows it: filling its frame, framed as the card frames it. */
.mqdup.no-pic {
  grid-template-columns: minmax(0, 1fr);
}
.mqdup img {
  width: 86px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 10px;
  background: var(--surface-2);
}
.mqdup-t {
  min-width: 0;
  text-align: left;
}
.mqdup small {
  display: block;
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--gold-text);
}
.mqdup b {
  display: block;
  margin: 2px 0;
  font-weight: 900;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.mqdup-r {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
/* Two equal buttons side by side while both labels fit, one under the other otherwise. */
.mqdup-a {
  grid-column: -2 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 8px;
}
@media (max-width: 599px) {
  .mqdup-a {
    grid-column: 1 / -1;
  }
}
.mqdup-a .btn {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
  padding: 10px 12px;
}
/* « Oui » wears the gold of the promise and of the #001 above it. */
.mqdup-a .btn.mqdup-yes {
  color: #231600;
  background: linear-gradient(135deg, #ffe08a, #f2b53a 55%, #d18a12);
  text-shadow: none;
}
/* Several look-alikes: the question once, a row each that answers « Oui » when tapped, and one « Non » for them all. */
.mqdup.is-many {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.mqdup-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mqdup-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 6px 8px 6px 6px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
:root[data-theme="light"] .mqdup-row {
  background: #fff;
}
/* A meme without its photo yet keeps the photo's place, so every name starts on the same line. */
.mqdup-row > i {
  width: 56px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--surface-2);
}
.mqdup-row:active {
  transform: scale(0.98);
}
@media (hover: hover) {
  .mqdup-row:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 196, 92, 0.6);
  }
}
.mqdup-row:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 2px;
}
.mqdup-row img {
  width: 56px;
}
.mqdup-row b {
  font-size: 15px;
  line-height: 1.2;
}
.mqdup-pick {
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  color: #231600;
  background: linear-gradient(135deg, #ffe08a, #f2b53a 55%, #d18a12);
}
.mqdup-none {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}
/* A phone: the answer becomes a gold arrow, the row still the button, so the name and its line keep the width (the
   label stays for screen readers); a 320 px phone also takes a smaller photo. */
@media (max-width: 429px) {
  .mqdup-pick {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
  }
  .mqdup-pick::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: -3px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
    transform: rotate(45deg);
  }
}
@media (max-width: 359px) {
  .mqdup-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .mqdup-row > :is(img, i) {
    width: 44px;
  }
  .mqdup-pick {
    width: 30px;
    height: 30px;
  }
}
/* « Elle est déjà dans le jeu », first line of the card's sheet opened from « Oui, c'est elle ». */
.mq-ingame {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 196, 92, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 92, 0.36);
}
/* From 860 px the card sheet sets its text beside the card (app.css): the line then heads that column, whose top
   right corner holds the sheet's floating close button. */
@media (min-width: 860px) {
  .cs-side > .mq-ingame {
    margin-right: 56px;
  }
}
:root[data-theme="light"] .mq-ingame {
  background: #fff7e0;
  box-shadow: inset 0 0 0 1px #f0d9a0;
}
.mq-saved {
  margin: 0;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--mq-ok-ink);
}
.memo-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding-block: 12px;
  font-size: 18px;
}
.mq-end {
  justify-items: center;
  text-align: center;
}
.mq-end .btn {
  width: 100%;
  margin: 0;
}
/* « Fais-le voter par tes amis »: the sentence over the link to copy, the action that follows a send. */
.mq-end .mq-share {
  margin-top: 4px;
  font-weight: 800;
  color: var(--text);
}

/* The day's votes spent: the next meme, greyed and out of reach, with what to do until tomorrow over it. */
.mq-locked {
  position: relative;
  display: grid;
}
.mq-locked-card {
  filter: grayscale(1);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}
.mq-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
  box-sizing: border-box;
  margin: 0;
  padding: 20px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.mq-lock .mq-title,
.mq-lock .mq-desc {
  margin: 0;
}
.mq-lock .btn {
  width: 100%;
  margin: 4px 0 0;
}

/* ---------- my memes ---------- */

.memo .sugg-list {
  margin: 0;
}
/* The next page's skeleton and its « Réessayer » follow the list at the pane's gap (.memo-pane), the rows' own. */
.mq-more-fail {
  margin: 0;
  text-align: center;
}
.sugg-row.mq-mine {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mq-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-2);
}
.mq-mtxt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
}
/* The state goes under the title when both do not fit one line: « Refusée par l’équipe » beside a title squeezed it to
   a word per line at 320. */
.mq-mtxt .sugg-row-head {
  width: 100%;
  flex-wrap: wrap;
  row-gap: 6px;
}
/* On a phone the state always goes under the title: beside a short title and under a long one, the rows' figures
   started at a different height from one meme to the next, and the skeleton matched only titles of its own length. */
@media (max-width: 559px) {
  .mq-mine .mq-mtxt .sugg-row-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
.mq-mtxt .link-btn {
  min-height: 0;
  padding: 0;
}
/* A draft's photo slot, dashed like Propose's drop: the player taps it, or the button beside, to add the photo. */
.mq-thumb-add {
  position: relative;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  background: none;
  font-weight: 900;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
}
.mq-addphoto {
  position: relative;
  overflow: hidden;
}
.mq-addphoto[aria-disabled="true"] {
  opacity: 0.6;
}
.mq-thumb-add .memo-complete,
.mq-addphoto .memo-complete {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
}
/* What a meme still lacks to become a card on its own: the votes, then the share with a tick at the share it needs.
   A gauge met turns the vote's green and takes a ✓; the row's sentence under them says what comes next. */
/* One grid for both gauges: whatever the width of a figure, the two bars start and end together. */
.mq-goal {
  width: 100%;
  max-width: 340px;
  display: grid;
  /* The figures' column has a fixed width: from one meme to the next the bars start and end at the same place. */
  grid-template-columns: auto minmax(0, 1fr) 8.6em;
  font-size: 13px;
  align-items: center;
  gap: 4px 8px;
}
.mq-goal-row {
  display: contents;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
.mq-goal-k {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
.mq-goal-k {
  white-space: nowrap;
}
.mq-goal-v {
  font-weight: 700;
  font-size: 13px;
}
.mq-goal-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--muted) var(--fill), color-mix(in srgb, var(--text) 14%, transparent) 0);
}
.mq-goal-row.is-ok .mq-goal-bar {
  background: linear-gradient(90deg, var(--mq-ok-ink) var(--fill), color-mix(in srgb, var(--text) 14%, transparent) 0);
}
/* The share it needs: a notch through the track, above and below it. */
.mq-goal-share .mq-goal-bar::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: calc(var(--mark) - 1px);
  width: 2px;
  border-radius: 1px;
  background: var(--text);
}
.mq-goal-v {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.mq-goal-row.is-ok .mq-goal-v {
  color: var(--mq-ok-ink);
}
.mq-goal-v i {
  margin-right: 4px;
  font-style: normal;
  font-weight: 900;
}
/* A phone's row would leave the bars a few dozen pixels beside the figures: there each gauge puts its label and figure
   on one line and its bar under them, full width. */
.mq-mtxt:has(.mq-goal) {
  container: mq-goal / inline-size;
}
@container mq-goal (max-width: 300px) {
  .mq-goal {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 3px;
  }
  .mq-goal-bar {
    grid-column: 1 / -1;
  }
  .mq-goal-voices .mq-goal-k { order: 1; }
  .mq-goal-voices .mq-goal-v { order: 2; }
  .mq-goal-voices .mq-goal-bar { order: 3; margin-bottom: 5px; }
  .mq-goal-share .mq-goal-k { order: 4; }
  .mq-goal-share .mq-goal-v { order: 5; }
  .mq-goal-share .mq-goal-bar { order: 6; }
}
/* A wide row (a computer) puts the two gauges side by side: one line instead of two, each still with its target. */
@container mq-goal (min-width: 600px) {
  .mq-goal {
    max-width: 640px;
    grid-template-columns: auto minmax(0, 1fr) 6.4em auto minmax(0, 1fr) 8.6em;
    column-gap: 10px;
  }
  .mq-goal-share .mq-goal-k {
    margin-left: 14px;
  }
}
.mq-mtxt .sugg-why.mq-goal-won {
  font-weight: 800;
  color: var(--mq-ok-ink);
}
/* The call to share under the gauges: a quiet line while the goal is far, a lit block with its own button once the
   voices left reach memocratie.nudgeLeft (src/memocratie-nudge.ts). */
.mq-mtxt .mq-nudge {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.mq-mtxt .mq-nudge.is-near {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 340px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--mq-ok-ink) 12%, transparent);
  color: var(--text);
}
.mq-nudge.is-near p {
  flex: 1 1 180px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.mq-nudge-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  white-space: nowrap;
}
:is(.memo, .mq-more)[data-skel] .mq-mine .mq-nudge {
  visibility: hidden;
}
/* « Voir les votes »: the split of a meme still in the vote, folded until the player asks for it. The « Bof » side
   stays a plain track: the block informs, it does not scold. */
/* Below « Voir la carte ›»'s size: the folded votes are a side door, not the row's action. */
.mq-mtxt .mq-seevotes {
  font-size: 14px;
}
.mq-tally {
  justify-self: stretch;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}
.mq-tally[hidden] {
  display: none;
}
.mq-tally p {
  margin: 0;
}
.mq-tally-head {
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}
.mq-tally-head b {
  font-weight: 900;
  font-size: 19px;
  color: var(--text);
}
.mq-tally-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mq-ok-ink) var(--up), color-mix(in srgb, var(--text) 14%, transparent) 0);
}
.mq-tally-key {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
.mq-tally-team {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
/* What the players answered on a meme of one's own, under the split: the same answer rows as the vote screen
   (.mq-ans), so an author reads his poll where he already learned to read one. The questions stack on a phone and
   never gain a second column: a title is long, a share is short. */
.mq-detail {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.mq-dtitle {
  font-weight: 900;
  font-size: 15px;
  color: var(--text);
}
.mq-dq {
  margin-top: 4px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
/* A read-only row: no hand, and the share sits at the end of the line whatever the answer's length. */
.mq-dro {
  min-height: 44px;
  cursor: default;
  font-size: 14px;
}
.mq-dro > .mq-val {
  flex: 1 1 auto;
}
/* A pack line carries the art, the name, « La tienne » and the share at once: at 320 nothing is left for the
   name, so the name keeps its whole self and the share drops to a second line instead. */
.mq-dro:has(> .mq-pkv) {
  flex-wrap: wrap;
}
.mq-dro > .mq-pkv {
  flex: 1 1 90px;
}
.mq-dro > .mq-pkv > b {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.mq-dro:has(> .mq-pkv) > .mq-pct {
  margin-left: auto;
}
/* On a phone the name never shares its line with anything: every pack row wraps, the one the author chose like the
   others, and the waiting place wraps with them. A row that wrapped only when it carried « La tienne » made the
   panel taller on arrival than the skeleton had promised. */
@media (max-width: 440px) {
  .mq-dro > .mq-pkv {
    flex: 1 1 100%;
  }
}
.mq-dskel .mq-pkv > b {
  max-width: 120px;
}
.mq-dmine {
  flex: none;
  font-weight: 800;
  font-size: 12px;
  color: var(--mq-ok-ink);
}
.mq-dnone {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
/* The picture's share rides over its foot, as at the vote; its « La tienne » goes on the same strip. */
.mq-ansimg.mq-dro {
  min-height: 0;
}
.mq-ansimg .mq-dmine {
  color: var(--text);
}
/* The place a thumbnail will take, at the ratio of the game's images, while the read is on its way. */
.mq-dsimg {
  display: block;
  width: 100%;
  aspect-ratio: 1.3277;
  border-radius: 11px;
}
.sugg-row.st-draft .sugg-pill {
  color: var(--gold-text);
}
.mq-mine .sugg-why .coin-mark {
  font-size: 16px;
}
/* The day the meme was sent, under its state: on its own line, it takes no room from the title. */
.mq-mtxt .mq-on {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
/* « Partager » on a meme at the vote, beside its state: more voices is what the meme waits for (Théo, 01/11/2026), and
   the state's line has the room for it, so it costs the row no line of its own (« optimise l'espace »). */
.mq-state {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  flex: 0 1 auto;
  max-width: 100%;
}
.mq-state .mq-share-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  white-space: nowrap;
}
/* With a mouse the button needs no finger's 44 px: the pill's height keeps the title's line as it was. */
@media (min-width: 600px) and (hover: hover) {
  .mq-state .mq-share-btn {
    min-height: 34px;
  }
}
.mq-share-btn .share-ic {
  flex: none;
}
/* The photo opens the whole card: a tap target of its own, with the corners of « en grand » on it. */
.mq-thumb-see {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mq-thumb-see img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mq-thumb-see:active {
  translate: 0 1px;
}
.mq-zoom {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.mq-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.mq-acts .link-btn {
  font-size: 14px;
  /* Chacun garde sa largeur : à trois (« Voir les votes », « Modifier », « Retirer »), et dans les langues aux mots
     longs, ils passent à la ligne plutôt que de rétrécir jusqu'à se couper (320 px, scripts/memocratie_retirer_shots.mjs). */
  flex: none;
}
/* « Retirer »: the one act of the row that takes something away, so it is read last and in the muted ink, never in the
   link colour that invites a tap (docs/design/charte.md). */
.mq-pull {
  color: var(--muted);
}
/* Its small card: the question, what it does, and the one button that does it; « Annuler » is the card's own way out. */
.mq-pull-card .mq-pull-why {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}
.mq-pull-card .mq-pull-go {
  width: 100%;
  margin-top: 4px;
}
/* Propose's form holding a meme of one's own: what is being done, and the way out. */
.mq-editbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.mq-editbar b {
  font-weight: 900;
  font-size: 19px;
}
.mq-editbar .link-btn {
  flex: none;
}
/* The whole card in the small card: as tall as a phone leaves it, never wider than the screen. */
.mq-whole {
  display: grid;
  place-items: center;
}
.mq-whole .mq-face {
  height: min(56vh, 420px, calc((100vw - 96px) * 1.339));
}
.sugg-row.st-binned .sugg-pill,
.sugg-row.st-rejected .sugg-pill {
  background: var(--mq-bad-bg);
  color: var(--mq-bad);
}
:root[data-theme="light"] .sugg-row.mq-mine.st-accepted .sugg-pill {
  background: var(--mq-ok-bg);
  color: var(--mq-ok-ink);
}

/* ---------- « En direct » ---------- */

/* Anecdotal on purpose: one muted line under the card, never a second one, never a bar over the content. */
.mqtk {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  box-sizing: border-box;
  /* Room on the left for the dot's pulse, which the hidden overflow would cut. */
  padding-left: 8px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
}
/* Empty, the line keeps its room: its first poll lands a second after the card and must not push the page down. */
.memo .mqtk[hidden] {
  display: flex !important;
  visibility: hidden;
}
.mqtk-live {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mq-ok);
  animation: mqtk-pulse 1.6s infinite;
}
@keyframes mqtk-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 164, 99, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(31, 164, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 164, 99, 0);
  }
}
.mqtk-faces {
  flex: none;
  display: flex;
}
.mqtk-faces span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -6px;
  box-sizing: border-box;
  border: 2px solid var(--page);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 10px;
}
.mqtk-faces span:first-child {
  margin-left: 0;
}
.mqtk-line {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* `.view b { text-wrap: balance }` (app.css) turns wrapping back on inside the bold names: the shorthand is reset here. */
.mqtk-line,
.mqtk-line b {
  text-wrap: nowrap;
}
.mqtk-line b {
  color: var(--text);
  font-weight: 800;
}
.mqtk-line.new {
  animation: mqtk-in 0.4s ease-out;
}
@keyframes mqtk-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mqtk-live,
  .mqtk-line.new {
    animation: none;
  }
}

/* ---------- a computer screen ---------- */

/* The page keeps one width on every tab, so the title, the week's figure, the tabs and the card under them never move
   or change size when the tab changes. The vote card lies on its side across it, and so does Propose: the photo on
   the left, the fields on the right. */
@media (max-width: 999px) {
  .mq-gains.mq-gains-wide {
    display: none;
  }
  /* Propose on a phone, as a question lays its card out: the card small beside the promise and the photo's button, the
     fields under them across the width, so « Envoyer » stays above the fold at 390 x 700. The vote's large card would
     not leave that room; the owner validated this shape on the test link (09/10/2026). */
  .mq-card.mq-new {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
  }
  .mq-card.mq-new > .mq-side > .mq-photo.mq-stage {
    grid-row: 1 / span 2;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .mq-card.mq-new > .mq-side > .mq-photo .mq-bg {
    display: none;
  }
  .mq-card.mq-new > .mq-side > .mq-photo .mq-face {
    width: 100%;
    height: auto;
  }
  /* The fields are the tile's own rows here, so the photo's button stands beside the card, right above the title. */
  .mq-card.mq-new > .mq-go {
    display: contents;
  }
  .mq-card.mq-new > .mq-go > * {
    grid-column: 1 / -1;
  }
  .mq-card.mq-new > .mq-go > .mq-pick {
    grid-column: 2;
    align-self: start;
    gap: 8px;
    padding-inline: 10px;
    font-size: 15px;
  }
  .mq-card.mq-new > .mq-side > .mq-txt {
    align-self: end;
  }
  /* A short phone: tighter rows keep « Envoyer » above the tab bar at 390 x 700. The description starts one line
     tall there, which pays for the reference links' line; it still grows with the text (client/memocratie.ts fitText). */
  @media (max-height: 700px) {
    .mq-card.mq-new {
      row-gap: 6px;
    }
    .mq-card.mq-new .memo-desc {
      height: 47px;
      padding-block: 10px;
    }
    .mq-card.mq-new .mq-promise {
      padding-block: 5px;
    }
  }
  /* The 20 characters of the longest handle hold one line beside the card down to a 360 px screen. */
  .mq-card.mq-new .mq-promise {
    padding-inline: 8px;
  }
  .mq-card.mq-new .mq-promise b {
    font-size: clamp(11px, 3.5vw, 15px);
  }
}
@media (min-width: 1000px) {
  .memo {
    max-width: 900px;
  }
  .memo .seg {
    max-width: 460px;
    margin-inline: auto;
  }
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 22px;
  }
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > .mq-photo {
    grid-row: 1 / -1;
    height: 360px;
  }
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > .mq-txt {
    grid-row: 2;
    text-align: left;
  }
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > .mq-go {
    grid-row: 3;
  }
  /* Across the page's width, the meme above a text question gets the height to be seen, and the image question
     holds three tiles a row: the two images and « + La mienne » side by side. */
  .mq-photo.mq-photo-sm {
    height: 220px;
  }
  .mq-grid2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mqtk {
    justify-content: center;
  }
  .mqtk-line {
    flex: 0 1 auto;
  }
}

/* « Comment ton meme devient une carte ? » above « Mes memes »'s tabs: the three steps are those tabs, with their drawings
   and colours. Same width as the tabs; folded, one line with its chevron. Flat (docs/design/charte.md). */
.memo .mq-how {
  width: min(100%, 460px);
  margin: 0 auto 12px;
  border: 1.5px solid var(--trait-btn);
  border-radius: 16px;
  background: var(--surface);
}
.memo .mq-how summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.memo .mq-how summary span {
  text-wrap: balance;
}
.memo .mq-how summary::-webkit-details-marker {
  display: none;
}
/* The chevron, at the end of the line: down folded, up open. */
.memo .mq-how summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0 auto;
  border-right: 2.4px solid var(--muted);
  border-bottom: 2.4px solid var(--muted);
  transform: rotate(45deg);
}
.memo .mq-how[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
.memo .mq-how-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 14px 4px;
  list-style: none;
}
.memo .mq-how-step {
  --box-ink: var(--text);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}
.memo .mq-how-step svg {
  color: var(--box-ink);
}
.memo .mq-how-step p {
  margin: 1px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.memo .mq-how-step b {
  color: var(--text);
  font-weight: 800;
}
.memo .mq-how-note {
  margin: 0;
  padding: 6px 14px 12px 46px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
}

/* « Mes memes »'s three tabs: three boxes, each its drawing and its count, in the colour of its rows' state chip
   (green validated, red bin). Flat, a trait and a fill, no relief (docs/design/charte.md). */
.memo .mq-trays {
  --box-ink: var(--text);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 460px);
  margin: 0 auto 14px;
}
.memo .mq-tray {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 0;
  min-height: 68px;
  padding: 10px 6px;
  /* The charte's button trait: a --surface box on the page needs it to stand out at 3:1. */
  border: 1.5px solid var(--trait-btn);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.memo .mq-tray-ok { --box-ink: var(--mq-ok-ink); }
.memo .mq-tray-bin { --box-ink: var(--mq-bad); }
.memo .mq-tray svg {
  color: var(--box-ink);
}
.memo .mq-tray-n {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.memo .mq-tray-l {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.memo .mq-tray[aria-pressed="true"] {
  border-color: var(--box-ink);
  box-shadow: inset 0 0 0 1px var(--box-ink);
  background: color-mix(in srgb, var(--box-ink) 12%, var(--surface));
  /* The state's hue pulled toward the ink: the pure green on its own tint is 4.4:1 in the light theme. */
  color: color-mix(in srgb, var(--box-ink) 70%, var(--text));
}
.memo .mq-tray[aria-pressed="true"] .mq-tray-n {
  color: inherit;
}
@media (hover: hover) {
  .memo .mq-tray:hover:not([aria-pressed="true"]) {
    border-color: color-mix(in srgb, var(--box-ink) 55%, var(--trait-btn));
  }
}
.memo .mq-tray:active {
  transform: translateY(1px);
}
.mq-group-new {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5484d;
}

/* « Mes corrections »: one box the width of the three tabs above, drawn as they are (its drawing, its count, pressed
   when open), its line saying where the requests stand. Only a player who asked for a correction has it. */
.memo .mq-fixbar {
  --box-ink: var(--text);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  width: min(100%, 460px);
  min-height: 56px;
  margin: -6px auto 14px;
  padding: 8px 14px;
  /* Brought to the top when opened, under the game's top bar. */
  scroll-margin-top: 84px;
  border: 1.5px solid var(--trait-btn);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.memo .mq-fixbar svg {
  color: var(--box-ink);
}
.memo .mq-fixbar-t {
  display: grid;
  min-width: 0;
}
.memo .mq-fixbar-t b {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.memo .mq-fixbar-t small {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}
.memo .mq-fixbar[aria-pressed="true"] {
  border-color: var(--box-ink);
  box-shadow: inset 0 0 0 1px var(--box-ink);
  background: color-mix(in srgb, var(--box-ink) 12%, var(--surface));
}
.memo .mq-fixbar[aria-pressed="true"] .mq-tray-n {
  color: inherit;
}
@media (hover: hover) {
  .memo .mq-fixbar:hover:not([aria-pressed="true"]) {
    border-color: color-mix(in srgb, var(--box-ink) 55%, var(--trait-btn));
  }
}
.memo .mq-fixbar:active {
  transform: translateY(1px);
}
/* What makes a correction pass, once, above the requests. */
.memo .mq-fix-rule {
  width: min(100%, 460px);
  margin: 0 auto 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
/* The card's picture: a card, not a photo, so its corners are the cards' own. */
.mq-fixrow .mq-thumb {
  border-radius: 8px;
}
/* The request in the player's words: two lines at most, the rest of it is theirs to remember. */
.mq-mtxt .mq-fix-ask {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: anywhere;
}
.mq-fix-ask b {
  font-weight: 800;
  color: var(--muted);
}

/* The old wishes and the tickets live under My memes: their headings are sections of this page, not page titles. */
.memo .sugg-mine h2 {
  font-size: 20px;
  margin: 18px 0 6px;
  text-align: left;
}

/* « Signaler ce meme » (client/memocratie.ts reportSheet): the card report's tiles (card-report.css), two tones of its own,
   and the list a « Existe déjà » report picks its card in. */
.rp-exists { --tone: #8b5cf6; }
.rp-other { --tone: #64748b; }
.mr-dup { display: grid; gap: 10px; }
.mr-help { margin: 0; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.mr-hits { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mr-hit {
  --tone: #8b5cf6;
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 6px 12px 6px 6px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.mr-hit img { flex: none; width: 40px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.mr-hit b { flex: 1; min-width: 0; font-weight: 900; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.mr-hit small { display: block; font-weight: 700; font-size: 12px; color: var(--muted); }
.mr-hit input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.mr-hit:has(input:checked) { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, var(--surface)); }
.mr-hit:has(input:checked) .rp-check { border-color: var(--tone); background: var(--tone); }
.mr-hit:has(input:checked) .rp-check::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg);
}
.mr-hit:has(input:focus-visible) { outline: 2px solid var(--tone); outline-offset: 2px; }
/* « Je ne retrouve pas la carte »: the list's last choice, a dashed row with a magnifier where a card's face would be. */
.mr-lost { border-style: dashed; }
.mr-lost-ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 56px; border-radius: 6px;
  background: color-mix(in srgb, var(--tone) 12%, var(--surface)); color: var(--tone);
}
.mr-lost-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* « Pas dans le bon pack »: the packs it may go in instead, in the list's look and the tile's tone (card-report.css). */
.mr-pack { display: grid; gap: 10px; }
.mr-pack .rp-field { margin: 0; }
.mr-pack .mr-hit { --tone: #8e4ec6; }
.mr-pack .mr-hit img { object-fit: contain; background: none; }

/* ---------- the skeleton (client/memocratie.ts skelHtml) ---------- */

/* The screen's own markup, inert: only the words the server is about to say turn into bars, one per word and line,
   the sweep of light of every skeleton of the game (app.css .skel) going the way the eye reads. The thumbnails are grey
   blocks and the meme's card waits as every card of the game does (k2-wait); nothing in them is fetched. */
:is(.memo, .mq-more, .mq-dskel)[data-skel] .mq-sk,
.guide[data-preskel][data-skel] .mq-sk {
  color: transparent;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 10%, transparent)
    linear-gradient(100deg, transparent 25%, color-mix(in srgb, var(--text) 10%, transparent) 50%, transparent 75%) no-repeat;
  background-size: 200% 100%;
  animation: skel-sweep 1.6s ease-in-out infinite;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:is(.memo, .mq-more)[data-skel] :is(.mq-mine .sugg-row-head, .mq-mine .sugg-why, .mq-mine .mq-goal-k, .mq-mine .mq-goal-v, .mq-mine .mq-on, .mq-mine .mq-share-btn, .mq-mine .mq-seevotes, .mq-mine .mq-edit, .mq-mine .mq-pull, .sugg-mine .sugg-list) {
  color: transparent;
}
/* The gauges keep their track, empty, and lose their notch: the figures they will fill are not known yet. */
:is(.memo, .mq-more)[data-skel] .mq-goal-bar {
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
:is(.memo, .mq-more)[data-skel] .mq-goal-bar::after {
  visibility: hidden;
}
/* The week's figures are painted in gold clipped to their text (app.css .amt-n): the gold would show through the bar. */
:is(.memo, .mq-more)[data-skel] .mq-gains b .amt-n {
  background: none;
  filter: none;
}
:is(.memo, .mq-more)[data-skel] .mq-gains .coin-mark,
:is(.memo, .mq-more)[data-skel] .mq-mine .sugg-pill,
:is(.memo, .mq-more)[data-skel] .mq-card .mq-meta .coin-mark {
  visibility: hidden;
}
/* The vote card's frame keeps its own ground: the card in it is the one that waits (k2-wait). */
:is(.memo, .mq-more)[data-skel] :is(.mq-photo:not(.mq-stage), .mq-thumb, .mq-mine .mq-share-btn) {
  background: color-mix(in srgb, var(--text) 10%, transparent)
    linear-gradient(100deg, transparent 25%, color-mix(in srgb, var(--text) 10%, transparent) 50%, transparent 75%) no-repeat;
  background-size: 200% 100%;
  animation: skel-sweep 1.6s ease-in-out infinite;
  box-shadow: none;
}
:is(.memo, .mq-more)[data-skel] :is(.mq-photo:not(.mq-stage), .mq-thumb, .mq-mine .mq-share-btn) > * {
  visibility: hidden;
}
/* « Signaler » floats on the photo: it is the real button, it stays. */
:is(.memo, .mq-more)[data-skel] .mq-photo > .mq-flag {
  visibility: visible;
}
/* The pack's stage waits with its card: a shimmering ground for its colours, grey blocks where the sachet and its
   label go, in the skeleton and on a stage whose sachet is not in yet (data-wait, client/memocratie.ts holdStages). */
:is(.memo, .mq-more)[data-skel] .mq-stage[data-pack],
.mq-stage[data-pack][data-wait] {
  /* The variable, not the background: the frame beside the vote's buttons paints its own (min-width: 1000px). */
  --mq-pack: var(--surface-2);
  isolation: isolate;
}
:is(.memo, .mq-more)[data-skel] .mq-stage[data-pack]::after,
.mq-stage[data-pack][data-wait]::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, color-mix(in srgb, var(--text) 8%, transparent) 50%, transparent 75%) no-repeat;
  background-size: 200% 100%;
  animation: skel-sweep 1.6s ease-in-out infinite;
}
.mq-stage[data-wait][data-edition]::before {
  visibility: hidden;
}
:is(:is(.memo, .mq-more)[data-skel] .mq-stage, .mq-stage[data-wait]) .mq-sec-art {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.mq-stage[data-wait] .mq-sec img {
  visibility: hidden;
}
:is(:is(.memo, .mq-more)[data-skel] .mq-stage, .mq-stage[data-wait]) .mq-sec b {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  :is(.memo, .mq-more)[data-skel] .mq-stage[data-pack]::after,
  .mq-stage[data-pack][data-wait]::after,
  :is(.memo, .mq-more)[data-skel] :is(.mq-sk, .mq-photo, .mq-thumb),
  .guide[data-preskel][data-skel] .mq-sk {
    animation: none;
  }
}

/* ---------- the meme as the card it would be ---------- */

/* The game's own card (client/site/face.ts) stands in the frame, on the blurred copy of its picture: the voter
   judges the card the meme would make, as « Nouvelle carte » shows it to the admin. */
.mq-stage {
  display: grid;
  place-items: center;
  padding: 8px;
  box-sizing: border-box;
}
/* The pack the meme is proposed for, in the colours of its sachet, the same in both themes as the sachet is: the
   flag's three bands for a country pack (the card hides the middle one on a phone), the planet's blues for World. */
.mq-stage[data-pack='classiques'] {
  --mq-pack: radial-gradient(circle at 50% 50%, #1f9fd0 0, #145c9e 48%, #0c2a63 100%);
}
.mq-stage[data-pack='memes-fr'] {
  --mq-pack: linear-gradient(90deg, #1e3fae 0 35%, #f2f3f7 35% 65%, #d42f3d 65%);
}
.mq-stage[data-pack='memes-ru'] {
  --mq-pack: linear-gradient(#f2f3f7 0 33.4%, #1e4fbe 33.4% 66.7%, #d42f3d 66.7%);
}
.mq-stage[data-pack='memes-de'] {
  --mq-pack: linear-gradient(#1b1b1f 0 33.4%, #d42f3d 33.4% 66.7%, #f2c230 66.7%);
}
.mq-stage[data-pack='memes-it'] {
  --mq-pack: linear-gradient(90deg, #008c45 0 35%, #f2f3f7 35% 65%, #cd212a 65%);
}
.mq-stage[data-pack='memes-es'] {
  --mq-pack: linear-gradient(#d42f3d 0 25%, #f2c230 25% 75%, #d42f3d 75%);
}
.mq-stage[data-pack] {
  background: var(--mq-pack);
  box-shadow: none;
}
/* An Edition has no flag: the stage wears its sachet's colours, blurred far past reading (--mq-art, set by
   client/memocratie.ts stageOf). */
.mq-stage[data-edition] {
  --mq-pack: var(--surface-2);
  overflow: hidden;
  isolation: isolate;
}
.mq-stage[data-edition]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40px;
  background: var(--mq-art) center / cover;
  filter: blur(32px) saturate(1.2) brightness(0.8);
}
.mq-sec {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 64px;
  pointer-events: none;
}
.mq-sec-art {
  display: block;
  width: 40px;
  height: 56px;
  border-radius: 6px;
}
.mq-sec img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}
.mq-sec b {
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: #14161f;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Beside a question on a phone the card stands small, without its frame: no room for the sachet. */
@media (max-width: 999px) {
  .mq-card.mq-ed > .mq-photo .mq-sec {
    display: none;
  }
}
/* Beside the vote's buttons the card keeps 48px free on each side (the frame's fit, below): the sachet holds in it. */
@media (min-width: 1000px) {
  .mq-sec {
    left: 6px;
    width: 44px;
    gap: 3px;
  }
  .mq-sec-art {
    width: 30px;
    height: 42px;
  }
  .mq-sec b {
    padding: 1px 4px;
    font-size: 11px;
    line-height: 16px;
  }
}
.mq-face {
  position: relative;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 100 / 133.9;
  pointer-events: none;
}
.mq-face .card__front {
  position: relative;
  container-type: inline-size;
  height: 100%;
  border-radius: 4.6% / 3.4%;
  overflow: hidden;
}
.mq-face .card__front > .mk {
  height: 100%;
}
/* The photo fills the card's window as it will on the card (cards/face.css: cover, the face's own framing): a photo
   contained there stood as a strip between two dark bands, under a title laid on nothing. */
.mq-face-plain .k2-rar {
  visibility: hidden;
}
.mq-face-noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: start center;
  padding: 14cqw 4cqw 4cqw;
  /* The card is dark in both themes: so is its empty window. */
  border: 0.8cqw dashed rgba(255, 255, 255, 0.45);
  border-radius: 3cqw;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: center;
  font-size: 5.4cqw;
  font-weight: 800;
}
/* The author's link, in the card's empty window. */
.mq-face-link {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 8.5em;
  text-align: center;
  line-height: 1.2;
  color: #fff;
  z-index: 2;
  font-size: 13px;
}
/* The card takes the room the second title gave back, and « Signaler » the corner the card leaves free. */
.mq-photo.mq-stage:not(.mq-photo-sm) {
  height: clamp(170px, 33vh, 280px);
}
/* The meme on the vote is what the voter judges: on a phone it takes half the screen (Andrei, 24/10/2026: « la carte
   est toute petite »); the page scrolls the title and the tabs away to keep the three answers in sight. */
@media (max-width: 899px) {
  .mq-card:not(.mq-new):not(.mq-ed) > .mq-photo.mq-stage:not(.mq-photo-sm) {
    height: clamp(280px, 46vh, 440px);
  }
}
.mq-flag svg {
  display: none;
}
.mq-stage .mq-flag {
  top: auto;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
}
.mq-stage .mq-flag svg {
  display: block;
}
.mq-stage .mq-flag span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
/* The questions, the way the editor lays a card out: the card beside what is being chosen for it, and the numbered
   steps. On a phone the card stays small, next to the question; the answers take the width under them. */
.mq-card.mq-ed {
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}
.mq-card.mq-ed > * {
  grid-column: 1 / -1;
}
.mq-card.mq-ed > .mq-photo {
  grid-column: 1;
  grid-row: 1 / span 3;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.mq-card.mq-ed > .mq-photo .mq-bg {
  display: none;
}
.mq-card.mq-ed > .mq-photo .mq-face {
  width: 100%;
  height: auto;
}
.mq-card.mq-ed > :is(.mq-qtop, .mq-steps, .mq-q) {
  grid-column: 2;
}
.mq-card.mq-ed > .mq-q {
  text-align: left;
}
.mq-steps {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mq-steps li {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.mq-steps li.is-on {
  border-color: var(--text);
  color: var(--text);
}
.mq-steps li.is-done {
  border-color: transparent;
  background: var(--active-bg);
  color: var(--active-ink);
}
/* One tile for a meme, from its vote to its last question (owner, 09/10/2026: « l'interface ne devrait pas sauter ») :
   the questions keep one height whatever their answers, and the line under them holds its room answered or not. */
.mq-card.mq-ed {
  align-content: start;
  min-height: 572px;
}
.mq-card.mq-ed > :is(.mq-counted, .mq-links) {
  min-height: 32px;
  padding: 0;
  align-content: center;
}
/* On a phone, from the fifth image on, three a row: seven images then stand in the height four did. */
@media (max-width: 999px) {
  .mq-card.mq-ed > .mq-grid2:has(> .mq-ansimg:nth-child(6)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* « + La mienne » is a line under the images, as « + Proposer le mien » is under the titles: never a tile alone on
   its row beside an empty place. */
.mq-card.mq-ed > .mq-grid2 > .mq-ansimg.add {
  grid-column: 1 / -1;
  gap: 2px;
  min-height: 58px;
}
.mq-card.mq-ed > .mq-grid2 > .mq-ansimg.add .mq-plus {
  min-height: 0;
}
@media (min-width: 1000px) {
  /* Across the page the card stays in the frame the vote showed it in, same place and same size: the frame is pinned
     to the tile, out of the rows, so only the column beside it changes, centred on the card's height. */
  .mq-card.mq-ed,
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) {
    position: relative;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 22px;
    min-height: 468px;
  }
  /* The vote and its questions are as tall as the window leaves them (client/memocratie.ts sizeTile), so the card
     and the answers hold on a short screen; Propose keeps its own height, its fields run longer than any window. */
  .mq-card.mq-ed,
  .mq-card:has(> .mq-go [data-up]) {
    min-height: var(--mq-tile, 468px);
  }
  /* The question takes the card's whole height: its head on top, the line that says « Compté » kept at the bottom
     answered or not, and the answers share everything between, taller when they are few. */
  .mq-card.mq-ed {
    grid-template-rows: auto auto minmax(0, 1fr) auto minmax(26px, auto);
    /* A height, not a floor: the answers' row is then what is left, and a long list scrolls in it. */
    height: var(--mq-tile, 468px);
    align-content: stretch;
    align-items: start;
    row-gap: 9px;
  }
  .mq-card.mq-ed > .mq-q {
    font-size: 24px;
  }
  /* More answers than the card's height holds: they scroll in their place, and the tile stays the size it has. */
  .mq-card.mq-ed > :is(.mq-list, .mq-grid2) {
    align-self: stretch;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* A column that grows from the answers' own height: a list sized by its tallest wish would stretch the tile. */
  .mq-card.mq-ed > .mq-list {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    gap: 8px;
  }
  .mq-card.mq-ed > .mq-list > .mq-ans {
    flex: 1 1 40px;
    max-height: 88px;
  }
  /* An answer with its pen (client/memocratie-typo.ts) is sized as a bare answer is; the open pen keeps its own
     height and the rows around it scroll. */
  .mq-card.mq-ed > .mq-list > .mq-penrow {
    flex: 1 1 40px;
    max-height: 88px;
  }
  .mq-card.mq-ed > .mq-list > .mq-typo {
    flex: none;
  }
  /* The packs follow their question as the rarities do: two or three shelves centred in the column left a hole
     under the question at 1280. */
  .mq-card.mq-ed > .mq-packs {
    justify-content: start;
  }
  /* The search of the packs holds the top of the list the rows scroll under; it is the only child that keeps its
     own height. On a phone the list does not scroll, so the field simply follows the question. */
  .mq-card.mq-ed > .mq-packs > .mq-find {
    position: sticky;
    top: 0;
    z-index: 1;
    flex: none;
  }
  .mq-card.mq-ed .mq-ans {
    font-size: 17px;
  }
  /* The images two a row, each in a frame of one shape, and « + La mienne » a line under them like « + Proposer le
     mien » under the titles; from the third image on, three a row, so the grid stays in the card's height. */
  .mq-card.mq-ed > .mq-grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: safe center;
  }
  .mq-card.mq-ed > .mq-grid2:has(> .mq-ansimg:nth-child(4)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mq-card.mq-ed > *,
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > * {
    grid-column: 2;
  }
  .mq-card.mq-ed > .mq-photo,
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > .mq-photo {
    /* Outside any grid area: an absolute grid item is otherwise laid out in the cell its column names. */
    grid-column: auto;
    grid-row: auto;
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: calc((100% - 50px) * 1.15 / 2.15);
    height: auto;
    padding: 8px;
    border-radius: 18px;
    background: var(--mq-pack, var(--surface-2));
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
    container-type: size;
  }
  .mq-card.mq-ed > .mq-photo .mq-bg {
    display: block;
  }
  /* The frame's height follows the column beside it: past the card's own ratio, the width is what holds the card
     whole. Between the two, the card keeps 48px free beside it or under it (96px over both sides, 128px = 96 × the
     ratio), so « Signaler » always has its corner. */
  .mq-card.mq-ed > .mq-photo .mq-face,
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > .mq-photo .mq-face {
    width: auto;
    height: min(100cqh, max(133.9cqw - 128px, min(133.9cqw, 100cqh - 96px)));
  }
  /* The steps share the line of the stamp and of « Question 2 sur 4 », and an answer is a line: the tallest question,
     the five rarities, holds in the height of the card beside it. */
  .mq-card.mq-ed > :is(.mq-qtop, .mq-steps) {
    grid-row: 1;
  }
  .mq-card.mq-ed > .mq-steps {
    justify-self: center;
    align-self: center;
  }
  .mq-card.mq-ed > .mq-q {
    grid-row: 2;
  }
  .mq-card.mq-ed > :is(.mq-list, .mq-grid2) {
    grid-row: 3;
  }
  .mq-card.mq-ed > .mq-note {
    grid-row: 4;
  }
  .mq-card.mq-ed > :is(.mq-counted, .mq-links) {
    grid-row: 5;
    min-height: 22px;
  }
  .mq-card.mq-ed > .mq-links .link-btn {
    padding-block: 2px;
  }
  .mq-card.mq-ed .mq-ans:not(.mq-ansimg) {
    min-height: 40px;
    padding: 6px 16px;
  }
  /* The five rarities are never a list to scroll (owner, 10/10/2026): when the question or the link under them
     takes a second line, the rows give the height back, down to 32px each, instead of the list scrolling by 2px. */
  .mq-card.mq-ed > .mq-list:has(> .mq-ans > .mq-rdot) {
    overflow: visible;
  }
  .mq-card.mq-ed > .mq-list:has(> .mq-ans > .mq-rdot) > .mq-ans {
    min-height: 32px;
    padding-block: 2px;
  }
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) {
    row-gap: 14px;
  }
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > .mq-txt .mq-desc {
    font-size: 20px;
  }
  .mq-card:is(.mq-new, :has(> .mq-go [data-up])) > .mq-go .btn {
    min-height: 52px;
    font-size: 18px;
  }
  /* On a short window the five choices and the description give back the height the tile lost, in proportion. */
  .mq-card:has(> .mq-go [data-up]) > .mq-go .btn {
    min-height: clamp(40px, calc((var(--mq-tile, 468px) - 260px) / 5), 52px);
    padding-block: 4px;
  }
  .mq-card:has(> .mq-go [data-up]) > .mq-txt .mq-desc {
    font-size: clamp(16px, calc(var(--mq-tile, 468px) * 0.0427), 20px);
    line-height: 1.35;
  }
  /* The tile has the window's height and no other (owner, 10/10/2026): the voices stand at its foot, the text's
     slot is above them, and the card's frame has the tile's height. No meme makes any of them taller. The tile's
     height is a floor: the reasons under « Pas un meme » (24/10/2026) made the voices taller than the tile, and the
     slot above them, squeezed to nothing, cut the « 1 vote · YouTube » line in half (30/10/2026). */
  .mq-card:has(> .mq-go [data-up]) {
    min-height: var(--mq-tile, 468px);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  /* Two lines of description and the votes, for every meme: a fixed slot, so the next meme never moves the voices. */
  .mq-card:has(> .mq-go [data-up]) > .mq-txt {
    --mq-lines: 2;
    grid-row: 1;
    height: calc(var(--mq-lines) * 1.35 * clamp(16px, calc(var(--mq-tile, 468px) * 0.0427), 20px) + 28px);
    min-height: 0;
    justify-content: start;
    /* Against the question: a short description, or none, leaves its room above, by the card's top. */
    align-content: end;
  }
  .mq-card:has(> .mq-go [data-up]) > .mq-txt > .mq-meta {
    justify-content: flex-start;
  }
  .mq-card:has(> .mq-go [data-up]) > .mq-go {
    grid-row: 2;
  }
  /* A description opened on a tap is read whole: the tile follows it down, the card stays the size it had. */
  .mq-card:has(> .mq-go [data-up]):has(> .mq-txt > .mq-desc[data-open]) > .mq-photo {
    bottom: auto;
  }
  /* A short tile (sizeTile): the question and the five rarities tighten, so none of them runs over the line under
     it and the list never scrolls. */
  .memo[data-short] .mq-card.mq-ed {
    row-gap: 7px;
  }
  .memo[data-short] .mq-card.mq-ed > .mq-q {
    font-size: 20px;
  }
  .memo[data-short] .mq-card.mq-ed > .mq-list:has(> .mq-ans > .mq-rdot) {
    gap: 5px;
  }
  .memo[data-short] .mq-card.mq-ed > .mq-list:has(> .mq-ans > .mq-rdot) > .mq-ans {
    flex-basis: 32px;
    padding-block: 0;
    font-size: 15px;
  }
  .memo[data-short] .mq-card.mq-ed > .mq-note {
    font-size: 12px;
  }
  .memo[data-short] .mq-card.mq-ed > .mq-links .link-btn {
    font-size: 14px;
  }
}
/* Between the phone's layout and the full width, the column beside the card is too narrow for the stamp, the four
   steps and « Question 2 sur 4 » on one line: the steps say it, the sentence stays for screen readers. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .mq-card.mq-ed > .mq-qtop > .mq-qn {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* A description longer than its slot (client/memocratie.ts fitStage): its first lines, the rest on a tap. */
.mq-desc.mq-desc-cut {
  cursor: pointer;
}

/* The votes left today, beside « Voter »: the tab's own ink on the game's yellow, orange for the last five. */
.seg-left {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 216, 74, 0.18);
  color: #ffd84a;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.seg-left.is-low {
  background: rgba(255, 138, 92, 0.2);
  color: #ff8a5c;
}
:root[data-theme="light"] .seg-left {
  background: #ffd84a;
  color: #5c3a00;
}
:root[data-theme="light"] .seg-left.is-low {
  background: #ffd3bf;
  color: #b23c00;
}

/* ---------- framing a photo ---------- */

/* The card's own photo window (1.3277:1, .k2-art in cards/face.css): what shows in it is what the card will show.
   The photo is placed by its box (client/memocratie.ts), never by object-fit. While the photo is read, the window
   is the game's skeleton (.skel, app.css) at the same place and size: nothing moves when the photo comes. */
.mq-crop {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1.3277;
  overflow: hidden;
  /* A ring, not a border: the photo's box is measured against the window's whole width. */
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 14px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.mq-crop:not(.skel) {
  background: #000;
}
.mq-crop.skel {
  border-radius: 14px;
  cursor: progress;
}
/* Over the game's own `body.app *` (touch-action: manipulation, app.css), which would hand the drag to the page's
   scroll after a few pixels: the finger moves the photo and nothing else. */
.sheet .mq-crop {
  touch-action: none;
}
.mq-crop:active {
  cursor: grabbing;
}
.mq-crop img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* The card lays its title over the top of its window and fades the foot into its text (the mask of .k2-art, 24 %
   and 16 %): the same two shades here, so a face is not placed where the card will cover it. */
.mq-crop:not(.skel)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 10, 16, 0.78), transparent 24%, transparent 84%, rgba(8, 10, 16, 0.78));
  pointer-events: none;
}
/* The lesson's line: what to do now, in a few words, where the eye already is (under the card). */
.mq-crop-step {
  margin: 0;
  min-height: 22px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 22px;
  color: var(--text);
}
/* The zoom, as a game's: a round « − », a thick rail, a round « + », all three made for a thumb. The rail fills
   with the game's active colour up to its knob (--fill, client/memocratie.ts). */
.mq-crop-zoom {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}
.mq-crop-zoom button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.mq-crop-zoom button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: none;
}
.mq-crop-zoom button:disabled {
  background: var(--inerte-fond);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}
.mq-crop-zoom input {
  --fill: 0%;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.mq-crop-zoom input::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--active-bg) var(--fill), var(--surface-2) var(--fill));
  box-shadow: inset 0 0 0 1px var(--line);
}
.mq-crop-zoom input::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--active-bg) var(--fill), var(--surface-2) var(--fill));
  box-shadow: inset 0 0 0 1px var(--line);
}
.mq-crop-zoom input::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -9px;
  border: 3px solid var(--page);
  border-radius: 50%;
  background: var(--active-bg);
  box-shadow: 0 0 0 1px var(--line);
  -webkit-appearance: none;
  appearance: none;
}
.mq-crop-zoom input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid var(--page);
  border-radius: 50%;
  background: var(--active-bg);
  box-shadow: 0 0 0 1px var(--line);
}
.mq-crop-zoom input:disabled {
  cursor: default;
}
/* The finger of the lesson (client/memocratie.ts): it presses the card, drags the photo one way then the other,
   and the photo goes with it, by --demo-x / --demo-y, which never take it past its own edge. */
.mq-crop,
.mq-cropcard {
  position: relative;
}
.mq-finger {
  display: none;
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 44%;
  margin: 0 0 0 -8px;
  font-size: 46px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}
.is-demo > .mq-finger {
  display: block;
}
@keyframes mq-demo {
  0%, 18%, 100% { transform: translate(0, 0); }
  45% { transform: translate(var(--demo-x, 0), var(--demo-y, 0)); }
  80% { transform: translate(calc(var(--demo-x, 0px) * -1), calc(var(--demo-y, 0px) * -1)); }
}
@keyframes mq-finger {
  0%, 100% { transform: translate(0, 0) scale(1.12); }
  18% { transform: translate(0, 0) scale(1); }
  45% { transform: translate(var(--demo-x, 0), var(--demo-y, 0)) scale(1); }
  80% { transform: translate(calc(var(--demo-x, 0px) * -1), calc(var(--demo-y, 0px) * -1)) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .is-demo > .mq-finger {
    animation: mq-finger 2.6s ease-in-out infinite;
  }
  .mq-crop.is-demo > img,
  .mq-cropcard.is-demo .k2 > .k2-art img {
    animation: mq-demo 2.6s ease-in-out infinite;
  }
}
/* The sheet is one narrow column, as wide as its card needs, on a tablet and a computer as on a phone: the zoom
   and « Valider » stay under the card, not stretched across the screen. */
.sheet-card:has(.mq-crop-zoom) {
  width: min(460px, 100%);
}
/* A phone held on its side has no height for a column: the sticky bar covered the card (seen at 844 × 390,
   10/10/2026). The card stands on the left, as tall as the screen allows, and the line, the zoom and the two
   actions stack beside it; nothing sticks, nothing scrolls. */
@media (orientation: landscape) and (max-height: 520px) {
  .sheet-card:has(.mq-crop-zoom) {
    width: min(640px, 100%);
  }
  .sheet-body:has(> :is(.mq-crop, .mq-cropcard)) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 18px;
    align-items: center;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .sheet-body:has(> :is(.mq-crop, .mq-cropcard)) > h2 {
    grid-column: 1 / -1;
  }
  .sheet-body > :is(.mq-crop, .mq-cropcard) {
    grid-column: 1;
    grid-row: 2 / span 3;
    align-self: start;
  }
  .sheet-body > .mq-cropcard {
    height: max(150px, calc(100dvh - 150px));
    min-height: 0;
  }
  .sheet-body > .mq-crop {
    width: min(44vw, 300px);
  }
  .sheet-body:has(> :is(.mq-crop, .mq-cropcard)) > :is(.mq-crop-step, .mq-crop-zoom, .sheet-bar) {
    grid-column: 2;
  }
  .sheet-body:has(> :is(.mq-crop, .mq-cropcard)) > .sheet-bar {
    position: static;
    align-self: start;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 2px;
    background: none;
  }
}
/* The photo placed on the card itself: the game's face of the meme (client/memocratie.ts frame), as tall as the
   sheet of the phone allows with its zoom and its two actions on screen (320 × 568 included). Its photo window is
   the only thing that takes the finger; the title over it and the frame are the card's own. */
.mq-cropcard {
  display: grid;
  place-items: center;
  height: min(48dvh, calc(100dvh - 362px), 430px);
  min-height: 190px;
}
/* The whole card takes the finger (.mq-face lets nothing through elsewhere): its window is small on a phone. */
.mq-cropcard .mq-face {
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.mq-cropcard .mq-face:active {
  cursor: grabbing;
}
/* Over the game's own `body.app *` (touch-action: manipulation, app.css), for the card and all it holds. */
.sheet .mq-cropcard .mq-face,
.sheet .mq-cropcard .mq-face * {
  touch-action: none;
}
.mq-cropcard .k2 > .k2-art {
  background: #000;
}
/* Around a photo zoomed out under the window, the photo itself blurred and darkened (client/photo-frame.ts SOFT_W
   and SOFT_SHADE cut it the same way): the card never shows a bare black band. Past its edges by the blur's width. */
.mq-crop-soft {
  position: absolute;
  inset: -8%;
  background: center / cover no-repeat;
  filter: blur(12px) brightness(0.6);
  pointer-events: none;
}
.mq-crop-soft[hidden] {
  display: none;
}
.mq-cropcard .k2 > .k2-art img {
  inset: auto;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* While the photo is read: the card is there, whole, and its window alone waits, with the face's own shimmer
   (k2-skel, cards/face.css). */
.mq-cropcard.is-wait .mq-face {
  cursor: progress;
}
.mq-cropcard.is-wait .k2 > .k2-art {
  background: color-mix(in srgb, var(--k2-glow) 18%, rgba(255, 255, 255, 0.05));
}
.mq-cropcard.is-wait .k2 > .k2-art::before {
  content: "";
  display: block;
  position: absolute;
  inset: auto;
  top: 0;
  left: 0;
  width: 300%;
  height: 100%;
  transform: translateX(-33.333%);
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
  filter: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mq-cropcard.is-wait .k2 > .k2-art::before {
    animation: k2-skel 1.2s linear infinite;
  }
}
/* One main action; keeping the photo whole is the way out, said as a link under it and never on two lines. */
.sheet-bar .mq-crop-whole {
  justify-self: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}
/* The sheet of a small phone (320 px) holds the photo, the zoom and both actions without scrolling. */
.sheet-body:has(> :is(.mq-crop, .mq-cropcard)) {
  gap: 10px;
}

/* « + La mienne » wears the photo on its way (client/memocratie.ts addImage): the tile it will stand in. */
.mq-ansimg.add.is-sending {
  padding: 6px;
  pointer-events: none;
}
.mq-ansimg.add.is-sending > :not(img) {
  display: none;
}
/* The line runs the whole row: the photo keeps a tile's size in it, not the row's width. */
.mq-ansimg.add.is-sending > img {
  align-self: center;
  width: auto;
  height: 112px;
}


/* ---------- « Corriger »: the vote on a card's correction (client/memocratie-fixes.ts) ---------- */

/* The card on the left, always: small beside the question on a phone, large beside everything on a computer. */
.cx-card {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
}
.cx-card > .cx-body {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.cx-head {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.cx-head .mq-q {
  text-align: left;
}
.cx-head .mq-qtop {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.cx-head .mq-stamp {
  white-space: nowrap;
}
.cx-face {
  width: 100%;
  height: auto;
}
/* What the request names, as plain labels: nothing to tap. */
.cx-what {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cx-what li {
  padding: 4px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
/* The request: who asked, then their own words in a bubble. */
.cx-who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.cx-who b {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cx-who span {
  white-space: nowrap;
}
.cx-who i {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
/* The request: who asked, then their own words, in one bubble. */
.cx-quote {
  padding: 10px 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  background: var(--surface-2);
}
.cx-said {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
/* A correction written on the card: each text it changes, the card's above the player's, in the request's bubble. */
.cx-diff {
  display: grid;
  gap: 10px;
  margin: 6px 0 2px;
}
.cx-diff-row {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.cx-diff-k {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cx-was, .cx-new {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin: 0;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.cx-was .cx-tag, .cx-new .cx-tag {
  position: relative;
  top: -1px;
  min-width: 64px;
  box-sizing: border-box;
  text-align: center;
}
.cx-was {
  color: var(--muted);
}
.cx-new {
  color: var(--heading);
}
.cx-new .cx-tag {
  border-color: var(--gold);
  color: var(--gold-text);
}
.cx-diff-v {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
/* Said above the answers: nobody has proposed anything yet, or the player's own answer was not kept. */
.cx-invite {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cx-diff + .cx-said {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid var(--line);
}
.cx-note {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* The line of who asked folds on the narrowest phones instead of pushing the bubble past the screen. */
.cx-who {
  flex-wrap: wrap;
  row-gap: 2px;
}
/* On a phone each text's label goes above it, as the answers' do: beside it, a description runs in a narrow column. */
@media (max-width: 419px) {
  .cx-was, .cx-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cx-was .cx-tag, .cx-new .cx-tag {
    top: 0;
    min-width: 0;
    margin: 0;
    padding: 1px 6px;
    font-size: 9.5px;
  }
}
/* Who wrote an answer: the card as it is (dashed), the model, the requester or another player. */
.cx-tag {
  flex: none;
  margin-right: 8px;
  padding: 3px 7px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cx-tag.now {
  border-style: dashed;
}
.cx-row {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}
.cx-row .mq-val {
  min-width: 0;
}
.mq-ansimg > .cx-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  margin: 0;
  background: var(--surface);
}
/* Three pictures side by side, so the question stays on one phone screen; the « + » runs under them. */
.cx-grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cx-grid3.cx-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cx-grid3 > .mq-ansimg.add {
  grid-column: 1 / -1;
}
.cx-grid3 > .mq-ansimg.add {
  padding: 6px;
}
.cx-grid3 > .mq-ansimg.add .mq-plus {
  min-height: 36px;
}
.cx-end {
  justify-items: center;
  text-align: center;
}
.cx-after {
  width: 150px;
  margin: 4px auto 0;
}
.cx-cap {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.cx-end .btn {
  width: 100%;
  max-width: 360px;
}
/* On a phone the author goes above the text: beside it, it would break a title into three short lines. */
@media (max-width: 419px) {
  .cx-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cx-row .cx-tag {
    margin: 0;
    padding: 1px 6px;
    font-size: 9.5px;
  }
  .cx-card .mq-list > .mq-ans {
    min-height: 44px;
    padding-block: 9px;
  }
  .cx-card .mq-list {
    gap: 8px;
  }
  .cx-grid3 > .mq-ansimg > .cx-tag {
    top: 8px;
    left: 8px;
    padding: 1px 5px;
    font-size: 9px;
  }
}
/* On a computer: the card large on the left, the request and the answers on the right. */
@media (min-width: 1000px) {
  /* The card's height goes to the second row: the question stays right above its answers, never a gap between. */
  .cx-card {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 32px;
  }
  .cx-card > .cx-body {
    align-self: start;
  }
  .cx-left {
    position: sticky;
    top: 16px;
    grid-row: 1 / 3;
  }
  .cx-card > .cx-body {
    grid-column: 2;
  }
  .cx-head .mq-q {
    font-size: 26px;
  }
}
/* Four tabs (« Corriger » joined them): on a computer the bar grows to hold them with the same air as three; on a phone
   a point smaller, so « Mes memes » keeps its room at 360 px. */
@media (min-width: 1000px) {
  .memo .seg {
    max-width: 600px;
  }
  .memo .seg button {
    padding-inline: 14px;
  }
}
/* A language whose four words do not fit (Korrigieren, Голосовать) slides the bar itself, as the charte has rows do,
   never the page; the open tab is brought into view (client/memocratie.ts). */
@media (max-width: 999px) {
  .memo .seg {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  /* What the bar still holds past its edge fades out there: more to slide to, not a word cut off. */
  .memo .seg[data-fade="end"] {
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  .memo .seg[data-fade="start"] {
    mask-image: linear-gradient(to left, #000 82%, transparent);
  }
  .memo .seg[data-fade="both"] {
    mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  }
  .memo .seg::-webkit-scrollbar {
    display: none;
  }
  .memo .seg button {
    flex: 1 0 auto;
    scroll-snap-align: center;
  }
}
@media (max-width: 419px) {
  .memo .seg {
    gap: 2px;
  }
  .memo .seg button {
    gap: 4px;
    padding-inline: 4px;
    font-size: clamp(12px, 3.6vw, 14px);
  }
  .memo .seg .seg-left {
    min-width: 0;
    padding: 0 5px;
  }
}
/* What « Renvoyer au vote » does, right above it: the votes start again, and it is one of the day's sends. */
.mq-reset {
  margin: 0;
  display: grid;
  gap: 2px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}
.mq-reset small {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- « Même meme ? »: the vote on a pair of duplicates (client/memocratie-doublons.ts) ---------- */

/* The two cards side by side at every width, phone first: a pair read in two columns is the question itself, and
   stacking them would hide one of the two behind a scroll. */
.dx-card {
  justify-items: stretch;
}
/* The answers come right under the two cards, the line on what a « oui » does under the answers: on a 360 × 740
   phone, Oui and Non above the tab bar without scrolling. */
.dx-head {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}
.dx-head > p {
  margin: 0;
}
.dx-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
/* Each card fills its column: centred, a face sized on its own content took its height instead, 108 px wide on a
   computer while the screen after the answer drew it four times larger. */
.dx-one {
  display: grid;
  gap: 6px;
  min-width: 0;
  justify-items: stretch;
}
.dx-face {
  width: 100%;
  height: auto;
}
.dx-hint {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}
.dx-go {
  gap: 8px;
}
/* « Je ne sais pas »: a way out that is not a vote, so it never looks like one. */
.dx-skip {
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}
.dx-skip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.dx-end {
  justify-items: center;
  text-align: center;
}
/* The tile centres its stamp and its line; the two cards keep their own alignment, as on the question before. */
.dx-end .dx-pair {
  width: 100%;
  text-align: start;
}
.dx-end .btn {
  width: 100%;
  max-width: 360px;
  margin: 0;
}
/* A phone wide but short (430 × 741, Safari on an iPhone) draws the cards so tall that the answers fall under the tab
   bar: the pair is held to the screen's height, in the question and in the stamp alike so the cards never change size
   between the two. */
@media (max-width: 699px) {
  .dx-pair {
    width: 100%;
    max-width: calc(100svh * 0.41);
    justify-self: center;
  }
}
/* Under 360 px the two cards and the tile's padding leave each face about 130 px. */
@media (max-width: 359px) {
  .dx-pair {
    gap: 6px;
  }
}
/* On a computer the pair stops growing with the tile: two half-screen cards would be a poster, not a question. */
/* On a computer the pair, the answers and the way out share one column: two half-screen cards would be a poster, and
   a button as wide as the page is not read as the answer to the two cards above it. */
@media (min-width: 700px) {
  .dx-pair,
  .dx-go,
  .dx-skip {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}
/* A computer's screen is wide and short, and the page's head already takes half of it: the question lies on its
   side as the vote's card does at that width, the pair on the left and what to answer beside it, so Oui and Non
   are on screen with the two cards they answer. */
@media (min-width: 1000px) {
  .dx-card,
  .dx-end {
    grid-template-columns: minmax(0, 360px) minmax(0, 420px);
    justify-content: center;
    align-content: center;
    column-gap: 32px;
    row-gap: 12px;
  }
  .dx-card > .dx-pair,
  .dx-end > .dx-pair {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
    max-width: 360px;
  }
  .dx-card > :not(.dx-pair),
  .dx-end > :not(.dx-pair) {
    grid-column: 2;
  }
  .dx-card > .dx-head {
    grid-row: 1;
    align-self: end;
  }
  .dx-card > .dx-go {
    grid-row: 2;
  }
  .dx-card > .dx-hint {
    grid-row: 3;
  }
  .dx-card > .dx-skip {
    grid-row: 4;
    align-self: start;
  }
  .dx-end > .mq-stamp {
    grid-row: 1;
    align-self: end;
    justify-self: center;
  }
  .dx-end > .mq-desc {
    grid-row: 2;
  }
  .dx-end > .btn {
    grid-row: 3;
    align-self: start;
    justify-self: center;
  }
  .dx-go,
  .dx-skip {
    max-width: none;
  }
}

/* After a « oui »: the parts of the merged card, asked as « Corriger » asks its parts (.cx-card). A description is
   four or five lines: at a title's size the second answer fell under the tab bar of a 360 × 740 phone. */
.dx-long .mq-val {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
.cx-card .dx-long > .mq-ans {
  padding-block: 8px;
}
/* Under 380 px « Question 2 sur 3 » falls under the « OUI » stamp and takes a line of its own: the steps 1 2 3 right
   under it already say where the player is. */
@media (max-width: 379px) {
  .dx-q .mq-qtop .mq-qn {
    display: none;
  }
}
/* The stamp after a « oui » shows the merged card: on a short phone it gives way, so « Paire suivante » stays above
   the tab bar. */
@media (max-height: 760px) and (max-width: 699px) {
  .dx-yes .cx-after {
    width: 118px;
  }
}

/* ---------- Top contributeurs (client/memocratie-top.ts) ---------- */

.mqt .back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: -8px 0 0;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}
.mqt .mq-head {
  margin-bottom: 2px;
}
.mqt-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
/* Each tab carries the glyph its figure wears in every row: the tabs are the rows' legend. */
.mqt-seg button {
  gap: 5px;
  min-width: 0;
  padding-inline: 6px;
}
.mqt-seg button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mqt-g {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  font-style: normal;
}
.mqt-g svg {
  width: 100%;
  height: 100%;
}
.mqt-g .coin-mark {
  width: 15px;
  height: 15px;
  margin: 0;
}
/* One height for every row, the skeleton's included: an avatar's ring or a figure's unit never moves the list. */
.mqt-list a {
  height: 72px;
  box-sizing: border-box;
}
.mqt-stats {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mqt-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mqt-stats .mqt-g {
  width: 13px;
  height: 13px;
}
.mqt-stats .mqt-g .coin-mark {
  width: 13px;
  height: 13px;
}
.mqt-val {
  display: grid;
  justify-items: end;
  line-height: 1.1;
}
.mqt-val b {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="light"] .mqt-val b {
  color: var(--gold-text, #8a5a12);
}
.mqt-val small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.mqt-val .amt {
  font-size: 17px;
  font-weight: 900;
}
/* The first three wear the ranking's metals (app.css .rk-vt), on their number alone. */
.mqt-list li[data-m] .rl-pos {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #1a1205;
  font-size: 14px;
  background: linear-gradient(115deg, var(--mA) 0%, var(--mD) 22%, var(--mB) 38%, var(--mC) 46%, var(--mB) 54%, var(--mD) 72%, var(--mA) 100%);
}
.mqt-list li[data-m="1"] { --mA: #8a5a12; --mB: #f2c75a; --mC: #fff3c4; --mD: #c9902a; }
.mqt-list li[data-m="2"] { --mA: #5d6673; --mB: #d3dae4; --mC: #ffffff; --mD: #9aa5b4; }
.mqt-list li[data-m="3"] { --mA: #6b3416; --mB: #df8f59; --mC: #ffd9b8; --mD: #a85c2c; }
:root[data-theme="light"] .mqt-list li[data-m="2"] { --mA: #4b5361; --mB: #8d97a6; --mC: #c9d0da; --mD: #6b7584; }
.mqt-gap {
  text-align: center;
  color: var(--muted);
  font-weight: 900;
  line-height: 1;
}
.mqt-in,
.mqt-none {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 0 4px;
  text-align: center;
}
.mqt-none p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.mqt-in .btn,
.mqt-none .btn {
  min-width: 0;
  max-width: 100%;
}
.mqt-how {
  margin: 14px 2px 0;
  font-size: 12.5px;
  line-height: 1.45;
}
.mqt[data-skel] .mqt-list .rl-pos {
  color: transparent;
}
@media (max-width: 599px) {
  .mqt-list a {
    grid-template-columns: 26px 40px minmax(0, 1fr) auto;
    column-gap: 8px;
    padding-inline: 6px 10px;
  }
  .mqt-stats {
    gap: 7px;
    font-size: 12px;
  }
  .mqt-stats > span {
    gap: 2px;
  }
  .mqt-val b,
  .mqt-val .amt {
    font-size: 16px;
  }
  /* Four tabs and « Corrections » do not hold on one line at 360 px: the glyph goes over its word, as a game's tabs. */
  .mqt-seg button {
    flex-direction: column;
    gap: 3px;
    min-height: 54px;
    padding: 6px 2px;
    font-size: 12.5px;
    line-height: 1.1;
  }
  .mqt-seg .mqt-g,
  .mqt-seg .mqt-g .coin-mark {
    width: 17px;
    height: 17px;
  }
}
/* On a computer the list keeps a phone's reading width: a name and its figure 900 px apart no longer read as one row. */
@media (min-width: 1000px) {
  .mqt .mqt-seg {
    max-width: none;
  }
  .mqt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }
  .mqt-list > :is(.mqt-gap, .mqt-none, .mqt-in) {
    grid-column: 1 / -1;
  }
}

/* ---------- MEMELORD (client/memocratie-memelord.ts) : le classement de la confiance, la fiche d'un joueur ---------- */

/* The page's name, for a reader of the screen: the switch under it already says it on screen. */
.ml-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The switch over both boards, MEMELORD first: links, drawn as the game's segmented tabs. */
.ml-switch {
  margin: 0 0 10px;
}
.memo.mqt .ml-switch a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
}
.memo.mqt .ml-switch a[aria-current] {
  background: var(--page);
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--trait-btn);
}
.ml-switch span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The player's own card, one row: the score, their place and the trust they gave, the way to their history. */
.ml-own {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "n go" "s go";
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 8px;
  padding: 10px 10px 10px 14px;
  min-height: 68px;
  box-sizing: border-box;
}
.ml-own-n {
  grid-area: n;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.ml-own-n small {
  margin-left: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.ml-own-s {
  grid-area: s;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.ml-own-s > b {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.ml-own-trusts {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.ml-own-trusts > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-own-trusts svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: #e5484d;
}
.ml .ml-own-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
  white-space: nowrap;
}
.ml-own-go svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.ml-own-go.skel {
  width: 120px;
}
/* Not ranked yet: what is left before a score, its meter, and the way to vote. */
.ml-own-new {
  grid-template-areas: "s go";
}
.ml-own-new .ml-own-s {
  display: grid;
}
.ml-meter {
  display: block;
  height: 6px;
  margin-top: 2px;
  border-radius: 99px;
  overflow: hidden;
  background: color-mix(in srgb, var(--muted) 25%, transparent);
}
.ml-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f2c75a;
}

/* The two gestures of the board, said once over the list. */
.ml-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0 2px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.ml-tips svg {
  width: 13px;
  height: 13px;
  margin-right: 1px;
  vertical-align: -1px;
  color: #e5484d;
}

/* A row: the card opens the history, the heart at its right gives trust. One height for every row, the skeleton's
   included; the row keeps room for the heart. */
.ml-list > li {
  position: relative;
}
.ml-list .rl-pos {
  color: var(--muted);
  font-weight: 700;
}
/* A row's link carries no class: the light theme's rule for bare links would write every name in amber. */
.memo.mqt .mqt-list > li > a {
  color: var(--text);
}
.ml-list > li > a {
  height: 64px;
  padding-right: 60px;
}
.ml-list > li.me > a {
  padding-right: 14px;
}
.ml-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.ml-trust {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ml-trust svg {
  width: 12px;
  height: 12px;
  color: #e5484d;
}
.ml-hist {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.ml-hist svg {
  flex: none;
  width: 13px;
  height: 13px;
}
.ml-score b {
  color: var(--gold);
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ml-heart {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  cursor: pointer;
}
.ml-heart svg {
  width: 21px;
  height: 21px;
}
.ml-heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.ml-heart[aria-pressed="true"] {
  color: #e5484d;
  background: color-mix(in srgb, #e5484d 15%, transparent);
}
.ml-heart[aria-pressed="true"] path {
  fill: currentColor;
}
.ml-heart.skel {
  pointer-events: none;
}

.ml-how {
  margin: 12px 0 0;
  padding: 0;
}
.ml-how summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}
.ml-how .ml-how-lead {
  margin: 0 14px 8px;
  color: var(--text);
  font-weight: 800;
}
.ml-how ul {
  margin: 0;
  padding: 0 14px 0 32px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.4;
}
.ml-how p {
  margin: 10px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ml-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* One height for every item, the skeleton's included: a picture or a long title never moves the list. */
.ml-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas: "pic t" "pic s";
  align-items: center;
  gap: 2px 12px;
  height: 68px;
  padding: 6px 12px 6px 6px;
  box-sizing: border-box;
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 9%, transparent);
}
.ml-thumb {
  grid-area: pic;
  display: block;
  width: 40px;
  height: 56px;
  border-radius: 5px;
  object-fit: cover;
}
.ml-thumb-none {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}
.ml-item-t {
  grid-area: t;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.ml-item-s {
  grid-area: s;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.ml-verdict,
.ml-right {
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 16%, transparent);
}
.ml-verdict[data-v="card"],
.ml-right[data-right="true"] {
  color: #1db36b;
  background: color-mix(in srgb, #1db36b 15%, transparent);
}
.ml-verdict[data-v="refused"],
.ml-right[data-right="false"] {
  color: #e5484d;
  background: color-mix(in srgb, #e5484d 13%, transparent);
}
:root[data-theme="light"] .ml-verdict[data-v="card"],
:root[data-theme="light"] .ml-right[data-right="true"] {
  color: #0f7a46;
}
:root[data-theme="light"] .ml-verdict[data-v="refused"],
:root[data-theme="light"] .ml-right[data-right="false"] {
  color: #b4232a;
}
.ml-none {
  padding: 18px 8px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.ml-more {
  display: grid;
  justify-items: center;
  padding-top: 6px;
}
.ml-secret {
  margin: 12px 2px 0;
  font-size: 12.5px;
  line-height: 1.4;
}

/* Light theme: the figures and the selected tab write in the page's ink. No amber brown. */
:root[data-theme="light"] .ml-own-n,
:root[data-theme="light"] .ml-score b,
:root[data-theme="light"] .lp-score,
:root[data-theme="light"] .mqt .seg button[aria-selected="true"] {
  color: var(--text);
}


/* The way in under an empty list: a button, not one more row (.rank-list a would draw it as a 72 px grid row). */
.mqt-list .mqt-in a.btn,
.mqt-list .mqt-none a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-fond);
  color: var(--btn-encre);
  font-weight: 900;
  text-align: center;
}

/* A player's Memelords tab on their profile (client/memelords-profile.ts): one panel over the memes proposed, made of
   three sections — SCORE (the number, the place, one 0–1000 bar split by its three parts, a row per part, the how-to
   folded), VOICE (how much the vote weighs) and the one GESTURE (share one's link, or « Confiance ») — then the board
   link. Sections are split by hairlines, never boxed inside the panel. From 600 px of slot the score takes the left
   column and the voice and the gesture the right one. Every row has a fixed height, so the skeleton (the same markup
   with grey figures) is the finished panel's exact shape. */
.lp-slot { container-type: inline-size; }
.lp {
  display: grid;
  margin: 0 0 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lp > *, .lp-side > * { min-width: 0; }
.lp-sec {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}
.lp-side { display: grid; }
.lp-side > .lp-sec, .lp-side + .lp-board { border-top: 1px solid var(--line); }
.lp-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* SCORE */
.lp-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: -4px;
}
.lp-n {
  flex: none;
  height: 40px;
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-n small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.lp-place {
  min-width: 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: right;
  text-wrap: balance;
}
.lp-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--muted) 22%, transparent);
}
.lp-seg { display: block; flex: none; height: 100%; }
/* A sliver of a dark gap between two parts, so a small part still reads as its own piece. */
.lp-seg + .lp-seg { box-shadow: inset 2px 0 0 var(--surface); }
.lp-seg-0 { background: var(--gold); }
.lp-seg-1 { background: color-mix(in srgb, var(--text) 72%, transparent); }
.lp-seg-2 { background: #e5484d; }
.lp-seg-wait { background: var(--gold); border-radius: 999px; }
.lp-parts {
  display: grid;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.lp-parts li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 0;
  box-sizing: border-box;
}
.lp-parts li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.lp-pl { display: grid; gap: 1px; min-width: 0; }
.lp-pl > b { overflow-wrap: anywhere; }
.lp-pl > b {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
}
.lp-fact {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.lp-pts {
  color: var(--gold-text, var(--gold));
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.lp-ic svg { width: 16px; height: 16px; }
.lp-ic-vote { color: var(--gold); background: color-mix(in srgb, var(--gold) 18%, transparent); }
.lp-ic-card { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
.lp-ic-heart { color: #e5484d; background: color-mix(in srgb, #e5484d 15%, transparent); }
.lp-ic-heart svg { fill: currentColor; stroke: none; }
/* A meme the team removed: its row says the points it cost, in the refusals' red (client/memelords-profile.ts). */
.lp-ic-minus { color: #e5484d; background: color-mix(in srgb, #e5484d 15%, transparent); }
.lp-minus .lp-pts { color: #e5484d; }
:root[data-theme="light"] .lp-minus .lp-pts { color: #b4232a; }
/* Who trusts: up to four faces overlapped on the trust row's fact line, one button (44 px to the finger) that unfolds
   every face with its handle under the rows. */
.lp-stack {
  position: relative;
  display: inline-flex;
  flex: none;
  margin: -3px 0;
  padding: 0 0 0 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.lp-stack::before { content: ""; position: absolute; inset: -10px -8px; }
.lp-stack > span { display: block; width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.lp-stack :is(.av, .avatar-letter) { --size: 24; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; line-height: 24px; overflow: hidden; }
.lp-faces {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.lp-faces li { flex: none; scroll-snap-align: start; }
.lp-faces a {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 68px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.lp-faces :is(.av, .avatar-letter) { --size: 44; width: 44px; height: 44px; border-radius: 50%; }
.lp-faces a > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The how-to, folded: one line per part once opened. */
.lp-howto { margin-top: -2px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.lp-howto summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-bottom: -16px;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.lp-howto summary::-webkit-details-marker { display: none; }
.lp-howto summary svg { flex: none; width: 14px; height: 14px; transition: transform 0.2s ease; }
.lp-howto[open] summary { margin-bottom: 0; }
.lp-howto[open] summary svg { transform: rotate(90deg); }
.lp-howto ul { display: grid; gap: 10px; margin: 0; padding: 0 0 2px; list-style: none; }
.lp-howto li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.lp-howto .lp-ic { width: 22px; height: 22px; }
.lp-howto .lp-ic svg { width: 12px; height: 12px; }

/* VOICE — the factor, a bar centred on ×1 with the player's tick, the scale, one sentence. */
.lp-vtop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.lp-vtop b {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 20px;
}
.lp-wx {
  color: var(--gold-text, var(--gold));
  font-size: 22px;
  font-weight: 900;
  line-height: 26px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-voice-off .lp-wx { color: var(--muted); }
.lp-wbar {
  position: relative;
  height: 10px;
  margin-top: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 22%, transparent);
}
.lp-wmid {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 2px;
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.6;
  transform: translateX(-1px);
}
.lp-wbar i {
  /* Clamped so the knob stays inside the bar at either end. */
  position: absolute;
  top: -2px;
  left: clamp(7px, var(--x), calc(100% - 7px));
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--surface);
}
.lp-voice-off .lp-wbar i { background: var(--muted); }
/* Every voice the same: the scale's ends would promise a range that does not exist. */
.lp-voice-flat .lp-wscale span:not(:nth-child(2)) { visibility: hidden; }
.lp-wscale {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
}
.lp-voice p, .lp-act p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

/* GESTURE — the one action of the panel: share (own) or « Confiance » (anyone else's). */
.lp-share-btn, .lp-trust-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
}
.lp-share-btn { min-width: 0; max-width: 100%; margin: 0; padding: 10px 18px; font-size: 17px; line-height: 1.2; text-wrap: balance; }
.lp-share-btn svg { flex: none; width: 18px; height: 18px; }
.lp-trust-btn {
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: none;
  box-shadow: inset 0 0 0 2px var(--trait-btn, var(--line));
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.lp-trust-btn svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lp-trust-btn[aria-pressed="true"] {
  color: #e5484d;
  background: color-mix(in srgb, #e5484d 12%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, #e5484d 55%, transparent);
}
.lp-trust-btn[aria-pressed="true"] svg { fill: currentColor; }
.lp-trust-btn[data-full] { color: var(--muted); }
.lp-act p { text-align: center; text-wrap: balance; }

/* BOARD link — the panel's foot, a full-width row. */
.lp .lp-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.lp .lp-board svg { flex: none; width: 16px; height: 16px; color: var(--muted); }

/* Skeleton: the same markup, figures grey, the gesture inert. */
.lp[aria-busy="true"] :is(.lp-share-btn, .lp-trust-btn) { pointer-events: none; }
.lp[aria-busy="true"] .lp-n .skel-text { width: 3.2ch; height: 30px; vertical-align: -3px; }
.lp[aria-busy="true"] .lp-fact .skel-text { height: 12px; }

/* Narrow slot (320 px phones): the place drops under the score rather than breaking in two, and the share button
   drops its icon so its words hold on one line (up to the 375 px phones' slot). */
@container (max-width: 350px) {
  .lp-sec { padding: 14px; }
  .lp-top { flex-direction: column; align-items: flex-start; gap: 0; }
  .lp-n { font-size: 30px; }
  .lp-place { text-align: left; }
  .lp-parts li { gap: 10px; }
  .lp-share-btn { padding: 10px; font-size: 14.5px; }
  .lp-share-btn svg { display: none; }
}

/* Wide slot: the score on the left, the voice over the gesture on the right, one hairline between the columns. */
@container (min-width: 600px) {
  .lp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-share-btn { gap: 8px; padding: 10px 12px; font-size: 15px; }
  .lp > .lp-score { grid-column: 1; padding: 18px 20px; }
  .lp > .lp-side { grid-column: 2; grid-template-rows: auto 1fr; border-left: 1px solid var(--line); }
  .lp-side > .lp-sec { padding: 18px 20px; }
  .lp-side > .lp-sec:first-child { border-top: 0; }
  .lp > .lp-board { grid-column: 1 / -1; padding: 0 20px; }
}

/* Section head reused by the votes list under the proposed memes. */
.lp-hh {
  margin: 4px 0 10px;
  font-size: 16px;
  text-align: left;
}

/* The votes: what the player voted → what the meme became, and a mark at the row's end (right, or against the tide). */
.lp-votes .ml-item {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "pic t mark" "pic s mark";
}
.lp-votes .ml-item-s { gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.lp-votes .ml-vote { white-space: nowrap; }
.lp-votes .ml-arrow { flex: none; width: 13px; height: 13px; opacity: 0.8; }
.lp-votes .ml-verdict { padding: 0; background: none; font-size: 12.5px; }
.lp-votes .ml-right {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
}
.lp-votes .ml-right svg { width: 14px; height: 14px; }
.lp-votes .ml-more .btn { width: auto; min-width: 200px; margin: 0; }
@container (min-width: 600px) {
  .lp-votes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-votes > .ml-none, .lp-votes > .ml-more { grid-column: 1 / -1; }
}
.lp-votes-slot { container-type: inline-size; }

/* Light theme: the gold figures read in the page's ink, never the amber-brown (docs/design/charte.md). */
:root[data-theme="light"] .lp-n,
:root[data-theme="light"] .lp-wx,
:root[data-theme="light"] .lp-pts {
  color: var(--text);
}

/* « Mes memes »: the way to the player's own Memelords profile, one row. */
.ml-mine {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 0 0 12px;
  padding: 8px 14px;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
}
.ml-mine span {
  display: grid;
  flex: 1;
  min-width: 0;
}
.ml-mine b {
  font-size: 15px;
}
.ml-mine small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.ml-mine i {
  color: var(--muted);
  font-style: normal;
  font-size: 20px;
}

/* ---------- Le vote en faits (24/10/2026) : la question, les deux liens sous les trois réponses ---------- */
.mq-go .mq-knowq {
  margin: 4px 0 0;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
  text-wrap: balance;
}
.mq-go .mq-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 2px 0 0;
}
.mq-go .mq-links .link-btn {
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
}
/* A player said the meme already has its card without finding it: the line asks the voter, the link opens the search. */
.mq-go .mq-lost {
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  text-wrap: balance;
}
.mq-go .mq-lost .link-btn { color: #a78bfa; font-weight: 900; }
/* The same violet a shade darker on the light theme: #8b5cf6 on white reads under 4.5:1. */
:root[data-theme="light"] .mq-go .mq-lost .link-btn { color: #6d28d9; }

/* ---------- Proposer : ce qu'est un meme, puis les cinq règles à cocher ---------- */
.mq-def {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.mq-def p {
  margin: 0;
}
.mq-def-t {
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
}
.mq-def-b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.mq-def-ex {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.mq-def-ex i {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-style: normal;
  font-size: 13px;
}
.mq-def-ex.is-no i {
  background: var(--mq-bad-bg);
  color: var(--mq-bad);
}
.mq-def-ex.is-yes i {
  background: var(--mq-ok-bg);
  color: var(--mq-ok-ink);
}
.mq-rules {
  display: grid;
  gap: 8px;
}
.mq-rules p {
  margin: 0;
}
.mq-rules-h {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}
.mq-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
/* A rule breaks where the eye expects it: never « on » alone at the end of a line. */
.mq-rule > span {
  text-wrap: pretty;
}
.mq-rule small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.mq-rule i {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--line);
  font-style: normal;
  font-size: 13px;
}
.mq-rule[aria-checked="true"] i {
  background: var(--mq-ok-ink);
  box-shadow: none;
  color: var(--surface);
}
.mq-rule[aria-checked="true"] i::before {
  content: "✓";
}
/* Propose's card, its promise and the guide sit in one column on the left (.mq-side). On a phone that box is not drawn: the card stays
   a row of the form beside the photo's button, and the guide is the tile above the form (mq-def-out). */
.mq-side {
  display: contents;
}
.mq-def-in,
.memo-pk-h {
  display: none;
}
/* The week's line stood flush against the tile under it, on every tab. */
.mq-weekline + .memo-pane {
  margin-top: 12px;
}
/* Across the page (a player, 25/10/2026: « Envoyer » 420px under the fold, then « les éléments sont collés »), Propose
   is two columns with room between their parts: on the left the card, what it will say, and which memes to
   propose; on the right the meme, its pack (five of them in production, two lines), the five rules and « Envoyer »,
   each part apart from the next, all of it in the height of a 1380 x 957 window that still shows the free packs
   banner. */
@media (min-width: 1000px) {
  .mq-def-out {
    display: none;
  }
  .memo .mq-card.mq-new {
    --mq-side: 300px;
    grid-template-columns: var(--mq-side) minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 24px;
    row-gap: 14px;
    min-height: 0;
    padding: 18px;
  }
  .memo .mq-card.mq-new > .mq-side {
    grid-column: 1;
    grid-row: 1 / -1;
    display: grid;
    align-content: start;
    gap: 10px;
  }
  /* The card whole in its frame, the frame the column's width. */
  .memo .mq-card.mq-new > .mq-side > .mq-photo {
    position: relative;
    height: 252px;
    padding: 8px;
    border-radius: 18px;
    background: var(--mq-pack, var(--surface-2));
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
    container-type: size;
  }
  .memo .mq-card.mq-new > .mq-side > .mq-photo .mq-face {
    width: auto;
    height: min(100cqh, 133.9cqw);
  }
  /* The column starts at the card's top, never centred: « Tu penses à… ? » opens under the title being typed, and a
     centred column would move the field under the player's fingers. */
  .memo .mq-card.mq-new > .mq-go {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    gap: 8px;
  }
  .memo .mq-card.mq-new > .mq-side > .mq-txt {
    grid-row: auto;
    text-align: center;
  }
  /* What the card will say, as its caption: no box of its own under the card's frame and above the guide's. */
  .memo .mq-card.mq-new .mq-promise {
    gap: 2px 8px;
    padding: 0 4px;
    background: none;
    box-shadow: none;
  }
  /* The guide, in the card's column: its title, the two lines, then the wrong and the right example, one a line. */
  .mq-def-in {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .mq-def-in .mq-def-t {
    margin-bottom: 2px;
    font-size: 16px;
  }
  .mq-def-in .mq-def-b {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
  }
  .mq-def-in .mq-def-ex.is-no {
    margin-top: 4px;
  }
  .mq-def-in .mq-def-ex {
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 22px;
  }
  /* The parts of the form apart from each other: the meme, its pack, the rules, then « Envoyer ». */
  .memo .mq-card.mq-new .mq-go > :is(.memo-packs, .mq-rules, .memo-send) {
    margin-top: 10px;
  }
  .memo .mq-card.mq-new .mq-go > :is(.mq-pick, label) > :is(input, textarea),
  .memo .mq-card.mq-new .mq-go > .mq-pick {
    min-height: 48px;
  }
  .memo .mq-card.mq-new .memo-desc {
    height: 54px;
    min-height: 54px;
  }
  .memo-pk-h,
  .memo .mq-card.mq-new .mq-rules-h {
    display: block;
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
  }
  /* Every pack on offer in sight, the Permanent Editions with the free packs, wrapped onto lines instead of a row that
     hides them past its edge. */
  .memo .mq-card.mq-new .memo-packs {
    gap: 8px;
  }
  .memo .mq-card.mq-new .memo-pack {
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-block: 0;
  }
  .memo .mq-card.mq-new .mq-rules {
    gap: 5px;
  }
  .memo .mq-card.mq-new .mq-rule {
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
  }
  .memo .mq-card.mq-new .mq-rule > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
  }
  /* When the tile is wide enough (its 864 or 808px inside at 1280 and more, not at 1000), the title stands beside
     the photo's button: judged on the tile itself, not the window (docs/design/charte.md › Ordinateur). Narrower, the
     title keeps its own line, and a long one is not squeezed. */
  .memo .mq-card.mq-new {
    container: mq-new / inline-size;
  }
  .memo .mq-card.mq-new > .mq-go {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .memo .mq-card.mq-new > .mq-go > * {
    grid-column: 1 / -1;
  }
  @container mq-new (min-width: 780px) {
    .memo .mq-card.mq-new > .mq-go > .mq-pick {
      grid-column: 1;
      padding-inline: 18px;
    }
    .memo .mq-card.mq-new > .mq-go > label:has(> .memo-title) {
      grid-column: 2;
    }
  }
}
/* « Envoyer » stays in sight while the form scrolls, above the tab bar on a phone (docs/design/charte.md › Mobile
   d'abord): the form runs longer than a phone, and the five rules sat between the player and the button. */
.memo .mq-card.mq-new .memo-send {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 10px);
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.memo .mq-card.mq-new .memo-send.is-locked {
  background: var(--surface);
}
/* « Envoyer » before the five rules are ticked: a box of its size that says what is left, not a grey dead button
   (docs/design/charte.md › Pas de relief, non cliquable). */
.mq-go .memo-send.is-locked {
  border: 2px dashed var(--line);
  background: none;
  box-shadow: none;
  color: var(--muted);
}

/* Les gains de la semaine sur une ligne, sous les onglets : le meme garde la place. */
/* « Cette semaine +150 » and « Classement Memelords › » side by side. Where both do not fit, the link first says
   « Classement › » (client/memocratie.ts); a line still too narrow for that (a long text set in the admin) puts the link
   on a row of its own on the right, each part whole, rather than past the line's edge (Théo, 05/11/2026). */
.mq-weekline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  min-height: 44px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255, 216, 74, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
:root[data-theme="light"] .mq-weekline {
  background: #fff7e0;
}
.mq-weekline > * {
  white-space: nowrap;
}
.mq-weekline-k::first-letter {
  text-transform: uppercase;
}
.mq-weekline b {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
}
.mq-weekline-top {
  margin-left: auto;
  white-space: nowrap;
}
.mq-weekline-top i {
  margin-left: 4px;
  font-style: normal;
}
/* « Classement › » in place of « Classement Memelords › » where the line is too narrow for both (client/memocratie.ts). */
.mq-wl-short,
.mq-weekline[data-short] .mq-wl-full {
  display: none;
}
.mq-weekline[data-short] .mq-wl-short {
  display: inline;
}
/* What a vote earns, under the answers: small, after them, so the question reads as a question. */
.mq-go .mq-gainline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.mq-go .mq-gainline .amt {
  font-weight: 900;
  color: var(--gold-text);
}
/* The flag the meme is proposed for stays behind the card, toned down: the card is what the voter judges. */
.mq-card:not(.mq-new) > .mq-stage[data-pack] {
  background: linear-gradient(var(--mq-dim), var(--mq-dim)), var(--mq-pack);
  --mq-dim: rgba(12, 14, 20, 0.62);
}
:root[data-theme="light"] .mq-card:not(.mq-new) > .mq-stage[data-pack] {
  --mq-dim: rgba(244, 245, 248, 0.62);
}
/* After the vote each answer fills with its share of the answers so far, the player's own outlined. */
.mq-go .btn.is-result {
  background: linear-gradient(90deg, color-mix(in srgb, var(--text) 16%, transparent) var(--fill), transparent 0);
}
.mq-go .btn.is-result.is-mine {
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold-text) 32%, transparent) var(--fill), transparent 0);
  box-shadow: inset 0 0 0 2px var(--gold-text);
}
.mq-go .btn.is-result:disabled {
  opacity: 1;
}
.mq-go .btn .mq-pct {
  margin-left: auto;
  font-weight: 900;
}
@media (prefers-reduced-motion: no-preference) {
  .mq-go .btn.is-result {
    animation: mq-fill 0.5s ease-out;
  }
}
@keyframes mq-fill {
  from {
    background-size: 0 100%;
  }
}
.mq-go .mq-gainline.is-same {
  color: var(--mq-ok-ink);
}

/* The day's score, under « Tu as voté N fois aujourd'hui » or the empty queue. */
.mq-recap {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: center;
}
.mq-recap p {
  margin: 0;
}
.mq-recap-h {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.mq-recap-n {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.mq-recap-n b {
  font-size: 28px;
  font-weight: 900;
}
.mq-recap-g {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}
.mq-recap-s {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- The pen on a card's title or description (client/memocratie-typo.ts) ---------- */
/* The answer keeps its whole row; the pen is a square beside it, as tall as the answer, so neither is a target inside
   the other. */
.mq-penrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: stretch;
}
.mq-penrow > .mq-ans {
  min-width: 0;
}
.mq-pen {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.mq-pen:focus-visible {
  border-color: var(--text);
  color: var(--text);
}
@media (hover: hover) {
  .mq-pen:hover {
    border-color: var(--text);
    color: var(--text);
  }
}
.mq-typo {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--active-bg);
  border-radius: 16px;
  background: var(--surface);
}
.mq-typo p {
  margin: 0;
}
.mq-typo-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}
.mq-typo-in {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--input, var(--surface-2));
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  resize: vertical;
}
.mq-typo-in:focus {
  outline: none;
  border-color: var(--active-bg);
}
/* A full line, not two balanced halves: the editor's width is the answers'. */
.mq-typo .mq-typo-hint {
  max-width: none;
  font-size: 12.5px;
  text-wrap: wrap;
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
}
.mq-typo .mq-typo-hint.is-bad {
  color: var(--mq-bad, #ff8a80);
}
.mq-typo-go {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.mq-typo-go .btn {
  width: auto;
  min-height: 44px;
  margin: 0;
}
/* The pen's own line under « + Réécrire »: the same quiet row, its pencil before the words. */
.mq-ans.add.mq-penline {
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

/* « Corriger » with nothing to vote on: a check, two lines, and « Voter sur les memes » at a button's size, not
   stretched across the tile (owner, 25/10/2026). */
.cx-empty {
  justify-items: center;
  gap: 10px;
  padding-block: 28px;
}
.cx-empty-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mq-ok-bg);
  color: var(--mq-ok-ink);
}
.cx-empty > .btn {
  width: auto;
  min-width: 240px;
  margin-top: 6px;
  padding-inline: 28px;
}
/* A meme's vote link: « @toufik t'invite à voter pour son meme » while that meme is on show (client/memocratie.ts
   inviteHtml). On a phone the page comes up to the card: it takes the line of the card's votes, under the
   description. Side by side, the page does not move but the voices leave that line a few pixels: it takes the week
   line's place instead, under the tabs. The text's ink, the handle in the profile gold. */
.mq-invite {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  color: var(--text);
}
.mq-invite b {
  font-weight: 900;
  color: var(--gold-text, #ffd84a);
}
.mq-weekline.mq-invite {
  display: none;
  justify-content: center;
  font-size: 16px;
}
@media (max-width: 999.98px) {
  .mq-meta:has(> .mq-invite) > .mq-votes-n {
    display: none;
  }
}
@media (min-width: 1000px) {
  .mq-meta > .mq-invite {
    display: none;
  }
  .mq-weekline.mq-invite {
    display: flex;
  }
  .mq-weekline.mq-invite + .mq-weekline {
    display: none;
  }
}
/* Side by side, a text slot the voices left shorter than its one line (client/memocratie.ts fitStage): hidden whole,
   never sliced through its letters. The description is on the card's face. */
.mq-txt[data-cramped] {
  visibility: hidden;
}

/* « Modifier mon vote » over the next meme (client/memocratie.ts redoHtml): a pill on one line, the meme's title cut at
   its end, nothing underlined. Its width is the column's, never its title's: a long title asked its whole length of
   the vote's column, and widened the meme's card past a phone's edge with it (Théo, 05/11/2026). */
.mq-redo {
  min-width: 0;
  margin: 0 0 8px;
  contain: inline-size;
}
.mq-redo .link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
  color: var(--text);
  text-align: left;
  text-decoration: none;
}
.mq-redo svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.mq-redo span {
  flex: none;
}
.mq-redo b {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The refusal under the description runs two or three lines: balanced, so no line ends on « Écris le » with « vrai nom » below
   (« On dirait des lettres tapées au hasard… », 16/11/2026). */
.memo-short { text-wrap: balance; }
