/* ===== Dune: Imperium — Arrakis : sable et nuit, épice orangée, cartes bleu nuit cerclées de la couleur de leur Faction
   (Empereur gris, Guilde rouge, Bene Gesserit violet, Fremen bleu). Tout est préfixé « du- ». Les dessins sont tous faits
   en SVG et en CSS (public/js/games/dune-art.js).
   Deux affichages : le PLATEAU (classe .table : une tablette posée à plat au milieu des joueurs, lisible de loin, les
   joueurs assis en haut sont lus à l'envers par ceux d'en bas) et la MANETTE du téléphone (classe .pad, ou téléphone seul). ===== */

.du, .rb {
  --du-bg: #17110b;
  --du-bg2: #241a11;
  --du-panel: #2a1f14;
  --du-panel2: #34281b;
  --du-line: #5a4630;
  --du-sand: #e6d4a8;
  --du-sand2: #cdb783;
  --du-ink: #2a1d12;
  --du-text: #f3e8d2;
  --du-text2: #bfae92;
  --du-night: #151a30;
  --du-night2: #232a4a;
  --du-spice: #ec7a2c;
  --du-gold: #e2b63a;
  --du-water: #4aa8e0;
  --du-red: #d9473b;
  --du-green: #4cae6a;
  --du-emperor: #6d7078;
  --du-guild: #c8392e;
  --du-bene: #9a62bd;
  --du-fremen: #3c8fcc;
  --du-display: 'Cinzel', 'Fraunces', Georgia, serif;
  --du-label: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --du-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.du {
  position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); overflow: hidden; overflow: clip;
  color: var(--du-text); font-family: var(--du-body); font-weight: 500; line-height: 1.25; font-size: 15px;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(236 122 44 / .16), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgb(60 143 204 / .10), transparent 70%),
    var(--du-bg);
}
.du [hidden] { display: none !important; }
.du h1, .du h2, .du h3, .du h4, .du p, .du ol, .du ul { margin: 0; padding: 0; }
.du button { font-family: inherit; color: inherit; }
.du :focus-visible { outline: 3px solid var(--du-gold); outline-offset: 2px; }
.du .dim { opacity: .55; }
.du em { color: inherit; } /* style.css colore les <em> du reste de la plateforme */
.du-ico { width: 1.2em; height: 1.2em; flex: none; display: block; }

/* ---- barre du haut ---- */
.du-top { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: calc(.45em + env(safe-area-inset-top)) .7em .35em; min-width: 0; }
.du-top-r { display: flex; align-items: center; gap: .4em; flex: none; }
.du-top > .du-round-btn { flex: none; }
.du-top .du-pill { flex: 0 1 auto; min-width: 0; }
@media (max-width: 600px) { .du:not(.table) .du-roundno, .du:not(.table) .du-chip-conf { display: none; } .du:not(.table) .du-pill { padding: 0 .8em; } }
.du-pill { display: flex; align-items: center; gap: .55em; min-width: 0; height: 2.5em; padding: 0 1em; border-radius: 999px; background: var(--du-panel); border: 2px solid var(--du-line); font: 700 .95em/1 var(--du-label); letter-spacing: .02em; white-space: nowrap; }
.du-pill .du-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--du-text2); flex: none; }
.du-pill.mine { background: var(--du-gold); border-color: #fff3c4; color: #2a1d12; }
.du-pill.mine .du-dot { background: #2a1d12; animation: du-blink 1.1s ease-in-out infinite; }
.du-pill-t { overflow: hidden; text-overflow: ellipsis; }
@keyframes du-blink { 50% { opacity: .25; } }
.du-round-btn { width: 2.5em; height: 2.5em; border-radius: 50%; border: 2px solid var(--du-line); background: var(--du-panel); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; font: 800 1.05em var(--du-display); }
.du-round-btn:hover { background: var(--du-panel2); }
.du-round-btn .du-ico { width: 1.15em; height: 1.15em; }
.du-roundno, .du-phase, .du-chip-conf { font: 700 .85em var(--du-label); letter-spacing: .05em; text-transform: uppercase; color: var(--du-text2); white-space: nowrap; }
.du-chip-conf { color: var(--du-spice); }

/* ---- boutons ---- */
.du-btn { min-height: 2.8em; padding: 0 1.2em; border-radius: .8em; border: 2px solid var(--du-line); background: var(--du-panel2); color: var(--du-text); font: 700 .95em var(--du-label); letter-spacing: .03em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5em; }
.du-btn.primary { background: linear-gradient(180deg, #f08a3c, #d8651a); border-color: #ffcf9d; color: #2a1405; box-shadow: 0 2px 0 #8d3a0e; }
.du-btn.primary:disabled { background: var(--du-panel2); border-color: var(--du-line); color: var(--du-text2); box-shadow: none; cursor: default; }
.du-btn.ghost { background: transparent; }
.du-btn.danger { background: var(--du-red); border-color: #ffb3aa; color: #fff; }
.du-btn.sm { min-height: 2.2em; padding: 0 .9em; font-size: .85em; }
.du-btn:active:not(:disabled) { transform: translateY(1px); }
.du-actions { display: flex; flex-wrap: wrap; gap: .6em; margin-top: .7em; }
.du-actions .du-btn.primary { flex: 1 1 12em; }
.du-actions.end { justify-content: flex-end; }

/* ---- puces et icônes de ressources ---- */
.du-chip, .du-r { display: inline-flex; align-items: center; gap: .12em; vertical-align: middle; white-space: nowrap; }
.du-chip b, .du-r b { font: 800 1em var(--du-label); }
.du-chip .du-ico, .du-r .du-ico { width: 1.25em; height: 1.25em; }
.du-r { margin: 0 .08em; padding: 0 .22em 0 .3em; border-radius: .4em; background: rgb(255 255 255 / .1); }
.du-chip.cost { padding: 0 .3em 0 .35em; border-radius: .4em; background: rgb(0 0 0 / .28); }
.du-chip.bonus { color: #ffd2a6; }
.du-stat { display: inline-flex; align-items: center; gap: .25em; font-family: var(--du-label); }
.du-stat b { font-weight: 800; font-size: 1.15em; }
.du-stat .du-ico { width: 1.3em; height: 1.3em; }
.du-cube { display: inline-block; width: .75em; height: .75em; border-radius: .15em; background: var(--pc, #999); border: 1px solid rgb(0 0 0 / .55); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); flex: none; }
.du-cube.big { width: 1em; height: 1em; }
.du-tok { display: inline-flex; width: 1.5em; height: 1.5em; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .6)); }
.du-tok .du-ico { width: 100%; height: 100%; stroke: rgb(0 0 0 / .55); stroke-width: .9; paint-order: stroke; }

/* =====================================================================================================
   LES CARTES (--w : la largeur ; le texte suit)
   ===================================================================================================== */
.du-card { --w: 9em; width: var(--w); aspect-ratio: 5 / 7; flex: none; position: relative; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; text-align: left; padding: 0; border: 0; color: var(--du-text); font-weight: 600; cursor: default; border-radius: calc(var(--w) / 14); }
button.du-card { cursor: pointer; }
.du-card > * { font-size: calc(var(--w) / 11.5); }
.du-card.face { background: linear-gradient(180deg, var(--fc, #4e5470) 0 15%, #1b2140 15% 100%); box-shadow: 0 0 0 calc(var(--w) / 70) var(--fc, #565c78), 0 .15em .5em rgb(0 0 0 / .5); }
.du-card.face.two { background: linear-gradient(180deg, var(--fc) 0 7.5%, var(--fc2) 7.5% 15%, #1b2140 15% 100%); }
.du-card.face.start { background: linear-gradient(180deg, #7a6a4a 0 15%, #1d2038 15% 100%); box-shadow: 0 0 0 calc(var(--w) / 70) #8a7a58, 0 .15em .5em rgb(0 0 0 / .5); }
.du-c-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .3em; padding: .35em .45em .2em; }
.du-c-name { font: 800 1em/1.05 var(--du-label); letter-spacing: .02em; text-shadow: 0 1px 0 rgb(0 0 0 / .45); }
.du-c-cost { flex: none; width: 1.7em; height: 1.7em; display: grid; place-items: center; background: #5db0e9; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); color: #072b4a; margin-top: -.1em; }
.du-c-cost b { font: 900 .95em var(--du-label); }
.du-c-fac { display: flex; flex-wrap: wrap; gap: .25em; padding: 0 .45em; margin-top: .35em; }
.du-c-fac .tag { display: inline-flex; align-items: center; gap: .2em; font: 700 .72em var(--du-label); letter-spacing: .06em; text-transform: uppercase; background: rgb(0 0 0 / .35); border-radius: .5em; padding: .05em .5em .05em .2em; }
.du-c-fac .du-ico { width: 1.3em; height: 1.3em; }
.du-c-body { flex: 1; min-height: 0; display: flex; gap: .3em; padding: .35em .35em .4em .3em; }
.du-c-icons { display: flex; flex-direction: column; gap: .2em; flex: none; width: 1.7em; padding-top: .1em; }
.du-c-icons .du-ico { width: 1.6em; height: 1.6em; }
.du-c-boxes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3em; }
.du-c-box { display: block; border-radius: .45em; padding: .22em .4em .3em; font-size: .86em; line-height: 1.22; background: rgb(255 255 255 / .1); }
.du-c-box em { display: block; font: 800 .74em var(--du-label); font-style: normal; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: .1em; }
.du-c-box.agent { background: rgb(205 190 150 / .2); flex: 1.2 1 0; }
.du-c-box.reveal { background: rgb(60 143 204 / .22); flex: 1 1 0; }
.du-c-box.acq { background: rgb(226 182 58 / .22); }
.du-c-box.none { opacity: .7; }
.du-card.long .du-c-box { font-size: .78em; }
.du-card .du-r { background: rgb(0 0 0 / .3); }

/* états */
.du-card.can { box-shadow: 0 0 0 .2em var(--du-gold), 0 .2em .8em rgb(226 182 58 / .45); }
.du-card.cant { opacity: .5; filter: saturate(.55); }
.du-card.sel { transform: translateY(-.5em) scale(1.04); box-shadow: 0 0 0 .22em var(--du-spice), 0 .3em 1em rgb(236 122 44 / .6); z-index: 2; }
.du-card.flash { animation: du-flash 1.2s ease-out 2; }
@keyframes du-flash { 0% { box-shadow: 0 0 0 .4em var(--du-gold); } 100% { box-shadow: 0 0 0 0 transparent; } }
.du-card.mini { --w: auto; width: auto; aspect-ratio: auto; border-radius: .4em; flex-direction: row; background: var(--fc, #4e5470); box-shadow: 0 0 0 1px rgb(0 0 0 / .5); }
.du-card.mini .du-c-body, .du-card.mini .du-c-fac, .du-card.mini .du-c-cost { display: none; }
.du-card.mini > * { font-size: .68em; }
.du-card.mini .du-c-head { padding: .2em .55em; }
.du-card.mini.start { background: #7a6a4a; }

/* dos */
.du-card.back { background: repeating-linear-gradient(135deg, #1d2240 0 .35em, #232a50 .35em .7em); box-shadow: 0 0 0 calc(var(--w) / 60) #7a6a4a; display: grid; place-items: center; }
.du-card.back.k-intrigue { background: repeating-linear-gradient(135deg, #1b1612 0 .35em, #231c16 .35em .7em); box-shadow: 0 0 0 calc(var(--w) / 60) #c9a54a; }
.du-back-art { display: grid; place-items: center; width: 50%; color: #c9a54a; opacity: .85; }
.du-back-art .du-ico { width: 100%; height: auto; }

/* Intrigue */
.du-card.intrigue { background: linear-gradient(180deg, #17120d 0 22%, #6b5333 22% 100%); box-shadow: 0 0 0 calc(var(--w) / 70) #c9a54a, 0 .15em .5em rgb(0 0 0 / .5); color: #1d150c; }
.du-card.intrigue .du-c-head { background: #17120d; color: #f3e8d2; padding: .5em .5em .35em; }
.du-card.intrigue.it-combat { background: linear-gradient(180deg, #2a0e0b 0 22%, #a63a2c 22% 100%); color: #fff2ea; }
.du-card.intrigue.it-endgame { background: linear-gradient(180deg, #0f1a26 0 22%, #3b5a78 22% 100%); color: #eef6ff; }
.du-card.intrigue.it-combat .du-c-head, .du-card.intrigue.it-endgame .du-c-head { background: transparent; color: inherit; }
.du-i-body { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: .3em .55em; font-size: calc(var(--w) / 11.5); line-height: 1.28; font-weight: 700; }
.du-i-type { text-align: center; font: 800 .8em var(--du-label); letter-spacing: .14em; text-transform: uppercase; padding: .3em 0 .45em; background: rgb(0 0 0 / .72); color: #e6c46a; }
.du-card.intrigue.it-combat .du-i-type { color: #ffb3a6; }
.du-card.intrigue.it-endgame .du-i-type { color: #a9d2ff; }
.du-card.intrigue .du-r { background: rgb(0 0 0 / .22); }

/* Conflit */
.du-card.conflict { background: linear-gradient(180deg, #3a0f0c 0 17%, #7b2418 17% 100%); box-shadow: 0 0 0 calc(var(--w) / 70) #d96a52, 0 .15em .5em rgb(0 0 0 / .5); }
.du-card.conflict .du-c-head { align-items: center; }
.du-lv { font: 800 .9em var(--du-display); color: #ffb9a8; letter-spacing: .08em; }
.du-cf-rows { flex: 1; display: flex; flex-direction: column; gap: .3em; padding: .3em .4em .5em; }
.du-cf-row { flex: 1; display: flex; align-items: center; gap: .4em; padding: 0 .4em; border-radius: .4em; background: rgb(0 0 0 / .28); }
.du-cf-row em { font: 800 .8em var(--du-label); font-style: normal; opacity: .75; width: 1.8em; flex: none; }
.du-cf-row.r1 { background: rgb(0 0 0 / .4); }
.du-rew { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em; }
.du-rew .du-chip { font-size: 1.05em; }
.du-chip.k-ctl, .du-chip.k-trash, .du-chip.k-mentat { color: #fff; }
.du-chip.k-inf { gap: .2em; }
.du-inf { display: inline-flex; gap: .05em; }
.du-inf .du-ico { width: .95em; height: .95em; }
.du-or { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25em; font: 700 .75em var(--du-label); }
.du-or i { font-style: normal; opacity: .7; }

/* Dirigeant */
.du-card.leader { aspect-ratio: auto; min-height: calc(var(--w) * 1.25); background: #20263f; box-shadow: 0 0 0 calc(var(--w) / 70) var(--hc, #777), 0 .15em .5em rgb(0 0 0 / .5); padding-bottom: .3em; }
.du-card.leader.sel { transform: translateY(-.3em); }
.du-l-top { display: flex; gap: .5em; align-items: center; padding: .5em .55em; background: var(--hc, #555); }
.du-l-mono { flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .35); border: 2px solid rgb(255 255 255 / .6); font: 800 1em var(--du-display); color: #fff; }
.du-l-id { display: flex; flex-direction: column; min-width: 0; }
.du-l-id b { font: 800 1.05em/1.1 var(--du-label); }
.du-l-id em { font: 600 .8em var(--du-label); font-style: normal; opacity: .8; letter-spacing: .05em; text-transform: uppercase; }
.du-l-cx { color: #ffe9a8; letter-spacing: .1em; font-size: .75em; }
.du-l-box { display: block; margin: .4em .5em 0; padding: .3em .5em .4em; border-radius: .45em; background: rgb(255 255 255 / .09); font-size: .9em; line-height: 1.25; }
.du-l-box b { display: block; font: 800 .86em var(--du-label); letter-spacing: .08em; text-transform: uppercase; color: var(--du-gold); margin-bottom: .1em; }
.du-l-box.signet { background: rgb(226 182 58 / .16); }

/* =====================================================================================================
   LE PLATEAU
   ===================================================================================================== */
.du-board { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .55em; min-height: 0; }
.du-map { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .62fr) minmax(0, 1fr); gap: .45em; min-height: 0; }
.du-facs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .45em; min-height: 0; }
.du-info { display: flex; flex-direction: column; gap: .5em; min-height: 0; }

/* groupes d'emplacements */
.du-fac, .du-land, .du-grp { display: flex; flex-direction: column; min-height: 0; border-radius: .7em; padding: .35em; background: linear-gradient(180deg, var(--du-sand), var(--du-sand2)); color: var(--du-ink); box-shadow: inset 0 0 0 2px rgb(0 0 0 / .18); }
.du-fac { background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 35%, var(--du-sand)), color-mix(in srgb, var(--fc) 22%, var(--du-sand2))); }
.du-fac-h, .du-land > h3, .du-grp > h3 { display: flex; align-items: center; gap: .4em; font: 800 .8em var(--du-label); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25em; }
.du-fac-h .du-ico, .du-land > h3 .du-ico, .du-grp > h3 .du-ico { width: 1.5em; height: 1.5em; }
.du-fac-body { flex: 1; min-height: 0; display: flex; gap: .3em; }
.du-fac-sp, .du-grp-sp { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3em; min-height: 0; }
.du-land { }
.du-land .du-grp-sp { flex: 1; }
.du-land > h3 { justify-content: space-between; }
.du-dune { display: flex; flex-direction: column; gap: .45em; min-height: 0; }
.du-dune .du-grp { flex: 1; }
.du-dune .du-grp-sp { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.du-dune .du-grp.spice { flex: 1.5; }

/* un emplacement */
.du-space { position: relative; flex: 1 1 0; min-height: 4.3em; display: flex; flex-direction: column; gap: .12em; padding: .3em .4em .25em; border-radius: .5em; background: #f6ecd0; color: var(--du-ink); border: 2px solid rgb(60 40 20 / .35); box-shadow: 0 1px 0 rgb(0 0 0 / .25); overflow: hidden; cursor: pointer; }
.du-space.busy { background: #d9ccaa; }
.du-space.i-emperor { border-left: .45em solid var(--du-emperor); }
.du-space.i-guild { border-left: .45em solid var(--du-guild); }
.du-space.i-bene { border-left: .45em solid var(--du-bene); }
.du-space.i-fremen { border-left: .45em solid var(--du-fremen); }
.du-space.i-landsraad { border-left: .45em solid #2f9a56; }
.du-space.i-city { border-left: .45em solid #3f6fd0; }
.du-space.i-spice { border-left: .45em solid #f0b82a; }
.du-space.flash { animation: du-sflash 1.3s ease-out 2; }
@keyframes du-sflash { 0% { box-shadow: 0 0 0 .5em var(--du-spice); } 100% { box-shadow: 0 0 0 0 transparent; } }
.du-s-head { display: flex; align-items: center; gap: .3em; min-width: 0; }
.du-s-ico { width: 1.15em; height: 1.15em; flex: none; }
.du-s-name { flex: 1; min-width: 0; font: 800 .82em/1.05 var(--du-label); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-s-cost { display: inline-flex; gap: .15em; flex: none; font-size: .8em; }
.du-s-cost .du-chip.cost { background: rgb(40 25 10 / .16); }
.du-s-req { font: 700 .62em var(--du-label); color: #7a2a1a; text-transform: uppercase; letter-spacing: .05em; }
.du-s-text { font-size: .62em; line-height: 1.18; font-weight: 600; flex: 1; min-height: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; opacity: .88; }
.du-s-text .du-r { background: rgb(40 25 10 / .13); }
.du-s-foot { display: flex; align-items: center; gap: .3em; min-height: 1.2em; font-size: .7em; }
.du-flag { display: inline-flex; align-items: center; gap: .15em; font-weight: 700; }
.du-flag .du-ico { width: 1.2em; height: 1.2em; }
.du-flag.combat { color: #8a2a1a; }
.du-flag.once { color: #a37d10; }
.du-flag.maker { color: #b25512; }
.du-flag.voice { color: var(--pc); background: #0004; border-radius: .3em; padding: 0 .1em; }
.du-ctrl { display: inline-flex; color: rgb(60 40 20 / .35); }
.du-ctrl.owned { color: var(--pc); filter: drop-shadow(0 0 1px rgb(0 0 0 / .8)); }
.du-ctrl .du-ico { width: 1.3em; height: 1.3em; }
.du-s-occ { position: absolute; right: .25em; bottom: .15em; display: flex; gap: .05em; }
.du-s-occ .du-tok { width: 1.7em; height: 1.7em; }
.du-mentat-home { position: absolute; right: .3em; top: 1.5em; color: #5a4630; opacity: .7; }
.du-mentat-home .du-ico { width: 1.8em; height: 1.8em; }

/* pistes d'Influence */
.du-track { flex: none; width: 2.7em; display: flex; flex-direction: column; gap: 2px; }
.du-cell { flex: 1; min-height: 1.35em; position: relative; display: flex; align-items: center; gap: .1em; padding: 0 .2em; border-radius: .3em; background: rgb(255 255 255 / .38); font: 700 .66em var(--du-label); }
.du-cell.vpc { background: rgb(240 198 64 / .5); }
.du-cell.bonusc { background: color-mix(in srgb, var(--fc) 30%, #fff); flex: 1.4; flex-wrap: wrap; }
.du-lvn { opacity: .5; font-size: .9em; }
.du-cell .du-ico.mini { width: 1.1em; height: 1.1em; }
.du-bonus { font-size: .78em; line-height: 1; max-width: 3.6em; opacity: .85; }
.du-allied { color: var(--pc, #999); }
.du-allied.free { opacity: .35; filter: grayscale(1); }
.du-cubes { margin-left: auto; display: flex; gap: .1em; }
.du-cubes .du-cube { width: .95em; height: .95em; }
.du-fac .du-cell.bonusc { align-items: flex-start; padding-top: .1em; }

/* Landsraad : sièges du Haut Conseil */
.du-council { display: inline-flex; gap: .1em; margin-left: auto; }
.du-seat { color: rgb(60 40 20 / .4); }
.du-seat .du-ico { width: 1.3em; height: 1.3em; }
.du-seat.taken { color: var(--pc); filter: drop-shadow(0 0 1px #000); }

/* le Conflit */
.du-conf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6em; padding: .45em; border-radius: .7em; background: rgb(0 0 0 / .3); border: 2px solid rgb(217 106 82 / .55); min-height: 0; }
.du-conf-card .du-card { --w: 10.2em; }
.du-conf-list { list-style: none; display: flex; flex-direction: column; gap: .3em; justify-content: center; }
.du-conf-list li { display: flex; align-items: center; gap: .45em; padding: .2em .5em; border-radius: .5em; background: rgb(255 255 255 / .06); opacity: .55; font: 700 .95em var(--du-label); }
.du-conf-list li.on { opacity: 1; background: rgb(255 255 255 / .12); }
.du-cl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-cl-t, .du-cl-s, .du-cl-f { display: inline-flex; align-items: center; gap: .15em; }
.du-cl-f { color: var(--du-gold); font-size: 1.1em; }
.du-cl-t .du-ico, .du-cl-s .du-ico { width: 1.1em; height: 1.1em; }

/* la Rangée Imperium */
.du-row { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .45em; padding: .3em .45em; border-radius: .7em; background: rgb(0 0 0 / .3); border: 2px solid var(--du-line); }
.du-row-cards { display: flex; flex-wrap: wrap; gap: .5em; justify-content: flex-start; align-items: flex-start; }
.du-row-cards .du-card { --w: 8.2em; }
.du-piles { display: flex; flex-wrap: wrap; gap: .4em; align-items: flex-end; justify-content: space-between; }
.du-pile { display: flex; flex-direction: column; align-items: center; gap: .1em; font: 700 .8em var(--du-label); text-align: center; }
.du-pile .du-card { --w: 3.2em; }
.du-pile b { font-size: 1.25em; }
.du-pile em { font-style: normal; font-size: .85em; opacity: .75; max-width: 6em; line-height: 1.05; }
.du-pile.res .du-pile-n { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: .5em; background: var(--du-panel2); border: 2px solid var(--du-line); font: 800 1.3em var(--du-label); }

/* =====================================================================================================
   L'ÉCRAN DE TABLE : le plateau au milieu, les joueurs en haut et en bas
   ===================================================================================================== */
.du.table .du-top { padding-top: .3em; padding-bottom: .1em; }
.du.table .du-main { min-height: 0; }
.du-tgrid { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 13.5%) minmax(0, 1fr) minmax(0, 13.5%); gap: .3em; padding: 0 .5em .4em; box-sizing: border-box; }
.du-seats { display: flex; gap: .5em; min-height: 0; }
.du-seats.bottom.n1 { justify-content: center; }
.du-seats.bottom.n1 .du-seat-p { max-width: 50%; }
.du-bwrap { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.du-ticker { flex: 1; min-width: 0; padding: 0 .8em; font: 600 .95em var(--du-label); color: var(--du-text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-banner { display: flex; align-items: baseline; gap: .8em; padding: 0 .6em; font: 700 .9em var(--du-label); white-space: nowrap; overflow: hidden; color: var(--du-text2); }
.du-banner.flip { transform: rotate(180deg); }
.du-bn-ph { font: 800 .85em var(--du-display); color: var(--du-gold); letter-spacing: .08em; text-transform: uppercase; }
.du-bn-t { color: var(--du-text); }
.du-bn-log { margin-left: auto; opacity: .75; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.du.table .du-board { min-height: 0; }
.du.table { --tu: min(1.17vw, 2.1vh); font-size: var(--tu); }
.du-bwrap, .du-board, .du-map, .du-info, .du-fac, .du-land, .du-grp, .du-space, .du-facs, .du-dune, .du-seats { min-width: 0; }
.du.table .du-board { display: flex; flex-direction: column; gap: .45em; min-height: 0; }
.du.table .du-map { flex: none; display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(0, 1.3fr); grid-template-areas: "facs land" "dune dune"; gap: .4em; }
.du.table .du-facs { grid-area: facs; }
.du.table .du-land { grid-area: land; }
.du.table .du-dune { grid-area: dune; flex-direction: row; gap: .4em; }
.du.table .du-dune .du-grp.city { flex: 4 1 0; }
.du.table .du-dune .du-grp.spice { flex: 6 1 0; }
.du.table .du-dune .du-grp.city .du-grp-sp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.du.table .du-dune .du-grp.spice .du-grp-sp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.du.table .du-facs { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; }
.du.table .du-info { flex: 1; flex-direction: row; gap: .5em; min-height: 0; align-items: stretch; }
.du.table .du-conf.strip { flex: none; width: 22em; display: flex; flex-direction: column; justify-content: space-between; gap: .2em; padding: .35em .5em; cursor: pointer; }
.du-conf.strip header { display: flex; align-items: center; gap: .5em; font: 800 .95em var(--du-label); letter-spacing: .06em; text-transform: uppercase; }
.du-conf.strip header .du-lv { color: #ffb9a8; }
.du-cfn { font: 800 1.05em var(--du-label); letter-spacing: .02em; text-transform: none; color: var(--du-gold); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-conf.strip .du-cf-row { flex: none; padding: .1em .45em; }
.du-conf.strip .du-cf-row.off { opacity: .35; }
.du-conf.strip .du-rew .du-chip { font-size: 1.15em; }
.du-force { display: flex; align-items: center; gap: .5em; font: 800 1.05em var(--du-label); }
.du-force em { font: 700 .7em var(--du-label); font-style: normal; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }
.du-force span { display: inline-flex; align-items: center; gap: .2em; opacity: .55; }
.du-force span.on { opacity: 1; color: var(--du-gold); }
.du.table .du-row { flex: 1; flex-direction: row; align-items: flex-start; min-width: 0; container-type: size; }
.du-row-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1em; justify-content: space-between; align-self: stretch; overflow: hidden; }
.du-row-list h3 { line-height: 1; font: 800 .66em/1 var(--du-label); letter-spacing: .12em; text-transform: uppercase; color: var(--du-text2); }
.du-rowitem { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 1.7em 1.9em minmax(0, 1fr) auto auto; align-items: center; gap: .45em; padding: 0 .5em 0 .25em; border: 0; border-radius: .45em; background: linear-gradient(90deg, color-mix(in srgb, var(--fc, #7a6a4a) 55%, #1d2038), #1d2038 40%); border-left: .3em solid var(--fc, #7a6a4a); color: var(--du-text); font: 700 1em var(--du-label); text-align: left; cursor: pointer; }
.du-ri-cost { display: grid; place-items: center; width: 1.6em; height: 1.6em; background: #5db0e9; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); color: #072b4a; }
.du-ri-cost b { font: 900 .9em var(--du-label); }
.du-ri-fac { display: inline-flex; gap: .1em; }
.du-ri-fac .du-ico { width: 1.15em; height: 1.15em; }
.du-ri-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02em; }
.du-ri-icons { display: inline-flex; gap: .1em; }
.du-ri-icons .du-ico { width: 1.05em; height: 1.05em; }
.du-ri-fx { display: inline-flex; gap: .15em; min-width: 3.6em; justify-content: flex-end; font-size: .95em; }
.du-ri-fx .du-r { background: rgb(0 0 0 / .3); }
.du.table .du-piles { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: .25em; flex: none; }
.du.table .du-pile { flex-direction: row; gap: .4em; font-size: .85em; }
.du.table .du-pile em { max-width: none; text-align: left; white-space: nowrap; }
.du.table .du-pile .du-card { --w: 1.8em; }
.du.table .du-pile.res .du-pile-n { width: 1.8em; height: 1.8em; font-size: 1.05em; }
/* sur la table, un emplacement ne montre que ce qu'il donne (les pastilles) : le texte se lit en le touchant */
.du.table .du-space { min-height: 1.95em; flex: 1 1 0; padding: .15em .4em .15em; flex-direction: row; flex-wrap: wrap; align-content: center; align-items: center; gap: 0 .35em; }
.du.table .du-s-head { flex: 1 1 6.5em; min-width: 0; overflow: hidden; }
.du.table .du-s-foot { flex: none; margin-left: auto; }
.du.table .du-s-occ { position: static; flex: none; margin-left: .1em; }
.du.table .du-s-req { display: none; }
.du.table .du-mentat-home { position: static; flex: none; }
.du.table .du-mentat-home .du-ico { width: 1.4em; height: 1.4em; }
.du.table .du-s-text, .du.table .du-s-foot { flex: none; }
.du.table .du-s-name { font-size: .84em; white-space: normal; overflow: visible; text-overflow: clip; }
.du.table .du-s-head { align-items: center; flex-wrap: wrap; gap: 0 .3em; }
.du.table .du-s-name { flex: 1 1 3.5em; min-width: min-content; }
.du.table .du-s-cost { margin-left: auto; }
.du.table .du-s-text { font-size: 0; display: flex; flex-wrap: wrap; gap: .12em; align-items: center; flex: none; opacity: 1; -webkit-line-clamp: unset; overflow: visible; }
.du.table .du-s-text .du-r { font-size: calc(var(--tu) * .8); }
.du.table .du-s-foot { font-size: .75em; min-height: 0; }
.du.table .du-fac, .du.table .du-land, .du.table .du-grp { padding: .3em; }


/* un joueur autour de la table : deux lignes (chiffres, puis Agents et cartes en jeu) */
.du-seat-p { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .25em; padding: .25em .6em; border-radius: .7em; background: linear-gradient(180deg, var(--du-panel2), var(--du-panel)); border: 3px solid var(--pc); box-sizing: border-box; position: relative; overflow: hidden; }
.du-seat-p.flip { transform: rotate(180deg); }
.du-seat-p.turn { box-shadow: 0 0 0 .22em var(--du-gold), 0 0 1.4em rgb(226 182 58 / .45); }
.du-seat-p.wait:not(.turn) { box-shadow: 0 0 0 .2em var(--du-spice); }
.du-seat-p.done { opacity: .88; }
.du-sp-1, .du-sp-2 { display: flex; align-items: center; gap: .8em; min-width: 0; }
.du-sp-1 { flex: 1 1 auto; }
.du-sp-id { display: flex; align-items: center; gap: .45em; min-width: 0; flex: 1 1 8em; }
.du-sp-id .du-l-mono { width: 2.3em; height: 2.3em; background: var(--hc, #555); font-size: .85em; }
.du-sp-name { display: flex; flex-direction: column; min-width: 0; }
.du-sp-name b { font: 800 1.1em/1.05 var(--du-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-sp-name em { font: 600 .72em var(--du-label); font-style: normal; opacity: .75; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-first { color: var(--du-gold); display: inline-flex; }
.du-first .du-ico { width: 1.3em; height: 1.3em; }
.du-sp-vp { display: inline-flex; align-items: center; gap: .25em; font: 900 1.7em var(--du-label); flex: none; }
.du-sp-vp .du-ico { width: 1.1em; height: 1.1em; }
.du-sp-res { display: flex; gap: .6em; font-size: 1.2em; flex: none; }
.du-sp-troops { display: flex; gap: .7em; font: 800 1em var(--du-label); flex: none; }
.du-sp-troops span { display: inline-flex; align-items: center; gap: .15em; }
.du-sp-troops em { font: 600 .6em var(--du-label); font-style: normal; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.du-sp-troops .du-ico { width: 1.05em; height: 1.05em; }
.du-sp-cards { display: flex; gap: .6em; flex: none; margin-left: auto; font-size: .95em; }
.du-sp-cards .du-stat { gap: .2em; }
.du-sp-cards .du-ico { width: 1.15em; height: 1.15em; }
.du-sp-cards .du-stat em { display: none; } /* les icônes suffisent (info-bulle au toucher) */
.du-stat em { font: 600 .58em var(--du-label); font-style: normal; opacity: .65; text-transform: uppercase; letter-spacing: .05em; }
.du-sp-agents { display: flex; align-items: center; gap: .25em; flex: none; }
.du-ag { display: inline-flex; }
.du-ag.out { opacity: .3; }
.du-ag.seat { color: var(--du-text2); }
.du-ag.seat .du-ico { width: 1.4em; height: 1.4em; }
.du-sp-all { display: inline-flex; gap: .2em; margin-left: .5em; }
.du-al { opacity: .22; filter: grayscale(.6); }
.du-al.on { opacity: 1; filter: none; }
.du-al .du-ico { width: 1.2em; height: 1.2em; }
.du-revealed { font: 700 .7em var(--du-label); text-transform: uppercase; letter-spacing: .08em; padding: .1em .5em; border-radius: .5em; background: var(--du-water); color: #04263d; margin-left: .4em; }
.du-sp-play { flex: 1; min-width: 0; display: flex; gap: .25em; align-items: center; overflow: hidden; }
.du-sp-play .du-card.mini { flex: none; }
.du-pers { margin-left: auto; font-size: 1.1em; flex: none; }

/* agrandir une carte ou un emplacement */
.du-zoom { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; background: rgb(8 5 2 / .7); }
.du-zoom.on { display: grid; }
.du-zoom-in { display: grid; place-items: center; filter: drop-shadow(0 .5em 1.2em #000); }
.du-zoom-in .du-card { font-size: 1em; }
.du-zs { width: 24em; max-width: 90vw; padding: 1em 1.2em 1.1em; border-radius: .9em; background: linear-gradient(180deg, #f6ecd0, #dcc795); color: var(--du-ink); border-top: .5em solid var(--fc); box-shadow: 0 0 0 2px #0006; }
.du-zs-h { display: flex; align-items: center; gap: .5em; font: 800 1.5em var(--du-display); }
.du-zs-h .du-ico { width: 1.3em; height: 1.3em; }
.du-zs-sub { font: 700 .85em var(--du-label); letter-spacing: .05em; text-transform: uppercase; opacity: .7; margin: .2em 0 .4em; }
.du-zs-cost, .du-zs-req { font: 700 1em var(--du-label); margin-bottom: .3em; }
.du-zs-t { font-size: 1.05em; line-height: 1.3; margin: .3em 0; }
.du-zs-n { display: flex; align-items: center; gap: .4em; font-size: .88em; opacity: .85; margin-top: .3em; }
.du-zs .du-r { background: rgb(40 25 10 / .13); }
.du-zs .du-chip.cost { background: rgb(40 25 10 / .16); }

/* =====================================================================================================
   LE TÉLÉPHONE
   ===================================================================================================== */
.du:not(.table) .du-main { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: calc(1em + env(safe-area-inset-bottom)); }
.du-padcol { max-width: 640px; margin: 0 auto; padding: .4em .7em 1em; display: flex; flex-direction: column; gap: .7em; }
.du-me, .du-prompt, .du-wait, .du-hand-sec, .du-intr-sec, .du-board-sec, .du-card-sec { padding: .7em .8em; border-radius: .9em; background: var(--du-panel); border: 2px solid var(--du-line); }
.du-me { border-color: var(--pc); display: flex; flex-direction: column; gap: .5em; }
.du-me-top { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.du-me-lead { display: flex; align-items: center; gap: .6em; min-width: 0; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.du-me-lead .du-l-mono { width: 2.8em; height: 2.8em; background: var(--pc); }
.du-me-ln { display: flex; flex-direction: column; min-width: 0; }
.du-me-ln b { font: 800 1.05em/1.1 var(--du-label); }
.du-me-ln em { font: 600 .72em var(--du-label); font-style: normal; opacity: .7; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-me-vp { display: inline-flex; align-items: center; gap: .3em; font: 900 1.9em var(--du-label); flex: none; }
.du-me-vp .du-ico { width: 1.1em; height: 1.1em; }
.du-me-res { display: flex; flex-wrap: wrap; gap: .4em 1.1em; font-size: 1.15em; }
.du-me-inf { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35em; }
.du-mi { display: inline-flex; align-items: center; justify-content: center; gap: .3em; padding: .2em .3em; border-radius: .5em; background: rgb(255 255 255 / .06); font: 800 1em var(--du-label); border: 2px solid transparent; }
.du-mi.ally { border-color: var(--du-gold); background: rgb(226 182 58 / .15); }
.du-mi .du-ico { width: 1.3em; height: 1.3em; }
.du-me-ag { display: flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.du-me-ag .du-tok { width: 1.8em; height: 1.8em; }
.du-me-str, .du-me-pers { margin-left: auto; display: inline-flex; align-items: center; gap: .2em; font: 800 1em var(--du-label); }
.du-me-pers { margin-left: .4em; }

.du-wait { display: flex; align-items: center; gap: .7em; font: 700 1em var(--du-label); color: var(--du-text2); }
.du-wait.over { color: var(--du-gold); }
.du-spin { width: 1em; height: 1em; border-radius: 50%; border: 3px solid var(--du-line); border-top-color: var(--du-gold); animation: du-spin 1s linear infinite; flex: none; }
@keyframes du-spin { to { transform: rotate(360deg); } }
.du-prompt { border-color: var(--du-gold); background: linear-gradient(180deg, #3a2c1a, var(--du-panel)); }
.du-pt { font: 700 1.02em/1.3 var(--du-body); margin-bottom: .6em; }
.du-prompt h4, .du-intr-act h4, .du-spaces h4 { font: 800 .85em var(--du-label); letter-spacing: .08em; text-transform: uppercase; color: var(--du-gold); margin: .6em 0 .35em; }
.du-note { font-size: .9em; color: var(--du-text2); margin: .3em 0; }
.du-hand-sec h3, .du-intr-sec h3, .du-card-sec h3 { display: flex; justify-content: space-between; align-items: baseline; font: 800 .85em var(--du-label); letter-spacing: .1em; text-transform: uppercase; color: var(--du-text2); margin-bottom: .5em; }
.du-deckn { font-weight: 600; letter-spacing: .03em; text-transform: none; opacity: .8; }
.du-hand, .du-intr-list, .du-pick, .du-buy, .du-leaders { display: flex; flex-wrap: wrap; gap: .8em .6em; padding: .3em .2em; }
.du-playedrow { display: flex; flex-wrap: wrap; gap: .25em; align-items: center; margin-top: .6em; font-size: .85em; }
.du-playedrow em { font-style: normal; opacity: .6; }
.du-buyopt, .du-pickopt { display: flex; flex-direction: column; align-items: center; gap: .2em; font-size: .75em; }
.du-buyopt em, .du-pickopt em { font-style: normal; opacity: .65; }
.du-buyopt.on .du-card, .du-pickopt.on .du-card { box-shadow: 0 0 0 .2em var(--du-spice), 0 .3em 1em rgb(236 122 44 / .6); transform: translateY(-.3em); }
.du-leaders .du-card.leader { --w: 15em; flex: 1 1 15em; max-width: 20em; }
.du-leaders .du-card.leader.sel { box-shadow: 0 0 0 .22em var(--du-spice); }
.du-pers-big { display: flex; align-items: center; gap: .6em; font: 700 1em var(--du-label); font-size: 1.3em; margin-bottom: .3em; }
.du-peek { display: flex; justify-content: center; margin-bottom: .6em; }
.du-card-sec { display: flex; flex-direction: column; align-items: flex-start; }

/* choix d'un emplacement, d'une option */
.du-spaces { display: flex; flex-direction: column; gap: .4em; }
.du-sgrp { display: flex; flex-direction: column; gap: .35em; }
.du-sgh { display: flex; align-items: center; gap: .4em; font: 800 .8em var(--du-label); letter-spacing: .1em; text-transform: uppercase; color: var(--du-text2); margin-top: .3em; }
.du-sgh .du-ico { width: 1.3em; height: 1.3em; }
.du-opt { display: flex; flex-direction: column; align-items: stretch; gap: .15em; text-align: left; padding: .5em .7em; border-radius: .7em; background: var(--du-panel2); border: 2px solid var(--du-line); cursor: pointer; font-size: .95em; }
.du-opt.on { border-color: var(--du-spice); background: #4a3220; box-shadow: 0 0 0 2px var(--du-spice); }
.du-o-h { display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.du-o-h b { font: 800 1.05em var(--du-label); }
.du-o-c { display: inline-flex; gap: .3em; }
.du-o-t { font-size: .85em; opacity: .85; line-height: 1.25; }
.du-o-f { display: flex; gap: .8em; font-size: .78em; }
.du-o-f .du-flag.combat { color: #ff9a85; }
.du-o-f .du-flag.maker { color: #ffb36b; }
.du-choices { display: flex; flex-direction: column; gap: .4em; }
.du-opt.choice { flex-direction: row; align-items: center; gap: .6em; }
.du-opt.choice .du-ico { width: 1.6em; height: 1.6em; }
.du-opt.choice em { font-style: normal; opacity: .65; font-size: .85em; }
.du-stepper { display: flex; align-items: center; justify-content: center; gap: 1em; margin: .3em 0 .5em; }
.du-step { width: 3.2em; height: 3.2em; border-radius: 50%; border: 2px solid var(--du-line); background: var(--du-panel2); font: 800 1.6em var(--du-label); cursor: pointer; display: grid; place-items: center; padding: 0; }
.du-step:disabled { opacity: .35; }
.du-step-n { display: flex; flex-direction: column; align-items: center; min-width: 6em; font: 900 2.6em/1 var(--du-label); }
.du-step-n .du-ico { width: .7em; height: .7em; }
.du-step-n em { font: 600 .26em var(--du-label); font-style: normal; opacity: .7; letter-spacing: .06em; text-transform: uppercase; margin-top: .2em; }
.du-quick { display: flex; justify-content: center; gap: .5em; }
.du-pad-more { display: flex; }
.du-pad-more .du-btn { flex: 1; }
.du-board-sec { display: flex; flex-direction: column; gap: .7em; }
.du-board-sec .du-board { display: flex; flex-direction: column; font-size: 11px; }
.du-others { display: flex; flex-direction: column; gap: .5em; }
.du-mp { display: grid; grid-template-columns: auto 1fr; gap: .1em .6em; align-items: center; padding: .5em .7em; border-radius: .7em; background: var(--du-panel); border: 2px solid var(--pc); }
.du-mp.turn { box-shadow: 0 0 0 2px var(--du-gold); }
.du-mp b { font: 800 1.05em var(--du-label); }
.du-mp em { font: 600 .8em var(--du-label); font-style: normal; opacity: .65; }
.du-mp-r { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: .3em .9em; font-size: .95em; }
.du-mp-inf { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; }
.du-mp .du-mi { font-size: .9em; }

/* le plateau en feuille / sur téléphone : empilé */
.du:not(.table) .du-board { font-size: 11px; display: flex; flex-direction: column; gap: .6em; }
.du:not(.table) .du-map { display: flex; flex-direction: column; gap: .6em; }
.du:not(.table) .du-facs { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.du:not(.table) .du-dune .du-grp-sp { grid-template-columns: 1fr 1fr; }
.du:not(.table) .du-space { min-height: 5.2em; }
.du:not(.table) .du-s-text { -webkit-line-clamp: 4; font-size: .7em; }
.du:not(.table) .du-row-cards .du-card { --w: 9em; }

/* feuilles */
.du-sheet-wrap { position: fixed; inset: 0; z-index: 25; display: none; background: rgb(8 5 2 / .7); align-items: flex-end; justify-content: center; }
.du-sheet-wrap.on { display: flex; }
.du-sheet { position: relative; width: min(680px, 100%); max-height: 88dvh; overflow: auto; padding: 1.1em 1em calc(1.2em + env(safe-area-inset-bottom)); border-radius: 1.2em 1.2em 0 0; background: var(--du-bg2); border: 2px solid var(--du-line); border-bottom: 0; display: flex; flex-direction: column; gap: .8em; }
.du-sheet.board { width: min(1000px, 100%); font-size: 12px; }
.du-sheet h2 { font: 800 1.3em var(--du-display); color: var(--du-gold); padding-right: 2em; }
.du-sheet-x { position: absolute; top: .5em; right: .5em; width: 2.4em; height: 2.4em; border-radius: 50%; border: 2px solid var(--du-line); background: var(--du-panel); cursor: pointer; display: grid; place-items: center; padding: 0; }
.du-sheet-x .du-ico { width: 1em; height: 1em; }
.du-journal { list-style: none; display: flex; flex-direction: column; gap: .3em; max-height: 42dvh; overflow: auto; font-size: .9em; }
.du-journal li { display: flex; gap: .6em; padding: .25em .5em; border-radius: .4em; background: rgb(255 255 255 / .05); }
.du-jt { font: 800 .8em var(--du-label); color: var(--du-text2); flex: none; width: 2em; }
.du-testas { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.du-testas h3 { width: 100%; font: 800 .8em var(--du-label); letter-spacing: .1em; text-transform: uppercase; color: var(--du-text2); }
.du-sheet .du-others.big .du-mp { font-size: 1.05em; }

/* fin de partie */
.du-over { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; background: rgb(8 5 2 / .82); padding: 1em; }
.du-over.on { display: grid; }
.du-over-in { width: min(30em, 100%); display: flex; flex-direction: column; gap: .8em; padding: 1.4em 1.3em; border-radius: 1em; background: linear-gradient(180deg, #3a2c1a, var(--du-bg2)); border: 3px solid var(--du-gold); text-align: center; }
.du-over-in h2 { font: 800 1.9em var(--du-display); color: var(--du-gold); }
.du-ranking { list-style: none; display: flex; flex-direction: column; gap: .4em; text-align: left; }
.du-ranking li { display: grid; grid-template-columns: auto 1fr auto; gap: .2em .6em; align-items: center; padding: .4em .7em; border-radius: .6em; background: rgb(255 255 255 / .07); border-left: .4em solid var(--pc); font-size: 1.05em; }
.du-ranking li.win { background: rgb(226 182 58 / .22); }
.du-ranking li .du-cube { background: var(--pc); }
.du-ranking li > span:not(.sub) { display: inline-flex; align-items: center; gap: .25em; font: 900 1.3em var(--du-label); }
.du-ranking li .du-ico { width: 1em; height: 1em; }
.du-ranking .sub { grid-column: 2 / 4; font-size: .8em; opacity: .7; }


/* les vraies cartes (images de l'éditeur) et leur agrandissement */
.du-card.photo { background: none; padding: 0; overflow: hidden; border-radius: calc(var(--w) / 22); box-shadow: 0 .15em .5em rgb(0 0 0 / .55); display: block; }
.du-card.photo > img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.du-card.photo.tap { cursor: pointer; }
.du-card.photo.intrigue, .du-card.photo.conflict { aspect-ratio: 440 / 670; }
.du-card.photo.leader { aspect-ratio: 1460 / 1020; min-height: 0; }
.du-card.photo.can { box-shadow: 0 0 0 .2em #ffd45a, 0 0 .9em .2em rgb(255 212 90 / .65); }
.du-card.photo.sel { box-shadow: 0 0 0 .22em var(--du-spice), 0 .3em 1em rgb(236 122 44 / .65); }
.du-card.photo.cant { opacity: .45; filter: grayscale(.7); }
.du-zoombtn { position: absolute; right: .35em; bottom: .35em; width: 2.7em; height: 2.7em; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgb(0 0 0 / .62); color: #fff; cursor: pointer; font-size: min(calc(var(--w) / 11.5), 11px); }
.du-zoombtn .du-ico { width: 1.5em; height: 1.5em; }
.du-card.photo.leader .du-zoombtn { bottom: auto; top: .35em; }
.du-detail { display: flex; flex-direction: column; align-items: center; gap: .7em; max-height: 94dvh; overflow: auto; padding: .3em; }
.du.table .du-detail { flex-direction: row; align-items: center; gap: 1.2em; }
.du.table .du-detail.leader { flex-direction: column; }
.du-detail-t { width: min(24em, 92vw); box-sizing: border-box; padding: .8em 1em; border-radius: .8em; background: var(--du-panel); border: 2px solid var(--du-line); display: flex; flex-direction: column; gap: .45em; font-size: .95em; color: var(--du-text); }
.du-detail-name { font: 800 1.25em var(--du-display); color: var(--du-text); margin: 0 0 .1em; }
.du-detail-t p { margin: 0; line-height: 1.3; }
.du-detail-t b { color: var(--du-gold); font: 800 .8em var(--du-label); letter-spacing: .08em; text-transform: uppercase; margin-right: .3em; }
.du-detail-t .fac { display: flex; gap: .4em; flex-wrap: wrap; }
.du-detail-t .tag { display: inline-flex; align-items: center; gap: .25em; font: 700 .8em var(--du-label); letter-spacing: .06em; text-transform: uppercase; background: rgb(255 255 255 / .1); border-radius: .5em; padding: .1em .6em .1em .3em; }
.du-detail-t .rew { display: flex; align-items: center; gap: .4em; }
.du-detail-t .du-ico { width: 1.3em; height: 1.3em; display: inline-block; vertical-align: middle; }
.du-zs-img { display: block; width: calc(100% + 2.4em); margin: -1em -1.2em .7em; border-radius: .4em .4em 0 0; }

/* carnet de règles : cartes et icônes du jeu */
.du-rb-ico { width: 2.4em; height: 2.4em; }
.du-rb-space { display: inline-flex; align-items: center; gap: .4em; padding: .4em .7em; border-radius: .6em; background: rgb(255 255 255 / .1); font: 800 1em var(--du-label); }

@media (prefers-reduced-motion: reduce) {
  .du *, .du *::before, .du *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
