




#f-player .bot-cards i { background: linear-gradient(135deg, #3a5a7a, #16222e); border-color: #5b7fa0; }
/* Main : les cartes se chevauchent au besoin pour toutes tenir (réglé en JS : --ov) */



/* V7.1 : au survol d'une carte chevauchée, les cartes posées dessus s'estompent et laissent passer la souris */

/* ===== Arène mobile aérée ===== */

@media (max-width: 1023px) {
  :root { --mc-w: clamp(22px, 6.4vw, 30px); --sprite: clamp(96px, 19dvh, 150px); }
  .mcard .front span { display: none; }
  .mcard .front img.pxi { width: 72%; }
  .arena { padding: 40px 12px 14px; }
  .bot-cards { flex-wrap: wrap; max-width: 100%; gap: 2px; }
  .bot-cards i { width: 8px; height: 11px; border-radius: 2px; }
  .fighter .sub { display: none; }
  .statuses { min-height: 0; }
}


/* ===== V9 : accueil avec choix du donjon ===== */
/* ===== V9 : zone de jeu plus claire en thème clair ===== */
html:not(.dark) .arena {
  background: radial-gradient(ellipse at 50% 92%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%), linear-gradient(180deg, #f6f1e6, #e3dac7);
  color: #231f1a; border-color: var(--line);
}
html:not(.dark) .arena.boss { background: radial-gradient(ellipse at 50% 92%, rgba(163, 35, 51, .22), transparent 62%), linear-gradient(180deg, #f6ece6, #e6d3cb); }
html:not(.dark) .arena-tag, html:not(.dark) .fighter .sub { color: #6d6456; }
html:not(.dark) .st { background: rgba(0, 0, 0, .08); color: #231f1a; }
html:not(.dark) .arena-log { background: rgba(0, 0, 0, .07); color: #231f1a; }
html:not(.dark) .vs { color: color-mix(in srgb, var(--accent-ink) 70%, #231f1a); }
.hand-zone { min-width: 0; grid-area: hand; display: flex; flex-direction: column; gap: var(--gap); }

.rest-strip { min-height: 22px; white-space: nowrap; padding: 0 4px; overflow-x: auto; color: var(--muted); font-size: var(--fs-xs); align-items: center; gap: 6px; display: flex; justify-content: center; text-align: center; }
/* ===== V10 : plateau sous le sprite, codex par donjon, icônes du journal ===== */
.fighter .board { order: 2; margin-bottom: calc(var(--sprite) * -.22); position: relative; z-index: 0; }
.fighter img.sp { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); position: relative; z-index: 1; }
/* ===== V10.2 : cartes jetées en vrac sous le combattant (position conservée au retournement) ===== */
/* V12.40 : les cartes restent côte à côte (jamais en pile) ; sur un plateau étroit elles rétrécissent. */
.board.thrown { gap: 0; flex-direction: row; flex-wrap: nowrap; align-items: flex-end; justify-content: center; max-width: 100%; }
.board.thrown .mslot { flex: 0 1 var(--mc-w); width: var(--mc-w); min-width: 0; margin-left: calc(var(--mc-w) * var(--ml, 0)); transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg)); transform-style: preserve-3d; perspective: 600px; }
.board.thrown .mslot > .mcard { width: 100%; }
.board.thrown .mslot:has(.acting) { z-index: 5; }
/* Ombre des personnages : beige sur le thème clair */
html:not(.dark) .fighter img.sp { filter: drop-shadow(0 8px 10px rgba(150, 118, 70, .45)); }
html:not(.dark) .intent.unknown { background: rgba(60, 40, 10, .14); color: #4a3f30; }
html:not(.dark) .intent.unknown::after { border-top-color: rgba(60, 40, 10, .14); }
/* --- Intention percée par la Tactique --- */
.intent.revealed { animation: intentIn .6s cubic-bezier(.2, .9, .3, 1.3) both; box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(243, 207, 107, .45); }
.intent-tag { font-size: var(--fs-xs); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-ink); margin-right: 4px; }
@media (max-width: 1023px) { .intent-tag { font-size: calc(var(--fs-xs) - 1px); } }
@keyframes intentIn { from { opacity: 0; transform: translateY(6px) scale(.8); } }
.fighter.bot .intent.revealed { transform-origin: bottom center; }
.bot-cards i { min-width: 12px; min-height: 16px; }


.fighter.bot img.sp { transform: scaleX(-1); animation-duration: 5.3s; animation-delay: -2.1s; }
.owned-cards { margin-top: 10px; }
.owned-cards .deck-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }










@media (prefers-reduced-motion: reduce) { .victory-glow .combat::after { animation: none; opacity: .6; }  }
/* ===== V12.4 ===== */





/* V12.12 : pastille des techniques de classe */




.seg::-webkit-scrollbar { display: none; }
/* Feu de camp et sacrifice : liste compacte du deck, sans colonne à droite */
.deck-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; width: 100%; max-width: 760px; margin: 0 auto; }


/* V12.18 : fenêtre « Nouvelle relique » */
.relic-pop .result { max-width: 380px; text-align: center; }

/* V12.19 : décors de combat (pixel art par donjon et par monstre), voilés pour garder les combattants lisibles */
.arena.arena.has-bg, html:not(.dark) .arena.arena.has-bg { color: #ece6da; }
.arena.has-bg .fighter .name, .arena.has-bg .fighter .sub, .arena.has-bg .vs, .arena.has-bg .arena-tag { text-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .7); }
html:not(.dark) .arena.has-bg .fighter .name, html:not(.dark) .arena.has-bg .vs { color: #ece6da; }
/* V12.32 : décor clair en thème clair (pixel art plus grossier, contours comme les sprites) */
html:not(.dark) .arena.has-bg .fighter .name, html:not(.dark) .arena.has-bg .vs, html:not(.dark) .arena.has-bg .fighter .sub, html:not(.dark) .arena.has-bg .arena-tag { color: #2a211c; text-shadow: 0 1px 0 rgba(255, 250, 242, .85), 0 0 6px rgba(255, 250, 242, .6); }
/* ===== V12.21 ===== */
/* Pendant la révélation d'un round, la main du joueur passe en retrait. */

/* Le deck s'affiche partout en petites cartes (plus de listes). */




.choose-deck .deck-grid { overflow-y: auto; }
/* Noms des cartes un peu plus petits dans les rangées (main, deck). */

.card-detail + .panel .kv, .sheet .panel .kv { gap: 12px; }
.kw-line { margin: 4px 0; font-size: var(--fs-sm); }
/* Petites cartes : zoom au survol (ordinateur) ou sous le doigt qui glisse (mobile). V12.65 : le
   Codex (.card-grid) suit la même règle que le marchand (.deck-grid), qui n'avait pas de zoom. */





.relic-pick { padding: 10px 0 20px; align-items: center; gap: 18px; flex-direction: column; display: flex; padding-top: 14px; }
/* V12.25 : charge pleine, le deck en main chevauchée ; charge libérée, les autres cartes s'estompent */
.drop-hand { --cw: clamp(72px, 20vw, 104px); padding: 16px 4px 12px; margin: 0; justify-content: center; }





@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) { .deck-zone.must-drop { max-width: 980px; } .drop-hand { --cw: 104px; } }




/* ===== V12.33 ===== */
/* V12.37 : décors de combat redessinés (scènes plates 160 × 80, pixels nets). L'image est affichée
   entière ; un voile en bas garde les barres de vie lisibles. */
.arena.arena.has-bg { image-rendering: pixelated; position: relative; isolation: isolate; }
html:not(.dark) .arena.arena.has-bg { color: var(--text); }
.arena.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, .45) 100%), var(--arena-bg) center bottom / cover no-repeat; image-rendering: pixelated; }
html:not(.dark) .arena.has-bg::before { background-image: linear-gradient(180deg, transparent 55%, rgba(60, 46, 42, .18) 100%), var(--arena-bg-l, var(--arena-bg)); }
.chip { border-left: 3px solid var(--c); height: 22px; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 var(--s-2); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.on { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); }
.chip-gold { color: var(--on-gold); background: linear-gradient(135deg, #ffe08a, #e0a83a); border-color: transparent; }
button.chip { cursor: pointer; font-family: var(--font-ui); min-height: 40px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-3); }
.board { max-width: 100%; flex-wrap: nowrap; margin: 2px 0 2px; perspective: 600px; min-height: calc(var(--mc-w) * 1.36); align-items: flex-end; justify-content: center; display: flex; flex-direction: column; gap: var(--s-3); }
.board:empty { min-height: 0; margin: 0; }
.fighter .board:empty { min-height: calc(var(--mc-w) * 1.36); margin: 2px 0 2px; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.board-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-md); }
.board-list li:nth-child(odd) { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
.board-list li.me { outline: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.board-rank { font-family: var(--font-title); font-weight: 700; text-align: center; color: var(--muted); }
.board-rank.r1 { color: var(--gold-ink); }
.board-rank.r2 { color: #9aa3ad; }
.board-rank.r3 { color: #b0683a; }
.board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-score { font-family: var(--font-title); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.board-me { font-size: var(--fs-sm); color: var(--muted); }
/* V12.97 (retour d'Alexandre) : « vous n'êtes pas encore dans ce classement » -- discret, en italique. */
.board-me.off { font-style: italic; opacity: .8; }
.board-head { flex-wrap: wrap; justify-content: space-between; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.board-head .t-panel { text-align: left; }
/* ===== V12.35 : typographie par rôles (audit U1) : un rôle = une taille, sur tous les écrans ===== */
