/* ===== Pavé! — direction artistique : l'affiche de manif sérigraphiée.
   Papier crème, encre noire, trois encres franches (rouge, jaune, bleu), lettres d'affiche (Anton, Barlow Condensed),
   bords nets et ombres « tampon » (décalées, sans flou). La table est une rue pavée la nuit, sous un réverbère.
   En haut l'état de la partie ; au milieu les joueurs autour de la pioche ; en bas ma place et ma main.
   Dessins : pave-art.js. Toutes les couleurs passent par les variables ci-dessous. ===== */

.pv {
  /* encres */
  --ink: #1b1714;
  --ink-0: #0d0b0a;
  --paper: #f4ead6;
  --paper-hi: #fffaf0;
  --paper-lo: #e6d9bd;
  --red: #d83a2e;
  --red-deep: #a8271e;
  --yellow: #f3b62f;
  --blue: #244f96;
  --blue-hi: #a9c6ee;
  --brun: #a9602a;
  --green: #2f8a57;
  /* la rue, la nuit */
  --night: #15171b;
  --night-2: #1f2228;
  --night-3: #2c3038;
  --text: #f4ead6;
  --text-2: #b9b2a3;
  --line: rgb(244 234 214 / .16);
  --smoke: rgb(13 11 10 / .78);
  /* lettres */
  --f-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --f-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* relief */
  --hard: 0 3px 0 var(--ink-0);
  --card-sh: 0 2px 0 rgb(0 0 0 / .35), 0 10px 18px -8px rgb(0 0 0 / .75);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hw: clamp(78px, min(26vw, 13.5dvh), 128px); /* largeur d'une carte de ma main */

  position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  overflow: hidden; overflow: clip; color: var(--text); font-family: var(--f-body); font-weight: 500; line-height: 1.4;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(ellipse 80% 52% at 50% 30%, rgb(255 198 108 / .2), transparent 70%),
    radial-gradient(ellipse 130% 85% at 50% 38%, transparent 50%, rgb(0 0 0 / .62)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='88'%3E%3Crect width='132' height='88' fill='%230f1114'/%3E%3Cg fill='%2322262c'%3E%3Crect x='2' y='2' width='40' height='40' rx='6'/%3E%3Crect x='46' y='2' width='40' height='40' rx='6' fill='%23272b32'/%3E%3Crect x='90' y='2' width='40' height='40' rx='6' fill='%231e2228'/%3E%3Crect x='-20' y='46' width='40' height='40' rx='6' fill='%23252930'/%3E%3Crect x='24' y='46' width='40' height='40' rx='6' fill='%231e2228'/%3E%3Crect x='68' y='46' width='40' height='40' rx='6'/%3E%3Crect x='112' y='46' width='40' height='40' rx='6' fill='%23252930'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Crect x='6' y='4' width='28' height='3' rx='1.5'/%3E%3Crect x='50' y='4' width='28' height='3' rx='1.5'/%3E%3Crect x='94' y='4' width='28' height='3' rx='1.5'/%3E%3Crect x='28' y='48' width='28' height='3' rx='1.5'/%3E%3Crect x='72' y='48' width='28' height='3' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") 50% 0 / 99px 66px,
    var(--night);
}
.pv [hidden] { display: none !important; }
.pv .icon { width: 1.2em; height: 1.2em; flex: none; display: block; }
.pv :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pv h1, .pv h2, .pv h3, .pv p { margin: 0; }

/* ---- boutons : ceux de la plateforme, repeints à l'encre ---- */
.pv .btn, .pv .btn:hover:not(:disabled) {
  min-height: 46px; padding: .45rem 1rem; border-radius: 9px; border: 2px solid var(--ink-0); background: var(--paper); color: var(--ink);
  font: 700 1.02rem/1.1 var(--f-label); letter-spacing: .04em; text-transform: uppercase; text-shadow: none; box-shadow: var(--hard);
  transition: transform .1s, box-shadow .1s, filter .15s;
}
.pv .btn:hover:not(:disabled) { filter: brightness(1.06); }
.pv .btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--ink-0); }
.pv .btn:disabled { opacity: .45; }
.pv .btn.primary, .pv .btn.primary:hover:not(:disabled) { background: var(--red); color: var(--paper-hi); }
.pv .btn.gold, .pv .btn.gold:hover:not(:disabled) { background: var(--yellow); color: var(--ink); }
.pv .btn.ghost, .pv .btn.ghost:hover:not(:disabled) { background: transparent; border-color: rgb(27 23 20 / .28); box-shadow: none; }
.pv .btn.ghost:active:not(:disabled) { transform: scale(.98); }
.pv .btn.small { min-height: 40px; padding: .3rem .75rem; font-size: .92rem; border-radius: 8px; box-shadow: 0 2px 0 var(--ink-0); }
.pv .btn.big { min-height: 54px; font-size: 1.2rem; width: 100%; border-radius: 10px; }
.pv .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- cartes ---- */
.pvk {
  --w: 80px; position: relative; flex: none; display: block; width: var(--w); height: calc(var(--w) * 1.45); padding: 0; border: 0;
  border-radius: calc(var(--w) * .09); background: none; color: inherit; font: inherit; box-shadow: var(--card-sh);
  transition: transform .18s var(--ease), translate .18s var(--ease), box-shadow .18s, filter .18s, opacity .18s;
}
.pvk > svg { display: block; width: 100%; height: 100%; }
button.pvk { cursor: pointer; }
.pvk.tiny { --w: 22px; box-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.pvk.big { --w: clamp(140px, 42vw, 180px); box-shadow: 6px 6px 0 rgb(13 11 10 / .22), 0 18px 30px -14px rgb(0 0 0 / .6); }
.pvk.store { --w: clamp(48px, 12.5vw, 62px); }
.pvk.back { box-shadow: 0 1px 2px rgb(0 0 0 / .5); }
.pvk.flying { position: absolute; left: 0; top: 0; transform-origin: center; will-change: transform; z-index: 2; }
.pvk.chosen { box-shadow: 0 0 0 3px var(--yellow), var(--card-sh); translate: 0 -8px; }

/* ---- barre du haut ---- */
.pv-hud {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
}
.pv-hud-r { display: flex; align-items: center; gap: 6px; flex: none; }
.pv-pill {
  display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 14px 0 13px; border-radius: 9px;
  background: var(--smoke); border: 1px solid var(--line); transition: background .25s, color .25s;
}
.pv-pill-body { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pv-pill-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1rem/1.1 var(--f-label); letter-spacing: .03em; text-transform: uppercase; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); flex: none; }
.pv-pill.mine { background: var(--yellow); color: var(--ink); border-color: var(--ink-0); box-shadow: var(--hard); }
.pv-pill.mine .pv-dot { background: var(--red); animation: pv-pulse 1.1s ease-in-out infinite; }
@keyframes pv-pulse { 50% { transform: scale(1.7); opacity: .5; } }
.pv-round, .pv .vb {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border-radius: 9px; cursor: pointer; color: var(--text);
  background: var(--smoke); border: 1px solid var(--line); box-shadow: none; font: 400 1.15rem/1 var(--f-display);
  transition: background .15s, transform .1s;
}
.pv .vb { display: inline-flex; font: 700 .9rem/1 var(--f-label); }
.pv-round:hover, .pv .vb:hover { background: rgb(244 234 214 / .14); }
.pv-round:active, .pv .vb:active { transform: translateY(2px); box-shadow: none; }
.pv .vb.join.live { background: var(--green); color: #fff; box-shadow: none; }
.pv .vb.hang { background: var(--red); color: #fff; }
.pv .vb.off { background: #5a534c; color: #fff; }
.pv .vb.on.talk { box-shadow: 0 0 0 2px #45c57f; }
.pv .vb-count { background: var(--red); border-color: var(--night); font-family: var(--f-label); }

/* ---- la scène ---- */
.pv-stage { position: relative; min-height: 0; }
.pv-stage::before { /* le grain de la nuit */
  content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain, none); opacity: .55;
}
.pv-seats { position: absolute; inset: 0; pointer-events: none; }

/* le centre : pioche et défausse dans un cercle tracé à la peinture */
.pv-board {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 240px; height: 170px; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.pv-board-street {
  position: absolute; inset: 0; z-index: -1; border-radius: 50%; border: 2px dashed rgb(244 234 214 / .15);
  background: radial-gradient(ellipse at 50% 46%, rgb(255 206 122 / .13), transparent 68%);
}
/* le dernier coup : une bande en bas de la scène, toujours au même endroit */
.pv-ticker {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0; z-index: 3; width: max-content; max-width: min(calc(100% - 24px), 560px);
  padding: 5px 12px 6px 10px; border-radius: 6px; border-left: 4px solid var(--red); background: var(--smoke); color: var(--text);
  font: 600 .84rem/1.25 var(--f-body); text-align: center; box-shadow: 0 8px 18px -8px #000;
}
.pv-ticker span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-piles { display: flex; align-items: flex-end; gap: clamp(14px, 5vw, 26px); margin-top: 14px; }
.pv-pilebox { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 .76rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.pv-pile { --w: clamp(56px, 16.5vw, 76px); position: relative; width: var(--w); height: calc(var(--w) * 1.45); }
.pv-pile .pvk { --w: inherit; width: 100%; height: 100%; position: absolute; inset: 0; }
.pv-pile.deck .pvk:nth-child(1) { translate: -4px 4px; rotate: -4deg; }
.pv-pile.deck .pvk:nth-child(2) { translate: -2px 2px; rotate: 2.5deg; }
.pv-pile.deck.empty .pvk { opacity: .12; }
.pv-pile.discard .pvk { rotate: 3deg; }
.pv-count {
  position: absolute; right: -11px; bottom: -9px; z-index: 2; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 14px;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink-0);
  font: 400 .9rem/1 var(--f-display); box-shadow: 0 2px 0 var(--ink-0);
}
.pv-pile.deck.low .pv-count { background: var(--red); color: var(--paper-hi); }
.pv-slot { position: absolute; inset: 0; border-radius: 7px; border: 2px dashed rgb(244 234 214 / .25); }
.pv-board.small .pv-pile { --w: 44px; }
.pv-board.small .pv-pilebox > span { display: none; }
.pv-board.small .pv-piles { margin-top: 10px; }
.pv-board.storing .pv-piles { opacity: .3; }
.pv-store {
  position: absolute; inset: auto -14% -16%; z-index: 4; padding: 8px; border-radius: 10px; text-align: center;
  background: rgb(13 11 10 / .94); border: 1px solid var(--line); border-top: 3px solid var(--yellow); box-shadow: 0 14px 30px -10px #000;
  animation: pv-in .25s var(--ease);
}
.pv-store p { margin-bottom: 6px; font: 700 .82rem/1.2 var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--yellow); }
.pv-store-cards { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }

/* une carte dégainée : elle se retourne au centre, puis le tampon tombe */
.pv-reveal {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 14px 12px; border-radius: 10px; background: rgb(13 11 10 / .95); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px #000; opacity: 0; scale: .85; pointer-events: none; transition: opacity .22s, scale .22s var(--ease);
}
.pv-reveal.show { opacity: 1; scale: 1; }
.pv-reveal-t { font: 700 .85rem/1.1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.pv-reveal-cards { display: flex; gap: 8px; perspective: 600px; }
.pv-flip { --w: clamp(62px, 17vw, 84px); display: block; width: var(--w); height: calc(var(--w) * 1.45); }
.pv-flip.faded { opacity: .35; scale: .9; }
.pv-flip-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.pv-flip-back, .pv-flip-face { position: absolute; inset: 0; backface-visibility: hidden; }
.pv-flip-back { transform: rotateY(180deg); }
.pv-flip .pvk { --w: inherit; width: 100%; height: 100%; }
.pv-stamp {
  position: absolute; right: -18px; bottom: 16px; rotate: -8deg; padding: 2px 10px 3px; border-radius: 5px; border: 3px double currentColor;
  background: var(--paper); font: 400 1.25rem/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
}
.pv-stamp.ok { color: var(--green); }
.pv-stamp.ko { color: var(--red-deep); }

/* ---- les sièges : un médaillon (avatar cerclé de ses points de vie), des pastilles autour, le nom dessous ---- */
.pv-seat {
  --s: 50px; position: absolute; translate: -50% -50%; pointer-events: auto; cursor: pointer; width: calc(var(--s) + 42px);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); font: inherit;
  transition: opacity .25s, filter .25s;
}
.pv.crowd.tall .pv-seat { --s: 44px; }
.pv.tall .pv-name { padding: 4px 6px; }
.pv-medal { position: relative; flex: none; width: calc(var(--s, 50px) + 16px); height: calc(var(--s, 50px) + 16px); }
.pv-ringbox { position: absolute; inset: 0; }
.pv-ring { display: block; width: 100%; height: 100%; overflow: visible; }
.pv-ring path { fill: none; stroke-width: 7; }
.pv-ring .on { stroke: var(--yellow); }
.pv-ring .off { stroke: rgb(244 234 214 / .17); }
.pv-ring.low .on { stroke: var(--red); animation: pv-low 1s ease-in-out infinite; }
@keyframes pv-low { 50% { opacity: .45; } }
.pv-av {
  --c: #666; position: absolute; inset: 8px; z-index: 1; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c), #fff 24%), var(--c) 72%);
  font-size: calc(var(--s, 50px) * .56); box-shadow: 0 0 0 2px var(--ink-0), 0 8px 16px -6px rgb(0 0 0 / .85); transition: box-shadow .25s;
}
.pv-av-face { line-height: 1; }
.pv-av video, .pv-av .cam-bubble { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 0; }
.pv-av.big, .pv-av.sm { position: relative; inset: auto; flex: none; width: var(--s); height: var(--s); }
.pv-av.big { --s: 62px; }
.pv-av.sm { --s: 34px; box-shadow: 0 0 0 2px var(--ink-0); }
/* pastilles : vie (cœur, bas milieu), cartes en main (haut droite), distance (haut gauche), rôle connu (bas gauche), personnage (bas droite) */
.pv-seat .pv-medal { margin-bottom: 5px; }
.pv-hp {
  position: absolute; left: 50%; bottom: -11px; translate: -50% 0; z-index: 4; width: 32px; height: 30px;
  display: grid; place-items: center; pointer-events: none;
}
.pv-hp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px rgb(0 0 0 / .6)); }
.pv-hp .edge { fill: none; stroke: var(--ink-0); stroke-width: 5.5; stroke-linejoin: round; }
.pv-hp .fill { fill: var(--red); stroke: var(--paper-hi); stroke-width: 2; stroke-linejoin: round; }
.pv-hp b { position: relative; margin-top: -4px; font: 400 1.1rem/1 var(--f-display); color: var(--paper-hi); text-shadow: 0 1.5px 0 rgb(0 0 0 / .45); }
.pv-hp.low svg { animation: pv-beat 1s ease-in-out infinite; }
@keyframes pv-beat { 0%, 100% { scale: 1; } 15% { scale: 1.16; } 30% { scale: 1; } 45% { scale: 1.1; } }
.pv-hp.inline { position: relative; left: auto; bottom: auto; translate: none; width: 30px; height: 28px; }
.pv-hc {
  position: absolute; top: -3px; right: -6px; z-index: 3; width: 19px; height: 26px; display: grid; place-items: center; rotate: 9deg;
  border-radius: 3px; background: var(--paper); border: 1.5px solid var(--ink-0); box-shadow: 0 3px 5px rgb(0 0 0 / .5);
  font: 400 .86rem/1 var(--f-display); color: var(--ink);
}
.pv-dist {
  position: absolute; top: -3px; left: -5px; z-index: 3; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px; white-space: nowrap;
  background: var(--night-3); color: var(--text); border: 1.5px solid rgb(244 234 214 / .45); box-shadow: 0 2px 5px rgb(0 0 0 / .5);
  font: 400 .8rem/1 var(--f-display);
}
.pv-dist::before { content: 'à'; font: 700 .75rem/1 var(--f-label); opacity: .8; }
.pv-dist.in { background: var(--red); border-color: var(--paper); }
.pv-seat-role, .pv-seat-char {
  position: absolute; bottom: -4px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; display: block;
  box-shadow: 0 2px 5px rgb(0 0 0 / .6);
}
.pv-seat-role { left: -8px; }
.pv-seat-char { right: -8px; }
.pv-seat-role:empty { display: none; }
.pv-seat-role svg, .pv-seat-char svg, .pv-emb svg { display: block; width: 100%; height: 100%; }
.pv-seat.president .pv-seat-role { width: 28px; height: 28px; left: -13px; bottom: -6px; }
.pv-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; border-radius: 4px; background: var(--smoke);
  font: 700 .84rem/1 var(--f-label); letter-spacing: .04em; text-transform: uppercase; transition: background .25s, color .25s;
}
.pv-seat-inplay { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.pv-seat-inplay:empty { display: none; }
.pv-think {
  position: absolute; left: 50%; top: -12px; translate: -50% 0; z-index: 4; display: none; gap: 3px; padding: 5px 7px; border-radius: 9px;
  background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink-0), 0 3px 6px rgb(0 0 0 / .5);
}
.pv-think i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); animation: pv-dots 1s infinite; }
.pv-think i:nth-child(2) { animation-delay: .15s; }
.pv-think i:nth-child(3) { animation-delay: .3s; }
@keyframes pv-dots { 50% { translate: 0 -3px; opacity: .35; } }
.pv-seat.acting .pv-think { display: flex; }
.pv-seat.turn .pv-av { box-shadow: 0 0 0 2px var(--ink-0), 0 0 28px 9px rgb(243 182 47 / .5); }
.pv-seat.turn .pv-name { background: var(--yellow); color: var(--ink); }
.pv-seat.acting .pv-av { box-shadow: 0 0 0 2px var(--ink-0), 0 0 26px 8px rgb(216 58 46 / .6); }
.pv-seat.target { cursor: crosshair; }
.pv-seat.target .pv-medal::after { /* le viseur */
  content: ''; position: absolute; inset: -7px; z-index: 5; border-radius: 50%; pointer-events: none; border: 2.5px solid var(--red);
  background:
    linear-gradient(var(--red), var(--red)) 50% 0 / 3px 11px no-repeat, linear-gradient(var(--red), var(--red)) 50% 100% / 3px 11px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 50% / 11px 3px no-repeat, linear-gradient(var(--red), var(--red)) 100% 50% / 11px 3px no-repeat;
  animation: pv-aim 1.1s ease-in-out infinite;
}
.pv-seat.target .pv-name { background: var(--red); color: var(--paper-hi); }
@keyframes pv-aim { 50% { scale: 1.1; opacity: .75; } }
.pv-seat.dim { opacity: .3; filter: saturate(.3); cursor: default; }
/* éliminé : tout s'éteint, sauf son rôle, maintenant connu */
.pv-seat.dead .pv-av, .pv-seat.dead .pv-seat-char, .pv-seat.dead .pv-name { filter: grayscale(1); opacity: .55; }
.pv-seat.dead .pv-dist { display: none; }
.pv-seat.dead .pv-seat-role { width: 30px; height: 30px; left: -13px; bottom: -6px; }
.pv-seat.dead .pv-av::after {
  content: ''; position: absolute; inset: 0; background:
    linear-gradient(45deg, transparent 46%, var(--paper-hi) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--paper-hi) 46% 54%, transparent 54%), rgb(0 0 0 / .5);
}
.pv-seat.off .pv-av { opacity: .5; }
.v-talk .pv-av { box-shadow: 0 0 0 3px #45c57f, 0 0 18px 3px rgb(69 197 127 / .6); }

/* emblèmes et étiquettes de rôle */
.pv-emb { display: inline-block; width: 1.5em; height: 1.5em; flex: none; border-radius: 50%; }
.pv-emb.sm { width: 20px; height: 20px; }
.pv-emb.big { width: 58px; height: 58px; }
.pv-emb.huge { width: 132px; height: 132px; filter: drop-shadow(5px 5px 0 rgb(13 11 10 / .3)); animation: pv-pop .5s cubic-bezier(.3, 1.5, .6, 1); }
.pv-emb.q { display: inline-grid; place-items: center; background: rgb(27 23 20 / .14); font: 400 .8em/1 var(--f-display); }
@keyframes pv-pop { from { scale: .3; rotate: -20deg; opacity: 0; } }
.pv-rolechip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 2px; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid var(--ink-0); background: var(--paper); color: var(--ink);
  font: 700 .82rem/1 var(--f-label); letter-spacing: .05em; text-transform: uppercase;
}
.pv-rolechip .pv-emb { width: 20px; height: 20px; }
.pv-rolechip.president { background: var(--yellow); }
.pv-rolechip.crs { background: var(--blue); color: var(--paper-hi); }
.pv-rolechip.manifestant { background: var(--red); color: var(--paper-hi); }
.pv-rolechip.agitateur { background: #2c2438; color: var(--paper-hi); }
.pv-rolechip.hidden { background: transparent; border-style: dashed; border-color: rgb(27 23 20 / .4); color: #5d554c; }
.pv-rolechip.big { font-size: 1rem; padding: 3px 12px 3px 3px; }
.pv-rolechip.big .pv-emb { width: 28px; height: 28px; }

/* ---- « À toi de jouer ! » : une banderole ---- */
.pv-cue {
  position: absolute; left: 50%; top: 42%; translate: -50% -50%; rotate: -3deg; z-index: 8; pointer-events: none; opacity: 0; white-space: nowrap;
  padding: .12em .55em .16em; background: var(--red); color: var(--paper-hi); border: 3px solid var(--ink-0); box-shadow: 6px 6px 0 var(--ink-0);
  font: 400 clamp(1.9rem, 9vw, 3.2rem)/1.1 var(--f-display); letter-spacing: .02em; text-transform: uppercase;
}
.pv.tall .pv-cue { top: 52%; }
.pv-cue.show { animation: pv-cue 1.5s var(--ease); }
@keyframes pv-cue {
  0% { opacity: 0; scale: .4; rotate: -12deg; } 16% { opacity: 1; scale: 1.08; rotate: -1deg; } 26% { scale: 1; rotate: -3deg; }
  80% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .92; translate: -50% -90%; }
}

/* ---- ma place ---- */
.pv-dock {
  position: relative; z-index: 4; display: flex; flex-direction: column; gap: 10px; padding: 16px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(#23262d, #16181c 62%); box-shadow: 0 -14px 30px -12px rgb(0 0 0 / .85);
}
.pv-dock::before { /* le bord du trottoir ; une rubalise quand c'est à moi (jaune : mon tour, rouge et blanc : on m'attend) */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--ink-0);
}
.pv-dock.my-turn::before { height: 7px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 11px, var(--ink-0) 11px 22px); }
.pv-dock.asked::before { height: 7px; background: repeating-linear-gradient(-45deg, var(--red) 0 11px, var(--paper-hi) 11px 22px); }
.pv-dock > * { margin-left: 16px; margin-right: 16px; }
.pv-merow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.pv-me {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 150px; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.pv-medal.me { --s: 44px; }
.pv-me.turn .pv-av { box-shadow: 0 0 0 2px var(--ink-0), 0 0 22px 6px rgb(243 182 47 / .5); }
.pv-me-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pv-me-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; font: 800 1.2rem/1 var(--f-label); letter-spacing: .03em; text-transform: uppercase; }
.pv-me-sub { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pv-me-char { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 600 .84rem/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--text-2); text-decoration: underline dotted rgb(185 178 163 / .6); text-underline-offset: 3px; }
.pv-me-stats { display: flex; gap: 6px; flex: none; }
.pv-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 50px; padding: 5px 8px 6px; border-radius: 7px;
  background: rgb(244 234 214 / .07); border: 1px solid var(--line);
  font: 700 .75rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}
.pv-stat b { font: 400 1.05rem/1 var(--f-display); letter-spacing: .02em; color: var(--text); }
.pv-stat.life { padding-top: 4px; border-color: rgb(216 58 46 / .55); background: rgb(216 58 46 / .14); }
.pv-stat.life b { display: flex; align-items: flex-end; gap: 1px; }
.pv-stat.life small { margin-bottom: 2px; font: 400 .86rem/1 var(--f-display); color: var(--text-2); }
.pv-me-inplay { display: flex; gap: 4px; flex: none; }
.pv-me-inplay .pvk.tiny { --w: 30px; }
.pv-medic { flex: none; gap: 6px; }

/* le bandeau de visée et ce qu'on me demande : un papier épinglé, avec une tranche de couleur */
.pv-banner, .pv-act {
  position: relative; overflow: hidden; border-radius: 10px; border: 2px solid var(--ink-0); box-shadow: var(--hard);
  background: var(--grain, none) var(--paper); color: var(--ink);
}
.pv-banner::before, .pv-act::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--ink); }
.pv-banner { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; animation: pv-rise .22s var(--ease); }
.pv-banner::before, .pv-act.attack::before { background: repeating-linear-gradient(-45deg, var(--red) 0 7px, var(--paper-hi) 7px 14px); }
.pv-act.gold::before { background: var(--yellow); }
.pv-banner-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; line-height: 1.25; color: #4a423a; }
.pv-banner-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 1.05rem/1.1 var(--f-label); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.pv-banner .btn { flex: none; }
.pv-banner .pv-emb { width: 34px; height: 34px; }
.pv-emb-card { flex: none; }
.pv-emb-card .pvk { rotate: -5deg; }
.pv-act { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 13px 19px; animation: pv-rise .28s var(--ease); }
@keyframes pv-rise { from { translate: 0 14px; opacity: 0; } }
.pv-act-head { display: flex; align-items: center; gap: 12px; }
.pv-act-head strong { display: block; font: 800 1.14rem/1.12 var(--f-label); letter-spacing: .02em; text-transform: uppercase; }
.pv-act-head p { margin-top: 3px; font-size: .9rem; line-height: 1.3; color: #4a423a; }
.pv-act-art { flex: none; display: block; }
.pv-act-art .pvk { rotate: -6deg; --w: 44px !important; }
.pv-act-art.emb { width: 46px; height: 46px; }
.pv-act-art.emb svg { display: block; width: 100%; height: 100%; }
.pv-act-art.num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 400 1.4rem/1 var(--f-display); }
.pv-act-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-act-btns .btn { flex: 1 1 auto; min-height: 44px; padding: .4rem .7rem; font-size: .96rem; }
.pv-act-btns .btn.small { flex: 1 1 28%; min-height: 40px; padding: .3rem .5rem; }
.pv-pick { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 6px; scrollbar-width: thin; }
.pv-pick > :first-child { margin-left: auto; }
.pv-pick > :last-child { margin-right: auto; }
.pv-pick.big { flex-wrap: wrap; overflow: visible; justify-content: center; }
.pv-pick.big > * { margin: 0; }
.pv-pick > .pvk { box-shadow: 0 0 0 2px var(--ink-0), 0 6px 12px -6px rgb(0 0 0 / .5); }
.pv-pick > .pvk.chosen { box-shadow: 0 0 0 4px var(--yellow), 0 0 0 6px var(--ink-0); }
.pv-pickopt {
  display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 136px; padding: 9px 9px 8px; border-radius: 9px; cursor: pointer;
  background: var(--paper-hi); border: 2px solid var(--ink-0); box-shadow: var(--hard); color: var(--ink);
  font: 700 .86rem/1.15 var(--f-label); letter-spacing: .04em; text-transform: uppercase; text-align: center; transition: transform .1s, box-shadow .1s;
}
.pv-pickopt:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink-0); }
.pv-fan { display: flex; padding: 4px 0; }
.pv-fan .pvk + .pvk { margin-left: -34px; }
.pv-fan .pvk:nth-child(1) { rotate: -10deg; }
.pv-fan .pvk:nth-child(3) { rotate: 10deg; }

/* ma main : côte à côte (l'effet de chaque carte reste lisible), on fait défiler s'il en manque */
.pv-hand {
  display: flex; align-items: flex-end; gap: 8px; min-width: 0; min-height: calc(var(--hw) * 1.45 + 28px);
  padding: 18px 16px 8px; margin: 0 !important; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgb(244 234 214 / .25) transparent;
}
.pv-hand > :first-child { margin-left: auto; }
.pv-hand > :last-child { margin-right: auto; }
.pvk.hand { --w: var(--hw); }
.pvk.hand.playable { translate: 0 -7px; box-shadow: 0 0 0 3px var(--yellow), 0 0 22px 1px rgb(243 182 47 / .5), var(--card-sh); }
.pvk.hand.usable { box-shadow: 0 0 0 3px var(--red), 0 0 22px 2px rgb(216 58 46 / .7), var(--card-sh); animation: pv-want 1.1s ease-in-out infinite; }
@keyframes pv-want { 50% { translate: 0 -8px; } }
.pvk.hand.discardable { box-shadow: 0 0 0 2.5px var(--paper-hi), var(--card-sh); }
.pvk.hand.pickable { box-shadow: 0 0 0 2px rgb(244 234 214 / .6), var(--card-sh); }
.pvk.hand.idle { filter: brightness(.5) saturate(.55); }
.pvk.hand.chosen, .pvk.hand.aiming { translate: 0 -12px; }
.pvk.hand.aiming { box-shadow: 0 0 0 3px var(--red), var(--card-sh); }
@media (hover: hover) { .pvk.hand:hover { transform: translateY(-6px); } }
.pvk.hand:active { transform: scale(.97); }
.pv-nohand { margin: auto; padding: 1rem 0; color: var(--text-2); font-size: .92rem; text-align: center; }
.pv-dock.dead .pv-hand { min-height: 0; padding: 0 16px; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-hint { font-size: .86rem; line-height: 1.3; color: var(--text-2); }
.pv-end { flex: none; min-width: 9.5rem; }
.pv-end.nudge { animation: pv-nudge 1.5s ease-in-out infinite; }
@keyframes pv-nudge { 50% { box-shadow: var(--hard), 0 0 0 6px rgb(216 58 46 / .35); } }

/* ---- couche des animations ---- */
.pv-fly { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.pv-float {
  position: absolute; z-index: 3; white-space: nowrap; padding: 1px 10px 3px; border-radius: 5px; border: 2px solid var(--ink-0);
  box-shadow: 3px 3px 0 var(--ink-0); font: 400 1.3rem/1.15 var(--f-display); letter-spacing: .03em; text-transform: uppercase; color: var(--paper-hi);
}
.pv-float.hurt { background: var(--red); font-size: 1.7rem; }
.pv-float.miss { background: var(--paper); color: var(--ink); font-size: 1.1rem; }
.pv-float.boom { background: var(--yellow); color: var(--ink); font-size: 1.8rem; }
.pv-float.elim { background: var(--ink); font-size: 1rem; border-color: var(--paper); }
.pv-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.pv-spark.s1 { background: #f0782a; width: 8px; height: 8px; }
.pv-spark.s2 { background: var(--paper-hi); width: 6px; height: 6px; }
.pv-confetti { position: absolute; top: 0; width: 8px; height: 13px; border-radius: 1px; }
@keyframes pv-in { from { translate: 0 6px; opacity: 0; } }
@keyframes pv-fade { from { opacity: 0; } }

/* ---- fenêtres (carte, joueur, journal, aide) : une feuille de papier qui monte ---- */
.pv-sheet-wrap { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-end; justify-content: center; background: rgb(8 7 6 / .66); }
.pv-sheet-wrap.open { display: flex; animation: pv-fade .2s ease-out; }
.pv-sheet {
  position: relative; width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 26px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border: 2px solid var(--ink-0); border-bottom: 0;
  background: var(--grain, none) var(--paper); color: var(--ink); box-shadow: 0 -20px 50px -20px #000; animation: pv-sheet .3s var(--ease);
  font-size: .96rem; line-height: 1.45;
}
@keyframes pv-sheet { from { translate: 0 60px; opacity: .3; } }
.pv-grip { position: absolute; left: 50%; top: 9px; translate: -50% 0; width: 44px; height: 5px; border-radius: 3px; background: rgb(27 23 20 / .22); }
.pv-sheet h2 { font: 400 1.7rem/1.05 var(--f-display); letter-spacing: .015em; text-transform: uppercase; color: var(--ink); }
.pv-sheet h2 em { font: 600 .9rem/1 var(--f-body); font-style: normal; text-transform: none; letter-spacing: 0; color: #6d645a; }
.pv-sheet h3 {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 800 1.05rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase;
}
.pv-sheet h3::after { content: ''; flex: 1; height: 3px; background: var(--ink); }
.pv-muted { color: #5d554c; }
.pv-small { font-size: .86rem; color: #5d554c; }
.pv-cardview { display: flex; gap: 18px; align-items: center; }
.pv-cardview .pvk.big { rotate: -2.5deg; }
.pv-cardview-t { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pv-kind {
  align-self: flex-start; padding: 3px 8px; border-radius: 4px; background: var(--brun); color: var(--paper-hi);
  font: 700 .78rem/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase;
}
.pv-kind.bleu { background: var(--blue); }
@media (max-width: 420px) {
  .pv-cardview { flex-direction: column; text-align: center; gap: 16px; }
  .pv-kind { align-self: center; }
}
.pv-sheet-btns { display: flex; flex-direction: column; gap: 9px; }
.pv-why { padding: 9px 12px; border-radius: 7px; border-left: 5px solid var(--red); background: #f3d3cb; color: #5f150e; font-weight: 600; font-size: .92rem; }
.pv-why.soft { border-left-color: rgb(27 23 20 / .35); background: rgb(27 23 20 / .07); color: #4a423a; }
.pv-who { display: flex; align-items: center; gap: 14px; }
.pv-who h2 { margin-bottom: 7px; }
.pv-goal { font-size: .98rem; line-height: 1.42; color: #3b342e; }
.pv-charblock {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 9px; text-align: left;
  background: var(--paper-hi); border: 2px solid var(--ink-0); box-shadow: var(--hard);
}
.pv-charblock strong { font: 800 1.12rem/1.1 var(--f-label); letter-spacing: .03em; text-transform: uppercase; }
.pv-charblock p { margin-top: 5px; font-size: .92rem; line-height: 1.4; color: #3b342e; }
.pv-balls {
  display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: var(--yellow); vertical-align: 2px;
  font: 700 .76rem/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase;
}
.pv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 7px; }
.pv-facts > span {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 7px; background: rgb(27 23 20 / .07);
  font: 700 .75rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: #5d554c;
}
.pv-facts b { font: 400 1.25rem/1 var(--f-display); letter-spacing: .02em; color: var(--ink); }
.pv-sheet-list { display: flex; flex-direction: column; gap: 8px; }
.pv-line { display: flex; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 9px; background: var(--paper-hi); border: 1.5px solid rgb(27 23 20 / .18); }
.pv-line strong { font: 800 1.04rem/1.1 var(--f-label); letter-spacing: .03em; text-transform: uppercase; }
.pv-line p { margin-top: 3px; font-size: .9rem; line-height: 1.38; color: #3b342e; }
.pv-times { margin-left: 6px; font: 700 .82rem/1 var(--f-label); letter-spacing: .04em; color: #7a7065; }
.pv-journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; max-height: 50dvh; overflow-y: auto; font-size: .92rem; }
.pv-journal li { display: flex; gap: 9px; align-items: baseline; padding: 7px 10px; border-radius: 7px; background: var(--paper-hi); border-left: 4px solid rgb(27 23 20 / .16); line-height: 1.35; }
.pv-journal li:first-child { border-left-color: var(--red); font-weight: 600; }
.pv-jt { flex: none; min-width: 1.9rem; font: 400 .78rem/1 var(--f-display); letter-spacing: .04em; color: #7a7065; }

/* ---- affiches : mon rôle au début, la fin de la partie ---- */
.pv-overlay { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px 20px 22px 14px; background: rgb(8 7 6 / .8); }
.pv-overlay.open { display: grid; animation: pv-fade .3s ease-out; }
.pv-over-card {
  --pc: var(--ink); --pc2: #2a2522; --pt: var(--paper-hi);
  width: 100%; max-width: 400px; max-height: 92dvh; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 13px;
  padding-bottom: 16px; border-radius: 12px; border: 3px solid var(--ink-0); box-shadow: 7px 7px 0 var(--ink-0);
  background: var(--grain, none) var(--paper); color: var(--ink); text-align: center; animation: pv-card .45s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes pv-card { from { scale: .82; translate: 0 30px; rotate: -2deg; opacity: 0; } }
.pv-over-card > :not(.pv-poster-top), .pv .pv-over-card > .btn.big { width: calc(100% - 32px); }
.pv-poster-top { /* les rayons de l'affiche, à l'encre du camp */
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 16px 18px; border-bottom: 3px solid var(--ink-0);
  background: repeating-conic-gradient(from -6deg at 50% 64%, var(--pc) 0 12deg, var(--pc2) 12deg 24deg);
}
.pv-kicker {
  padding: 4px 10px; border-radius: 3px; background: var(--ink-0); color: var(--paper);
  font: 700 .8rem/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase;
}
.pv-over-card h1 { font: 400 2.1rem/1.02 var(--f-display); letter-spacing: .015em; text-transform: uppercase; }
.pv-poster-top h1 { color: var(--pt); text-shadow: 3px 3px 0 var(--ink-0); }
.pv-role-name { font-size: 2.9rem !important; }
.pv-overlay.role-president .pv-over-card, .pv-overlay.w-none .pv-over-card { --pc: #f3b62f; --pc2: #f7ca5e; --pt: var(--ink); }
.pv-overlay.role-crs .pv-over-card, .pv-overlay.w-loi .pv-over-card { --pc: #244f96; --pc2: #2f63b8; }
.pv-overlay.role-manifestant .pv-over-card, .pv-overlay.w-manifestants .pv-over-card { --pc: #d83a2e; --pc2: #e4594a; }
.pv-overlay.role-agitateur .pv-over-card, .pv-overlay.w-agitateur .pv-over-card { --pc: #2c2438; --pc2: #3b3149; }
.pv-over-card .pv-muted { font-size: .95rem; }
.pv-verdict { width: auto !important; padding: 5px 16px 6px; border-radius: 5px; border: 2px solid var(--ink-0); font: 400 1.25rem/1.1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; rotate: -2deg; }
.pv-verdict.win { background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink-0); }
.pv-verdict.lose { background: transparent; color: #5d554c; border-style: dashed; }
.pv-over-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.pv-over-roles li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--paper-hi); border: 1.5px solid rgb(27 23 20 / .18); }
.pv-over-roles li.won { border: 2px solid var(--ink-0); background: #fbe7ad; }
.pv-or-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.pv-or-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 1rem/1.1 var(--f-label); letter-spacing: .03em; text-transform: uppercase; }
.pv-or-who span { font-size: .8rem; color: #5d554c; }

/* ---- grand écran ---- */
@media (min-width: 900px) {
  .pv { --hw: clamp(96px, min(9vw, 17dvh), 132px); }
  .pv-dock > * { margin-left: max(16px, calc(50vw - 480px)); margin-right: max(16px, calc(50vw - 480px)); }
  .pv-hand { margin: 0 auto !important; width: min(100%, 1000px); }
  .pv-seat { --s: 62px; }
  .pv-name { font-size: .95rem; padding: 5px 10px; }
  .pv-seat-role, .pv-seat-char { width: 28px; height: 28px; }
  .pv-hc { width: 22px; height: 30px; font-size: .92rem; }
  .pvk.tiny { --w: 28px; }
  .pv-pile { --w: 78px; }
  .pv-ticker { font-size: .9rem; }
  .pv-sheet { border-radius: 16px; border-bottom: 2px solid var(--ink-0); margin-bottom: 4vh; box-shadow: 7px 7px 0 var(--ink-0); }
}
@media (prefers-reduced-motion: reduce) {
  .pv *, .pv *::before, .pv *::after { animation: none !important; transition: none !important; }
}

/* ===== écran de table : la tablette posée à plat au milieu de la table (docs/plateau-reel.md) =====
   Tout le monde autour de la rue, chaque siège tourné vers la place de son joueur ; grand, lisible de loin.
   Pas de main, pas de bouton de jeu : toucher une carte ou un joueur le montre en grand. */
.pv.table { grid-template-rows: minmax(0, 1fr); }
.pv.table .pv-hud { position: absolute; right: 0; top: 0; z-index: 8; padding: 10px; }
.pv.table .pv-hud .pv-round { opacity: .55; }
.pv.table .pv-hud .pv-round:hover { opacity: 1; }
.pv.table .pv-pill, .pv.table .pv-ticker, .pv.table .pv-cue, .pv.table .pv-dock { display: none; }
.pv.table .pv-stage { grid-row: 1; }
.pv-tstat { display: none; }
.pv.table .pv-tstat {
  position: absolute; z-index: 3; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; pointer-events: none;
}
.pv.table .pv-tstat.far { rotate: 180deg; }
.pv-tstat b {
  max-width: 100%; padding: 5px 16px 6px; border-radius: 7px; border: 2px solid var(--ink-0); box-shadow: 0 4px 0 var(--ink-0);
  background: var(--paper); color: var(--ink); font: 400 clamp(1.1rem, 2.3vmin, 1.7rem)/1.1 var(--f-display); letter-spacing: .03em; text-transform: uppercase;
}
.pv-tstat b.turn { background: var(--yellow); }
.pv-tstat b.hot { background: var(--red); color: var(--paper-hi); }
.pv-tstat span {
  max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 clamp(.9rem, 1.7vmin, 1.15rem)/1.3 var(--f-body); color: var(--text-2);
}
/* la rue : plus grande, la pioche et la défausse à la taille du milieu */
.pv.table .pv-pile { --w: var(--pw, 96px); }
.pv.table .pv-piles { margin-top: 0; gap: clamp(20px, 4vmin, 44px); }
.pv.table .pv-pilebox { font-size: .9rem; }
.pv.table .pv-count { min-width: 36px; height: 36px; font-size: 1.15rem; border-radius: 18px; }
.pv.table .pvk.store { --w: clamp(64px, 8vmin, 96px); }
.pv.table .pv-store { inset: auto -20% -10%; }
.pv.table .pv-store p { font-size: 1rem; }
.pv.table .pv-flip { --w: clamp(84px, 13vmin, 140px); }
.pv.table .pv-reveal-t { font-size: 1.05rem; }
/* les sièges : grands, tournés ; sous le médaillon, le nom, le personnage, la portée et ce qui est posé devant lui */
.pv.table .pv-seat { --s: clamp(62px, 9.4vmin, 100px); --sw: clamp(176px, 25vmin, 250px); width: var(--sw); gap: 6px; }
.pv.table.crowd .pv-seat { --s: clamp(58px, 8.6vmin, 90px); --sw: clamp(160px, 23vmin, 224px); }
.pv.table .pv-name { max-width: 100%; padding: 5px 12px 6px; font-size: clamp(1rem, 1.9vmin, 1.25rem); }
.pv.table .pv-seat .pv-medal { margin-bottom: 8px; }
.pv.table .pv-hp { width: 40px; height: 37px; bottom: -14px; }
.pv.table .pv-hp b { font-size: 1.4rem; }
.pv.table .pv-hc { width: 26px; height: 36px; font-size: 1.1rem; right: -10px; }
.pv.table .pv-dist { height: 30px; min-width: 34px; padding: 0 9px; border-radius: 15px; font-size: 1.1rem; left: -12px; }
.pv.table .pv-dist::before { font-size: .9rem; }
.pv.table .pv-seat-role, .pv.table .pv-seat-char { width: 34px; height: 34px; }
.pv.table .pv-seat-role { left: -12px; }
.pv.table .pv-seat-char { right: -12px; }
.pv.table .pv-seat.president .pv-seat-role, .pv.table .pv-seat.dead .pv-seat-role { width: 40px; height: 40px; left: -16px; }
.pv-seat-sub { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; max-width: 100%; }
.pv-seat-cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 clamp(.82rem, 1.5vmin, .98rem)/1.2 var(--f-body); color: var(--text-2); }
.pv-seat-range {
  flex: none; padding: 2px 7px 3px; border-radius: 5px; background: rgb(244 234 214 / .1); border: 1px solid var(--line);
  font: 700 .8rem/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.pv-seat-range b { font: 400 1rem/1 var(--f-display); color: var(--text); }
/* ce qui est posé devant lui : toujours sur un rang, les cartes rapetissent quand il y en a beaucoup */
.pv.table .pv-seat-inplay { gap: 5px; flex-wrap: nowrap; }
.pvk.onseat { --w: min(clamp(40px, 5.6vmin, 58px), calc((var(--sw, 200px) - 4px - (var(--n, 1) - 1) * 5px) / var(--n, 1))); box-shadow: 0 2px 5px rgb(0 0 0 / .6); }
.pv.table .pv-seat.turn .pv-av { box-shadow: 0 0 0 3px var(--yellow), 0 0 40px 14px rgb(243 182 47 / .55); }
.pv.table .pv-seat.turn .pv-name { box-shadow: 0 3px 0 var(--ink-0); }
.pv.table .pv-float { transform-origin: 0 0; font-size: 1.8rem; }
.pv.table .pv-float.hurt, .pv.table .pv-float.boom { font-size: 2.4rem; }
/* une carte ou un joueur touché, en grand au milieu (tourné vers le côté d'où on l'a touché) */
.pv-zoom { display: none; }
.pv.table .pv-zoom.open {
  position: absolute; left: 50%; top: 50%; z-index: 40; translate: -50% -50%; display: block; cursor: pointer;
  animation: pv-zoom .22s var(--ease);
}
@keyframes pv-zoom { from { opacity: 0; scale: .85; } }
.pv-zoom-in {
  display: flex; align-items: center; gap: 22px; max-width: min(92vw, 640px); padding: 20px 22px; border-radius: 14px;
  background: var(--grain, none) var(--paper); color: var(--ink); border: 2px solid var(--ink-0); box-shadow: 8px 8px 0 var(--ink-0), 0 30px 60px -20px #000;
}
.pvk.zoomed { --w: clamp(150px, 26vmin, 230px); rotate: -2deg; }
.pv-zoom-t { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pv-zoom-t.wide { width: min(80vw, 480px); gap: 14px; }
.pv-zoom-t h2 { font: 400 clamp(1.6rem, 3.6vmin, 2.3rem)/1.05 var(--f-display); text-transform: uppercase; }
.pv-zoom-t p { font-size: clamp(1rem, 2vmin, 1.2rem); line-height: 1.4; }

/* ===== manette : le téléphone d'un joueur quand l'écran de table est posé =====
   La rue et les autres sont sur la table : le téléphone ne garde que ma place, ce qu'on me demande et ma main, en grand. */
.pv.pad .pv-stage { display: none; }
.pv.pad { --hw: clamp(96px, min(29vw, 17dvh), 150px); }
.pv.pad .pv-dock { align-content: start; overflow-y: auto; }
.pv.pad .pv-hand { flex-wrap: wrap; justify-content: center; overflow: visible; min-height: 0; padding-top: 14px; }
.pv.pad .pv-hand > :first-child, .pv.pad .pv-hand > :last-child { margin-left: 0; margin-right: 0; }
.pv.pad .pv-banner { flex-wrap: wrap; }
.pv-targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; width: 100%; }
.pv-targets .btn { min-height: 48px; }
