/* ==========================================================================
   Perfils · game.css  (14/10/2026)
   --------------------------------------------------------------------------
   The game screen, everything outside the board: header, category strip, the white
   clue card, the move panel (help line, guess field, buttons, feedback) and the scoreboard.
   Built ONLY on theme.css tokens and components (.p-*); loads after screens.css.
   Board art: board.css (not touched here).

   Reading order on a phone: board, clue card, move bar, scoreboard. On a desktop the
   left column is the board (with the scoreboard under it), the right column is the
   card and the move panel, and nothing needed to play scrolls.
   Typography: Poiret One only >= 28px (clue number, points), Josefin Sans 600 for
   labels and numbers, Jost for running text (the clue itself).
   ========================================================================== */

:root { --bar-h: 0px; }               /* set by app.js: height of the fixed move bar on phones */
.view-game {
  --topbar-h: 4.1rem;
  --gpad: clamp(0.7rem, 1.6vw, 1.4rem);
  display: flex;
  flex-direction: column;
}

/* ============================== header ================================== */
/* (the bar itself, its gaps and its shadow live in screens.css; here only the plaque, the fringe and the hairline) */
.topbar .topbar-round.p-plaque {
  min-width: 0;
  color: var(--p-black);
  letter-spacing: 0.16em;
}
.topbar .topbar-round b {
  margin-left: 0.35em;
  font-weight: inherit;               /* `bolder` on a 600 face would ask for 900, which is not embedded */
  font-size: 1.15em;
  letter-spacing: 0.04em;
  color: var(--p-black);
}
/* a fringe of teal triangles hangs from the bar, like the strips of the card */
.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.5rem;
  pointer-events: none;
  background: var(--p-teal-deep);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 0.58rem 100%;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / 0.58rem 100%;
}
.topbar::before {                      /* the black bar's own filete: violet hairline above the triangles */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--p-violet);
}

/* ============================== layout ================================== */
.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
  padding: calc(var(--gpad) + 0.4rem) var(--gpad) var(--gpad);
}
.game-main, .game-side { display: contents; }
.zone { min-width: 0; }
.zone-card { order: 1; }
.zone-clue { order: 2; }
.zone-actions { order: 3; }
.zone-track { order: 4; }

/* ======================= category and type strip ========================= */
.paper { position: relative; }
.paper-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.6rem;
  color: var(--p-cream);
  background: var(--p-black);
  border-radius: var(--r-2);
  box-shadow: inset 0 0 0 1px var(--p-violet), inset 0 0 0 3px var(--p-black), inset 0 0 0 4px var(--p-violet-2), var(--shadow-1);
}
.paper-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.2rem;
  max-width: 100%;
  padding: 0.2rem 0.85rem 0.2rem 0.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.15;
  color: var(--p-black);
  background: linear-gradient(180deg, var(--p-paper-hi), var(--p-paper) 50%, var(--p-paper-lo));
  border-radius: var(--r-2);
  box-shadow: inset 0 0 0 1px var(--p-black), 0 0 0 1px var(--p-violet-2);
}
/* the same icon tile as the "Frentes" chips on the setup screen */
.paper-cat__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  font-size: 1.05rem;
  line-height: 1;
  background: var(--cat, var(--p-pink));
  border: 2px solid var(--p-black);
  border-radius: var(--r-1);
}
.paper-cat__name { min-width: 0; text-wrap: balance; }
.paper-type { margin-left: auto; min-height: 2.2rem; }
.paper-no {
  margin-right: 0.3rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--p-aqua-3);
  font-variant-numeric: lining-nums;
}
.paper.is-burned .paper-cat { filter: saturate(0.3); }

.board-wrap { padding: 0; }
.board-mount { width: 100%; margin-inline: auto; }

/* ============================ the white card ============================ */
.clue-card {
  --card-band: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
  padding: calc(var(--card-band) + 0.8rem) 1.15rem calc(var(--card-band) + 0.75rem);
  scroll-margin: calc(var(--topbar-h) + 0.75rem) 0 calc(var(--bar-h) + 1rem);
}
.clue-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.clue-card__logo {
  flex: none;
  width: 7.3rem;
  aspect-ratio: 1259 / 342;
  background: var(--img-logo-contour) left center / contain no-repeat;
}
.clue-card__meta {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--p-muted);
  font-variant-numeric: lining-nums tabular-nums;
}

.clue-now { outline-offset: 4px; }
.clue-now .p-card__clue {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  padding: 0.7rem 0 0.75rem;
}
.clue-card .p-card__no {
  grid-row: 1 / span 3;
  align-self: start;
  min-width: 1.5ch;
  font-size: clamp(3.4rem, 2.6rem + 1.6vw, 4.4rem);
  line-height: 0.95;
  -webkit-text-stroke-width: 1.8px;
}
.clue-card .p-card__text {
  font-size: clamp(1.15rem, 1.02rem + 0.35vw, 1.35rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
  hyphens: manual;
}
.clue-live.is-new { animation: clueIn var(--dur-3) var(--ease-out) both; }
.clue-kickrow { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 0.1rem 0.7rem; }

/* empty state: before the first clue */
.clue-empty__mark { grid-row: 1 / span 3; align-self: start; width: 3.4rem; font-size: 1.5rem; }
.clue-empty .p-card__text { color: var(--p-ink); }
.clue-empty__hint { grid-column: 2; margin: 0.15rem 0 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--p-muted); text-wrap: pretty; }

/* VALE AGORA: the points still on the table, as a row of triangles that go dark one by one */
.value-meter { display: grid; gap: 0.3rem; }
.value-now { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.value-label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--p-muted);
}
.value-now b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 0.9;
  color: var(--p-plum);
  -webkit-text-stroke: 1px currentColor;
  font-variant-numeric: lining-nums tabular-nums;
}
.value-unit {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--p-muted);
}
.value-gauge { display: block; width: 100%; height: 0.95rem; overflow: visible; }
.g-tick {
  fill: var(--p-paper-2);
  stroke: var(--p-teal-deep);
  stroke-opacity: 0.6;
  stroke-width: 1px;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  transition: fill var(--dur-3) var(--ease-out);
}
.g-tick.is-on { fill: var(--p-orange); stroke: var(--p-black); stroke-opacity: 1; }
.g-tick.is-next { fill: var(--p-red); }
.value-next {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  color: var(--p-muted);
}

/* the answer, once the round is over: the card turns into the result */
.answer-reveal {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1rem 0.9rem;
  text-align: center;
  color: var(--p-cream);
  background: var(--p-black);
  border-radius: var(--r-2);
  box-shadow: inset 0 0 0 1px var(--p-violet), inset 0 0 0 4px var(--p-black), inset 0 0 0 5px var(--p-violet-2);
  animation: reveal var(--dur-3) var(--ease-out) both;
}
.answer-kicker {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--p-aqua-3);
}
.answer-text {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.answer-note { font-size: var(--fs-sm); font-weight: 700; color: var(--p-orange); }
.clue-card.is-done .p-card__lines { margin-top: 0; }

/* the lines of the card: what was opened before the current clue */
.clue-history { display: flex; flex-direction: column; gap: 0.3rem; min-height: 0; flex: 1 1 auto; }
.clue-history-title {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--p-teal-ink);
}
.clue-list {
  position: relative;               /* contains the absolutely positioned p-sr-only spans of its lines */
  flex: 1 1 auto;
  min-height: 0;
  max-height: 13.5rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--p-teal-deep) transparent;
}
.clue-item {
  grid-template-columns: 2.1rem minmax(0, 1fr) !important;
  column-gap: 0.35rem;
  min-height: 2.2rem;
  align-items: center !important;
  line-height: 1.3;
  font-size: var(--fs-sm);
}
.clue-item-n { font-size: var(--fs-md); color: var(--p-teal-ink); }
.clue-item-t { overflow-wrap: anywhere; text-wrap: pretty; }
.clue-item.is-flash { animation: flash var(--dur-flash) var(--ease-out); }
@keyframes flash { from { background: rgb(232 163 58 / 0.45); } to { background: transparent; } }
.clue-history-empty {
  flex: 1 1 auto;
  min-height: 3.4rem;
  margin: 0;
  padding-top: 0.45rem;
  font-size: var(--fs-sm);
  line-height: 2.2rem;
  color: var(--p-muted);
  /* ruled like a blank card: one teal hairline per line */
  background: repeating-linear-gradient(to bottom, transparent 0 calc(2.2rem - 1px), rgb(13 150 141 / 0.4) calc(2.2rem - 1px) 2.2rem);
}
.clue-history:not(.is-empty) .clue-history-empty { display: none; }
.clue-history.is-empty .clue-list { display: none; }

/* ============================ move panel ================================ */
.zone-actions.p-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem 0.9rem;
  border-radius: var(--r-3);
}
/* free table: one short line of help above the guess field, no banner of who plays */
.play-hint { display: grid; gap: 0.15rem; min-height: 2.6rem; align-content: center; margin: 0; }
.play-hint__lead { font-weight: 700; font-size: var(--fs-md); line-height: 1.25; color: var(--p-cream); text-wrap: balance; }
.play-hint__pts {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--p-aqua-3);
}
.play-hint.is-await .play-hint__lead { color: var(--p-orange); }

.guess-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'hint hint' 'input guess';
  align-items: center;
  gap: 0.6rem 0.55rem;
}
.guess-form .play-hint { grid-area: hint; }
.guess-form .p-field__input { grid-area: input; box-shadow: var(--shadow-inset), 0 0 0 1px var(--p-violet-2); }
.guess-form #btn-guess { grid-area: guess; }
.guess-form .p-field__input:focus-visible { box-shadow: var(--shadow-inset), 0 0 0 2px var(--p-black); }
.guess-form .p-btn { padding-inline: 1.1em; }
.guess-form #btn-guess { min-height: 3rem; }
.guess-form.is-over { grid-template-areas: 'hint'; grid-template-columns: minmax(0, 1fr); }
.guess-form.is-over .p-field__input, .guess-form.is-over #btn-guess { display: none; }
.guess-form .p-field__input.nudge { animation: shake var(--dur-3) var(--ease-out); }

.wrong-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  padding: 0.55rem 0.7rem;
  color: var(--p-red-ink);
  background: var(--p-paper);
  border-radius: var(--r-2);
  box-shadow: inset 0 0 0 2px var(--p-red-ink);
  animation: reveal var(--dur-3) var(--ease-out) both;
}
.wrong-note__text {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.wrong-note__text .p-ic { margin-top: 0.12em; }
.wrong-note .p-btn { flex: none; padding-inline: 0.8em; letter-spacing: 0.07em; }

/* ============================== scoreboard ============================== */
.score-wrap { position: relative; }
.scoreboard {
  --cols: 2;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 0.6rem;
  max-width: calc(var(--cols) * 17rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.scoreboard[data-n='1'] { --cols: 1; }
.score-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'pawn name' 'pawn pts' 'bar bar';
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.4rem 0.65rem 0.5rem 0.45rem;
  color: var(--p-ink);
  background: linear-gradient(172deg, var(--p-paper-hi) 0%, var(--p-paper) 55%, var(--p-paper-lo) 100%);
  border: 2px solid var(--p-black);
  border-radius: var(--r-3);
  box-shadow: 0 3px 0 var(--p-black), 0 8px 10px -4px rgb(15 15 18 / 0.5);
}
.score-row .pawn-ico { grid-area: pawn; width: 1.6rem; align-self: end; }
.score-name {
  grid-area: name;
  align-self: end;
  min-width: 0;
  overflow-wrap: anywhere;   /* a long name takes a second line instead of being cut with "..." (two players could look alike) */
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
}
.score-pts {
  grid-area: pts;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
.score-pts small { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-xs); color: var(--p-muted); }
.score-bar {
  grid-area: bar;
  display: block;
  height: 0.5rem;
  margin-top: 0.4rem;
  overflow: hidden;
  background: var(--p-paper-2);
  border: 1.5px solid rgb(15 15 18 / 0.6);
  border-radius: var(--r-round);
}
.score-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--pc, var(--p-teal-deep));
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(15 15 18 / 0.45);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-5) var(--ease-out);
}

/* a rising "+N" when someone scores */
.score-gain {
  position: absolute;
  right: 0.5rem;
  top: -0.7rem;
  z-index: 2;
  padding: 0.1rem 0.55rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--p-black);
  background: linear-gradient(180deg, var(--p-gold-hi), var(--p-orange));
  border: 2px solid var(--p-black);
  border-radius: var(--r-2);
  box-shadow: 0 2px 0 var(--p-black);
  pointer-events: none;
  animation: score-gain var(--dur-float) var(--ease-out) both;
}
@keyframes score-gain {
  0% { opacity: 0; transform: translateY(10px) scale(0.8); }
  14% { opacity: 1; transform: translateY(-6px) scale(1.08); }
  75% { opacity: 1; transform: translateY(-16px); }
  100% { opacity: 0; transform: translateY(-28px); }
}

/* ======================= wide screens: two columns ====================== */
@media (min-width: 960px), (min-width: 700px) and (max-height: 520px) {
  .view-game { --board-reserve: 16.4rem; }
  .game-grid {
    grid-template-columns: minmax(0, 1fr) clamp(21rem, 30vw, 27rem);
    padding: calc(var(--gpad) + 0.5rem) var(--gpad) var(--gpad);
  }
  .game-main, .game-side { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
  .zone-card, .zone-clue, .zone-actions, .zone-track { order: 0; }
  .board-mount { width: min(100%, max(22rem, calc((100vh - var(--board-reserve)) * 1.469))); width: min(100%, max(22rem, calc((100dvh - var(--board-reserve)) * 1.469))); }
  .game-side { min-height: max(34rem, calc(100vh - var(--topbar-h) - 2 * var(--gpad) - 0.5rem)); min-height: max(34rem, calc(100dvh - var(--topbar-h) - 2 * var(--gpad) - 0.5rem)); }
  .zone-clue { display: flex; flex: 1 1 auto; min-height: 0; }
  .clue-card { flex: 1 1 auto; }
  .clue-history { flex: 1 1 0; min-height: 4.4rem; }
  .clue-list { flex: 0 1 auto; max-height: none; min-height: 4.4rem; }
  /* the rest of the card stays ruled, like a blank card waiting for more clues */
  .clue-history:not(.is-empty)::after {
    content: '';
    flex: 1 1 0;
    min-height: 0;
    background: repeating-linear-gradient(to bottom, transparent 0 calc(2.2rem - 1px), rgb(13 150 141 / 0.4) calc(2.2rem - 1px) 2.2rem);
  }
  .zone-actions { flex: none; }
  .scoreboard { max-width: none; }
  .scoreboard[data-n='2'] { --cols: 2; max-width: 36rem; }
  .scoreboard[data-n='3'] { --cols: 3; }
  .scoreboard[data-n='4'] { --cols: 4; }
  .scoreboard[data-n='5'] { --cols: 3; }
  .scoreboard[data-n='6'] { --cols: 3; }
  .scoreboard[data-n='1'] { max-width: 17rem; }
}
@media (min-width: 1180px) {
  .scoreboard[data-n='5'] { --cols: 5; }
  .scoreboard[data-n='6'] { --cols: 6; }
  .scoreboard[data-n='5'] .score-row, .scoreboard[data-n='6'] .score-row { column-gap: 0.35rem; padding-inline: 0.35rem 0.5rem; }
  .scoreboard[data-n='5'] .pawn-ico, .scoreboard[data-n='6'] .pawn-ico { width: 1.35rem; }
  .scoreboard[data-n='5'] .score-name, .scoreboard[data-n='6'] .score-name { font-size: 0.82rem; }
}
@media (min-width: 960px) and (max-height: 860px) {
  .clue-card { --card-band: 0.85rem; gap: 0.55rem; padding-top: calc(var(--card-band) + 0.65rem); padding-bottom: calc(var(--card-band) + 0.6rem); }
  .clue-card .p-card__no { font-size: 3.4rem; }
  .value-now b { font-size: 2.1rem; }
}

/* ========================= single column (phones, tablets) =============== */
@media (max-width: 959px) {
  .scoreboard[data-n='2'] { --cols: 2; }
  .paper-strip { flex-wrap: nowrap; gap: 0.5rem; padding: 0.4rem 0.45rem; margin-bottom: 0.5rem; }
  .paper-cat { flex: 0 1 auto; min-width: 0; }
  .paper-type { flex: none; }
  .paper-no:not([data-last]) { display: none; }
  .paper-no[data-last] { flex-basis: 100%; margin: 0; }
  .paper-strip:has(.paper-no[data-last]) { flex-wrap: wrap; }
  .clue-card { padding-inline: 1rem; }
  .clue-card .p-card__no { font-size: 3.4rem; }
  .clue-card .p-card__text { font-size: 1.2rem; }
  .value-now b { font-size: 2.2rem; }
  .clue-history.is-empty { display: none; }
}
@media (min-width: 560px) and (max-width: 959px) {
  .scoreboard[data-n='3'], .scoreboard[data-n='5'], .scoreboard[data-n='6'] { --cols: 3; }
  .scoreboard[data-n='4'] { --cols: 4; }
}

/* phones and portrait tablets: the move bar is fixed to the bottom and the page reserves its height,
   so it never covers the clue (app.js sets --bar-h; focus and scrollIntoView respect scroll-margin) */
@media (max-width: 959px) and (min-height: 521px) {
  .game-grid { padding-bottom: calc(var(--gpad) + var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .zone-actions.p-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    gap: 0.5rem;
    padding: 0.6rem max(0.75rem, calc((100% - 44rem) / 2)) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: 0 -2px 0 var(--p-violet), 0 -1px 0 2px var(--p-black), 0 -14px 24px -10px rgb(0 0 0 / 0.6);
  }
  .play-hint { min-height: 2.2rem; }
  .play-hint__lead { font-size: var(--fs-sm); }
  .guess-form { gap: 0.45rem 0.5rem; }
  .guess-form .p-field__input { min-height: 3rem; font-size: 1.05rem; padding-inline: 0.75rem; }
  .guess-form .p-btn { letter-spacing: 0.1em; }
  .wrong-note { flex-wrap: nowrap; padding: 0.35rem 0.5rem 0.35rem 0.6rem; }
  .wrong-note__text { flex-basis: 0; }
  /* a long wrong guess (up to 80 letters) must not turn the fixed bar into a tower of one-word lines */
  #wrong-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
}
/* phone on its side: a fixed bar would eat half the screen */
@media (max-width: 959px) and (max-height: 520px) {
  .zone-actions.p-panel { position: static; }
}

@media (max-width: 959px) and (min-height: 521px) {
  body[data-view='game'] .toasts { bottom: calc(var(--bar-h) + 0.75rem); }
}
@media (max-width: 400px) {
  .topbar { gap: 0.4rem; padding-inline: 0.5rem; }
  .topbar-title { gap: 0.4rem; min-width: 0; }
  .topbar-logo { flex: 0 1 6.2rem; width: 6.2rem; min-width: 3.7rem; height: 1.8rem; }
  .topbar .icon-btn { width: 2.75rem; height: 2.75rem; }   /* 44px: three buttons plus logo and plaque must fit 320px */
  .topbar .topbar-round.p-plaque { padding-inline: 0.55rem; letter-spacing: 0.06em; }
}
@media (max-width: 400px) {
  .wrong-note .p-btn { padding-inline: 0.55em; letter-spacing: 0.02em; }   /* leaves the message a readable column */
}
@media (max-width: 359px) and (min-height: 521px) {
  /* narrow phone: the message gets the whole width and the button goes under it, to the right */
  .wrong-note { flex-wrap: wrap; row-gap: 0.35rem; }
  .wrong-note__text { flex-basis: 100%; }
  .wrong-note .p-btn { margin-left: auto; }
}
@media (max-width: 340px) {
  .topbar .topbar-round.p-plaque { padding-inline: 0.4rem; font-size: var(--fs-2xs); letter-spacing: 0.02em; }
}
